genmatch.c (c_expr::gen_transform): Emit newlines from line number changes rather...
[gcc.git] / gcc / ChangeLog
1 2019-12-06 Richard Biener <rguenther@suse.de>
2
3 * genmatch.c (c_expr::gen_transform): Emit newlines from line
4 number changes rather than after every semicolon.
5
6 2019-12-06 Richard Biener <rguenther@suse.de>
7
8 PR tree-optimization/92819
9 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
10 into the last lane. For two-element vectors try inserting
11 into the last lane when inserting into the first fails.
12
13 2019-12-06 Jakub Jelinek <jakub@redhat.com>
14
15 * common.opt (fprofile-partial-training): Terminate description with
16 full stop.
17
18 2019-12-05 Martin Sebor <msebor@redhat.com>
19
20 PR middle-end/92622
21 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
22 left uninitialized by get_addr_base_and_unit_offset on failure.
23
24 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
25
26 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
27 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
28 (detect_type_change): Likewise.
29 (detect_type_change_ssa): Likewise.
30 (ipa_analyze_virtual_call_uses): Update.
31
32 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
33
34 * config/nios2/linux.h (LINK_EH_SPEC): Define.
35
36 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
37
38 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
39
40 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
41
42 * cgraphclones.c (localize_profile): New function.
43 (cgraph_node::create_clone): Use it for partial profiles.
44 * common.opt (fprofile-partial-training): New flag.
45 * doc/invoke.texi (-fprofile-partial-training): Document.
46 * ipa-cp.c (update_profiling_info): For partial profiles do not
47 set function profile to zero.
48 * profile.c (compute_branch_probabilities): With partial profile
49 watch if edge count is zero and turn all probabilities to guessed.
50 (compute_branch_probabilities): For partial profiles do not apply
51 profile when entry count is zero.
52 * tree-profile.c (tree_profiling): Only do value_profile_transformations
53 when profile is read.
54
55 2019-12-05 Sudakshina Das <sudi.das@arm.com>
56
57 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
58 check from if condition.
59
60 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
61
62 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
63 and Fortran's optional arguments, unconditionally add the is-present
64 condition before the libgomp call.
65
66 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
67
68 PR middle-end/92768
69 * tree-core.h (OEP_BITWISE): New flag.
70 * fold-const.c (operand_compare::operand_equal_p): Handle it.
71 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
72
73 2019-12-05 Richard Biener <rguenther@suse.de>
74
75 PR middle-end/92818
76 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
77 heuristics on what don't care element to choose.
78 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
79
80 2019-12-05 Martin Liska <mliska@suse.cz>
81
82 PR gcov-profile/92817
83 * coverage.c (build_gcov_exit_decl): Remove superfluous
84 void_type_node.
85
86 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
87
88 * config/msp430/msp430.md (cbranch<mode>4): Use
89 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
90 dest operand of CMP instruction.
91 (cbranchpsi4_real): Likewise.
92 (cbranchqi4_real): Likewise.
93 (cbranchhi4_real): Likewise.
94 (cbranchpsi4_reversed): Likewise.
95 (cbranchqi4_reversed): Likewise.
96 (cbranchhi4_reversed): Likewise.
97
98 2019-12-05 Richard Biener <rguenther@suse.de>
99
100 PR tree-optimization/92803
101 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
102 invariant vector construction.
103
104 2019-12-05 Martin Liska <mliska@suse.cz>
105
106 PR gcov-profile/91971
107 * coverage.c (coverage_init): Mangle full path
108 only when -fprofile-dir is used.
109
110 2019-12-05 Jakub Jelinek <jakub@redhat.com>
111
112 PR target/92791
113 * config/i386/i386.md (movstrict<mode>): Move test for
114 TARGET_PARTIAL_REG_STALL and not optimizing for size from
115 expander's condition to the body - FAIL; in that case.
116
117 2019-12-03 Martin Sebor <msebor@redhat.com>
118
119 PR middle-end/91582
120 * builtins.c (gimple_call_alloc_size): New function.
121 (compute_objsize): Add argument. Call gimple_call_alloc_size.
122 Handle variable offsets and indices.
123 * builtins.h (gimple_call_alloc_size): Declare.
124 (compute_objsize): Add argument.
125 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
126 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
127
128 2019-12-04 Julian Brown <julian@codesourcery.com>
129
130 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
131
132 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
133
134 PR bootstrap/92661
135 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
136 rs6000.h.
137 (altivec_overloaded_builtins): Move to rs6000-call.c.
138 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
139 rs6000-c.c.
140 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
141 (altivec_overloaded_builtins): Moved from rs6000-c.c.
142 (rs6000_common_init_builtins): Do no define builtins that overload
143 builtins that have been disabled.
144
145 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
146
147 * config/arm/arm.c (arm_option_override_internal):
148 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
149
150 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
151
152 * config/aarch64/aarch64.c
153 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
154 (thunderx_tunings): Likewise.
155 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
156 (thunderx2t99_tunings): Likewise.
157 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
158 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
159
160 2019-12-04 Richard Biener <rguenther@suse.de>
161
162 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
163 empty CTOR and memset partial-def registering. Take advantage
164 of fancy offset analysis in memset handling.
165
166 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
167
168 * fold-const.c (native_encode_vector_part): Handle
169 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
170 (native_decode_vector_tree): Delete, moving the bulk of the code to...
171 (native_interpret_vector_part): ...this new function. Use a pointer
172 and length instead of a vec<> and start index.
173 (native_interpret_vector): Use native_interpret_vector_part.
174 (fold_view_convert_vector_encoding): Likewise.
175
176 2019-12-04 Richard Biener <rguenther@suse.de>
177
178 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
179 non-constant defs in the most trivial way.
180 (vn_reference_lookup_3): Also push down SSA partial defs.
181
182 2019-12-04 Martin Liska <mliska@suse.cz>
183
184 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
185 Initialize count of newly created BB.
186
187 2019-12-04 Jakub Jelinek <jakub@redhat.com>
188
189 PR tree-optimization/92734
190 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
191 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
192
193 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
194
195 PR target/92760
196 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
197 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
198
199 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
200
201 * ipa-fnsummary.c: Include tree-into-ssa.h.
202 (compute_fn_summary): Call update_ssa.
203
204 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
205
206 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
207 is set only for symbol in comdat group.
208 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
209
210 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
211
212 * cgraph.c: Include tree-into-ssa.h
213 (cgraph_node::get_body): Call update_ssa.
214 * cgraphunit.c (cgraph_node::expand): Likewise.
215 * lto-streamer-in.c (input_function): Do not call update_ssa.
216
217 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
218
219 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
220 an array element size if array_element_size is already an invariant.
221 Similarly don't gimplify and install a field offset if
222 component_ref_field_offset is already an invariant.
223
224 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
225
226 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
227 with POLY_INT_CST size is made to a fixed-size object, force the
228 object to live in memory.
229
230 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
231
232 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
233 for the data mode.
234
235 2019-12-03 Richard Biener <rguenther@suse.de>
236
237 PR tree-optimization/92758
238 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
239 operation on uniform vectors.
240
241 2019-12-03 Richard Biener <rguenther@suse.de>
242
243 PR tree-optimization/92645
244 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
245 from or to a properly aligned register variable.
246
247 2019-12-03 Matthias Klose <doko@ubuntu.com>
248
249 * Makefile.in (SOURCES): Add doc/lto-dump.1.
250 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
251 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
252
253 2019-12-03 Richard Biener <rguenther@suse.de>
254
255 PR tree-optimization/92751
256 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
257 when a clobber ends up in the partial-def vector.
258 (vn_reference_lookup_3): Let clobbers be handled by the
259 assignment from CTOR handling.
260
261 2019-12-03 Jakub Jelinek <jakub@redhat.com>
262
263 PR tree-optimization/92734
264 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
265 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
266 inner subtraction.
267
268 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
269 Jakub Jelinek <jakub@redhat.com>
270
271 PR target/92744
272 * config/i386/i386.md (peephole2 for *swap<mode>): Use
273 general_reg_operand predicates instead of register_operand.
274
275 2019-12-03 Richard Biener <rguenther@suse.de>
276
277 PR tree-optimization/92645
278 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
279 a full def of a vector via a BIT_INSERT_EXPR.
280
281 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
282
283 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
284 static.
285 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
286 decl.
287
288 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
289
290 PR middle-end/92741
291 * fold-const.c (fold_convertible_p): Check vector types more
292 thoroughly.
293
294 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
295
296 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
297 (aarch64_expand_mov_immediate): Use it when attempting to measure
298 the length of an SVE vector.
299 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
300 SVE is enabled.
301
302 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
303
304 * config/aarch64/aarch64-sve-builtins.h
305 (gimple_folder::force_vector): Declare.
306 * config/aarch64/aarch64-sve-builtins.cc
307 (gimple_folder::force_vector): New function.
308 * config/aarch64/aarch64-sve-builtins-base.cc
309 (svcmp_impl::fold): Likewise.
310 (svdup_impl::fold): Handle svdup_z too.
311
312 2019-12-02 Martin Liska <mliska@suse.cz>
313
314 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
315 function.
316 (debug_tree_odr_name): New.
317 * ipa-utils.h (get_odr_name_for_type): New.
318
319 2019-12-02 Richard Biener <rguenther@suse.de>
320
321 PR tree-optimization/92742
322 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
323 touch the def-type but verify it is consistent with the
324 original stmts.
325
326 2019-12-02 Jakub Jelinek <jakub@redhat.com>
327
328 PR tree-optimization/92712
329 * match.pd ((A * B) +- A -> (B +- 1) * A,
330 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
331 even when we don't know anything about range of A, but do know
332 something about range of B and the simplification won't introduce
333 new UB.
334
335 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
336
337 PR ipa/92133
338 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
339 (ipa-cp-min-recursive-probability): Likewise.
340 * params.opt (ipa-cp-max-recursive-depth): New.
341 (ipa-cp-min-recursive-probability): Likewise.
342 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
343 val_p and unlimited.
344 (self_recursively_generated_p): New function.
345 (get_val_across_arith_op): Likewise.
346 (propagate_vals_across_arith_jfunc): Add constant propagation for
347 self-recursive function.
348 (incorporate_penalties): Do not penalize pure self-recursive function.
349 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
350 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
351 (get_info_about_necessary_edges): Relax hotness check for edge to
352 self-recursive function.
353 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
354
355 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
356
357 PR target/92499
358
359 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
360 objects of flexible types to be small if they have internal linkage
361 or are declared extern.
362 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
363 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
364 instead of the size of the object initializer.
365 * tree.c (flexible_array_type_p): Move from C front end, and
366 generalize to handle fields in non-C structures.
367 * tree.h (flexible_array_type_p): Declare.
368
369 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
370
371 * profile-count.h (profile_count::operator<): Use IPA value for
372 comparsion.
373 (profile_count::operator>): Likewise.
374 (profile_count::operator<=): Likewise.
375 (profile_count::operator>=): Likewise.
376 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
377
378 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
379
380 * ipa-inline.c (compute_max_insns): Return int64_t.
381 (inline_small_functions): Simplify.
382
383 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
384
385 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
386 scaling happen.
387
388 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
389
390 * cgraph.h (symtab_node): Add symver flag.
391 * cgraphunit.c (process_symver_attribute): New.
392 (process_common_attributes): Use process_symver_attribute.
393 * lto-cgraph.c (lto_output_node): Stream symver.
394 (lto_output_varpool_node): Stream symver.
395 (input_overwrite_node): Stream symver.
396 (input_varpool_node): Stream symver.
397 * output.h (do_assemble_symver): Decalre.
398 * symtab.c (symtab_node::dump_base): Dump symver.
399 (symtab_node::verify_base): Verify symver.
400 (symtab_node::resolve_alias): Handle symver.
401 * varasm.c (do_assemble_symver): New function.
402 * varpool.c (varpool_node::assemble_aliases): Use it.
403 * doc/extend.texi: (symver attribute): Document.
404 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
405
406 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
407
408 * target.h (type_context_kind): New enum.
409 (verify_type_context): Declare.
410 * target.def (verify_type_context): New target hook.
411 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
412 * doc/tm.texi: Regenerate.
413 * tree.c (verify_type_context): New function.
414 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
415 Declare.
416 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
417 New function.
418 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
419 (TARGET_VERIFY_TYPE_CONTEXT): Define.
420
421 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
422
423 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
424 * cgraph.h (cgraph_node): Add unit_id and
425 merged_extern_inline.
426 (symbol_table): Add max_unit.
427 (symbol_table::symbol_table): Initialize it.
428 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
429 merged_comdat, merged_extern_inline.
430 (cgraph_node::create_clone): Likewise.
431 (cgraph_node::create_version_clone): Likewise.
432 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
433 calls.
434 * ipa-fnsummary.h (cross_module_call_p): New inline function.
435 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
436 * ipa-inline.c (inline_small_functions): Likewise.
437 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
438 copy merged_comdat and merged_extern_inline.
439 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
440 merged_extern_inline and unit_id.
441 (input_overwrite_node): Stream in these.
442 (input_cgraph_1): Set unit_base.
443 * lto-streamer.h (lto_file_decl_data): Add unit_base.
444 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
445
446 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
447
448 * gcc.c (process_command): Only warn about an ineffective `-x'
449 option if any input files have actually been supplied.
450
451 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
452
453 * doc/install.texi (Options specification): Remove the list of
454 target library subdirectories supporting
455 `--enable-version-specific-runtime-libs'. Document defaults for
456 the option.
457
458 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
459
460 PR rtl-optimization/92283
461 * lra.c (lra): Update reg notes after inheritance sub-pass and
462 before constraint sub-pass.
463
464 2019-11-29 Richard Biener <rguenther@suse.de>
465
466 PR tree-optimization/91003
467 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
468 operand number, avoid handling the non-condition operands of
469 COND_EXPRs as comparisons.
470 (vect_get_constant_vectors): Pass down the operand number.
471 (vect_get_slp_defs): Likewise.
472
473 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
474
475 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
476 generic_expr_could_trap_p to check if the condition of COND_EXPR or
477 VEC_COND_EXPR can trap.
478
479 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
480
481 PR tree-optimization/92677
482 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
483 to zero when dissolving a group of strided accesses.
484
485 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
486
487 PR tree-optimization/92596
488 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
489 operations.
490 (vectorizable_operation): Likewise, instead of relying on
491 vect_get_mask_type_for_stmt to do this.
492 (vect_get_vector_types_for_stmt): Always return a vector type
493 immediately, rather than deferring the choice for boolean results.
494 Use a vector mask type instead of a normal vector if
495 vect_use_mask_type_p.
496 (vect_get_mask_type_for_stmt): Delete.
497 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
498 mask_producers argument and special boolean_type_node handling.
499 (vect_determine_vf_for_stmt): Remove mask_producers argument and
500 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
501 (vect_determine_vectorization_factor): Update call accordingly.
502 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
503 boolean_type_node handling.
504 (vect_slp_analyze_node_operations_1): Likewise.
505
506 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
507
508 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
509 (vect_use_mask_type_p): New function.
510 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
511 mask precision to the pattern statement.
512 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
513 and use it to initialize the new stmt's mask precision.
514 (search_type_for_mask_1): Delete.
515 (search_type_for_mask): Replace with...
516 (integer_type_for_mask): ...this new function. Use the information
517 cached in the stmt_vec_info.
518 (vect_recog_bool_pattern): Update accordingly.
519 (build_mask_conversion): Pass the scalar type associated with the
520 mask type to append_pattern_def_seq.
521 (vect_recog_mask_conversion_pattern): Likewise. Call
522 integer_type_for_mask instead of search_type_for_mask.
523 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
524 of search_type_for_mask.
525 (possible_vector_mask_operation_p): New function.
526 (vect_determine_mask_precision): Likewise.
527 (vect_determine_stmt_precisions): Call it.
528
529 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
530
531 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
532 the slp_tree parameter with a group size parameter.
533 (vect_get_mask_type_for_stmt): Likewise.
534 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
535 (vect_get_mask_type_for_stmt): Likewise.
536 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
537 call accordingly.
538
539 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
540
541 * tree-vect-stmts.c (vectorizable_operation): Punt early
542 on codes that are handled elsewhere.
543
544 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
545
546 * doc/sourcebuild.texi (vect_bool_cmp): Document.
547 * tree-vect-patterns.c (search_type_for_mask_1): If neither
548 operand to a boolean comparison is a natural vector mask,
549 handle both operands like normal integers instead.
550
551 2019-11-29 Richard Biener <rguenther@suse.de>
552
553 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
554 out early for too large objects.
555
556 2019-11-29 Martin Jambor <mjambor@suse.cz>
557
558 PR ipa/92476
559 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
560 the summary only if the summary exists.
561 (find_more_scalar_values_for_callers_subset): Check node_dead in
562 the summary only if the summary exists.
563 (ipcp_store_bits_results): Ignore nodes without lattices.
564 (ipcp_store_vr_results): Likewise.
565 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
566 header files required by them.
567 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
568
569 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
570
571 PR tree-optimization/92710
572 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
573 vector mask arguments.
574
575 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
576
577 * profile-count.c (profile_count::to_cgraph_frequency,
578 profile_count::to_sreal_scale): Check for compaibility of counts.
579 * profile-count.h (compatible_p): Make public; add checking for
580 global0 versus global types.
581 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
582
583 2019-11-29 Richard Biener <rguenther@suse.de>
584
585 PR tree-optimization/92715
586 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
587 out for uniform vectors and source vectors with less elements
588 than the destination.
589
590 2019-11-29 Martin Liska <mliska@suse.cz>
591
592 PR lto/91574
593 * ipa-devirt.c (types_same_for_odr): Check for existence
594 of TYPE_NAMEs first.
595
596 2019-11-29 Richard Biener <rguenther@suse.de>
597
598 PR tree-optimization/92704
599 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
600 in loops performing only loads.
601
602 2019-11-29 Julian Brown <julian@codesourcery.com>
603
604 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
605 BT_DFLOAT128_PTR) Remove.
606 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
607 TI_DFLOAT128_PTR_TYPE): Remove.
608 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
609 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
610 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
611 dfloat128_ptr_type_node): Remove macros.
612
613 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
614
615 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
616 formatting.
617 (*movdi_internal64): Ditto.
618
619 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
620
621 PR target/92602
622 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
623 indexed_or_indirect_operand to be memory_operand.
624 (bswap<mode>2_store for HSI): Ditto.
625 (bswapdi2_load): Ditto.
626 (bswapdi2_store): Ditto.
627
628 2019-11-28 Martin Liska <mliska@suse.cz>
629
630 PR debug/46558
631 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
632 headers for translation.
633
634 2019-11-28 Martin Liska <mliska@suse.cz>
635
636 PR lto/92609
637 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
638 consistently.
639
640 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
641
642 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
643 checks.
644
645 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
646
647 * profile-count.c (profile_count::combine_with_ipa_count): Return
648 uninitialized count if called on ininitialized count.
649
650 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
651
652 * ipa-inline-transform.c (inline_transform): Scale profile before
653 redirecting.
654
655 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
656
657 * profile-count.h (profile_count::max): Work on profiles of different
658 type.
659 (profile_count::apply_scale): Be sure that ret is not local or global0
660 type if num is global.
661
662 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
663
664 * profile-count.h (profile_count::max): Work on profiles of different
665 type.
666 (profile_count::apply_scale): Be sure that ret is not local or global0
667 type if num is global.
668
669 2019-11-28 Martin Jambor <mjambor@suse.cz>
670
671 PR ipa/92697
672 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
673 ifunc_resolvers.
674 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
675 Removed trailig whitespace.
676
677 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
678
679 * profile-count.h (profile_count::combine_with_ipa_count_within):
680 Declare.
681 * profile-count.c (profile_count::combine_with_ipa_count_within):
682 New.
683 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
684 it.
685
686 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
687
688 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
689 of counters are done same way.
690
691 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
692
693 * ipa-cp.c (update_profiling_info): Fix scaling.
694
695 2019-11-28 Richard Biener <rguenther@suse.de>
696
697 PR tree-optimization/92645
698 * tree-inline.c (remap_gimple_stmt): When the return value
699 is not wanted, elide GIMPLE_RETURN.
700
701 2019-11-28 Richard Biener <rguenther@suse.de>
702
703 PR tree-optimization/92645
704 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
705 conversions inside a mode class. Remove restriction on
706 preserving the element size.
707 (simplify_vector_constructor): Deal with the above and for
708 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
709 and VEC_PACK_TRUNC_EXPR.
710
711 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
712
713 Must use push insn to pass varargs arguments of DFmode because
714 otherwise the middle-end generates wrong code.
715
716 PR target/92055
717 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
718
719 2019-11-28 Jakub Jelinek <jakub@redhat.com>
720
721 PR tree-optimization/92691
722 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
723 in function comment.
724 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
725 calls, return !handle_printf_call rather than always returning true.
726 (check_and_optimize_stmt): Describe return value meaning in function
727 comment. Formatting fix.
728
729 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
730
731 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
732 combination of globa0 and global counters..
733
734 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
735
736 PR target/92566
737 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
738 by VECTOR_UNIT_NONE_P instead.
739
740 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
741
742 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
743 Refine VF to VF_AVX512VL.
744
745 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
746
747 * config/rs6000/rs6000.md (movsi_internal): Reformat.
748 (movdi_internal64): Reformat.
749
750 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
751
752 PR bootstrap/92661
753 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
754 builtin if we don't have an actual type.
755 (builtin_function_type): If the builtin function uses a DFP type
756 and decimal float has been disabled, then return NULL_TREE.
757
758 2019-11-27 Jakub Jelinek <jakub@redhat.com>
759
760 PR rtl-optimization/92510
761 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
762 of comparison into a comparison with different mode if both imode and
763 omode are scalar integral modes.
764
765 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
766
767 PR rtl-optimization/90007
768 * recog.c (constrain_operands): Permit hard registers too for
769 memory when LRA is used.
770
771 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
772
773 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
774 between Coldfire and regular m68k.
775 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
776
777 2019-11-27 Richard Biener <rguenther@suse.de>
778
779 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
780 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
781 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
782 * optabs-tree.c (supportable_convert_operation): Do not call
783 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
784 * optabs-tree.h (supportable_convert_operation): Adjust.
785 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
786 * doc/tm.texi: Regenerate.
787 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
788 * tree-vect-generic.c (expand_vector_conversion): Likewise.
789 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
790 unused decl parameter and adjust.
791 (vect_create_vectorized_promotion_stmts): Likewise.
792 (vectorizable_conversion): Adjust.
793
794 2019-11-27 Richard Biener <rguenther@suse.de>
795
796 PR tree-optimization/92690
797 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
798 converting elements not originally converted.
799
800 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
801
802 PR middle-end/92463
803 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
804 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
805 mpfr_rnd_t instead of mp_rnd_t.
806 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
807 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
808 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
809 Use mpfr_exp_t instead of mp_exp_t.
810 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
811 MPFR_RNDx instead of GMP_RNDx.
812 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
813 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
814 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
815 of mp_rnd_t and remove MPFR_RNDx poisoning.
816 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
817
818 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
819
820 PR tree-optimization/91790
821 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
822 DR for vect_setup_realignment when first_stmt_info is different
823 from first_stmt_info_for_drptr.
824
825 2019-11-27 Richard Biener <rguenther@suse.de>
826
827 PR tree-optimization/92645
828 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
829 CTORs with just a subset of the original vectors.
830
831 2019-11-27 Richard Biener <rguenther@suse.de>
832
833 PR middle-end/92674
834 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
835 edges and instead record blocks in bitmap.
836 (gimple_expand_calls_inline): Adjust.
837 (fold_marked_statements): Delay EH cleanup until all folding is
838 done.
839 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
840 inlining finished.
841
842 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
843
844 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
845 LRA is enabled.
846 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
847 disabled.
848
849 2019-11-27 Jakub Jelinek <jakub@redhat.com>
850
851 PR debug/92664
852 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
853
854 2019-11-26 Martin Sebor <msebor@redhat.com>
855
856 PR tree-optimization/92683
857 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
858 inadvertently removed in a previous change. Rename local variable
859 for clarity.
860
861 2019-11-26 Richard Biener <rguenther@suse.de>
862
863 PR middle-end/92669
864 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
865 NULL pre_order.
866
867 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
868
869 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
870
871 2019-11-26 Jakub Jelinek <jakub@redhat.com>
872
873 PR tree-optimization/92644
874 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
875 next to INTEGER_CST checks.
876
877 2019-11-26 Richard Biener <rguenther@suse.de>
878
879 PR tree-optimization/92645
880 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
881 do not build the operation from scalars if the operand is.
882
883 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
884
885 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
886 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
887 definitions.
888
889 2019-11-25 Martin Liska <mliska@suse.cz>
890
891 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
892 up used dump message.
893
894 2019-11-25 Martin Liska <mliska@suse.cz>
895
896 PR bootstrap/92653
897 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
898 too strict checking assert.
899
900 2019-11-25 Joseph Myers <joseph@codesourcery.com>
901
902 PR c/91985
903 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
904 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
905 error_mark_node if corresponding global tree node is NULL.
906 * tree.c (build_common_tree_nodes): Do not initialize
907 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
908 decimal floating-point not supported.
909
910 2019-11-25 Joseph Myers <joseph@codesourcery.com>
911
912 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
913 types.
914
915 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
916
917 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
918 Replace code for non-CONST_INT constants with gcc_unreachable.
919 * config/m68k/m68k.md (cbranchdi): Don't generate individual
920 compare and test.
921 (CMPMODE): New mode_iterator.
922 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
923 cbranch<mode>4.
924 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
925 cstore<mode>4.
926 (cmp<mode>_68881): Remove 'F' constraint from first comparison
927 operand.
928 (bit test insns patterns): Use nonimmediate_operand, not
929 register_operand, for source operands that allow memory in
930 their constraints.
931 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
932 Use register_operand, not nonimmediate_operand, for the
933 destinations.
934 (DBCC): New mode_iterator.
935 (dbcc peepholes): Use it to reduce duplication.
936 (trap): Use const_true_rtx, not const1_rtx.
937 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
938 from m68k_subword_comparison_operand and changed to handle
939 SImode.
940
941 PR target/91851
942 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
943 declaration.
944 (m68k_init_cc): New declaration.
945 (m68k_output_compare_di, m68k_output_compare_si)
946 (m68k_output_compare_hi, m68k_output_compare_qi)
947 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
948 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
949 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
950 m68k_output_branch_float, m68k_output_branch_float_rev):
951 Likewise.
952 (valid_dbcc_comparison_p_2, flags_in_68881)
953 (output_btst): Remove declaration.
954 * config/m68k/m68k.c (INCLDUE_STRING): Define.
955 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
956 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
957 (flags_compare_op0, flags_compare_op1, flags_operand1,
958 flags_operand2, flags_valid): New static variables.
959 (m68k_find_flags_value, m68k_init_cc): New functions.
960 (handle_flags_for_move, m68k_asm_final_postscan_insn,
961 remember_compare_flags): New static functions.
962 (output_dbcc_and_branch): New argument CODE. Use it, and add
963 PLUS and MINUS to the possible codes. All callers changed.
964 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
965 and INSN arguments, add CODE arg. Return the comparison code
966 to use. All callers changed. Use CODE instead of
967 next_insn_tests_no_inequality, and replace cc_status management
968 with changing the return code.
969 (m68k_rtx_costs): Instead of testing for COMPARE, test for
970 RTX_COMPARE or RTX_COMM_COMPARE.
971 (output_move_simode, output_move_qimode): Call
972 handle_flags_for_move.
973 (notice_update_cc): Delete function.
974 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
975 m68k_output_compare_hi, m68k_output_compare_qi,
976 m68k_output_compare_fp, m68k_output_branch_integer,
977 m68k_output_branch_integer_rev, m68k_output_scc,
978 m68k_output_branch_float, m68k_output_branch_float_rev,
979 m68k_output_scc_float): New functions.
980 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
981 once at the start, and set flags_valid and flags_operand1 if the
982 flags are usable.
983 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
984 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
985 definitions.
986 (CC_STATUS_INIT): Define.
987 * config/m68k/m68k.md (flags_valid): New define_attr.
988 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
989 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
990 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
991 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
992 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
993 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
994 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
995 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
996 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
997 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
998 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
999 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1000 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1001 ctrapqi4, conditional_trap): Delete patterns.
1002 (cbranchdi4_insn): New pattern.
1003 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1004 test high part only. When testing EQ or NE, generate beq0_di
1005 and bne0_di patterns directly.
1006 (cstoredi4): When testing LT or GE, test high part only.
1007 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1008 patterns.
1009 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1010 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1011 cmp2_cf_predicate): New define_mode_attrs.
1012 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1013 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1014 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1015 New patterns.
1016 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1017 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1018 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1019 New patterns.
1020 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1021 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1022 Likewise.
1023 (BTST): New define_mode_iterator.
1024 (btst_predicate, btst_constraint, btst_range): New
1025 define_mode_attrs.
1026 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1027 patterns.
1028 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1029 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1030 patterns): Set attr "flags_valid".
1031 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1032 management. Set attr "flags_valid".
1033 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1034 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1035 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1036 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1037 manual CC_STATUS management.
1038 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1039 unnamed strict_lowpart subhi and subqi patterns): Set attr
1040 "flags_valid".
1041 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1042 Remove code to operate on address regs and assert the case
1043 does not occur.
1044 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1045 manual CC_STATUS_INIT.
1046 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1047 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1048 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1049 one_cmplqi2, unnamed strict_lowpart patterns
1050 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1051 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1052 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1053 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1054 CC_STATUS_INIT.
1055 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1056 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1057 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1058 unnamed strict_low_part patterns for HI and
1059 QI versions): Set attr "flags_valid".
1060 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1061 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1062 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1063 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1064 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1065 (various unnamed peepholes): Adjust compare/branch sequences
1066 for new cbranch patterns.
1067 (dbcc peepholes): Likewise, and output the comparison here
1068 as well.
1069 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1070 (fp_src_operand): Allow constant zero.
1071 (address_reg_operand): New predicate.
1072
1073 * rtl.h (inequality_comparisons_p): Remove declaration.
1074 * recog.h (next_insn_tests_no_inequality): Likewise.
1075 * rtlanal.c (inequality_comparisons_p): Delete function.
1076 * recog.c (next_insn_tests_no_inequality): Likewise.
1077
1078 2019-11-25 Richard Biener <rguenther@suse.de>
1079
1080 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1081 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1082 properly re-building the visited hash-map for each lane.
1083
1084 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1085
1086 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1087 gcn_md_reorg): Remove unused variables.
1088 (gcn_emutls_var_init): Add missing (but unreachable) return
1089 to silence warning.
1090 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1091 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1092 an uninitialized variable.
1093
1094 2019-11-25 Martin Jambor <mjambor@suse.cz>
1095
1096 PR ipa/92109
1097 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1098 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1099 (cgraph_materialize_clone): Move removel from clone tree to the
1100 the new method and use it instead.
1101 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1102 bodies of clones, also remove it from the clone tree.
1103
1104 2019-11-25 Martin Jambor <mjambor@suse.cz>
1105
1106 PR ipa/91956
1107 * ipa-sra.c (process_isra_node_results): Put the new node to the
1108 same comdat group as the original node.
1109
1110 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1111
1112 Build double32 / long-double32 multilibs if needed.
1113
1114 PR target/92055
1115 * config/avr/t-avr:
1116 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1117 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1118 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1119 tm_defines and pass to genmultilib.awk.
1120 * config/avr/genmultilib.awk: Use these variables to add double32
1121 and / or long-double32 multilib(s) as needed.
1122 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1123
1124 2019-11-25 Richard Biener <rguenther@suse.de>
1125
1126 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1127 loop body, defaulted to NULL.
1128 (single_likely_exit): Add exit vector argument
1129 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1130 (number_of_iterations_exit): Likewise.
1131 (number_of_iterations_exit_assumptions): Likewise.
1132 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1133 if not NULL.
1134 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1135 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1136 Compute exit vector around call to single_likely_exit.
1137 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1138 loop body to loop_only_exit_p.
1139 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1140 caller.
1141 (number_of_iterations_exit_assumptions): Get loop body from caller
1142 if not NULL.
1143 (number_of_iterations_exit): Pass through new loop body arg.
1144 (infer_loop_bounds_from_undefined): Get loop body from caller.
1145 (estimate_numbers_of_iterations): Compute loop body once.
1146
1147 2019-11-25 Richard Biener <rguenther@suse.de>
1148
1149 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1150 auto_bb_flag instead of an sbitmap for visited handling.
1151
1152 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1153
1154 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1155 iterator.
1156 (vector_fp_comparison_complex): Likewise.
1157 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1158 define_and_split.
1159 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1160 Likewise.
1161 (vector_lt<mode> for VEC_F): Refactor with
1162 vector_fp_comparison_simple.
1163 (vector_le<mode> for VEC_F): Likewise.
1164 (vector_unge<mode> for VEC_F): Likewise.
1165 (vector_unle<mode> for VEC_F): Likewise.
1166 (vector_ne<mode> for VEC_F): Likewise.
1167 (vector_ungt<mode> for VEC_F): Likewise.
1168 (vector_unlt<mode> for VEC_F): Likewise.
1169 (vector_ltgt<mode> for VEC_F): Refactor with
1170 vector_fp_comparison_complex.
1171 (vector_ordered<mode> for VEC_F): Likewise.
1172 (vector_uneq<mode> for VEC_F): Likewise.
1173 (vector_unordered<mode> for VEC_F): Likewise.
1174
1175 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1176
1177 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1178 COMPARE, representing an overflow detection.
1179
1180 * combine.c (combine_instructions): Record costs for jumps.
1181
1182 * combine.c (can_combine_p): Allow autoinc in jumps.
1183
1184 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1185
1186 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1187 * doc/invoke.texi (max-inline-insns-single-O2,
1188 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1189 early-inlining-insns-O2): Remove documentation.
1190 * ipa-fnsummary.c (analyze_function_body,
1191 compute_fn_summary): Use opt_for_fn when accessing parameters.
1192 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1193 inline_insns_auto, can_inline_edge_by_limits_p,
1194 want_early_inline_function_p, big_speedup_p,
1195 want_inline_small_function_p, want_inline_self_recursive_call_p,
1196 recursive_inlining, compute_max_insns, inline_small_functions):
1197 Likewise.
1198 * opts.c (default_options): Add -O3 defaults for
1199 OPT__param_early_inlining_insns_,
1200 OPT__param_inline_heuristics_hint_percent_,
1201 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1202 * params.opt (-param=early-inlining-insns-O2=,
1203 -param=inline-heuristics-hint-percent-O2=,
1204 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1205 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1206 -param=inline-min-speedup=, -param=inline-unit-growth=,
1207 -param=large-function-growth=, -param=large-stack-frame=,
1208 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1209 -param=max-inline-insns-recursive=,
1210 -param=max-inline-insns-recursive-auto=,
1211 -param=max-inline-insns-single=,
1212 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1213 -param=max-inline-recursive-depth=,
1214 -param=max-inline-recursive-depth-auto=,
1215 -param=min-inline-recursive-probability=,
1216 -param=partial-inlining-entry-probability=,
1217 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1218 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1219 Optimization.
1220
1221 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1222
1223 * ipa-fnsummary.c: Fix comment typos.
1224 * ipa-ref.h: Likewise.
1225 * ipa-predicate.h: Likewise.
1226 * ipa-split.c: Likewise.
1227 * ipa-inline-analysis.c: Likewise.
1228 * ipa-predicate.c: Likewise.
1229 * ipa-devirt.c: Likewise.
1230 * ipa-icf.h: Likewise.
1231 * profile-count.c: Likewise.
1232 * ipa-icf.c: Likewise.
1233 (sem_function::equals_wpa): Fix typos in dump messages.
1234 * ipa-icf-gimple.h: Fix comment typos.
1235 * ipa-inline-transform.c: Likewise.
1236 * ipa-polymorphic-call.c: Likewise.
1237 * ipa-fnsummary.h: Likewise.
1238 * ipa-inline.c: Likewise.
1239 (dump_inline_stats): Fix typo in debug dump message.
1240 * profile-count.h: Fix comment typos.
1241
1242 PR target/92615
1243 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1244 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1245 register_operand, force x into register before storing it into dest.
1246 Formatting fix.
1247
1248 PR middle-end/83859
1249 * doc/extend.texi (attribute access): Fix a typo.
1250
1251 PR rtl-optimization/92610
1252 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1253 cse_cfg_altered is set, even when tem is 0.
1254 (rest_of_handle_cse_after_global_opts): Likewise.
1255
1256 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1257
1258 PR c++/92458
1259 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1260 tree_hash): Move to ...
1261 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1262 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1263 types.
1264 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1265
1266 PR tree-optimization/92618
1267 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1268 containing the auto_vec and a tree.
1269 (undistribute_bitref_for_vector): Handle the case when element type
1270 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1271 fixes.
1272
1273 2019-11-22 Martin Sebor <msebor@redhat.com>
1274
1275 PR middle-end/83859
1276 * attribs.h (struct attr_access): New.
1277 * attribs.c (decl_attributes): Add an informational note.
1278 * builtins.c (check_access): Make extern. Consistently set no-warning
1279 after issuing a warning. Handle calls through function pointers. Set
1280 no-warning.
1281 * builtins.h (check_access): Declare.
1282 * calls.c (rdwr_access_hash): New type.
1283 (rdwr_map): Same.
1284 (init_attr_rdwr_indices): New function.
1285 (maybe_warn_rdwr_sizes): Same.
1286 (initialize_argument_information): Call init_attr_rdwr_indices.
1287 Call maybe_warn_rdwr_sizes.
1288 (get_size_range): Avoid null argument.
1289 * doc/extend.texi (attribute access): Document new attribute.
1290
1291 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1292
1293 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1294 (ACC_LDS_SIZE): Define.
1295 (OTHER_LDS_SIZE): Define.
1296 (LDS_SIZE): Redefine using above.
1297 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1298
1299 2019-11-22 Martin Sebor <msebor@redhat.com>
1300
1301 PR middle-end/88226
1302 * builtins.c (check_nul_terminated_array): New function.
1303 (fold_builtin_0): Remove declaration.
1304 (fold_builtin_1): Same.
1305 (fold_builtin_2): Same.
1306 (fold_builtin_3): Same.
1307 (fold_builtin_strpbrk): Add argument.
1308 (fold_builtin_strspn): Same.
1309 (fold_builtin_strcspn): Same.
1310 (expand_builtin_strcat): Call it. Remove unused argument.
1311 (expand_builtin_stpncpy): Same.
1312 (expand_builtin_strncat): Same.
1313 (expand_builtin_strncpy): Same. Adjust indentation.
1314 (expand_builtin_strcmp): Same.
1315 (expand_builtin_strncmp): Same.
1316 (expand_builtin_fork_or_exec): Same.
1317 (expand_builtin): Handle more built-ins.
1318 (fold_builtin_2): Add argument.
1319 (fold_builtin_n): Make static. Add argument.
1320 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1321 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1322 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1323 (fold_call_stmt): Pass new argument to fold_builtin_n.
1324 * builtins.h: Correct a comment.
1325 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1326 check_nul_terminated_array.
1327 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1328 check_nul_terminated_array.
1329 (handle_builtin_strchr): Same.
1330 (handle_builtin_string_cmp): Same.
1331
1332 2019-11-22 Martin Sebor <msebor@redhat.com>
1333
1334 PR tree-optimization/92501
1335 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1336 handle unterminated arrays. Rename local variables for clarity.
1337
1338 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1339
1340 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1341 granulated_sgprs according to architecture.
1342
1343 2019-11-22 Jan Hubicka <jh@suse.cz>
1344
1345 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1346 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1347 (memory_block_pool::reduce_free_list): ... this one.
1348 (memory_block_pool::trim): New static function.
1349 * memory-block.h (memory_block_pool::freelist_size): New constant
1350 (memory_block_pool::clear_free_list): Rename to ...
1351 (memory_block_pool::reduce_free_list): ... this one.
1352 (memory_block_pool::trim): Declare.
1353
1354 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1355
1356 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1357 vect_cost_for_stmt.
1358 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1359 here rather than...
1360 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1361
1362 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1363
1364 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1365 (bic_cmp0_noout): New pattern.
1366 (bic_cmp0): Likewise.
1367 (neg_scc_insn): Remove pattern.
1368 (not_scc_insn): Likewise.
1369
1370 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1371
1372 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1373
1374 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1375
1376 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1377 pedwarn instead of warning_at for fallthrough not preceding a case
1378 or default label.
1379
1380 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1381
1382 PR tree-optimization/92608
1383 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1384 of dyn_cast.
1385
1386 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1387
1388 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1389 New predicate.
1390 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1391 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1392 special for FP comparisons that need a cror instruction eventually.
1393 (rs6000_emit_fp_cror): New function.
1394 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1395 instruction, for normal FP modes, with HONOR_NANS.
1396 (rs6000_emit_cbranch): Reformat.
1397 * config/rs6000/rs6000.md (fp_rev): New iterator.
1398 (fp_two): New iterator.
1399 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1400 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1401 *cbranch_2insn: New define_insn_and_split.
1402
1403 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1404
1405 PR tree-optimization/92526
1406 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1407 versioning for alignment if the accesses do not have a consistent
1408 mask, rather than asserting that the masks are consistent.
1409
1410 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1411
1412 PR tree-optimization/92595
1413 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1414 check.
1415 (vectorizable_store, vectorizable_load): Likewise.
1416
1417 2019-11-21 Jan Hubicka <jh@suse.cz>
1418
1419 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1420 (resolve_noninline_speculation, inline_small_functions): Avoid
1421 redundant updates.
1422
1423 2019-11-21 Richard Biener <rguenther@suse.de>
1424
1425 * lra.c (lra_insn_recog_data_pool): New.
1426 (free_insn_recog_data): Adjust.
1427 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1428 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1429
1430 2019-11-21 Richard Biener <rguenther@suse.de>
1431
1432 PR tree-optimization/92596
1433 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1434
1435 2019-11-21 Jan Hubicka <jh@suse.cz>
1436
1437 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1438 ready for some vectors to not be allocated.
1439 (evaluate_properties_for_edge): Document better; make
1440 known_vals and known_aggs caller allocated; avoid determining
1441 values of parameters which are not used.
1442 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1443 known_aggs.
1444 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1445 (do_estimate_edge_size): Likewise.
1446 (do_estimate_edge_hints): Likewise.
1447 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1448 values are not known.
1449 (ipa_release_agg_values): Add option to not release vector itself.
1450 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1451
1452 2019-11-21 Richard Biener <rguenther@suse.de>
1453
1454 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1455 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1456 (loop_iterator::loop_iterator): Adjust.
1457 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1458 (compute_dominance_frontiers): ... this. Hoist invariant
1459 get_immediate_dominator call.
1460 (compute_idf): Use a work-set instead of a work-list for more
1461 optimal iteration order and duplicate avoidance.
1462 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1463 the vector all the time, instead pre-allocate the vector only
1464 once.
1465 (delete_update_ssa): Simplify.
1466 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1467
1468 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1469
1470 PR tree-optimization/91355
1471 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1472 for early_bb scaled count with best_bb count comparison.
1473
1474 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1475 preffer -> prefer.
1476 * ipa-inline.c (edge_badness): Likewise.
1477 * lto-streamer.h (class lto_location_cache): Likewise.
1478 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1479 gratutious -> gratuitous.
1480
1481 2019-11-21 Richard Biener <rguenther@suse.de>
1482
1483 Revert
1484 2019-09-17 Richard Biener <rguenther@suse.de>
1485
1486 PR tree-optimization/91790
1487 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1488 use the correct DR for setting up realignment.
1489
1490 2019-11-21 Richard Biener <rguenther@suse.de>
1491
1492 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1493 (equiv_class_obstack): New.
1494 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1495 (perform_var_substitution): Initialize equiv_class_obstack.
1496 (free_var_substitution_info): Free equiv_class_obstack.
1497
1498 2019-11-20 Jan Hubicka <jh@suse.cz>
1499
1500 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1501 edge growth when callee function is very large.
1502 * ipa-inline.h (estimate_min_edge_growth): New.
1503
1504 2019-11-20 Jan Hubicka <jh@suse.cz>
1505
1506 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1507 negative time in calls summary; correct roundoff errors
1508 leading to negative times.
1509 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1510 if present.
1511 (ipa_update_overall_fn_summary): Add RESET parameter.
1512 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1513 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1514
1515 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1516
1517 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1518 def types for two-operation SLP.
1519
1520 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1521
1522 PR testsuite/92366
1523 * doc/sourcebuild.texi (vect_char_add): Document.
1524
1525 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1526
1527 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1528 * function.c (record_final_call): Record even calls that might
1529 have been in the cgraph.
1530 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1531 callees.
1532
1533 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1534
1535 * configure.ac: Use https for gcc.gnu.org
1536 * configure: Regenerated.
1537 * doc/install.texi: Use https for gcc.gnu.org.
1538 * doc/sourcebuild.texi: Likewise.
1539
1540 2019-11-20 Julian Brown <julian@codesourcery.com>
1541
1542 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1543
1544 2019-11-20 Jan Hubicka <jh@suse.cz>
1545
1546 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1547 parameter and update call_size_time_table.
1548 (ipa_fn_summary::max_size_time_table_size): New constant.
1549 (estimate_calls_size_and_time_1): Break out from ...
1550 (estimate_calls_size_and_time): ... here; implement summary production.
1551 (summarize_calls_size_and_time): New function.
1552 (ipa_call_context::estimate_size_and_time): Bypass
1553 estimate_calls_size_and_time for leaf functions.
1554 (ipa_update_overall_fn_summary): Likewise.
1555 * ipa-fnsummary.h (call_size_time_table): New.
1556 (ipa_fn_summary::account_size_time): Update prototype.
1557
1558 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1559
1560 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1561
1562 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1563
1564 PR85678
1565 * common.opt (fcommon): Change init to 1.
1566 * doc/invoke.texi (-fcommon): Update documentation.
1567
1568 2019-11-20 Jan Hubicka <jh@suse.cz>
1569
1570 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1571 to ordinary array.
1572
1573 2019-11-20 Jan Hubicka <jh@suse.cz>
1574
1575 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1576 Add allocator parameter.
1577 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1578 (fibonacci_heap<K,V>::m_allocator): New.
1579 (fibonacci_heap<K,V>::m_own_allocator): New.
1580 (fibonacci_heap<K,V>::insert): Use allocator.
1581 (fibonacci_heap<K,V>::extract_min): Likewise.
1582 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1583 allocator.
1584 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1585 on stack.
1586 * fibonacci_heap.c: Include alloc-pool
1587 (test_empty_heap): Initialize allocator.
1588 (test_union): Likewise.
1589 * bb-reorder.c: Include alloc-pool.h.
1590 * tracer.c: Inlclude alloc-pool.h.
1591
1592 2019-11-20 Jan Hubicka <jh@suse.cz>
1593
1594 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1595 Preallocate for 32 entries.
1596 (DFS::worklist): Likewise.
1597 (DFS::DFS): Do not initialize sccstack and worklist.
1598 (DFS::~DFS): Do not release sccstack.
1599
1600 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1601
1602 PR target/92573
1603 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1604 Handle UNORDERED if !HONOR_NANS.
1605
1606 2019-11-20 Jan Hubicka <jh@suse.cz>
1607
1608 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1609 (edge_badness): ... here.
1610 (inline_small_functions): Use monotonicity of badness calculation
1611 to avoid redundant updates.
1612
1613 2019-11-20 Richard Biener <rguenther@suse.de>
1614
1615 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1616 constructors we are actually analyzing.
1617 (vect_slp_check_for_constructors): Do not vectorize uniform
1618 constuctors, do not dump here.
1619
1620 2019-11-20 Richard Biener <rguenther@suse.de>
1621
1622 PR tree-optimization/92537
1623 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1624 vectorization validity check...
1625 (vect_slp_analyze_operations): ... here.
1626
1627 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1628
1629 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1630 (make_pass_arc_predicate_delay_insns): Likewise.
1631 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1632 method, remove clone.
1633 (class pass_arc_predicate_delay_insns): Likewise.
1634 (arc_init): Remove registering of ARC specific passes.
1635 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1636 * config/arc/arc-passes.def: New file.
1637
1638 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1639
1640 PR middle-end/90840
1641 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1642 and has a mode that doesn't have corresponding integral type.
1643
1644 PR target/90867
1645 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1646 clear opts->x_ix86_isa_flags{,2} here...
1647 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1648 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1649
1650 PR c/90898
1651 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1652 assertion.
1653 (insert_clobbers_for_var): Fix a typo in function comment.
1654
1655 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1656 Jakub Jelinek <jakub@redhat.com>
1657
1658 PR middle-end/91195
1659 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1660 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1661 load.
1662
1663 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1664
1665 Make 0-series device specs work with older versions of avr-gcc.
1666
1667 PR target/92545
1668 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1669 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1670 <*link_pm_base_address>: Don't write spec.
1671 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1672
1673 2019-11-20 Richard Biener <rguenther@suse.de>
1674
1675 PR c/92088
1676 * builtins.c (compute_objsize): Deal with VLAs.
1677
1678 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1679
1680 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1681 from common code.
1682 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1683 call new function.
1684 (power9_sched_reorder2): Call new function.
1685 (rs6000_sched_reorder2): Likewise.
1686
1687 2019-11-18 Jan Hubicka <jh@suse.cz>
1688
1689 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1690 (estimate_calls_size_and_time): Update.
1691
1692 2019-11-18 Jan Hubicka <jh@suse.cz>
1693
1694 * ipa-inline.c (inlining_speedup): New function.
1695 (edge_badness): Use it.
1696
1697 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1698 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1699
1700 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1701 Mark as not having "likely" version.
1702 * config/mips/mips.md (insn_count): The simd_div instruction with
1703 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1704 (can_delay): Exclude simd_branch.
1705 (defile_delay *): Add simd_branch instructions.
1706 They have one regular delay slot.
1707
1708 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1709
1710 Revert:
1711 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1712
1713 * cse.c (cse_insn): Delete no-op register moves too.
1714 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1715 Take a second comparison to control the value for NE.
1716 (mask_to_comparison): Handle unsigned comparisons.
1717 (simplify_logical_relational_operation): Likewise. Update call
1718 to comparison_to_mask. Handle AND if !HONOR_NANs.
1719 (simplify_binary_operation_1): Call the above for AND too.
1720
1721 2019-11-19 Martin Liska <mliska@suse.cz>
1722
1723 * toplev.c (general_init): Move the call...
1724 (toplev::main): ... here as we need init_options_struct
1725 being called.
1726
1727 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1728
1729 PR target/79262
1730 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1731 vec_to_scalar_cost.
1732
1733 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1734
1735 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1736 (armv7-a): Likewise.
1737 (armv7ve): Likewise.
1738
1739 2019-11-19 Richard Biener <rguenther@suse.de>
1740
1741 PR tree-optimization/92581
1742 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1743 condition reduction chains gather all conditions involved
1744 for computing the index reduction vector.
1745
1746 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1747
1748 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1749 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1750 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1751 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1752 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1753 (aarch64_init_memtag_builtins): New.
1754 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1755 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1756 (aarch64_expand_builtin_memtag): New.
1757 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1758 (AARCH64_BUILTIN_SUBCODE): New macro.
1759 (aarch64_resolve_overloaded_memtag): New.
1760 (aarch64_resolve_overloaded_builtin_general): New. Call
1761 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1762 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1763 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1764 (aarch64_resolve_overloaded_builtin): Call
1765 aarch64_resolve_overloaded_builtin_general.
1766 * config/aarch64/aarch64-protos.h
1767 (aarch64_resolve_overloaded_builtin_general): New declaration.
1768 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1769 (TARGET_MEMTAG): Likewise.
1770 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1771 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1772 (irg, gmi, subp, addg, ldg, stg): New instructions.
1773 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1774 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1775 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1776 (__arm_mte_get_tag): Likewise.
1777 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1778 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1779 * config/arm/types.md (memtag): New.
1780 * doc/invoke.texi (-memtag): Update description.
1781
1782 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1783
1784 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1785 to define __GCC_ASM_FLAG_OUTPUTS__.
1786 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1787 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1788 depending on TARGET_THUMB1.
1789 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1790
1791 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1792
1793 PR target/92549
1794 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1795
1796 PR middle-end/91450
1797 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1798 operand is negative and one non-negative, compare the non-negative
1799 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1800 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1801 and s2 == 0, unless one of them is known to be negative. Remove
1802 tem2 variable, use tem where tem2 has been used before.
1803
1804 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1805
1806 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1807
1808 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1809
1810 PR tree-optimization/92557
1811 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1812 vmode rather than asserting it always is.
1813
1814 2019-11-19 Richard Biener <rguenther@suse.de>
1815
1816 PR tree-optimization/92554
1817 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1818 for the actual condition stmt and deal with sign-changes.
1819
1820 2019-11-19 Richard Biener <rguenther@suse.de>
1821
1822 PR tree-optimization/92555
1823 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1824 for non-SLP stmts.
1825
1826 2019-11-19 Martin Liska <mliska@suse.cz>
1827
1828 PR bootstrap/92540
1829 * config/riscv/riscv.c (riscv_address_insns): Initialize
1830 addr in order to remove boostrap -Wmaybe-uninitialized
1831 error.
1832
1833 2019-11-18 Martin Sebor <msebor@redhat.com>
1834
1835 PR tree-optimization/92493
1836 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1837 assignment.
1838
1839 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1840
1841 * cfgloop.c (get_loop_body_in_custom_order): New.
1842 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1843 * tree-loop-distribution.c (class loop_distribution): New.
1844 (bb_top_order_cmp): Remove.
1845 (bb_top_order_cmp_r): New.
1846 (create_rdg_vertices): Move into class loop_distribution.
1847 (stmts_from_loop): Same as above.
1848 (update_for_merge): Same as above.
1849 (partition_merge_into): Same as above.
1850 (get_data_dependence): Same as above.
1851 (data_dep_in_cycle_p): Same as above.
1852 (update_type_for_merge): Same as above.
1853 (build_rdg_partition_for-vertex): Same as above.
1854 (classify_builtin_ldst): Same as above.
1855 (classify_partition): Same as above.
1856 (share_memory_accesses): Same as above.
1857 (rdg_build_partitions): Same as above.
1858 (pg_add_dependence_edges): Same as above.
1859 (build_partition_graph): Same as above.
1860 (merge_dep_scc_partitions): Same as above.
1861 (break_alias_scc_partitions): Same as above.
1862 (finalize_partitions): Same as above.
1863 (distribute_loop): Same as above.
1864 (bb_top_order_init): New method
1865 (bb_top_order_destroy): New method.
1866 (get_bb_top_order_index_size): New method.
1867 (get_bb_top_order_index_index): New method.
1868 (get_bb_top_order_index_index): New method.
1869 (loop_distribution::execute): New method.
1870 (pass_loop_distribution::execute): Instantiate loop_distribution.
1871
1872 2019-11-18 Jan Hubicka <jh@suse.cz>
1873
1874 PR ipa/92508
1875 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1876 caches.
1877 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1878
1879 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1880
1881 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1882 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1883 * doc/md.texi: Document them.
1884 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1885 internal functions.
1886 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1887 * internal-fn.c (check_ptrs_direct): New macro.
1888 (expand_check_ptrs_optab_fn): Likewise.
1889 (direct_check_ptrs_optab_supported_p): Likewise.
1890 (internal_check_ptrs_fn_supported_p): New fuction.
1891 * tree-data-ref.c: Include internal-fn.h.
1892 (create_ifn_alias_checks): New function.
1893 (create_intersect_range_checks): Use it.
1894 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1895 (optab, cmp_op): Handle it.
1896 (raw_war, unspec): New int attributes.
1897 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1898 constants.
1899 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1900 New predicate.
1901 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1902 expander.
1903 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1904 pattern.
1905
1906 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1907
1908 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1909 empty constructors.
1910
1911 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1912
1913 * cse.c (cse_insn): Delete no-op register moves too.
1914 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1915 Take a second comparison to control the value for NE.
1916 (mask_to_comparison): Handle unsigned comparisons.
1917 (simplify_logical_relational_operation): Likewise. Update call
1918 to comparison_to_mask. Handle AND if !HONOR_NANs.
1919 (simplify_binary_operation_1): Call the above for AND too.
1920
1921 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1922
1923 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1924 splitting the main code out into...
1925 (native_encode_vector_part): ...this new function.
1926 (native_decode_vector_tree): New function.
1927 (fold_view_convert_vector_encoding): Likewise.
1928 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1929 to VECTOR_TYPEs.
1930
1931 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1932
1933 * tree-data-ref.c (create_intersect_range_checks_index): If the
1934 alias pair describes simple WAW and WAR dependencies, just check
1935 whether the first B access overlaps later A accesses.
1936 (create_waw_or_war_checks): New function that performs the same
1937 optimization on addresses.
1938 (create_intersect_range_checks): Call it.
1939
1940 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1941
1942 * lra-constraints.c (valid_address_p): Take the operand and a
1943 constraint as argument. If the operand is a MEM and the constraint
1944 is a memory constraint, check whether the eliminated form of the
1945 MEM already satisfies the constraint.
1946 (process_address_1): Update calls accordingly.
1947
1948 2019-11-18 Tom Tromey <tromey@adacore.com>
1949
1950 * doc/tm.texi: Rebuild.
1951 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1952 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1953
1954 2019-11-18 Richard Biener <rguenther@suse.de>
1955
1956 PR tree-optimization/92516
1957 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1958 argument, hoist bst_map creation/destruction to ...
1959 (vect_analyze_slp): ... here, forming a true graph with
1960 SLP instances being the entries.
1961 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1962 (vect_detect_hybrid_slp): Use one visited set for all
1963 graph entries.
1964 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1965 to hash-sets of slp_tree.
1966 (vect_slp_analyze_operations): Likewise.
1967 (vect_bb_slp_scalar_cost): Remove wrapper.
1968 (vect_bb_vectorization_profitable_p): Use one visited set for
1969 all graph entries.
1970 (vect_schedule_slp_instance): Elide bst_map use.
1971 (vect_schedule_slp): Likewise.
1972
1973 2019-11-18 Richard Biener <rguenther@suse.de>
1974
1975 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1976 was vectorized with just external refs fail.
1977
1978 2019-11-18 Martin Liska <mliska@suse.cz>
1979
1980 PR ipa/92525
1981 * ipa-icf.c (sem_function::init): Unset m_checker
1982 at the end of the function.
1983
1984 2019-11-18 Richard Biener <rguenther@suse.de>
1985
1986 PR tree-optimization/92558
1987 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1988 reducting the width of a reduction vector def update new_phis.
1989
1990 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1991
1992 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1993 and s390*-*-linux-musl* targets.
1994 * configure: Regenerate.
1995
1996 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1997
1998 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1999 (MUSL_DYNAMIC_LINKER64): Define.
2000
2001 2019-11-18 Martin Liska <mliska@suse.cz>
2002
2003 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2004 message for an unknown counter.
2005 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2006 (dbg_cnt_process_opt): Remove unreachable code.
2007
2008 2019-11-18 Martin Liska <mliska@suse.cz>
2009
2010 PR ipa/92529
2011 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2012 Compare LHS types of NOP_EXPR.
2013
2014 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2015
2016 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2017 "initial_pass_name" argument -- by running "*clean_state" pass.
2018 Also free the "initial_pass_name" when done.
2019
2020 2019-11-18 Richard Biener <rguenther@suse.de>
2021
2022 PR rtl-optimization/92462
2023 * alias.c (find_base_term): Restrict the look through ANDs.
2024 (find_base_value): Likewise.
2025
2026 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2027
2028 Add support for AVR devices from the 0-series.
2029
2030 PR target/92545
2031 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2032 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2033 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2034 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2035 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2036 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2037 for spec definitions.
2038 * doc/avr-mmcu.texi: Regenerate.
2039
2040 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2041
2042 PR target/92448
2043 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2044 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2045 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2046 (ix86_reassociation_width): Ditto.
2047 * config/i386/i386-options.c (ix86_option_override_internal):
2048 Replace TARGET_AVX128_OPTIAML with
2049 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2050 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2051 (TARGET_AVX128_OPTIMAL): Deleted.
2052 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2053 DEF_TUNE.
2054
2055 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2056
2057 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2058 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2059 just SI.
2060 (cceq_rev_compare): Rename to...
2061 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2062 just SI.
2063 (define_split for <bd>tf_<mode>): Add SImode first argument to
2064 gen_cceq_ior_compare.
2065
2066 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2067
2068 * common/config/powerpcspe: Delete.
2069
2070 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2071
2072 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2073 output in UNSPEC_WRFFR.
2074
2075 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2076
2077 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2078 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2079
2080 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2081
2082 * tree-data-ref.c (create_intersect_range_checks_index)
2083 (create_intersect_range_checks): Print dump messages.
2084
2085 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2086
2087 * tree-data-ref.c (dump_alias_pair): New function.
2088 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2089
2090 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2091
2092 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2093 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2094 merging data references with different steps.
2095 (create_intersect_range_checks_index): Take a
2096 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2097 Bail out if DR_ALIAS_MIXED_STEPS is set.
2098 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2099 instead of two dr_with_seg_lens. Update call to
2100 create_intersect_range_checks_index.
2101 (create_runtime_alias_checks): Update call accordingly.
2102
2103 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2104
2105 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2106 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2107 (dr_with_seg_len_pair_t::sequencing): New enum.
2108 (dr_with_seg_len_pair_t::flags): New member variable.
2109 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2110 parameter and initialize the flags member variable.
2111 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2112 call accordingly.
2113 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2114 Ensure the two data references in an alias pair are in statement
2115 order, if there is a defined order.
2116 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2117 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2118 swapped the references in a dr_with_seg_len_pair_t. OR together
2119 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2120 try to restore the original dr_with_seg_len order, updating the
2121 flags if that fails.
2122
2123 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2124
2125 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2126 swapping the dr_as based on init values until we've decided
2127 whether to merge them.
2128
2129 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2130
2131 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2132 two accesses in each dr_with_seg_len_pair_t before trying to
2133 combine separate dr_with_seg_len_pair_ts.
2134 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2135 that here.
2136 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2137
2138 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2139
2140 * config/aarch64/aarch64-sve.md
2141 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2142 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2143 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2144 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2145 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2146 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2147 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2148 pattern.
2149 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2150 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2151 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2152 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2153
2154 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2155
2156 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2157 (SVE_4HSI): New mode iterators.
2158 (ANY_EXTEND2): New code iterator.
2159 * config/aarch64/aarch64-sve.md
2160 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2161 Extend to...
2162 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2163 ...this, handling extension to partial modes as well as full modes.
2164 Describe the extension as a predicated rather than unpredicated
2165 extension.
2166 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2167 Likewise extend to...
2168 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2169 ...this, making the same adjustments.
2170 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2171 Likewise extend to...
2172 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2173 ...this, making the same adjustments.
2174 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2175 Likewise extend to...
2176 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2177 ...this, making the same adjustments.
2178 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2179 New pattern.
2180 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2181 extension predicate.
2182 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2183 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2184 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2185 Describe the extension as a predicated rather than unpredicated
2186 extension.
2187 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2188 Likewise. Canonicalize to a constant extension predicate.
2189 * config/aarch64/aarch64-sve-builtins-base.cc
2190 (svld1_gather_extend_impl::expand): Add an extra predicate for
2191 the extension.
2192 (svldff1_gather_extend_impl::expand): Likewise.
2193
2194 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2195
2196 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2197 iterators.
2198 * config/aarch64/aarch64-sve.md
2199 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2200 (gather_load<SVE_24:mode><v_int_container>): ...this.
2201 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2202 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2203 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2204 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2205 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2206 New pattern.
2207 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2208 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2209 Allow the nominal extension predicate to be different from the
2210 load predicate.
2211 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2212 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2213
2214 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2215
2216 * config/aarch64/aarch64-sve.md
2217 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2218 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2219 function.
2220 (aarch64_sve_adjust_stmt_cost): Call it.
2221
2222 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2223
2224 * config/aarch64/aarch64-sve.md
2225 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2226 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2227 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2228 Combine into...
2229 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2230 ...this new pattern, handling extension to partial modes as well
2231 as full modes. Describe the extension as a predicated rather than
2232 unpredicated extension.
2233 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2234 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2235 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2236 Combine into...
2237 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2238 ...this new pattern, handling extension to partial modes as well
2239 as full modes. Describe the extension as a predicated rather than
2240 unpredicated extension.
2241 * config/aarch64/aarch64-sve-builtins.cc
2242 (function_expander::use_contiguous_load_insn): Add an extra
2243 predicate for extending loads.
2244 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2245 (aarch64_sve_adjust_stmt_cost): Likewise.
2246 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2247 the cost of SVE vector stmts.
2248
2249 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2250
2251 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2252 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2253 * config/aarch64/aarch64-sve.md
2254 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2255 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2256 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2257 comment. Avoid new narrower_mask ambiguity.
2258 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2259 (*cond_uxt<mode>_2): Update comment.
2260 (*cond_uxt<mode>_any): Likewise.
2261
2262 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2263
2264 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2265 float modes.
2266 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2267 function.
2268 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2269 new vector float modes.
2270 (aarch64_sve_container_bits): New function.
2271 (aarch64_sve_pred_mode): Likewise.
2272 (aarch64_get_mask_mode): Use it.
2273 (aarch64_sve_element_int_mode): Handle structure modes and partial
2274 modes.
2275 (aarch64_sve_container_int_mode): New function.
2276 (aarch64_vectorize_related_mode): Return SVE modes when given
2277 SVE modes. Handle partial modes, taking the preferred number
2278 of units from the size of the given mode.
2279 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2280 in registers.
2281 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2282 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2283 (aarch64_split_sve_subreg_move): Use the mode form of
2284 aarch64_sve_pred_mode.
2285 (aarch64_secondary_reload): Handle partial modes in the same way
2286 as full big-endian vectors.
2287 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2288 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2289 merging with the Advanced SIMD modes. If two modes have the
2290 same size, try the Advanced SIMD mode first.
2291 (aarch64_simd_valid_immediate): Use the container rather than
2292 the element mode for INDEX constants.
2293 (aarch64_simd_vector_alignment): Make the alignment of partial
2294 SVE vector modes the same as their minimum size.
2295 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2296 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2297 (mov<SVE_ALL:mode>): ...this.
2298 (movmisalign<SVE_FULL:mode>): Extend to...
2299 (movmisalign<SVE_ALL:mode>): ...this.
2300 (*aarch64_sve_mov<mode>_le): Rename to...
2301 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2302 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2303 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2304 partial modes regardless of endianness.
2305 (aarch64_sve_reload_be): Rename to...
2306 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2307 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2308 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2309 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2310 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2311 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2312 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2313 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2314 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2315 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2316 (maskload<SVE_FULL:mode><vpred>): Extend to...
2317 (maskload<SVE_ALL:mode><vpred>): ...this.
2318 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2319 (maskstore<SVE_ALL:mode><vpred>): ...this.
2320 (vec_duplicate<SVE_FULL:mode>): Extend to...
2321 (vec_duplicate<SVE_ALL:mode>): ...this.
2322 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2323 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2324 (sve_ld1r<SVE_FULL:mode>): Extend to...
2325 (sve_ld1r<SVE_ALL:mode>): ...this.
2326 (vec_series<SVE_FULL_I:mode>): Extend to...
2327 (vec_series<SVE_I:mode>): ...this.
2328 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2329 (*vec_series<SVE_I:mode>_plus): ...this.
2330 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2331 new VPRED ambiguity.
2332 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2333 (add<SVE_FULL_I:mode>3): Extend to...
2334 (add<SVE_I:mode>3): ...this.
2335 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2336 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2337 (VPRED, vpred): Likewise.
2338 (Vctype): New iterator.
2339 (vw): Remove SVE modes.
2340
2341 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2342
2343 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2344 (SVE_PARTIAL_I): ...this.
2345 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2346
2347 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2348
2349 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2350 (SVE_FULL): ...this.
2351 (SVE_I): Rename to...
2352 (SVE_FULL_I): ...this.
2353 (SVE_F): Rename to...
2354 (SVE_FULL_F): ...this.
2355 (SVE_BHSI): Rename to...
2356 (SVE_FULL_BHSI): ...this.
2357 (SVE_HSD): Rename to...
2358 (SVE_FULL_HSD): ...this.
2359 (SVE_HSDI): Rename to...
2360 (SVE_FULL_HSDI): ...this.
2361 (SVE_HSF): Rename to...
2362 (SVE_FULL_HSF): ...this.
2363 (SVE_SD): Rename to...
2364 (SVE_FULL_SD): ...this.
2365 (SVE_SDI): Rename to...
2366 (SVE_FULL_SDI): ...this.
2367 (SVE_SDF): Rename to...
2368 (SVE_FULL_SDF): ...this.
2369 (SVE_S): Rename to...
2370 (SVE_FULL_S): ...this.
2371 (SVE_D): Rename to...
2372 (SVE_FULL_D): ...this.
2373 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2374 * config/aarch64/aarch64-sve2.md: Likewise.
2375
2376 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2377
2378 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2379 New option.
2380 * doc/invoke.texi: Document it.
2381 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2382 By default, return VECT_COMPARE_COSTS for SVE.
2383
2384 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2385
2386 * target.h (VECT_COMPARE_COSTS): New constant.
2387 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2388 * doc/tm.texi: Regenerate.
2389 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2390 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2391 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2392 Likewise.
2393 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2394 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2395 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2396 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2397 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2398 (_loop_vec_info::vec_inside_cost): New member variables.
2399 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2400 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2401 (vect_analyze_loop): When autovectorize_vector_modes returns
2402 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2403 vector mode and picking the one with the lowest cost.
2404 (vect_estimate_min_profitable_iters): Record the computed costs
2405 in the loop_vec_info.
2406
2407 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2408
2409 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2410 element type rather than an element mode.
2411 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2412 Use get_vectype_for_scalar_type to query the natural types
2413 for a given element type rather than basing everything on
2414 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2415 query to MAX_FIXED_MODE_SIZE.
2416 (duplicate_and_interleave): Update call accordingly.
2417 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2418
2419 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2420
2421 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2422 optional maximum nunits.
2423 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2424 takes an slp_tree.
2425 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2426 (vect_get_mask_type_for_stmt): Likewise.
2427 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2428 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2429 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2430 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2431 to get an assumed vector type for data references.
2432 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2433 (vect_update_all_shared_vectypes): Likewise.
2434 (vect_build_slp_tree_1): Pass the group size to
2435 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2436 for BB vectorization.
2437 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2438 before building the vectof from scalars.
2439 (vect_analyze_slp_instance): Pass the group size to
2440 get_vectype_for_scalar_type.
2441 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2442 types for BB vectorization here; just handle the case in which
2443 we deferred the choice for booleans.
2444 (vect_get_constant_vectors): Pass the slp_tree to
2445 get_vectype_for_scalar_type.
2446 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2447 (vectorizable_call): Likewise.
2448 (vectorizable_simd_clone_call): Likewise.
2449 (vectorizable_conversion): Likewise.
2450 (vectorizable_shift): Likewise.
2451 (vectorizable_operation): Likewise.
2452 (vectorizable_comparison): Likewise.
2453 (vect_is_simple_cond): Take the slp_tree as argument and
2454 pass it to get_vectype_for_scalar_type.
2455 (vectorizable_condition): Update call accordingly.
2456 (get_vectype_for_scalar_type): Take a group_size argument.
2457 For BB vectorization, limit the the vector to that number
2458 of elements. Also define an overload that takes an slp_tree.
2459 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2460 pass it to get_vectype_for_scalar_type.
2461 (vect_get_vector_types_for_stmt): Add a group_size argument
2462 and pass it to get_vectype_for_scalar_type. Don't use the
2463 cached vector type for BB vectorization if a group size is given.
2464 Handle data references in that case.
2465 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2466 pass it to get_mask_type_for_scalar_type.
2467
2468 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2469
2470 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2471 parameter.
2472 (estimate_edge_time): Use it.
2473 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2474 ret_nonspec_time parameter.
2475
2476 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2477
2478 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2479
2480 2019-11-15 Nick Clifton <nickc@redhat.com>
2481 Szabolcs Nagy <szabolcs.nagy@arm.com>
2482
2483 PR target/65649
2484 * config/microblaze/microblaze.c (print_operand): Print value as long.
2485
2486 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2487
2488 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2489 accidental commit.
2490
2491 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2492
2493 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2494 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2495
2496 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2497
2498 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2499 (gcn_conditional_register_usage): Use constants in place of hard-coded
2500 values.
2501 (gcn_hsa_declare_function_name): Set lower bound for number of
2502 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2503 MAX_NORMAL_VGPR_COUNT.
2504
2505 2019-11-15 Martin Jambor <mjambor@suse.cz>
2506
2507 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2508 declaration.
2509
2510 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2511
2512 * config/gcn/gcn.c (default_requested_args): New.
2513 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2514 set with default_requested_args.
2515 (gcn_conditional_register_usage): Limit register usage of non-kernel
2516 functions. Reassign fixed registers if a non-standard set of args is
2517 requested.
2518 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2519
2520 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2521
2522 PR ipa/92528
2523 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2524 aggregate jump function when inlined-to caller has no edge summary.
2525
2526 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2527
2528 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2529
2530 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2531
2532 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2533 prologue use of v0.
2534 (print_operand_address): Use v1 for zero vector offset.
2535
2536 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2537
2538 PR tree-optimization/92515
2539 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2540 types when converting a vector/scalar shift into a vector/vector one,
2541 using tree_nop_conversion_p instead of useless_type_conversion_p.
2542 Move the conversion code to the transform block.
2543
2544 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2545
2546 * read-rtl-function.c
2547 (function_reader::add_fixup_source_location): Take additional
2548 parameter of a column.
2549 (function_reader::maybe_read_location): Optionally parse column
2550 information and pass to add_fixup_source_location.
2551
2552 2019-11-15 Richard Biener <rguenther@suse.de>
2553
2554 PR tree-optimization/92512
2555 * tree-vect-loop.c (check_reduction_path): Fix operand index
2556 computability check. Add check for second use in COND_EXPRs.
2557
2558 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2559
2560 PR target/92515
2561 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2562 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2563
2564 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2565
2566 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2567 register class for VCC_LO and VCC_HI.
2568 (gcn_spill_class): Use SGPR_REGS to spill registers in
2569 VCC_CONDITIONAL_REG.
2570
2571 2019-11-15 Richard Biener <rguenther@suse.de>
2572
2573 PR tree-optimization/92324
2574 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2575 singedness of SLP reduction epilouge operations. Also reduce
2576 the vector width for SLP reductions before doing elementwise
2577 operations if possible.
2578
2579 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2580
2581 * passes.c (skip_pass): Set epilogue_completed if skipping the
2582 pro_and_epilogue pass.
2583
2584 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2585
2586 * passes.c (should_skip_pass_p): Always run "dfinish".
2587
2588 2019-11-15 Richard Biener <rguenther@suse.de>
2589
2590 * ipa-inline.c (inline_small_functions): Move assignment
2591 to next before call destroying edge.
2592
2593 2019-11-15 Richard Biener <rguenther@suse.de>
2594
2595 PR tree-optimization/92039
2596 PR tree-optimization/91975
2597 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2598 previous change, treat invariants consistently as non-constant.
2599 (tree_estimate_loop_size): Ternary ops with just the first op
2600 constant are not optimized away.
2601
2602 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2603
2604 * gimplify.c (gimplify_call_expr): Don't call
2605 omp_resolve_declare_variant after gimplification.
2606 * omp-general.c (omp_context_selector_matches): For isa that might
2607 match in some other function, defer if in declare simd function.
2608 (omp_context_compute_score): Don't look for " score" in construct
2609 trait set. Set *score to -1 if it can't ever match.
2610 (omp_resolve_declare_variant): If any variants need to be deferred,
2611 don't punt immediately, but compute scores of all variants and if
2612 ther eis a score winner that doesn't need to be deferred, return that.
2613
2614 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2615
2616 * ipa-comdats.c: Fix comments typo.
2617 * ipa-profile.c: Fix comments typo.
2618 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2619 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2620 (gimple_gen_ic_func_profiler): Likewise.
2621 (pass_ipa_tree_profile::gate): Fix comments typo.
2622
2623 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2624
2625 * ipa-inline.c (inline_small_functions): Update iterator of next.
2626
2627 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2628
2629 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2630 register is suitable for the mode.
2631
2632 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2633
2634 * range-op.h (range_operator::fold_range): Return a bool.
2635 * range-op.cc (range_operator::wi_fold): Assert supported type.
2636 (range_operator::fold_range): Assert supported type and return true.
2637 (operator_equal::fold_range): Return true.
2638 (operator_not_equal::fold_range): Same.
2639 (operator_lt::fold_range): Same.
2640 (operator_le::fold_range): Same.
2641 (operator_gt::fold_range): Same.
2642 (operator_ge::fold_range): Same.
2643 (operator_plus::op1_range): Adjust call to fold_range.
2644 (operator_plus::op2_range): Same.
2645 (operator_minus::op1_range): Same.
2646 (operator_minus::op2_range): Same.
2647 (operator_exact_divide::op1_range): Same.
2648 (operator_lshift::fold_range): Return true and adjust fold_range call.
2649 (operator_rshift::fold_range): Same.
2650 (operator_cast::fold_range): Return true.
2651 (operator_logical_and::fold_range): Same.
2652 (operator_logical_or::fold_range): Same.
2653 (operator_logical_not::fold_range): Same.
2654 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2655 (operator_bitwise_not::op1_range): Same.
2656 (operator_cst::fold_range): Return true.
2657 (operator_identity::fold_range): Return true.
2658 (operator_negate::fold_range): Return true and adjust fold_range call.
2659 (operator_addr_expr::fold_range): Return true.
2660 (operator_addr_expr::op1_range): Adjust call to fold_range.
2661 (range_cast): Same.
2662 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2663 (range_fold_unary_symbolics_p): Same.
2664
2665 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2666
2667 PR tree-optimization/92506
2668 * range-op.cc (range_operator::fold_range): Start with range undefined.
2669 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2670 overflow is varying.
2671
2672 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2673
2674 * range-op.cc (*operator*::*range): Remove calls to
2675 range_intersect, range_invert, and range_union in favor of calling
2676 the in-place API methods.
2677 (range_tests): Same.
2678 * range.cc (range_intersect): Remove.
2679 (range_union): Remove.
2680 (range_invert): Remove.
2681 * range.h (range_intersect): Remove.
2682 (range_union): Remove.
2683 (range_intersect): Remove.
2684
2685 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2686
2687 PR rtl-optimization/92430
2688 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2689 (pass_jump_after_combine::execute): Perform jump threading
2690 unconditionally.
2691
2692 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2693 Doug Rupp <rupp@adacore.com>
2694 Olivier Hainque <hainque@adacore.com>
2695
2696 * config.gcc: Collapse the arm-vxworks entries into
2697 a single arm-wrs-vxworks7* one, bpabi based. Update
2698 the default cpu from arm8 to armv7-a
2699 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2700 we always use ARM_UNWIND_INFO.
2701 (DWARF2_UNWIND_INFO): Remove redefinition.
2702 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2703 (VXWORKS_PERSONALITY): Define, to "llvm".
2704 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2705
2706 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2707
2708 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2709 _VX_CPU instead of CPU and handle arm_arch8.
2710
2711 2019-11-14 Doug Rupp <rupp@adacore.com>
2712 Olivier Hainque <hainque@adacore.com>
2713 Jerome Lambourg <lambourg@adacore.com>
2714
2715 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2716 * config/aarch64/aarch64-vxworks.h: New file.
2717 * config/aarch64/t-aarch64-vxworks: New file.
2718
2719 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2720 Olivier Hainque <hainque@adacore.com>
2721
2722 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2723 definition, pointless with a VxWorks specific version
2724 of crtstuff.
2725 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2726 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2727 New local macros, controlling the addition of vxworks specific
2728 crtstuff objects depending on the EH mechanism and kind of
2729 module being linked.
2730 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2731
2732 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2733 Jerome Lambourg <lambourg@adacore.com>
2734 Olivier Hainque <hainque@adacore.com>
2735
2736 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2737 common macro definitions, conveying VXWORKS7 or 64bit general
2738 variations. Add a block to set gcc_cv_initfini_array
2739 unconditionally to "yes" for VxWorks7.
2740 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2741 by default. Update some comments.
2742 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2743 default, to be added the end of VXWORKS_LIBS_RTP.
2744 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2745 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2746 redefine.
2747 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2748 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2749 to account for the now available TLS abilities.
2750 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2751 (VXWORKS_HAVE_TLS): Likewise.
2752
2753 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2754
2755 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2756 (vect_slp_convert_to_external): Likewise.
2757 (vect_slp_analyze_node_operations): If analysis fails, try building
2758 the node from scalars instead.
2759
2760 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2761
2762 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2763 between vector types.
2764 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2765 non-widening and non-narrowing path to handle standard
2766 conversion codes, if the target supports them.
2767 * expr.c (convert_move): Try using the extend and truncate optabs
2768 for vectors.
2769 * optabs-tree.c (supportable_convert_operation): Likewise.
2770 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2771 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2772 (trunc<mode><Vnarrowq>2): New patterns.
2773
2774 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2775
2776 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2777 require vectype and nunits_vectype to have the same size;
2778 instead assert that nunits_vectype has at least as many
2779 elements as vectype. Don't compute a separate nunits_vectype
2780 if the scalar type is obviously the same as vectype's.
2781 Tweak dump messages.
2782
2783 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2784
2785 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2786 function.
2787 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2788 (TARGET_VECTORIZE_RELATED_MODE): Define.
2789
2790 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2791
2792 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2793 (vec_info::used_vector_mode): New member variable.
2794 (vect_chooses_same_modes_p): Declare.
2795 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2796 chosen vector mode in vec_info::used_vector_mode.
2797 (vect_chooses_same_modes_p): New function.
2798 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2799 the same vector statements multiple times.
2800 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2801
2802 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2803
2804 * machmode.h (opt_machine_mode::operator==): New function.
2805 (opt_machine_mode::operator!=): Likewise.
2806 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2807 (get_related_vectype_for_scalar_type): Delete.
2808 (get_vectype_for_scalar_type_and_size): Declare.
2809 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2810 whether analysis passed or failed, and with what vector modes.
2811 Use related_vector_mode to check whether trying a particular
2812 vector mode would be redundant with the autodetected mode,
2813 and print a dump message if we decide to skip it.
2814 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2815 (vect_create_epilog_for_reduction): Use
2816 get_related_vectype_for_scalar_type instead of
2817 get_vectype_for_scalar_type_and_size.
2818 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2819 with...
2820 (get_related_vectype_for_scalar_type): ...this new function.
2821 Take a starting/"prevailing" vector mode rather than a vector size.
2822 Take an optional nunits argument, with the same meaning as for
2823 related_vector_mode. Use related_vector_mode when not
2824 auto-detecting a mode, falling back to mode_for_vector if no
2825 target mode exists.
2826 (get_vectype_for_scalar_type): Update accordingly.
2827 (get_same_sized_vectype): Likewise.
2828 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2829
2830 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2831
2832 * tree-vect-stmts.c (vectorizable_call): Require the types
2833 to have the same size.
2834
2835 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2836
2837 * tree-vect-stmts.c (vectorizable_call): If an operand is
2838 constant or external, use get_vectype_for_scalar_type
2839 rather than get_same_sized_vectype to get its vector type.
2840 (vectorizable_conversion, vectorizable_shift): Likewise.
2841 (vectorizable_operation): Likewise.
2842
2843 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2844
2845 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2846 (vec_info::vector_mode): ...this new field.
2847 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2848 (vect_analyze_loop, vect_transform_loop): Likewise.
2849 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2850 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2851 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2852 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2853 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2854
2855 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2856
2857 * target.h (vector_sizes, auto_vector_sizes): Delete.
2858 (vector_modes, auto_vector_modes): New typedefs.
2859 * target.def (autovectorize_vector_sizes): Replace with...
2860 (autovectorize_vector_modes): ...this new hook.
2861 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2862 Replace with...
2863 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2864 * doc/tm.texi: Regenerate.
2865 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2866 (default_autovectorize_vector_modes): New function.
2867 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2868 (default_autovectorize_vector_modes): New function.
2869 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2870 of autovectorize_vector_sizes. Use the number of units in the mode
2871 to calculate the maximum VF.
2872 * omp-low.c (omp_clause_aligned_alignment): Use
2873 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2874 Use a loop based on related_mode to iterate through all supported
2875 vector modes for a given scalar mode.
2876 * optabs-query.c (can_vec_mask_load_store_p): Use
2877 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2878 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2879 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2880 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2881 Replace with...
2882 (aarch64_autovectorize_vector_modes): ...this new function.
2883 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2884 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2885 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2886 (arc_autovectorize_vector_modes): ...this new function.
2887 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2888 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2889 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2890 (arm_autovectorize_vector_modes): ...this new function.
2891 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2892 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2893 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2894 (ix86_autovectorize_vector_modes): ...this new function.
2895 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2896 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2897 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2898 (mips_autovectorize_vector_modes): ...this new function.
2899 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2900 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2901
2902 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2903
2904 * tree-vect-stmts.c (vectorizable_shift): Check the number
2905 of vector elements as well as the type mode when deciding
2906 whether an op1_vectype is compatible. Reuse the result of
2907 this check when generating vector statements.
2908
2909 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2910
2911 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2912 targetm.vectorize.preferred_simd_mode returns an integer mode,
2913 use mode_for_vector to decide what the vector type's mode
2914 should actually be. Use build_vector_type_for_mode instead
2915 of build_vector_type.
2916
2917 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2918
2919 * target.def (get_mask_mode): Take a vector mode itself as argument,
2920 instead of properties about the vector mode.
2921 * doc/tm.texi: Regenerate.
2922 * targhooks.h (default_get_mask_mode): Update to reflect new
2923 get_mode_mask interface.
2924 * targhooks.c (default_get_mask_mode): Likewise. Use
2925 related_int_vector_mode.
2926 * optabs-query.c (can_vec_mask_load_store_p): Update call
2927 to get_mask_mode.
2928 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2929 first that the original mode really is a vector.
2930 * tree.c (build_truth_vector_type_for): Likewise.
2931 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2932 get_mode_mask interface.
2933 (aarch64_expand_sve_vcond): Update call accordingly.
2934 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2935 get_mode_mask interface.
2936 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2937
2938 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2939
2940 * tree.h (build_truth_vector_type): Delete.
2941 (build_same_sized_truth_vector_type): Likewise.
2942 * tree.c (build_truth_vector_type): Rename to...
2943 (build_truth_vector_type_for): ...this. Make static and take
2944 a vector type as argument.
2945 (truth_type_for): Update accordingly.
2946 (build_same_sized_truth_vector_type): Delete.
2947 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2948 instead of build_same_sized_truth_vector_type.
2949 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2950 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2951 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2952 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2953 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2954 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2955 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2956 (vectorizable_store, vectorizable_condition): Likewise.
2957 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2958 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2959 build_truth_vector_type.
2960 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2961 Use truth_type_for instead of build_same_sized_truth_vector_type.
2962 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2963
2964 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2965
2966 * tree.h (build_truth_vector_type_for_mode): Declare.
2967 * tree.c (build_truth_vector_type_for_mode): New function,
2968 split out from...
2969 (build_truth_vector_type): ...here.
2970 (build_opaque_vector_type): Fix head comment.
2971 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2972 vec_info parameter.
2973 (vect_halve_mask_nunits): Replace vec_info parameter with the
2974 mode of the new vector.
2975 (vect_double_mask_nunits): Likewise.
2976 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2977 (vect_double_mask_nunits): Likewise.
2978 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2979 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2980 to vect_halve_mask_nunits, getting the required mode from the unpack
2981 patterns.
2982 (vect_set_loop_condition_masked): Update call accordingly.
2983 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2984 parameter and update call to vect_double_mask_nunits.
2985 (vectorizable_conversion): Update call accordingly.
2986 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2987 (vectorizable_call): Update call accordingly.
2988 (supportable_widening_operation): Update call to
2989 vect_halve_mask_nunits.
2990 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2991 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2992
2993 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2994
2995 * machmode.h (mode_for_int_vector): Delete.
2996 (related_int_vector_mode): Declare.
2997 * stor-layout.c (mode_for_int_vector): Delete.
2998 (related_int_vector_mode): New function.
2999 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3000 instead of mode_for_int_vector.
3001 (expand_vec_perm_const): Likewise.
3002 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3003 (aarch64_evpc_sve_tbl): Likewise.
3004 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3005 (s390_expand_vcond): Likewise.
3006
3007 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3008
3009 * target.def (related_mode): New hook.
3010 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3011 * doc/tm.texi: Regenerate.
3012 * targhooks.h (default_vectorize_related_mode): Declare.
3013 * targhooks.c (default_vectorize_related_mode): New function.
3014 * machmode.h (related_vector_mode): Declare.
3015 * stor-layout.c (related_vector_mode): New function.
3016 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3017 * optabs-query.c (qimode_for_vec_perm): Likewise.
3018 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3019 (vectorizable_store, vectorizable_load): Likewise
3020
3021 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3022
3023 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3024 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3025 * config/arm/arm-c.c (arm_cpu_builtins): Define
3026 __GCC_ASM_FLAG_OUTPUTS__.
3027 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3028 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3029 Define __GCC_ASM_FLAG_OUTPUTS__.
3030 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3031 * doc/extend.texi (FlagOutputOperands): Add documentation
3032 for ARM and AArch64.
3033
3034 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3035 * config/arm/predicates.md (nz_comparison_operator): Rename
3036 from noov_comparison_operator.
3037 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3038 (arm_gen_dicompare_reg): Likewise.
3039 (maybe_get_arm_condition_code): Likewise.
3040 (thumb1_final_prescan_insn): Likewise.
3041 (arm_emit_coreregs_64bit_shift): Likewise.
3042 * config/arm/arm.md (addsi3_compare0): Likewise.
3043 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3044 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3045 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3046 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3047 (*mulsi3addsi_compare0_scratch): Likewise.
3048 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3049 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3050 (*zeroextractsi_compare0_scratch): Likewise.
3051 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3052 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3053 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3054 (andsi_not_shiftsi_si_scc): Likewise.
3055 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3056 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3057 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3058 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3059 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3060 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3061 (return_addr_mask, *check_arch2): Likewise.
3062 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3063 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3064 (compare_scc splitters): Likewise.
3065 (movcond_addsi): Likewise.
3066 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3067 (*thumb2_addsi3_compare0_scratch): Likewise.
3068 (*thumb2_mulsi_short_compare0): Likewise.
3069 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3070 (compare peephole2s): Likewise.
3071 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3072 nz_comparison_operator names.
3073 (cbranchsi4_insn): Likewise.
3074
3075 * config/arm/constraints.md (c): Use cc_register predicate.
3076
3077 * config/aarch64/constraints.md (c): New constraint.
3078
3079 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3080
3081 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3082 ipa_merge_fn_summary_after_inlining): Micro optimize.
3083
3084 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3085
3086 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3087
3088 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3089
3090 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3091 (ipa_value_range_from_jfunc): New function.
3092 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3093 known_value_ranges parameter; use it to evalulate conditions.
3094 (evaluate_properties_for_edge): Compute known value ranges.
3095 (ipa_fn_summary_t::duplicate): Update use of
3096 evaluate_conditions_for_known_args.
3097 (estimate_ipcp_clone_size_and_time): Likewise.
3098 (ipa_merge_fn_summary_after_inlining): Likewise.
3099 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3100
3101 2019-11-14 Martin Liska <mliska@suse.cz>
3102
3103 * ipa-inline.c (want_inline_small_function_p): Use
3104 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3105 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3106
3107 2019-11-14 Martin Liska <mliska@suse.cz>
3108
3109 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3110 of a callee to get value of the param.
3111 * ipa-inline.c (inline_insns_auto): Use proper
3112 opt_for_fn.
3113 * opts.c (maybe_default_option): Do not overwrite param
3114 value if optimization level does not match. Note that
3115 params usually have default value set via Init() keyword.
3116 * params.opt: Remove -param=max-inline-insns-auto-O2.
3117 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3118 * doc/invoke.texi: Remove documentation of
3119 max-inline-insns-auto-O2.
3120
3121 2019-11-14 Martin Liska <mliska@suse.cz>
3122
3123 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3124 Do not initialize m_other_count.
3125 (switch_conversion::collect): Do not count m_default_count and
3126 m_other_count as we use frequencies for edges.
3127 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3128
3129 2019-11-14 Martin Liska <mliska@suse.cz>
3130
3131 PR other/92329
3132 * doc/invoke.texi: Document -fallocation-dce.
3133
3134 2019-11-14 Martin Liska <mliska@suse.cz>
3135
3136 PR target/92389
3137 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3138 PTA_ICELAKE_CLIENT which is later interited by
3139 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3140
3141 2019-11-14 Martin Liska <mliska@suse.cz>
3142
3143 * ipa-icf.c (sem_item_optimizer::execute): Save
3144 loaded_symbols.
3145 (sem_item_optimizer::parse_nonsingleton_classes):
3146 Return number of loaded symbols.
3147 (sem_item_optimizer::merge_classes): Print
3148 statistics about totally needed symbols.
3149 * ipa-icf.h (parse_nonsingleton_classes): Change return
3150 type.
3151 (merge_classes): Add one argument.
3152
3153 2019-11-14 Martin Liska <mliska@suse.cz>
3154
3155 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3156 func_checker::hash_operand by handling of FIELD_DECLs.
3157
3158 2019-11-14 Martin Liska <mliska@suse.cz>
3159
3160 * ipa-icf-gimple.h (func_checker::func_checker): Add
3161 default constructor.
3162 * ipa-icf.c (sem_function::init): Make operand_equal_p
3163 and hash_operand public.
3164 (sem_item::add_expr): Remove.
3165 (sem_item::add_type): Remove.
3166 (sem_function::hash_stmt): Use m_checker for hashing
3167 of GIMPLE statements.
3168 (sem_function::parse): Init with checker.
3169 (sem_variable::parse): Pass NULL as checker.
3170 (sem_item_optimizer::parse_funcs_and_vars):
3171 Pass checker to ::parse function.
3172 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3173 (sem_variable::parse): New function.
3174 (sem_variable::get_hash): Only return computed hash value.
3175 (sem_variable::init): Initialize hash of a variable.
3176 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3177 to couple of functions as a new argument.
3178
3179 2019-11-14 Martin Liska <mliska@suse.cz>
3180
3181 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3182 bail out reason.
3183 (func_checker::compare_gimple_assign): Likewise.
3184
3185 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3186
3187 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3188 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3189 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3190
3191 * omp-general.c (omp_context_name_list_prop): New function.
3192 (omp_context_selector_matches): Use it. Return 0 if it returns
3193 NULL.
3194 (omp_context_selector_props_compare): Allow equivalency of an
3195 identifier and a string literal containing no embedded zeros.
3196
3197 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3198
3199 * range-op.cc (RANGE3): Remove.
3200 (range_tests): Remove all selftest that check for multi-ranges.
3201 Put tests in namespace selftest.
3202 * selftest.h: Move range_tests into namespace selftest.
3203 * value-range.h (class value_range): Unfriend range_tests.
3204
3205 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3206
3207 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3208 normalize_symbolics and normalize_addresses working in place.
3209 (range_fold_unary_symbolics_p): Same.
3210 (range_fold_unary_symbolics_p): Same.
3211 * value-range.cc (num_pairs): Same.
3212 (lower_bound): Same.
3213 (upper_bound): Same.
3214 (contains_p): Same.
3215 (normalize_addresses): Same.
3216 (normalize_symbolics): Same.
3217 * value-range.h (normalize_symbolics): Same.
3218 (normalize_addresses): Same.
3219
3220 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3221
3222 PR ipa/91682
3223 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3224 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3225 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3226 (ipa_agg_jump_function): Remove member function equal_to.
3227 (ipa_agg_jump_function_p): Remove typedef.
3228 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3229 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3230 information for aggregate jump function.
3231 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3232 record last definition statement.
3233 (load_from_unmodified_param_or_agg): New function.
3234 (ipa_known_agg_contents_list): Add new field type and value, remove
3235 field constant.
3236 (build_agg_jump_func_from_list): Rename parameter const_count to
3237 value_count, build aggregate jump function from ipa_load_agg_data.
3238 (analyze_agg_content_value): New function.
3239 (extract_mem_content): Analyze memory store assignment to prepare
3240 information for aggregate jump function generation.
3241 (determine_known_aggregate_parts): Add new parameter fbi, remove
3242 parameter aa_walk_budeget_p.
3243 (update_jump_functions_after_inlining): Update aggregate jump function.
3244 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3245 (try_make_edge_direct_simple_call): Add new parameter new_root.
3246 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3247 new_root_info.
3248 (update_indirect_edges_after_inlining): Pass new argument to
3249 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3250 (ipa_write_jump_function): Write aggregate jump function to file.
3251 (ipa_read_jump_function): Read aggregate jump function from file.
3252 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3253 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3254 (ipa_agg_value_from_node): Likewise.
3255 (ipa_agg_value_set_from_jfunc): Likewise.
3256 (propagate_vals_across_arith_jfunc): Likewise.
3257 (propagate_aggregate_lattice): Likewise.
3258 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3259 (propagate_vals_across_pass_through): Call
3260 propagate_vals_across_arith_jfunc.
3261 (get_clone_agg_value): Move forward.
3262 (propagate_aggs_across_jump_function): Handle value propagation for
3263 aggregate jump function.
3264 (agg_jmp_p_vec_for_t_vec): Remove.
3265 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3266 with vec<ipa_agg_value>.
3267 (copy_plats_to_inter, intersect_with_plats): Likewise.
3268 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3269 (intersect_aggregate_with_edge): Likewise.
3270 (find_aggregate_values_for_callers_subset): Likewise.
3271 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3272 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3273 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3274 (gather_context_independent_values): Likewise.
3275 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3276 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3277 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3278 (evaluate_properties_for_edge): Likewise.
3279 (estimate_edge_devirt_benefit): Likewise.
3280 (estimate_edge_size_and_time): Likewise.
3281 (estimate_calls_size_and_time): Likewise.
3282 (ipa_call_context::ipa_call_context): Likewise.
3283 (estimate_ipcp_clone_size_and_time): Likewise.
3284 * ipa-fnsummary.h (ipa_call_context): Replace
3285 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3286 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3287 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3288 (do_estimate_edge_size): Likewise.
3289 (do_estimate_edge_hints): Likewise.
3290
3291 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3292
3293 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3294 binary operations.
3295
3296 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3297
3298 * ipa-profile.c (check_argument_count): Check properly that e_info
3299 is non-NULL; do not check descriptors.
3300
3301 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3302
3303 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3304 check for ipa profiles.
3305
3306 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3307
3308 PR c++/92421
3309 * ipa-prop.c (update_indirect_edges_after_inlining):
3310 Mark parameter as used.
3311 * ipa-inline.c (recursive_inlining): Reset node cache
3312 after inlining.
3313 (inline_small_functions): Remove checking ifdef.
3314 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3315 cache consistency.
3316
3317 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3318
3319 PR ipa/92498
3320 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3321 is NULL.
3322 (ipa_profile): Fix reversed test.
3323
3324 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3325
3326 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3327 (propagate_constants_topo): Fix typo.
3328
3329 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3330
3331 * Makefile.in (OBJS): Add value-range.o.
3332 (GTFILES): Add value-range.h.
3333 * gengtype.c (open_base_files): Add value-range.h to list of
3334 header files.
3335 * tree-vrp.c: Move the following value_range related functions:
3336 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3337 constant_p, set_undefined, set_varying, may_contain_p,
3338 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3339 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3340 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3341 value_inside_range, ranges_from_anti_range, union_ranges,
3342 intersect_ranges, intersect_helper, union_helper, union_,
3343 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3344 upper_bound, contains_p, invert, intersect...
3345 * value-range.cc: ...to here.
3346 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3347 associated inline methods from here...
3348 * value-range.h: ...to here.
3349
3350 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3351
3352 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3353 instead of asserting its value.
3354
3355 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3356
3357 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3358 constructors and set methods so value_range_kind is the last
3359 argument and defaults to VR_RANGE.
3360 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3361 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3362 * ipa-prop.c (ipa_get_value_range): Same.
3363 (ipa_compute_jump_functions_for_edge): Same.
3364 * range-op.cc (value_range_from_overflowed_bounds): Same.
3365 (operator_cast::op1_range): Same.
3366 (range_tests): Same.
3367 * range.cc (range_nonzero): Same.
3368 * tree-ssanames.c (get_range_info): Same.
3369 * tree-vrp.c (value_range_equiv::set): Same.
3370 (value_range::value_range): Same.
3371 (value_range_equiv::value_range_equiv): Same.
3372 (value_range_equiv::update): Same.
3373 (value_range_equiv::deep_copy): Same.
3374 (value_range_equiv::move): Same.
3375 (value_range_equiv::set_undefined): Same.
3376 (value_range::set): Same.
3377 (value_range::set_nonzero): Same.
3378 (ranges_from_anti_range): Same.
3379 (extract_range_from_plus_minus_expr): Same.
3380 (value_range::intersect_helper): Same.
3381 (value_range_equiv::intersect): Same.
3382 (value_range::union_helper): Same.
3383 (value_range_equiv::union_): Same.
3384 (value_range::normalize_symbolics): Same.
3385 (value_range::invert): Same.
3386 (determine_value_range_1): Same.
3387 * tree-vrp.h (class value_range): Same.
3388 (class value_range_equiv): Same.
3389 * vr-values.c (set_value_range_to_nonnegative): Same.
3390 (set_value_range_to_truthvalue): Same.
3391 (vr_values::update_value_range): Same.
3392 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3393 (vr_values::extract_range_from_binary_expr): Same.
3394 (vr_values::extract_range_from_comparison): Same.
3395 (vr_values::extract_range_basic): Same.
3396 (vr_values::adjust_range_with_scev): Same.
3397 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3398 (vr_values::extract_range_from_phi_node): Same.
3399
3400 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3401
3402 * tree-dump.c (dequeue_and_dump): Print first tree operand
3403 for VIEW_CONVERT_EXPR.
3404
3405 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3406
3407 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3408 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3409 * real.c (get_max_float): Add norm_max argument.
3410 * real.h (get_max_float): Update prototype.
3411 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3412 get_max_float.
3413
3414 2019-11-13 Martin Liska <mliska@suse.cz>
3415
3416 * dbgcnt.c (test_sorted_dbg_counters): New.
3417 (dbgcnt_c_tests): Likewise.
3418 * selftest-run-tests.c (selftest::run_tests): Likewise.
3419 * selftest.h (dbgcnt_c_tests): Likewise.
3420
3421 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3422 Martin Jambor <mjambor@suse.cz>
3423
3424 PR ipa/92454
3425 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3426 (identify_dead_nodes): Likewise.
3427
3428 2019-11-13 Martin Liska <mliska@suse.cz>
3429
3430 * ipa-icf.c (sem_function::equals_private): Do not overuse
3431 push/pop_cfun functions.
3432
3433 2019-11-13 Martin Liska <mliska@suse.cz>
3434
3435 * common.opt: Document change of -fdbg-cnt option.
3436 * dbgcnt.c (DEBUG_COUNTER): Remove.
3437 (dbg_cnt_is_enabled): Remove.
3438 (dbg_cnt): Work with new intervals.
3439 (dbg_cnt_set_limit_by_index): Set to new
3440 list of intervals.
3441 (dbg_cnt_set_limit_by_name): Likewise.
3442 (dbg_cnt_process_single_pair): Process new format.
3443 (dbg_cnt_process_opt): Likewise.
3444 (dbg_cnt_list_all_counters): Likewise.
3445 * doc/invoke.texi: Document change of -fdbg-cnt option.
3446 (cmp_tuples): New.
3447
3448 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3449
3450 * ipa-inline.c (ipa_inline): Check that function is defined before
3451 flattening.
3452
3453 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3454 Julian Brown <julian@codesourcery.com>
3455
3456 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3457 flag_worker_partitioning is not set.
3458 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3459 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3460
3461 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3462
3463 * config/gcn/gcn-run.c (heap_region): New global variable.
3464 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3465 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3466 (get_kernarg_region): Move contents to ....
3467 (get_memory_region): .... here.
3468 (get_heap_region): New function.
3469 (init_device): Initialize the heap_region.
3470 (device_malloc): Add region parameter.
3471 (struct kernargs): Move heap ....
3472 (heap): ... to global scope.
3473 (main): Allocate heap separate to kernargs.
3474
3475 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3476
3477 * ipa-prop.c (ipa_print_node_jump_functions,
3478 ipa_print_node_params): Print info about missing summaries.
3479
3480 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3481
3482 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3483 the cost of generating loop masks.
3484
3485 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3486
3487 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3488 New function.
3489 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3490 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3491 (vect_transform_loop): Likewise.
3492 (vect_analyze_loop_costing): Don't take the cost of versioning
3493 into account for the static profitability threshold if it turns
3494 out that no versioning is needed.
3495
3496 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3497
3498 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3499 and target_option_default_node to get -fprofile-generate ctors working
3500 right with LTO.
3501
3502 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3503
3504 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3505 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3506 (vectorizable_assignment): Don't add a cost for nop conversions.
3507 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3508 Likewise.
3509 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3510
3511 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3512
3513 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3514 number of ncopies as an additional argument.
3515 (vectorizable_conversion): Update call accordingly. Use "modifier"
3516 to check whether a conversion is between vectors with the same
3517 numbers of units.
3518
3519 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3520
3521 * config/aarch64/aarch64-sve-builtins-functions.h
3522 (unary_count::expand): Use aarch64_sve_int_mode instead of
3523 mode_for_int_vector.
3524
3525 2019-11-13 Martin Liska <mliska@suse.cz>
3526
3527 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3528
3529 2019-11-13 Martin Liska <mliska@suse.cz>
3530
3531 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3532 Remove call to finalize_options_struct.
3533
3534 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3535
3536 PR target/92055
3537 * config/avr/t-avr (avr-mcus): Do not depend on
3538 $(srcdir)/config/avr/t-multilib.
3539
3540 2019-11-13 Richard Biener <rguenther@suse.de>
3541
3542 PR tree-optimization/92473
3543 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3544 direct optab reduction in the correct type.
3545
3546 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3547
3548 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3549 hexadecimal literal.
3550
3551 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3552
3553 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3554 UNORDERED if !HONOR_NANS (DFmode).
3555 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3556 if !HONOR_NANS (<MODE>mode).
3557
3558 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3559
3560 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3561 (ipcp_verify_propagated_values): Likewise.
3562 (propagate_constants_across_call): Likewise.
3563 (propagate_constants_topo): Likewise.
3564 (ipcp_propagate_stage): Likewise.
3565
3566 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3567
3568 PR ipa/92471
3569 * ipa-profile.c (check_argument_count): Break out from ...;
3570 watch for missing summaries.
3571 (ipa_profile): Here.
3572
3573 2019-11-12 Martin Sebor <msebor@redhat.com>
3574
3575 PR tree-optimization/92412
3576 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3577 extern variables.
3578
3579 2019-11-12 Martin Sebor <msebor@redhat.com>
3580
3581 PR middle-end/83688
3582 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3583 (directive::argno): New member.
3584 (format_result::aliases, format_result::alias_count): New data members.
3585 (format_result::append_alias): New member function.
3586 (fmtresult::dst_offset): New data member.
3587 (pass_sprintf_length::call_info::dst_origin): New data member.
3588 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3589 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3590 (get_origin_and_offset): Same.
3591 (format_string): Call it.
3592 (format_directive): Call append_alias and set directive argument
3593 number.
3594 (maybe_warn_overlap): New function.
3595 (pass_sprintf_length::compute_format_length): Call it.
3596 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3597 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3598
3599 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3600
3601 PR rtl-optimization/92430
3602 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3603 dominance info at the beginning.
3604
3605 2019-11-12 Richard Biener <rguenther@suse.de>
3606
3607 PR tree-optimization/92460
3608 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3609 expression before gimplifying.
3610
3611 2019-11-12 Richard Biener <rguenther@suse.de>
3612
3613 PR tree-optimization/92461
3614 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3615 stmt after propagation.
3616
3617 2019-11-12 Martin Liska <mliska@suse.cz>
3618
3619 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3620 Use SET_OPTION_IF_UNSET.
3621 (ix86_option_override_internal): Likewise.
3622 * opts.c (default_options_optimization): Likewise.
3623 (finish_options): Likewise.
3624 (enable_fdo_optimizations): Likewise.
3625 (common_handle_option): Likewise.
3626
3627 2019-11-12 Martin Liska <mliska@suse.cz>
3628
3629 * common/common-target.def: Remove option_validate_param and
3630 option_default_params.
3631 * common/common-targhooks.c (default_option_validate_param):
3632 Remove.
3633 * common/common-targhooks.h (default_option_validate_param):
3634 Remove.
3635 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3636 Remove usage of this.
3637 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3638 (aarch64_option_validate_param): Likewise.
3639 (aarch64_option_default_params): Likewise
3640 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3641 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3642 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3643 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3644 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3645 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3646 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3647 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3648 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3649 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3650 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3651 guard_size here.
3652 * doc/tm.texi: Remove option_default_params and option_validate_param.
3653 * doc/tm.texi.in: Likewise.
3654
3655 2019-11-12 Martin Liska <mliska@suse.cz>
3656
3657 * common/common-target.def:
3658 Do not mention set_default_param_value
3659 and set_param_value.
3660 * doc/tm.texi: Likewise.
3661
3662 2019-11-12 Martin Liska <mliska@suse.cz>
3663
3664 * common.opt: Remove param_values.
3665 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3666 Remove finalize_options_struct.
3667 * gcc.c (driver::decode_argv): Do not call global_init_params
3668 and finish_params.
3669 (driver::finalize): Do not call params_c_finalize
3670 and finalize_options_struct.
3671 * opt-suggestions.c (option_proposer::get_completions): Remove
3672 special casing of params.
3673 (option_proposer::find_param_completions): Remove.
3674 (test_completion_partial_match): Update expected output.
3675 * opt-suggestions.h: Remove find_param_completions.
3676 * opts-common.c (add_misspelling_candidates): Add
3677 --param with a space.
3678 * opts.c (handle_param): Remove.
3679 (init_options_struct):. Remove init_options_struct and
3680 similar calls.
3681 (finalize_options_struct): Remove.
3682 (common_handle_option): Use SET_OPTION_IF_UNSET.
3683 * opts.h (finalize_options_struct): Remove.
3684 * toplev.c (general_init): Do not call global_init_params.
3685 (toplev::finalize): Do not call params_c_finalize and
3686 finalize_options_struct.
3687
3688 2019-11-12 Martin Liska <mliska@suse.cz>
3689
3690 * Makefile.in: Remove PARAMS_H and params.list
3691 and params.options.
3692 * params-enum.h: Remove.
3693 * params-list.h: Remove.
3694 * params-options.h: Remove.
3695 * params.c: Remove.
3696 * params.def: Remove.
3697 * params.h: Remove.
3698 * asan.c: Do not include params.h.
3699 * auto-profile.c: Likewise.
3700 * bb-reorder.c: Likewise.
3701 * builtins.c: Likewise.
3702 * cfgcleanup.c: Likewise.
3703 * cfgexpand.c: Likewise.
3704 * cfgloopanal.c: Likewise.
3705 * cgraph.c: Likewise.
3706 * combine.c: Likewise.
3707 * common/config/aarch64/aarch64-common.c: Likewise.
3708 * common/config/gcn/gcn-common.c: Likewise.
3709 * common/config/ia64/ia64-common.c: Likewise.
3710 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3711 * common/config/rs6000/rs6000-common.c: Likewise.
3712 * common/config/sh/sh-common.c: Likewise.
3713 * config/aarch64/aarch64.c: Likewise.
3714 * config/alpha/alpha.c: Likewise.
3715 * config/arm/arm.c: Likewise.
3716 * config/avr/avr.c: Likewise.
3717 * config/csky/csky.c: Likewise.
3718 * config/i386/i386-builtins.c: Likewise.
3719 * config/i386/i386-expand.c: Likewise.
3720 * config/i386/i386-features.c: Likewise.
3721 * config/i386/i386-options.c: Likewise.
3722 * config/i386/i386.c: Likewise.
3723 * config/ia64/ia64.c: Likewise.
3724 * config/rs6000/rs6000-logue.c: Likewise.
3725 * config/rs6000/rs6000.c: Likewise.
3726 * config/s390/s390.c: Likewise.
3727 * config/sparc/sparc.c: Likewise.
3728 * config/visium/visium.c: Likewise.
3729 * coverage.c: Likewise.
3730 * cprop.c: Likewise.
3731 * cse.c: Likewise.
3732 * cselib.c: Likewise.
3733 * dse.c: Likewise.
3734 * emit-rtl.c: Likewise.
3735 * explow.c: Likewise.
3736 * final.c: Likewise.
3737 * fold-const.c: Likewise.
3738 * gcc.c: Likewise.
3739 * gcse.c: Likewise.
3740 * ggc-common.c: Likewise.
3741 * ggc-page.c: Likewise.
3742 * gimple-loop-interchange.cc: Likewise.
3743 * gimple-loop-jam.c: Likewise.
3744 * gimple-loop-versioning.cc: Likewise.
3745 * gimple-ssa-split-paths.c: Likewise.
3746 * gimple-ssa-sprintf.c: Likewise.
3747 * gimple-ssa-store-merging.c: Likewise.
3748 * gimple-ssa-strength-reduction.c: Likewise.
3749 * gimple-ssa-warn-alloca.c: Likewise.
3750 * gimple-ssa-warn-restrict.c: Likewise.
3751 * graphite-isl-ast-to-gimple.c: Likewise.
3752 * graphite-optimize-isl.c: Likewise.
3753 * graphite-scop-detection.c: Likewise.
3754 * graphite-sese-to-poly.c: Likewise.
3755 * graphite.c: Likewise.
3756 * haifa-sched.c: Likewise.
3757 * hsa-gen.c: Likewise.
3758 * ifcvt.c: Likewise.
3759 * ipa-cp.c: Likewise.
3760 * ipa-fnsummary.c: Likewise.
3761 * ipa-inline-analysis.c: Likewise.
3762 * ipa-inline.c: Likewise.
3763 * ipa-polymorphic-call.c: Likewise.
3764 * ipa-profile.c: Likewise.
3765 * ipa-prop.c: Likewise.
3766 * ipa-split.c: Likewise.
3767 * ipa-sra.c: Likewise.
3768 * ira-build.c: Likewise.
3769 * ira-conflicts.c: Likewise.
3770 * loop-doloop.c: Likewise.
3771 * loop-invariant.c: Likewise.
3772 * loop-unroll.c: Likewise.
3773 * lra-assigns.c: Likewise.
3774 * lra-constraints.c: Likewise.
3775 * modulo-sched.c: Likewise.
3776 * opt-suggestions.c: Likewise.
3777 * opts.c: Likewise.
3778 * postreload-gcse.c: Likewise.
3779 * predict.c: Likewise.
3780 * reload.c: Likewise.
3781 * reorg.c: Likewise.
3782 * resource.c: Likewise.
3783 * sanopt.c: Likewise.
3784 * sched-deps.c: Likewise.
3785 * sched-ebb.c: Likewise.
3786 * sched-rgn.c: Likewise.
3787 * sel-sched-ir.c: Likewise.
3788 * sel-sched.c: Likewise.
3789 * shrink-wrap.c: Likewise.
3790 * stmt.c: Likewise.
3791 * targhooks.c: Likewise.
3792 * toplev.c: Likewise.
3793 * tracer.c: Likewise.
3794 * trans-mem.c: Likewise.
3795 * tree-chrec.c: Likewise.
3796 * tree-data-ref.c: Likewise.
3797 * tree-if-conv.c: Likewise.
3798 * tree-inline.c: Likewise.
3799 * tree-loop-distribution.c: Likewise.
3800 * tree-parloops.c: Likewise.
3801 * tree-predcom.c: Likewise.
3802 * tree-profile.c: Likewise.
3803 * tree-scalar-evolution.c: Likewise.
3804 * tree-sra.c: Likewise.
3805 * tree-ssa-ccp.c: Likewise.
3806 * tree-ssa-dom.c: Likewise.
3807 * tree-ssa-dse.c: Likewise.
3808 * tree-ssa-ifcombine.c: Likewise.
3809 * tree-ssa-loop-ch.c: Likewise.
3810 * tree-ssa-loop-im.c: Likewise.
3811 * tree-ssa-loop-ivcanon.c: Likewise.
3812 * tree-ssa-loop-ivopts.c: Likewise.
3813 * tree-ssa-loop-manip.c: Likewise.
3814 * tree-ssa-loop-niter.c: Likewise.
3815 * tree-ssa-loop-prefetch.c: Likewise.
3816 * tree-ssa-loop-unswitch.c: Likewise.
3817 * tree-ssa-math-opts.c: Likewise.
3818 * tree-ssa-phiopt.c: Likewise.
3819 * tree-ssa-pre.c: Likewise.
3820 * tree-ssa-reassoc.c: Likewise.
3821 * tree-ssa-sccvn.c: Likewise.
3822 * tree-ssa-scopedtables.c: Likewise.
3823 * tree-ssa-sink.c: Likewise.
3824 * tree-ssa-strlen.c: Likewise.
3825 * tree-ssa-structalias.c: Likewise.
3826 * tree-ssa-tail-merge.c: Likewise.
3827 * tree-ssa-threadbackward.c: Likewise.
3828 * tree-ssa-threadedge.c: Likewise.
3829 * tree-ssa-uninit.c: Likewise.
3830 * tree-switch-conversion.c: Likewise.
3831 * tree-vect-data-refs.c: Likewise.
3832 * tree-vect-loop.c: Likewise.
3833 * tree-vect-slp.c: Likewise.
3834 * tree-vrp.c: Likewise.
3835 * tree.c: Likewise.
3836 * value-prof.c: Likewise.
3837 * var-tracking.c: Likewise.
3838
3839 2019-11-12 Martin Liska <mliska@suse.cz>
3840
3841 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3842 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3843 macro.
3844 (asan_sanitize_allocas_p): Likewise.
3845 (asan_emit_stack_protection): Likewise.
3846 (asan_protect_global): Likewise.
3847 (instrument_derefs): Likewise.
3848 (instrument_builtin_call): Likewise.
3849 (asan_expand_mark_ifn): Likewise.
3850 * auto-profile.c (auto_profile): Likewise.
3851 * bb-reorder.c (copy_bb_p): Likewise.
3852 (duplicate_computed_gotos): Likewise.
3853 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3854 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3855 (try_crossjump_bb): Likewise.
3856 * cfgexpand.c (defer_stack_allocation): Likewise.
3857 (stack_protect_classify_type): Likewise.
3858 (pass_expand::execute): Likewise.
3859 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3860 (estimate_reg_pressure_cost): Likewise.
3861 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3862 * combine.c (combine_instructions): Likewise.
3863 (record_value_for_reg): Likewise.
3864 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3865 (aarch64_option_default_params): Likewise.
3866 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3867 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3868 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3869 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3870 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3871 (aarch64_allocate_and_probe_stack_space): Likewise.
3872 (aarch64_expand_epilogue): Likewise.
3873 (aarch64_override_options_internal): Likewise.
3874 * config/alpha/alpha.c (alpha_option_override): Likewise.
3875 * config/arm/arm.c (arm_option_override): Likewise.
3876 (arm_valid_target_attribute_p): Likewise.
3877 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3878 * config/i386/i386.c (get_probe_interval): Likewise.
3879 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3880 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3881 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3882 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3883 (get_stack_clash_protection_guard_size): Likewise.
3884 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3885 * config/s390/s390.c (allocate_stack_space): Likewise.
3886 (s390_emit_prologue): Likewise.
3887 (s390_option_override_internal): Likewise.
3888 * config/sparc/sparc.c (sparc_option_override): Likewise.
3889 * config/visium/visium.c (visium_option_override): Likewise.
3890 * coverage.c (get_coverage_counts): Likewise.
3891 (coverage_compute_profile_id): Likewise.
3892 (coverage_begin_function): Likewise.
3893 (coverage_end_function): Likewise.
3894 * cse.c (cse_find_path): Likewise.
3895 (cse_extended_basic_block): Likewise.
3896 (cse_main): Likewise.
3897 * cselib.c (cselib_invalidate_mem): Likewise.
3898 * dse.c (dse_step1): Likewise.
3899 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3900 (get_max_insn_count): Likewise.
3901 (make_debug_insn_raw): Likewise.
3902 (init_emit): Likewise.
3903 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3904 * final.c (compute_alignments): Likewise.
3905 * fold-const.c (fold_range_test): Likewise.
3906 (fold_truth_andor): Likewise.
3907 (tree_single_nonnegative_warnv_p): Likewise.
3908 (integer_valued_real_single_p): Likewise.
3909 * gcse.c (want_to_gcse_p): Likewise.
3910 (prune_insertions_deletions): Likewise.
3911 (hoist_code): Likewise.
3912 (gcse_or_cprop_is_too_expensive): Likewise.
3913 * ggc-common.c: Likewise.
3914 * ggc-page.c (ggc_collect): Likewise.
3915 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3916 (MAX_DATAREFS): Likewise.
3917 (OUTER_STRIDE_RATIO): Likewise.
3918 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3919 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3920 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3921 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3922 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3923 (imm_store_chain_info::output_merged_store): Likewise.
3924 (pass_store_merging::process_store): Likewise.
3925 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3926 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3927 (scop_to_isl_ast): Likewise.
3928 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3929 (optimize_isl): Likewise.
3930 * graphite-scop-detection.c (build_scops): Likewise.
3931 * haifa-sched.c (set_modulo_params): Likewise.
3932 (rank_for_schedule): Likewise.
3933 (model_add_to_worklist): Likewise.
3934 (model_promote_insn): Likewise.
3935 (model_choose_insn): Likewise.
3936 (queue_to_ready): Likewise.
3937 (autopref_multipass_dfa_lookahead_guard): Likewise.
3938 (schedule_block): Likewise.
3939 (sched_init): Likewise.
3940 * hsa-gen.c (init_prologue): Likewise.
3941 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3942 (cond_move_process_if_block): Likewise.
3943 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3944 (merge_agg_lats_step): Likewise.
3945 (devirtualization_time_bonus): Likewise.
3946 (hint_time_bonus): Likewise.
3947 (incorporate_penalties): Likewise.
3948 (good_cloning_opportunity_p): Likewise.
3949 (ipcp_propagate_stage): Likewise.
3950 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3951 (set_switch_stmt_execution_predicate): Likewise.
3952 (analyze_function_body): Likewise.
3953 (compute_fn_summary): Likewise.
3954 * ipa-inline-analysis.c (estimate_growth): Likewise.
3955 * ipa-inline.c (caller_growth_limits): Likewise.
3956 (inline_insns_single): Likewise.
3957 (inline_insns_auto): Likewise.
3958 (can_inline_edge_by_limits_p): Likewise.
3959 (want_early_inline_function_p): Likewise.
3960 (big_speedup_p): Likewise.
3961 (want_inline_small_function_p): Likewise.
3962 (want_inline_self_recursive_call_p): Likewise.
3963 (edge_badness): Likewise.
3964 (recursive_inlining): Likewise.
3965 (compute_max_insns): Likewise.
3966 (early_inliner): Likewise.
3967 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3968 * ipa-profile.c (ipa_profile): Likewise.
3969 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3970 (ipa_analyze_node): Likewise.
3971 (ipcp_transform_function): Likewise.
3972 * ipa-split.c (consider_split): Likewise.
3973 * ipa-sra.c (allocate_access): Likewise.
3974 (process_scan_results): Likewise.
3975 (ipa_sra_summarize_function): Likewise.
3976 (pull_accesses_from_callee): Likewise.
3977 * ira-build.c (loop_compare_func): Likewise.
3978 (mark_loops_for_removal): Likewise.
3979 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3980 * loop-doloop.c (doloop_optimize): Likewise.
3981 * loop-invariant.c (gain_for_invariant): Likewise.
3982 (move_loop_invariants): Likewise.
3983 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3984 (decide_unroll_runtime_iterations): Likewise.
3985 (decide_unroll_stupid): Likewise.
3986 (expand_var_during_unrolling): Likewise.
3987 * lra-assigns.c (spill_for): Likewise.
3988 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3989 * modulo-sched.c (sms_schedule): Likewise.
3990 (DFA_HISTORY): Likewise.
3991 * opts.c (default_options_optimization): Likewise.
3992 (finish_options): Likewise.
3993 (common_handle_option): Likewise.
3994 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3995 (if): Likewise.
3996 * predict.c (get_hot_bb_threshold): Likewise.
3997 (maybe_hot_count_p): Likewise.
3998 (probably_never_executed): Likewise.
3999 (predictable_edge_p): Likewise.
4000 (predict_loops): Likewise.
4001 (expr_expected_value_1): Likewise.
4002 (tree_predict_by_opcode): Likewise.
4003 (handle_missing_profiles): Likewise.
4004 * reload.c (find_equiv_reg): Likewise.
4005 * reorg.c (redundant_insn): Likewise.
4006 * resource.c (mark_target_live_regs): Likewise.
4007 (incr_ticks_for_insn): Likewise.
4008 * sanopt.c (pass_sanopt::execute): Likewise.
4009 * sched-deps.c (sched_analyze_1): Likewise.
4010 (sched_analyze_2): Likewise.
4011 (sched_analyze_insn): Likewise.
4012 (deps_analyze_insn): Likewise.
4013 * sched-ebb.c (schedule_ebbs): Likewise.
4014 * sched-rgn.c (find_single_block_region): Likewise.
4015 (too_large): Likewise.
4016 (haifa_find_rgns): Likewise.
4017 (extend_rgns): Likewise.
4018 (new_ready): Likewise.
4019 (schedule_region): Likewise.
4020 (sched_rgn_init): Likewise.
4021 * sel-sched-ir.c (make_region_from_loop): Likewise.
4022 * sel-sched-ir.h (MAX_WS): Likewise.
4023 * sel-sched.c (process_pipelined_exprs): Likewise.
4024 (sel_setup_region_sched_flags): Likewise.
4025 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4026 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4027 * toplev.c (print_version): Likewise.
4028 (process_options): Likewise.
4029 * tracer.c (tail_duplicate): Likewise.
4030 * trans-mem.c (tm_log_add): Likewise.
4031 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4032 * tree-data-ref.c (split_constant_offset): Likewise.
4033 (compute_all_dependences): Likewise.
4034 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4035 * tree-inline.c (remap_gimple_stmt): Likewise.
4036 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4037 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4038 (create_parallel_loop): Likewise.
4039 * tree-predcom.c (determine_unroll_factor): Likewise.
4040 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4041 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4042 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4043 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4044 (dse_optimize_redundant_stores): Likewise.
4045 (dse_classify_store): Likewise.
4046 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4047 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4048 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4049 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4050 (try_peel_loop): Likewise.
4051 (tree_unroll_loops_completely): Likewise.
4052 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4053 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4054 (MAX_CONSIDERED_GROUPS): Likewise.
4055 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4056 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4057 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4058 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4059 (L1_CACHE_SIZE_BYTES): Likewise.
4060 (L2_CACHE_SIZE_BYTES): Likewise.
4061 (should_issue_prefetch_p): Likewise.
4062 (schedule_prefetches): Likewise.
4063 (determine_unroll_factor): Likewise.
4064 (volume_of_references): Likewise.
4065 (add_subscript_strides): Likewise.
4066 (self_reuse_distance): Likewise.
4067 (mem_ref_count_reasonable_p): Likewise.
4068 (insn_to_prefetch_ratio_too_small_p): Likewise.
4069 (loop_prefetch_arrays): Likewise.
4070 (tree_ssa_prefetch_arrays): Likewise.
4071 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4072 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4073 (convert_mult_to_fma): Likewise.
4074 (math_opts_dom_walker::after_dom_children): Likewise.
4075 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4076 (hoist_adjacent_loads): Likewise.
4077 (gate_hoist_loads): Likewise.
4078 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4079 (compute_partial_antic_aux): Likewise.
4080 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4081 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4082 (vn_reference_lookup): Likewise.
4083 (do_rpo_vn): Likewise.
4084 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4085 * tree-ssa-sink.c (select_best_block): Likewise.
4086 * tree-ssa-strlen.c (new_stridx): Likewise.
4087 (new_addr_stridx): Likewise.
4088 (get_range_strlen_dynamic): Likewise.
4089 (class ssa_name_limit_t): Likewise.
4090 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4091 (create_variable_info_for_1): Likewise.
4092 (init_alias_vars): Likewise.
4093 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4094 (tail_merge_optimize): Likewise.
4095 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4096 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4097 (thread_jumps::find_jump_threads_backwards): Likewise.
4098 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4099 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4100 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4101 (jump_table_cluster::can_be_handled): Likewise.
4102 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4103 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4104 (param_switch_conversion_branch_ratio): Likewise.
4105 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4106 (vect_enhance_data_refs_alignment): Likewise.
4107 (vect_prune_runtime_alias_test_list): Likewise.
4108 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4109 (vect_get_datarefs_in_loop): Likewise.
4110 (vect_analyze_loop): Likewise.
4111 * tree-vect-slp.c (vect_slp_bb): Likewise.
4112 * tree-vectorizer.h: Likewise.
4113 * tree-vrp.c (find_switch_asserts): Likewise.
4114 (vrp_prop::check_mem_ref): Likewise.
4115 * tree.c (wide_int_to_tree_1): Likewise.
4116 (cache_integer_cst): Likewise.
4117 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4118 (reverse_op): Likewise.
4119 (vt_find_locations): Likewise.
4120
4121 2019-11-12 Martin Liska <mliska@suse.cz>
4122
4123 * Makefile.in: Include params.opt.
4124 * flag-types.h (enum parloops_schedule_type): Add
4125 parloops_schedule_type used in params.opt.
4126 * params.opt: New file.
4127
4128 2019-11-12 Martin Liska <mliska@suse.cz>
4129
4130 * common.opt: Remove --param and --param= options.
4131 * opt-functions.awk: Mark CL_PARAMS for options
4132 that have Param keyword.
4133 * opts-common.c (decode_cmdline_options_to_array):
4134 Replace --param key=value with --param=key=value.
4135 * opts.c (print_filtered_help): Remove special
4136 printing of params.
4137 (print_specific_help): Update title for params.
4138 (common_handle_option): Do not handle OPT__param.
4139 opts.h (SET_OPTION_IF_UNSET): New macro.
4140 * doc/options.texi: Document Param keyword.
4141
4142 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4143 Frederik Harwath <frederik@codesourcery.com>
4144 Thomas Schwinge <thomas@codesourcery.com>
4145
4146 gcc/
4147 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4148 enumeration constant.
4149 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4150 (is_gimple_omp_offloaded): Likewise.
4151 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4152 constant. Adjust the value of ORT_NONE accordingly.
4153 (is_gimple_stmt): Handle OACC_SERIAL.
4154 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4155 (gomp_needs_data_present): Likewise.
4156 (gimplify_adjust_omp_clauses): Likewise.
4157 (gimplify_omp_workshare): Handle OACC_SERIAL.
4158 (gimplify_expr): Likewise.
4159 * omp-expand.c (expand_omp_target):
4160 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4161 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4162 * omp-low.c (is_oacc_parallel): Rename function to...
4163 (is_oacc_parallel_or_serial): ... this.
4164 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4165 (scan_sharing_clauses): Adjust accordingly.
4166 (scan_omp_for): Likewise.
4167 (lower_oacc_head_mark): Likewise.
4168 (convert_from_firstprivate_int): Likewise.
4169 (lower_omp_target): Likewise.
4170 (check_omp_nesting_restrictions): Handle
4171 GF_OMP_TARGET_KIND_OACC_SERIAL.
4172 (lower_oacc_reductions): Likewise.
4173 (lower_omp_target): Likewise.
4174 * tree.def (OACC_SERIAL): New tree code.
4175 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4176
4177 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4178
4179 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4180
4181 PR target/92449
4182 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4183 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4184
4185 PR tree-optimization/92452
4186 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4187 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4188 MINUS_EXPR on it.
4189
4190 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4191
4192 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4193 safelen with 0.
4194
4195 2019-11-12 Alan Modra <amodra@gmail.com>
4196
4197 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4198 element of unspec vec.
4199 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4200 PC-relative TLS.
4201 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4202 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4203 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4204 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4205
4206 2019-11-12 Alan Modra <amodra@gmail.com>
4207
4208 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4209 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4210 (IS_NOMARK_TLSGETADDR): Likewise.
4211 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4212 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4213 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4214 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4215 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4216 (rs6000_indirect_call_template_1): Likewise.
4217 (rs6000_pltseq_template): Likewise.
4218 (rs6000_opt_vars): Remove "tls-markers" entry.
4219 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4220 with TARGET_ELF.
4221 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4222 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4223 (pltseq_plt_pcrel<mode>): Likewise.
4224 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4225 (call_value_local64): Likewise.
4226 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4227 output and length attribute sub-expression.
4228 (call_value_nonlocal_sysv<mode>),
4229 (call_value_nonlocal_sysv_secure<mode>),
4230 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4231 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4232 (call_value_indirect_pcrel<mode>): Likewise.
4233 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4234 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4235 * configure: Regenerate.
4236 * config.in: Regenerate.
4237
4238 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4239
4240 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4241 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4242 address being a prefixed load/store.
4243 (stack_protect_testdi): Deal with either address being a prefixed
4244 load.
4245
4246 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4247
4248 PR bootstrap/92433
4249 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4250 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4251 std::swap.
4252
4253 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4254
4255 PR tree-optimization/92420
4256 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4257 up file.
4258 (get_group_load_store_type): Use it for reversed SLP accesses.
4259
4260 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4261
4262 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4263 summary.
4264 (ipcp_transformation_t::duplicate): Break out from ...
4265 (ipa_node_params_t::duplicate): ... here; add copying of agg
4266 replacements.
4267 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4268 (ipcp_transformation_t): Add duplicate.
4269
4270 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4271
4272 PR fortran/91828
4273 * doc/install.texi: Document that the minimum MPFR version is
4274 3.1.0.
4275
4276 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4277
4278 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4279 use new register constraint letters.
4280
4281 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4282
4283 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4284 as well, if interesting recover the symbol and re-legitimize the
4285 pic address.
4286
4287 2019-11-11 Martin Liska <mliska@suse.cz>
4288
4289 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4290 alphabetically.
4291
4292 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4293
4294 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4295 account when checking if there are enough iterations to vectorize
4296 epilogue.
4297
4298 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4299 Kwok Cheung Yeung <kcy@codesourcery.com>
4300
4301 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4302 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4303 (LANG_HOOKS_DECLS): Rename also here.
4304 * langhooks.h (lang_hooks_for_decls): Rename
4305 omp_is_optional_argument to omp_check_optional_argument; take
4306 additional bool argument.
4307 * omp-general.h (omp_check_optional_argument): Likewise.
4308 * omp-general.h (omp_check_optional_argument): Likewise.
4309 * omp-low.c (lower_omp_target): Update calls; handle absent
4310 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4311
4312 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4313
4314 PR target/87833
4315 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4316 -fPIC and -shared the last to create offload image.
4317
4318 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4319
4320 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4321 of 'offset'.
4322
4323 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4324 (config.status): Use/depend on it.
4325 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4326 * configure: Regenerate.
4327
4328 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4329
4330 PR tree-optimization/88760
4331 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4332 * gcc/common/config/rs6000/rs6000-common.c
4333 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4334 Turn on -funroll-loops and -munroll-only-small-loops.
4335 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4336 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4337 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4338 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4339 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4340 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4341
4342 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4343
4344 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4345 Make scalar_load, vector_load, unaligned_load and
4346 vector_gather_load cost more to conform hardware latency and
4347 insn cost settings.
4348
4349 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4350
4351 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4352 (MACHO_SYMBOL_LINKER_VIS_P): New.
4353
4354 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4355
4356 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4357 registers in eliminable_regset.
4358
4359 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4360
4361 * ipa-inline.c (compute_uninlined_call_time,
4362 compute_inlined_call_time): Take edge frequency as
4363 parameter rather than computing it by itself.
4364 (big_speedup_p, edge_badness): Manually CSE sreal
4365 frequency calculations.
4366
4367 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4368
4369 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4370 case where profiles are same.
4371
4372 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4373
4374 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4375
4376 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4377
4378 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4379 args summaries of inlined edge unless it holds info about
4380 described reference.
4381
4382 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4383
4384 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4385 (*movcc_internal1): Rename to...
4386 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4387
4388 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4389
4390 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4391 (cgraph_node::create_virtual_clone): Copy it.
4392 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4393 summaries.
4394 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4395 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4396 is disabled.
4397 (propagate_constants_across_call): If callee is not analyzed, give up.
4398 (propagate_constants_topo): Lower to bottom latties of all callees of
4399 functions with ipa-cp disabled.
4400 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4401 (cgraph_edge_brings_value_p): Check for availability first.
4402 (create_specialized_node): Set ipcp_clone.
4403 (ipcp_store_bits_results): Check that info is present.
4404 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4405 thunks.
4406 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4407 conservative when callee summary is missing.
4408 (remap_edge_summaries): Lookup call summary only when needed.
4409 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4410 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4411 Use get_create.
4412 (ipa_analyze_node): Use get_create.
4413 (propagate_controlled_uses): Do not propagate when function is not
4414 analyzed.
4415 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4416 (ipa_read_node_info): Use get_create.
4417 * ipa-prop.h (IPA_NODE_REF): Use get.
4418 (IPA_NODE_REF_GET_CREATE): New.
4419
4420 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4421
4422 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4423 on function symbol.
4424
4425 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4426
4427 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4428 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4429 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4430 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4431
4432 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4433
4434 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4435 capping the growth cumulated.
4436 (offline_size): Break out from ...
4437 (estimate_growth): ... here.
4438 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4439 parameters.
4440 (growth_likely_positive): Turn to ...
4441 (growth_positive_p): Re-implement.
4442 * ipa-inline.h (growth_likely_positive): Remove.
4443 (growth_positive_p): Declare.
4444 * ipa-inline.c (want_inline_small_function_p): Use
4445 growth_positive_p.
4446 (want_inline_function_to_all_callers_p): Likewise.
4447
4448 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4449
4450 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4451 calculation of min_size.
4452 (ipa_update_overall_fn_summary): Likewise.
4453
4454 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4455
4456 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4457 estimate_edge_devirt_benefit when not computing hints;
4458 do not compute time when not asked for.
4459 (estimate_calls_size_and_time): Pass NULL hints and time when
4460 these are not computed; do not evaluate hint predicates when these are
4461 not computed.
4462 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4463 frequency.
4464
4465 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4466
4467 PR tree-optimization/92401
4468 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4469 if res_op->code is an expression with code length 1.
4470 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4471 if res_op->code is an expression with code length 2.
4472 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4473 if res_op->code is an expression with code length 3.
4474
4475 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4476
4477 * config/darwin.c (machopic_mcount_stub_name): Validate the
4478 symbol stub name when it is created.
4479 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4480 stub validation.
4481
4482 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4483
4484 * symtab.c: Fix comment typos.
4485 * cgraphunit.c: Likewise.
4486 * cgraph.h: Likewise.
4487 * cgraphclones.c: Likewise.
4488 * cgraph.c: Likewise.
4489 * varpool.c: Likewise.
4490 * tree-ssa-strlen.c: Likewise.
4491 * ipa-sra.c: Likewise.
4492 (scan_expr_access, check_all_callers_for_issues): Fix typo
4493 in a dump message.
4494
4495 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4496
4497 * config/darwin-protos.h: Add include quard.
4498
4499 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4500
4501 * range-op.h (range_operator::fold_range): Return result in a
4502 reference parameter instead of by value.
4503 (range_operator::wi_fold): Same.
4504 * range-op.cc (range_operator::wi_fold): Return result in a reference
4505 parameter instead of by value.
4506 (range_operator::fold_range): Same.
4507 (value_range_from_overflowed_bounds): Same.
4508 (value_range_with_overflow): Same
4509 (create_possibly_reversed_range): Same.
4510 (operator_equal::fold_range): Same.
4511 (operator_not_equal::fold_range): Same.
4512 (operator_lt::fold_range): Same.
4513 (operator_le::fold_range): Same.
4514 (operator_gt::fold_range): Same.
4515 (operator_ge::fold_range): Same.
4516 (operator_plus::wi_fold): Same.
4517 (operator_plus::op1_range): Change call to fold_range.
4518 (operator_plus::op2_range): Change call to fold_range.
4519 (operator_minus::wi_fold): Return result via reference parameter.
4520 (operator_minus::op1_range): Change call to fold_range.
4521 (operator_minus::op2_range): Change call to fold_range.
4522 (operator_min::wi_fold): Return result via reference parameter.
4523 (operator_max::wi_fold): Same.
4524 (cross_product_operator::wi_cross_product): Same.
4525 (operator_mult::wi_fold): Same.
4526 (operator_div::wi_fold): Same.
4527 (operator_div op_floor_div): Fix whitespace.
4528 (operator_exact_divide::op1_range): Change call to fold_range.
4529 (operator_lshift::fold_range): Return result via reference parameter.
4530 (operator_lshift::wi_fold): Same.
4531 (operator_rshift::fold_range): Same.
4532 (operator_rshift::wi_fold): Same.
4533 (operator_cast::fold_range): Same.
4534 (operator_cast::op1_range): Change calls to fold_range.
4535 (operator_logical_and::fold_range): Return result via reference.
4536 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4537 (operator_bitwise_and::wi_fold): Return result via reference.
4538 (operator_logical_or::fold_range): Same.
4539 (operator_bitwise_or::wi_fold): Same.
4540 (operator_bitwise_xor::wi_fold): Same.
4541 (operator_trunc_mod::wi_fold): Same.
4542 (operator_logical_not::fold_range): Same.
4543 (operator_bitwise_not::fold_range): Same.
4544 (operator_bitwise_not::op1_range): Change call to fold_range.
4545 (operator_cst::fold_range): Return result via reference.
4546 (operator_identity::fold_range): Same.
4547 (operator_abs::wi_fold): Same.
4548 (operator_absu::wi_fold): Same.
4549 (operator_negate::fold_range): Same.
4550 (operator_negate::op1_range): Change call to fold_range.
4551 (operator_addr_expr::fold_range): Return result via reference.
4552 (operator_addr_expr::op1_range): Change call to fold_range.
4553 (operator_pointer_plus::wi_fold): Return result via reference.
4554 (operator_pointer_min_max::wi_fold): Same.
4555 (operator_pointer_and::wi_fold): Same.
4556 (operator_pointer_or::wi_fold): Same.
4557 (range_op_handler): Change call to fold_range.
4558 (range_cast): Same.
4559 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4560 fold_range.
4561 (range_fold_unary_symbolics_p): Same.
4562 (range_fold_binary_expr): Same.
4563 (range_fold_unary_expr): Same.
4564
4565 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4566
4567 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4568 vector type as an argument rather than reading it from the
4569 stmt_vec_info.
4570 (vect_create_epilog_for_reduction): Update accordingly.
4571 (vectorizable_reduction): Likewise.
4572 (vect_transform_cycle_phi): Likewise.
4573
4574 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4575
4576 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4577 the comparison codes that make sense for the mode used, and only the
4578 codes that can be done with a single branch instruction.
4579
4580 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4581
4582 PR tree-optimization/92351
4583 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4584 peeling the main loop for alignment, make sure to set the misalignment
4585 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4586
4587 2019-11-08 Richard Biener <rguenther@suse.de>
4588
4589 * dbgcnt.def (ivopts_loop): Add.
4590 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4591 ivopts_loop before optimizing a loop.
4592
4593 2019-11-08 Richard Biener <rguenther@suse.de>
4594
4595 PR ipa/92409
4596 * tree-inline.c (declare_return_variable): Properly handle
4597 type mismatches for the return slot.
4598
4599 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4600
4601 PR target/92095
4602 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4603 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4604 change.
4605 (got_helper_needed): New static variable.
4606 (output_load_pcrel_sym): New function.
4607 (get_pc_thunk_name): Remove after inlining...
4608 (load_got_register): ...here. Rework the initialization of the GOT
4609 register and of the GOT helper.
4610 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4611 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4612 helper must be emitted. Use output_asm_insn instead of fprintf.
4613 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4614 if optimization is enabled.
4615 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4616 by calling output_load_pcrel_sym.
4617
4618 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4619
4620 * tree-sra.c (create_access): Delay disqualifying the base
4621 for poly_int values until we know we have a base.
4622
4623 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4624
4625 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4626 for loops with SIMDUID set. Enable epilogue vectorization for loops
4627 with SIMDLEN set after finding a main loop with a VF that matches it.
4628
4629 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4630
4631 PR target/92038
4632 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4633 value only, return non-NULL if there is a single non-clobber
4634 constituent store even if there are constituent clobbers and return
4635 one of clobber constituent stores if all constituent stores are
4636 clobbers.
4637 (split_group): Handle clobbers.
4638 (imm_store_chain_info::output_merged_store): When computing
4639 bzero_first, look after all clobbers at the start. Don't count
4640 clobber stmts in orig_num_stmts, except if the first orig store is
4641 a clobber covering the whole area and split_stores cover the whole
4642 area, consider equal number of stmts ok. Punt if split_stores
4643 contains only ->orig stores and their number plus number of original
4644 clobbers is equal to original number of stmts. For ->orig, look past
4645 clobbers in the constituent stores.
4646 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4647 stmts.
4648 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4649 rhs.
4650 (store_valid_for_store_merging_p): Allow clobber stmts.
4651 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4652
4653 PR c++/92384
4654 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4655 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4656 slot.
4657 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4658 force creation of a unique data.stack_parm slot.
4659
4660 2019-11-08 Richard Biener <rguenther@suse.de>
4661
4662 * genmatch.c (expr::gen_transform): Use the resimplify
4663 member function instead of hard-coding the gimple_resimplifyN variant.
4664 (dt_simplify::gen_1): Likewise.
4665
4666 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4667
4668 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4669 POLY_INT_CST.
4670
4671 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4672
4673 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4674 instead of INTEGER_CST.
4675
4676 2019-11-08 Richard Biener <rguenther@suse.de>
4677
4678 PR tree-optimization/92324
4679 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4680 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4681 sign-conversions as necessary.
4682 (vectorizable_reduction): Reject conversions in the chain
4683 that are not sign-conversions, base analysis on a non-converting
4684 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4685 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4686 for debug stmts.
4687 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4688 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4689
4690 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4691
4692 PR target/92055
4693 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4694 Fix a missing '-' when displaying these options in the
4695 help screen.
4696
4697 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4698
4699 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4700
4701 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4702
4703 * config/aarch64/aarch64-builtins.c
4704 (aarch64_builtin_vectorized_function): Remove bswap handling.
4705
4706 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4707
4708 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4709 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4710 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4711 Treat the vector types as indivisible.
4712
4713 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4714
4715 * optabs.def (gather_load_optab, mask_gather_load_optab)
4716 (scatter_store_optab, mask_scatter_store_optab): Turn into
4717 conversion optabs, with the offset mode given explicitly.
4718 * doc/md.texi: Update accordingly.
4719 * config/aarch64/aarch64-sve-builtins-base.cc
4720 (svld1_gather_impl::expand): Likewise.
4721 (svst1_scatter_impl::expand): Likewise.
4722 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4723 (expand_scatter_store_optab_fn): Likewise.
4724 (direct_gather_load_optab_supported_p): Likewise.
4725 (direct_scatter_store_optab_supported_p): Likewise.
4726 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4727 to be argument 4.
4728 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4729 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4730 argument with the offset vector type. Require the two vector
4731 types to have the same number of elements but allow their element
4732 sizes to be different. Treat the optabs as conversion optabs.
4733 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4734 prototype accordingly.
4735 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4736 (supports_vec_convert_optab_p): ...this new function.
4737 (supports_vec_gather_load_p): Update accordingly.
4738 (supports_vec_scatter_store_p): Likewise.
4739 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4740 Replace the offset sign and bits parameters with a scalar type tree.
4741 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4742 Pass back the offset vector type instead of the scalar element type.
4743 Allow the offset to be wider than the memory elements. Search for
4744 an offset type that the target supports, stopping once we've
4745 reached the maximum of the element size and pointer size.
4746 Update call to internal_gather_scatter_fn_supported_p.
4747 (vect_check_gather_scatter): Update calls accordingly.
4748 When testing a new scale before knowing the final offset type,
4749 check whether the scale is supported for any signed or unsigned
4750 offset type. Check whether the target supports the source and
4751 target types of a conversion before deciding whether to look
4752 through the conversion. Record the chosen offset_vectype.
4753 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4754 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4755 directly from the gs_info's offset_vectype instead. Pass a zero
4756 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4757 * tree-vect-stmts.c (check_load_store_masking): Update call to
4758 internal_gather_scatter_fn_supported_p, passing the offset vector
4759 type recorded in the gs_info.
4760 (vect_truncate_gather_scatter_offset): Update call to
4761 vect_check_gather_scatter, leaving it to search for a valid
4762 offset vector type.
4763 (vect_use_strided_gather_scatters_p): Convert the offset to the
4764 element type of the gs_info's offset_vectype.
4765 (vect_get_gather_scatter_ops): Get the offset vector type directly
4766 from the gs_info.
4767 (vect_get_strided_load_store_ops): Likewise.
4768 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4769 and IFN_MASK_GATHER_LOAD.
4770 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4771 (gather_load<mode><v_int_equiv>): ...this.
4772 (mask_gather_load<mode>): Rename to...
4773 (mask_gather_load<mode><v_int_equiv>): ...this.
4774 (scatter_store<mode>): Rename to...
4775 (scatter_store<mode><v_int_equiv>): ...this.
4776 (mask_scatter_store<mode>): Rename to...
4777 (mask_scatter_store<mode><v_int_equiv>): ...this.
4778
4779 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4780
4781 PR target/92132
4782 * config/rs6000/predicates.md
4783 (signed_or_equality_comparison_operator): New predicate.
4784 (unsigned_or_equality_comparison_operator): Likewise.
4785 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4786 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4787 * config/rs6000/vector.md
4788 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4789 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4790 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4791 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4792 vector modes and same-size integer vector modes.
4793 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4794 (vector_lt<mode> for VEC_F): New expand.
4795 (vector_le<mode> for VEC_F): Likewise.
4796 (vector_ne<mode> for VEC_F): Likewise.
4797 (vector_unge<mode> for VEC_F): Likewise.
4798 (vector_ungt<mode> for VEC_F): Likewise.
4799 (vector_unle<mode> for VEC_F): Likewise.
4800 (vector_unlt<mode> for VEC_F): Likewise.
4801 (vector_uneq<mode>): Expose name.
4802 (vector_ltgt<mode>): Likewise.
4803 (vector_unordered<mode>): Likewise.
4804 (vector_ordered<mode>): Likewise.
4805
4806 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4807
4808 PR target/92295
4809 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4810 Enhance ix86_expand_vector_init_concat.
4811
4812 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4813
4814 * doc/invoke.texi (-Wold-style-definition): Document () not being
4815 considered an old-style definition for C2x.
4816
4817 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4818
4819 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4820 Enhance comment.
4821 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4822 insn patterns using ldcw instruction.
4823 (memory_barrier): Remove insn pattern using sync instruction.
4824 * config/pa/pa.opt (coherent-ldcw): New option.
4825 (ordered): New option.
4826
4827 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4828
4829 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4830 valid conditions.
4831
4832 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4833
4834 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4835 typo - mistmatch -> mismatch.
4836 * ipa-profile.c (ipa_profile): Likewise.
4837 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4838 - mistmatch -> mismatch.
4839
4840 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4841
4842 * simplify-rtx.c (comparison_to_mask): New function.
4843 (mask_to_comparison): New function.
4844 (simplify_logical_relational_operation): New function.
4845 (simplify_binary_operation_1): Call
4846 simplify_logical_relational_operation.
4847
4848 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4849
4850 PR other/92090
4851 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4852 modes for integer constants.
4853
4854 2019-11-07 Jan Hubicka <jh@suse.cz>
4855
4856 PR ipa/92406
4857 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4858 summary.
4859
4860 2019-11-07 Jan Hubicka <jh@suse.cz>
4861
4862 * optc-save-gen.awk: Generate cl_target_option_free
4863 and cl_optimization_option_free.
4864 * opth-en.awk: Declare cl_target_option_free
4865 and cl_optimization_option_free.
4866 * tree.c (free_node): Use it.
4867
4868 2019-11-06 Jan Hubicka <jh@suse.cz>
4869
4870 * lto-streamer-in.c: Include alloc-pool.h.
4871 (freeing_string_slot_hasher): Remove.
4872 (string_slot_allocator): New object allocator.
4873 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4874 (file_name_obstack): New obstack.
4875 (canon_file_name): Allocate in obstack and allocator.
4876 (lto_reader_init): Initialize obstack and allocator.
4877 (lto_free_file_name_hash): New function.
4878 * lto-streamer.h (lto_free_file_name_hash): New.
4879
4880 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4881
4882 PR tree-optimization/89134
4883 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4884 * params.def: Add min-loop-cond-split-prob.
4885 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4886 outside checks on loop into the function.
4887 (split_info): New class.
4888 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4889 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4890 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4891 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4892 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4893 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4894 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4895 (split_loop_on_cond): Likewise.
4896 (tree_ssa_split_loops): Add loop split on conditional statement.
4897
4898 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4899
4900 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4901 pattern.
4902
4903 2019-11-07 Richard Biener <rguenther@suse.de>
4904
4905 PR tree-optimization/92405
4906 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4907 restrict lane-reducing ops to single stmt chains.
4908
4909 2019-11-07 Martin Jambor <mjambor@suse.cz>
4910
4911 PR lto/70929
4912 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4913 * cgraph.h (gimple_check_call_matching_types): Remove
4914 * cgraph.c (gimple_check_call_args): Likewise.
4915 (gimple_check_call_matching_types): Likewise.
4916 (symbol_table::create_edge): Do not call
4917 gimple_check_call_matching_types.
4918 (cgraph_edge::make_direct): Likewise.
4919 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4920 * value-prof.h (check_ic_target): Remove.
4921 * value-prof.c (check_ic_target): Remove.
4922 (gimple_ic_transform): Do nat call check_ic_target.
4923 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4924 (afdo_indirect_call): Likewise.
4925 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4926 gimple_check_call_matching_types.
4927 * ipa-inline.c (early_inliner): Likewise.
4928
4929 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4930
4931 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4932 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4933 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4934 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4935 * config/arm/iterators.md (USSAT16): New int_iterator.
4936 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4937 (sup): Likewise.
4938 * config/arm/predicates.md (ssat16_imm): New predicate.
4939 (usat16_imm): Likewise.
4940 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4941
4942 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4943
4944 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4945 New define_insns.
4946 (arm_<simd32_op>): New define_expands.
4947 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4948 __smuad, __smuadx): Define.
4949 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4950 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4951 (SIMD32_BINOP_Q): Likewise.
4952 (simd32_op): Handle the above.
4953 * config/arm/unspecs.md: Define unspecs for the above.
4954
4955 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4956
4957 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4958 * config/arm/arm.md (APSRGE_REGNUM): Define.
4959 (arm_<simd32_op>): New define_insn.
4960 (arm_sel): Likewise.
4961 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4962 (CALL_USED_REGISTERS): Likewise.
4963 (REG_ALLOC_ORDER): Likewise.
4964 (FIRST_PSEUDO_REGISTER): Update value.
4965 (ARM_GE_BITS_READ): Define.
4966 * config/arm/arm.c (arm_conditional_register_usage): Clear
4967 APSRGE_REGNUM from operand_reg_set.
4968 (arm_ge_bits_access): Define.
4969 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4970 ARM_BUIILTIN_sel.
4971 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4972 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4973 FAIL if ARM_GE_BITS_READ.
4974 (*arm_add<mode>3): New define_insn.
4975 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4976 (*arm_sub<mode>3): New define_insn.
4977 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4978 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4979 __usub16): Define.
4980 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4981 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4982 (simd32_op): Handle the above.
4983 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4984 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4985 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4986 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4987
4988 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4989
4990 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4991 (arm_smlabb): New define_expand.
4992 (*maddhisi4tb): Rename to...
4993 (maddhisi4tb): ... This.
4994 (*maddhisi4tt): Rename to...
4995 (maddhisi4tt): ... This.
4996 (arm_smlatb_setq): New define_insn.
4997 (arm_smlatb): New define_expand.
4998 (arm_smlatt_setq): New define_insn.
4999 (arm_smlatt): New define_expand.
5000 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5001 (arm_<smlaw_op>): New define_expand.
5002 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5003 __smlawb, __smlawt): Define.
5004 * config/arm_acle_builtins.def: Define builtins for the above.
5005 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5006 (slaw_op): New int_attribute.
5007 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5008
5009 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5010
5011 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5012 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5013 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5014 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5015 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5016 (ss_op): New code_attr.
5017
5018 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5019
5020 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5021 * config/arm/arm.md (APSRQ_REGNUM): Define.
5022 (add_setq): New define_subst.
5023 (add_clobber_q_name): New define_subst_attr.
5024 (add_clobber_q_pred): Likewise.
5025 (maddhisi4): Change to define_expand. Split into mult and add if
5026 ARM_Q_BIT_READ.
5027 (arm_maddhisi4): New define_insn.
5028 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5029 (*maddhisi4tt): Likewise.
5030 (arm_ssat): New define_expand.
5031 (arm_usat): Likewise.
5032 (arm_get_apsr): New define_insn.
5033 (arm_set_apsr): Likewise.
5034 (arm_saturation_occurred): New define_expand.
5035 (arm_set_saturation): Likewise.
5036 (*satsi_<SAT:code>): Rename to...
5037 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5038 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5039 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5040 (CALL_USED_REGISTERS): Mark apsrq.
5041 (FIRST_PSEUDO_REGISTER): Update value.
5042 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5043 (machine_function): Add q_bit_access.
5044 (ARM_Q_BIT_READ): Define.
5045 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5046 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5047 operand_reg_set.
5048 (arm_q_bit_access): Define.
5049 * config/arm/arm-builtins.c: Include stringpool.h.
5050 (arm_sat_binop_imm_qualifiers,
5051 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5052 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5053 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5054 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5055 SET_SAT_QUALIFIERS): Likewise.
5056 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5057 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5058 Handle 0 argument expander.
5059 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5060 (arm_check_builtin_call): Define.
5061 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5062 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5063 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5064 (arm_q_bit_access): Likewise.
5065 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5066 __saturation_occurred, __set_saturation_occurred): Define.
5067 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5068 saturation_occurred, set_saturation_occurred.
5069 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5070 (UNSPEC_APSR_READ): Likewise.
5071 (VUNSPEC_APSR_WRITE): Likewise.
5072 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5073 (*arm_ssadd<mode>3): New define_insn.
5074 (sssub<mode>3): Convert to define_expand.
5075 (*arm_sssub<mode>3): New define_insn.
5076 (ssmulsa3): Convert to define_expand.
5077 (*arm_ssmulsa3): New define_insn.
5078 (usmulusa3): Convert to define_expand.
5079 (*arm_usmulusa3): New define_insn.
5080 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5081 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5082 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5083
5084 2019-11-07 Martin Liska <mliska@suse.cz>
5085
5086 PR c++/92354
5087 * cgraph.c (delete_function_version): Clear global
5088 variable version_info_node if equal to deleted
5089 function.
5090
5091 2019-11-07 Martin Liska <mliska@suse.cz>
5092
5093 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5094 of CONSTRUCTOR_NO_CLEARING.
5095 (operand_compare::hash_operand): Likewise.
5096
5097 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5098
5099 Support 64-bit double and 64-bit long double configurations.
5100
5101 PR target/92055
5102 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5103 --with-long-double=.
5104 * config/avr/t-multilib: Remove.
5105 * config/avr/t-avr: Output of genmultilib.awk is now fully
5106 dynamically generated and no more part of the repo.
5107 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5108 Pass them down to...
5109 * config/avr/genmultilib.awk: ...here and handle them.
5110 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5111 (-mlong-double=, avr_long_double). New option and var.
5112 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5113 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5114 Set default as requested by --with-double=
5115 (TARGET_HANDLE_OPTION): Define to this...
5116 (avr_handle_option): ...new hook worker.
5117 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5118 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5119 (avr_double_lib): New proto for spec function.
5120 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5121 (DRIVER_SELF_SPECS): Call %:double-lib.
5122 * config/avr/avr.c (avr_option_override): Assert
5123 sizeof(long double) >= sizeof(double) for the target.
5124 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5125 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5126 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5127 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5128 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5129 New built-in define depending on --with-double=, --with-long-double=.
5130 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5131 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5132 * doc/install.texi (Cross-Compiler-Specific Options)
5133 <--with-double=, --with-long-double=>: Doc.
5134
5135 2019-11-07 Richard Biener <rguenther@suse.de>
5136
5137 * dbgcnt.def (gimple_unroll): New.
5138 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5139 gimple_unroll debug counter before applying transform.
5140 (try_peel_loop): Likewise.
5141
5142 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5143
5144 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5145 frame pointer in multiple registers.
5146 (ira_setup_eliminable_regset): Setup eliminable_regset,
5147 ira_no_alloc_regs and regs_ever_live for frame pointer in
5148 multiple registers.
5149
5150 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5151
5152 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5153 V2DI modes.
5154
5155 2019-11-06 Jan Hubicka <jh@suse.cz>
5156
5157 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5158 allocations.
5159 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5160 Do not silently ignore summary corruptions.
5161
5162 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5163
5164 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5165 the epilogue if there are peeled iterations for it to handle.
5166
5167 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5168
5169 * config/arc/arc.c (arc_split_ior): Add asserts.
5170 (arc_split_mov_const): Likewise.
5171 (arc_check_ior_const): Do not match known short immediate values.
5172 * config/arc/arc.md (movsi): Don't split predicated instructions
5173 (iorsi): Likewise.
5174
5175 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5176
5177 * config/arc/arc.opt (mea): Update help string.
5178 * doc/invoke.texi(ARC): Update mea option info.
5179
5180 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5181
5182 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5183 (zero_extendqisi2_ac): Likewise.
5184 (zero_extendhisi2_i): Likewise.
5185 (extendqihi2_i): Likewise.
5186 (extendqisi2_ac): Likewise.
5187 (extendhisi2_i): Likewise.
5188
5189 2019-11-06 Richard Biener <rguenther@suse.de>
5190
5191 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5192 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5193 Simplify single_defuse_cycle condition.
5194
5195 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5196
5197 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5198 epilogue loop, make sure that the VF is small enough or that
5199 the epilogue loop can be fully-masked.
5200
5201 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5202
5203 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5204 loop when we've finished, rather than returning directly from
5205 the loop. Use a local variable to track whether we're still
5206 searching for the preferred simdlen. Make vect_epilogues
5207 record whether the next iteration should try to treat the
5208 loop as an epilogue.
5209
5210 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5211
5212 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5213 __arc_hard_float__, __ARC_HARD_FLOAT__,
5214 __arc_soft_float__, __ARC_SOFT_FLOAT__
5215
5216 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5217
5218 PR tree-optimization/92317
5219 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5220 update phi's with constant phi arguments.
5221
5222 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5223 Alexandre Oliva <oliva@adacore.com>
5224
5225 * common.opt (-fcallgraph-info[=]): New option.
5226 * doc/invoke.texi (Developer options): Document it.
5227 * opts.c (common_handle_option): Handle it.
5228 * builtins.c (expand_builtin_alloca): Record allocation if
5229 -fcallgraph-info=da.
5230 * calls.c (expand_call): If -fcallgraph-info, record the call.
5231 (emit_library_call_value_1): Likewise.
5232 * flag-types.h (enum callgraph_info_type): New type.
5233 * explow.c: Include stringpool.h.
5234 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5235 * function.c (allocate_stack_usage_info): New.
5236 (allocate_struct_function): Call it for -fcallgraph-info.
5237 (prepare_function_start): Call it otherwise.
5238 (record_final_call, record_dynamic_alloc): New.
5239 * function.h (struct callinfo_callee): New.
5240 (CALLEE_FROM_CGRAPH_P): New.
5241 (struct callinfo_dalloc): New.
5242 (struct stack_usage): Add callees and dallocs.
5243 (record_final_call, record_dynamic_alloc): Declare.
5244 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5245 object if -fcallgraph-info=da.
5246 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5247 * print-tree.h (print_decl_identifier): Declare.
5248 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5249 * print-tree.c: Include print-tree.h.
5250 (print_decl_identifier): New function.
5251 * toplev.c: Include print-tree.h.
5252 (callgraph_info_file): New global variable.
5253 (callgraph_info_external_printed): Likewise.
5254 (output_stack_usage): Rename to...
5255 (output_stack_usage_1): ... this. Make it static, add cf
5256 parameter. If -fcallgraph-info=su, print stack usage to cf.
5257 If -fstack-usage, use print_decl_identifier for
5258 pretty-printing.
5259 (INDIRECT_CALL_NAME): New.
5260 (dump_final_node_vcg_start): New.
5261 (dump_final_callee_vcg, dump_final_node_vcg): New.
5262 (output_stack_usage): New.
5263 (lang_dependent_init): Open and start file if
5264 -fcallgraph-info. Allocated callgraph_info_external_printed.
5265 (finalize): If callgraph_info_file is not null, finish it,
5266 close it, and release callgraph_info_external_printed.
5267
5268 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5269 Frederik Harwath <frederik@codesourcery.com>
5270 Thomas Schwinge <thomas@codesourcery.com>
5271
5272 * omp-low.c (struct omp_context): New fields
5273 local_reduction_clauses, outer_reduction_clauses.
5274 (new_omp_context): Initialize these.
5275 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5276 (scan_omp_for): Check reduction clauses for incorrect nesting.
5277
5278 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5279
5280 PR inline-asm/92352
5281 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5282 operands with non-memory constraints.
5283
5284 2019-11-05 Martin Sebor <msebor@redhat.com>
5285
5286 PR tree-optimization/92373
5287 * tree.c (component_ref_size): Only consider initializers of objects
5288 of matching struct types.
5289 Return null for instances of interior zero-length arrays.
5290
5291 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5292
5293 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5294
5295 2019-11-05 Jason Merrill <jason@redhat.com>
5296
5297 PR tree-optimization/91825
5298 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5299
5300 2019-11-05 Jim Wilson <jimw@sifive.com>
5301
5302 PR middle-end/92263
5303 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5304 optimize_insn_for_speed_p is true.
5305
5306 2019-11-05 Martin Sebor <msebor@redhat.com>
5307
5308 PR middle-end/92333
5309 PR middle-end/82608
5310 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5311 size.
5312 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5313 name and location for a temporary variable.
5314
5315 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5316
5317 * tree-vrp.c (value_range::value_range): Fix whitespace.
5318 (defined_ranges_p): Same.
5319 (range_fold_binary_symbolics_p): Same.
5320 (value_range::intersect_helper): Same.
5321 (value_range::union_helper): Same.
5322 * tree-vrp.h (range_fold_binary_expr): Same.
5323
5324 2019-11-04 Martin Sebor <msebor@redhat.com>
5325
5326 PR middle-end/92341
5327 PR middle-end/82612
5328 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5329 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5330 of message printed in a warning for empty arrays.
5331 (vrp_prop::check_mem_ref): Also handle function parameters and
5332 empty arrays.
5333
5334 2019-11-05 Richard Biener <rguenther@suse.de>
5335
5336 PR tree-optimization/92371
5337 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5338 on the original stmt of live stmts in the chain.
5339 (vectorizable_live_operation): Look at the original stmt when
5340 checking STMT_VINFO_REDUC_DEF.
5341
5342 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5343
5344 * gimple-fold.c, gimple-loop-versioning.cc,
5345 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5346 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5347 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5348 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5349 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5350 value_range_equiv, and value_range_base to value_range.
5351
5352 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5353
5354 * expr.c (build_personality_function): Fix generated type to
5355 match actual personality functions.
5356
5357 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5358
5359 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5360 enough bytes for the NULL character.
5361
5362 2019-11-05 Richard Biener <rguenther@suse.de>
5363
5364 PR tree-optimization/92280
5365 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5366 had a single use do not create a new CTOR.
5367 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5368 BIT_FIELD_REF of a CTOR via GENERIC.
5369
5370 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5371
5372 * config/s390/s390.c (s390_vector_alignment): Check if the value
5373 fits into uhwi before using it.
5374
5375 2019-11-05 Martin Liska <mliska@suse.cz>
5376
5377 * symbol-summary.h: Use ggc_delete.
5378
5379 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5380
5381 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5382 Change vec_perm field to 10.
5383
5384 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5385
5386 * doc/install.texi: Further fix syntax for html generation.
5387
5388 2019-11-05 Martin Liska <mliska@suse.cz>
5389
5390 * symbol-summary.h: Rename allocator to m_allocator and
5391 add comment.
5392
5393 2019-11-05 Richard Biener <rguenther@suse.de>
5394
5395 PR tree-optimization/92324
5396 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5397 all signed or unsigned operations.
5398
5399 2019-11-05 Jan Hubicka <jh@suse.cz>
5400
5401 * hsa-brig.c: Include alloc-pool.h
5402 * hsa-dump.c: Likewise.
5403 * hsa-gen.c: Likewise.
5404 * hse-regalloc.c: Likewise.
5405 * ipa-hsa.c: Likewise.
5406 * ipa-predicate.c: Likewise.
5407 * ipa-reference.c: Likewise.
5408 * ipa-sra.c: Likewise.
5409 * omp-expand.c: Likewise.
5410 * omp-general.c: Likewise.
5411 * omp-low.c: Likewise.
5412 * sumbol-summary.h (function_summary_base): Add allocator.
5413 (function_summary<T *>::function_summary): Update construction.
5414 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5415 (call_summary_base): Add allcator.
5416 (call_summary<T *>::call_summary): Update construction.
5417 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5418
5419 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5420
5421 PR tree-optimization/91945
5422 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5423 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5424 Formatting fix.
5425
5426 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5427
5428 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5429 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5430 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5431 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5432 (vrp_set_zero_nonzero_bits): Move to...
5433 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5434 (vr_values::simplify_bit_ops_using_ranges): Rename
5435 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5436
5437 2019-11-05 Martin Liska <mliska@suse.cz>
5438
5439 PR c++/92339
5440 * fold-const.c (operand_compare::hash_operand): Remove
5441 FIELD_DECL handling.
5442
5443 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5444
5445 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5446 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5447 static.
5448
5449 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5450
5451 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5452 properly handle symbolics.
5453 (range_compatible_p): Remove.
5454
5455 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5456
5457 * common.opt (-fabi-version): Document =14.
5458 * doc/invoke.texi (C++ Dialect Options): Likewise.
5459
5460 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5461
5462 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5463
5464 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5465
5466 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5467 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5468 gcn_omp_device_kind_arch_isa.
5469 * config/gcn/t-omp-device: New file.
5470 * configure.ac: Support gcn for omp_device_property.
5471 * configure: Regenerate.
5472
5473 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5474
5475 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5476 (vrp_val_max): Same.
5477 (vrp_val_is_min): Same.
5478 (vrp_val_is_max): Same.
5479 (value_range_base::nonzero_p): Remove last argument to
5480 vrp_val_is_max.
5481 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5482 (vrp_val_max): Same.
5483 (vrp_val_is_min): Same.
5484 (vrp_val_is_max): Same.
5485 (value_range_base::set_varying): Remove last argument to vrp_val*.
5486 (value_range_base::dump): Same.
5487 (value_range_base::set): Same.
5488 (value_range_base::normalize_symbolics): Same.
5489 (value_range_base::num_pairs): Same.
5490 (value_range_base::lower_bound): Same.
5491 (value_range_base::upper_bound): Same.
5492 (ranges_from_anti_range): Remove handle_pointers argument.
5493 (value_range_base::singleton_p): Remove last argument to
5494 ranges_from_anti_range.
5495
5496 2019-11-04 Jan Hubicka <jh@suse.cz>
5497
5498 * ipa-reference.c (init_function_info): Initialize
5499 info->global.statics_read.
5500
5501 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5502
5503 * tree-vrp.c (value_range_base::invert): Use constructors to build
5504 range.
5505
5506 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5507
5508 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5509 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5510
5511 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5512
5513 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5514 VR_UNDEFINED.
5515
5516 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5517
5518 * tree-vrp.c (dump_assert_info): New.
5519 (dump_asserts_info): New.
5520
5521 2019-11-04 Jan Hubicka <jh@suse.cz>
5522
5523 * ipa-inline-transform.c: Include ipa-utils.h
5524 (inline_call): Set thunk_expansion flag.
5525 * ipa-utils.h (thunk_expansion): Declare.
5526 * ipa-devirt.c (thunk_expansion): New global var.
5527 (devirt_node_removal_hook): Do not invalidate cache while
5528 doing thunk expansion.
5529
5530 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5531
5532 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5533
5534 2019-11-04 Martin Sebor <msebor@redhat.com>
5535
5536 PR tree-optimization/92349
5537 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5538 memebers have constant sizes.
5539
5540 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5541
5542 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5543 parameter.
5544 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5545 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5546 vect_analyze_loop.
5547
5548 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5549
5550 * expr.c (store_constructor): Modify to handle single element vectors.
5551 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5552 constructors.
5553 (vect_slp_check_for_constructors): New function.
5554 (vect_slp_analyze_bb_1): Call new function to check for vector
5555 constructors.
5556 (vectorize_slp_instance_root_stmt): New function.
5557 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5558 constructors.
5559 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5560
5561 2019-11-04 Richard Biener <rguenther@suse.de>
5562
5563 PR tree-optimization/92345
5564 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5565 we produced a reduction chain.
5566 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5567 LOOP_VINFO_REDUCTIONS.
5568
5569 2019-11-04 Jan Hubicka <jh@suse.cz>
5570
5571 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5572 duplicate summaries.
5573 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5574 first.
5575 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5576 access call summaries.
5577 (dump_ipa_call_summary): Be ready for missing edge summaries.
5578 (analyze_function_body): Use get instead of get_create to access
5579 edge summary.
5580 (estimate_calls_size_and_time): Do not access summaries of
5581 inlined edges; sanity check they are missing.
5582 (ipa_call_context::estimate_size_and_time): Use get instead
5583 of get_create to access node summary.
5584 (inline_update_callee_summaries): Do not update depth of
5585 inlined edge.
5586 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5587 growth caches.
5588 (ipa_merge_fn_summary_after_inlining): Use get instead
5589 of get_create.
5590 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5591 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5592 fast summary.
5593 (initialize_growth_caches): Update.
5594 (do_estimate_edge_time): Remove redundant copy of context.
5595 (ipa_remove_from_growth_caches): New function.
5596 * ipa-inline.c (flatten_function): Update overall summary
5597 only when optimizing.
5598 (inline_to_all_callers): Update overall summary of function
5599 inlined to.
5600 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5601 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5602 to false.
5603
5604 2019-11-04 Richard Biener <rguenther@suse.de>
5605
5606 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5607 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5608
5609 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5610
5611 * ggc-common.c: Include system.h before malloc.h.
5612
5613 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5614
5615 * configure.ac: Pass --enable-obsolete=* and
5616 --enable-option-checking=* down to build configure, and fail
5617 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5618 * configure: Rebuild.
5619 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5620 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5621
5622 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5623
5624 * config.in: Regenerate.
5625 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5626 -mtiny-printf is used without GCC being configured with
5627 --enable-newlib-nano-formatted-io.
5628 * config/msp430/msp430.h (LINK_SPEC): Pass
5629 "--wrap puts --wrap printf" when -mtiny-printf is used.
5630 * config/msp430/msp430.opt: Document -mtiny-printf.
5631 * configure: Regenerate.
5632 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5633 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5634 --enable-newlib-nano-formatted-io is passed.
5635 * doc/invoke.texi: Document -mtiny-printf.
5636
5637 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5638
5639 * configure: Regenerate.
5640
5641 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5642
5643 * config/msp430/driver-msp430.c
5644 (msp430_get_linker_devices_include_path): New spec function.
5645 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5646 (extract_devices_dir_from_exec_prefix): New function.
5647 (extract_devices_dir_from_collect_gcc): New function.
5648 (msp430_check_env_var_for_devices): New function.
5649 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5650 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5651 devices.csv was not found using other methods.
5652 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5653 New prototype.
5654 (msp430_dirname): Likewise.
5655 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5656 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5657 msp430_get_linker_devices_include_path.
5658 (TARGET_EXTRA_PRE_INCLUDES): Define.
5659 * doc/invoke.texi: Document new ways of searching for support files.
5660
5661 2019-11-04 Richard Biener <rguenther@suse.de>
5662
5663 PR tree-optimization/92301
5664 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5665 as required by epilogue generation
5666
5667 2019-11-04 Martin Liska <mliska@suse.cz>
5668
5669 PR ipa/92304
5670 * fold-const.c (operand_compare::hash_operand): Fix field
5671 hashing of CONSTRUCTOR.
5672
5673 2019-11-04 Martin Liska <mliska@suse.cz>
5674
5675 * ggc.h (ggc_delete): New function.
5676 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5677 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5678 (ipa_free_all_node_params): Likewise.
5679 * ipa-sra.c (ipa_sra_analysis): Likewise.
5680
5681 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5682
5683 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5684 set_switch_stmt_execution_predicate, compute_bb_predicates,
5685 will_be_nonconstant_expr_predicate,
5686 phi_result_unknown_predicate,
5687 analyze_function_body): Pass arround params summary.
5688 (ipa_call_context::duplicate_from): New comment;
5689 only duplicate useful values.
5690 (ipa_call_context::equal_to): Only compare useful values.
5691 (remap_edge_summaries): Pass params_summary.
5692 (remap_hint_predicate): Likewise.
5693 (ipa_merge_fn_summary_after_inlining): Likewise.
5694 (inline_read_section): Initialize params summary used flags.
5695 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5696 around param_summary.
5697 (add_condition): Initialized used params summary flags.
5698 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5699 (inline_param_summary::useless_p): New predicate.
5700 (remap_after_inlining, add_condition): Update prototype
5701 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5702 move_cost.
5703 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5704 summaries.
5705 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5706 (ipa_analyze_virtual_call_uses): Likewise.
5707 (update_indirect_edges_after_inlining): Update param summaries.
5708 (ipa_print_node_params): Print used flags.
5709 (ipa_read_indirect_edge_info): Update param summareis.
5710 * ipa-prop.h (ipa_param_descriptor): Add
5711 used_by_ipa_predicates, used_by_indirect_call
5712 and used_by_polymorphic_call.
5713 (ipa_set_param_used_by_ipa_predicates,
5714 ipa_set_param_used_by_indirect_call,
5715 ipa_set_param_used_by_polymorphic_call,
5716 ipa_is_param_used_by_ipa_predicates,
5717 ipa_is_param_used_by_indirect_call,
5718 ipa_is_param_used_by_polymorphic_call): New inline functions.
5719
5720 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5721
5722 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5723 member function.
5724 (ipa_call_context::release): Add ALL parameter.
5725 (ipa_call_context::equal_to): New member function.
5726 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5727 duplicate_form, release, equal_to and exists_p member functoins.
5728 * ipa-inline-analysis.c (node_context_cache_entry): New
5729 class.
5730 (node_context_summary): Likewise.
5731 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5732 node_context_clear): New static vars.
5733 (initialize_growth_caches): New function.
5734 (free_growth_caches): Also delete node_context_cache; output stats.
5735 (do_estimate_edge_time): Cache contexts.
5736 (reset_node_cache): New function.
5737 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5738 (inline_small_functions): Initialize growth caches.
5739 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5740 Declare.
5741 * ipa-predicate.h (inline_param_summary::equal_to): New.
5742 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5743 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5744 (ipa_agg_jump_function): Implement equal_to member function.
5745
5746 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5747
5748 * ipa-fnsummary.c (inline_read_section): Set vector size
5749 ahead of time.
5750
5751 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5752
5753 * ipa-fnsummary.c (ipa_call_context): New constructor.
5754 (estimate_node_size_and_time): Turn to ...
5755 (ipa_call_context::estimate_size_and_time): ... this one.
5756 (ipa_call_context::release): New.
5757 * ipa-fnsummary.h (ipa_call_context): New class.
5758 (estimate_node_size_and_time): Remove.
5759 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5760 do_estimate_edge_hints): Update.
5761
5762 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5763
5764 * config.in: Regenerate.
5765 * configure: Regenerate.
5766 * configure.ac: Check for mallinfo.
5767 * ggc-common.c: Include malloc.h if available;
5768 include options.h
5769 (report_heap_memory_use): New functoin.
5770 * ggc-page.c (ggc_grow): Do not print "start".
5771 * ggc.h (report_heap_memory_use): Declare.
5772 * pases.c (execute_one_pass): Report memory after IPA passes.
5773 (ipa_read_summaries_1): Likewise.
5774 (ipa_read_optimization_summaries_1): Likewise.
5775
5776 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5777
5778 * gimplify.h (omp_construct_selector_matches): Change return
5779 type to int, add a new SCORES argument.
5780 * gimplify.c (omp_construct_selector_matches): Likewise. If
5781 SCORES is non-NULL, compute scores of each construct.
5782 * omp-general.h (omp_get_context_selector): Declare.
5783 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5784 Adjust omp_construct_selector_matches callers.
5785 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5786 (omp_context_compute_score): New function.
5787 (omp_resolve_declare_variant): Compute scores and decide based on
5788 that.
5789
5790 PR bootstrap/92314
5791 * configure.ac: Don't look for omp-device-properties files from
5792 installed offloading compilers. Instead add tmake_file snippets
5793 for configured offloading targets and use files they generate.
5794 * Makefile.in (install): Don't depend on
5795 install-omp-device-properties.
5796 (install-omp-device-properties): Remove goal.
5797 * config/i386/t-omp-device: New file.
5798 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5799 * config/nvptx/t-omp-device: New file.
5800 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5801 * configure: Regenerated.
5802
5803 * omp-general.h (omp_context_selector_set_compare): Declare.
5804 * omp-general.c (omp_construct_simd_compare,
5805 omp_context_selector_props_compare, omp_context_selector_set_compare,
5806 omp_context_selector_compare): New functions.
5807 (omp_resolve_declare_variant): Prune variants that are strict subset
5808 of another variant.
5809
5810 2019-11-01 Martin Sebor <msebor@redhat.com>
5811
5812 PR middle-end/91679
5813 PR middle-end/91647
5814 PR middle-end/91463
5815 PR middle-end/92312
5816 * doc/invoke.texi (-Wzero-length-bounds): Document.
5817 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5818 instead of a hand-rolled loop to avoid PR 92323.
5819 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5820 with initializers.
5821 (vrp_prop::check_mem_ref): Handle declared struct objects.
5822 * tree.c (last_field): New function.
5823 (array_at_struct_end_p): Handle MEM_REF.
5824 (get_initializer_for): New helper.
5825 (component_ref_size): Add argument. Rename locals. Call
5826 get_initializer_for instead of fold_ctor_reference. Correct handling
5827 of flexible array members.
5828 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5829
5830 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5831
5832 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5833 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5834 UNSPEC_VSX_CVSPUXDS): Remove.
5835 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5836 (vsx_xvcvspdp_be): ... this. New. And...
5837 (vsx_xvcvspdp_le): ... this. New.
5838 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5839 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5840 (vsx_xvcv<su>xwdp_le): ... this. New.
5841 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5842 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5843 (vsx_xvcvsp<su>xds_le): ... this. New.
5844
5845 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5846
5847 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5848 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5849 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5850 UNSPEC_VSX_XVCVSPSXWS): Remove.
5851 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5852 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5853
5854 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5855
5856 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5857 (UNSPEC_VSX_XVCDPSP): Remove.
5858 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5859 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5860
5861 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5862
5863 * hooks.c (hook_tree_tree_bool_null): New.
5864 * hooks.h (hook_tree_tree_bool_null): Declare.
5865 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5866 (LANG_HOOKS_DECLS): Add it.
5867 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5868 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5869 (lower_omp_target): Handle Fortran array with descriptor in
5870 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5871
5872 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5873
5874 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5875 Assert that the type we store in abi_vector_types is its own
5876 main variant.
5877 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5878
5879 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5880
5881 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5882 from a CONST_INT address when TARGET_THUMB2.
5883
5884 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5885
5886 * config/arm/arm.md (add_not_cin): New insn.
5887 (add_not_shift_cin): Likewise.
5888
5889 2019-10-31 Martin Liska <mliska@suse.cz>
5890
5891 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5892 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5893 and compare_memory_operand.
5894
5895 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5896
5897 * configure.ac: Compute and substitute omp_device_properties and
5898 omp_device_property_deps.
5899 * Makefile.in (generated_files): Add omp-device-properties.h.
5900 (omp-general.o): Depend on omp-device-properties.h.
5901 (omp_device_properties): New make variable.
5902 (omp-device-properties.h, s-omp-device-properties-h,
5903 install-omp-device-properties): New goals.
5904 (install): Depend on install-omp-device-properties for accelerators.
5905 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5906 * target.h (enum omp_device_kind_arch_isa): New enum.
5907 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5908 documentation.
5909 * omp-general.c: Include omp-device-properties.h.
5910 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5911 colon instead of comma.
5912 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5913 functions.
5914 (omp_context_selector_matches): Implement device set arch/isa
5915 selectors, improve device set kind selector handling.
5916 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5917 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5918 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5919 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5920 ix86_omp_device_kind_arch_isa.
5921 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5922 definition from ix86_target_string to file scope.
5923 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5924 to file scope.
5925 (ix86_omp_device_kind_arch_isa): New function.
5926 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5927 isa_opts definitions to file scope.
5928 * config/i386/t-intelmic (omp-device-properties): New goal.
5929 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5930 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5931 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5932 nvptx_omp_device_kind_arch_isa.
5933 * configure: Regenerate.
5934 * doc/tm.texi: Regenerate.
5935
5936 PR middle-end/92231
5937 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5938 DECL_BUILT_IN in comment. Remove redundant ()s around return
5939 argument.
5940 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5941 before calling fndecl_built_in_p.
5942 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5943 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5944 fndecl_built_in_p on it.
5945
5946 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5947
5948 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5949
5950 2019-10-31 Martin Liska <mliska@suse.cz>
5951
5952 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5953 of cgraph_local_info and use local_info_node instead.
5954 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5955 (bfin_function_ok_for_sibcall): Likewise.
5956 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5957 (must_reload_pic_reg_p): Likewise.
5958
5959 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5960
5961 PR c++/90947
5962 * tree.h (type_initializer_zero_p): Remove.
5963 * tree.c (type_initializer_zero_p): Remove.
5964
5965 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5966
5967 * doc/invoke.texi (-Wshadow, -Wshadow=global
5968 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5969
5970 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5971
5972 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5973 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5974 and 'target exit data'.
5975
5976 2019-10-30 Martin Jambor <mjambor@suse.cz>
5977
5978 ipa/92278
5979 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5980 availability comparison.
5981
5982 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5983
5984 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5985 calls to __mspabi_mpy* functions.
5986 * config/msp430/msp430.md (mulhisi3): New define_expand.
5987 (umulhisi3): New define_expand.
5988 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5989 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5990
5991 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5992
5993 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5994 (msp430_check_plus_not_high_mem): New.
5995 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5996 might be in low memory.
5997 Indicate that a 16-bit absolute address is in lower memory.
5998
5999 2019-10-30 Martin Jambor <mjambor@suse.cz>
6000
6001 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6002 ultimate_alias_target.
6003
6004 2019-10-30 Richard Biener <rguenther@suse.de>
6005
6006 PR tree-optimization/92275
6007 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6008 Copy all loop-closed PHIs.
6009
6010 2019-10-30 Martin Liska <mliska@suse.cz>
6011
6012 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6013 const_tree as function argument.
6014 (func_checker::compare_decl): Likewise.
6015 (func_checker::operand_equal_p): Likewise.
6016 (func_checker::compare_variable_decl): Likewise.
6017 (func_checker::parse_labels): Likewise.
6018 * ipa-icf-gimple.h: Likewise.
6019
6020 2019-10-30 Martin Liska <mliska@suse.cz>
6021
6022 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6023 Do not compare alias sets. It's handled by operand_equal_p.
6024
6025 2019-10-30 Martin Liska <mliska@suse.cz>
6026
6027 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6028 initialize m_compare_polymorphic.
6029 (func_checker::compare_decl): Do not compare polymorphic types.
6030 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6031 * ipa-icf.c (sem_function::equals_private): Do not call
6032 compare_polymorphic_p.
6033
6034 2019-10-30 Martin Liska <mliska@suse.cz>
6035
6036 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6037 compare_operand.
6038 (func_checker::compare_memory_operand): Remove.
6039 (func_checker::compare_cst_or_decl): Remove.
6040 (func_checker::operand_equal_valueize): Do not handle
6041 FIELD_DECL.
6042 (func_checker::compare_gimple_call): Call compare_operand.
6043 (func_checker::compare_gimple_assign): Likewise.
6044 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6045 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6046 * ipa-icf.h (icf_handled_component_p): Remove.
6047
6048 2019-10-30 Martin Liska <mliska@suse.cz>
6049
6050 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6051 (func_checker::compare_cst_or_decl): Remove handling
6052 of FIELD_DECL.
6053 (func_checker::compare_operand): Transform to ...
6054 (func_checker::operand_equal_p): ... this.
6055 * ipa-icf-gimple.h (class func_checker): Add
6056 operand_equal_p and hash_operand.
6057 * ipa-icf.c (sem_function::equals_private): Fix
6058 pushing and popping of cfun.
6059
6060 2019-10-30 Martin Liska <mliska@suse.cz>
6061
6062 * fold-const.c (operand_equal_p): Move to ...
6063 (operand_compare::operand_equal_p): ... here.
6064 (operand_compare::verify_hash_value): New.
6065 (add_expr): Move to ...
6066 (operand_compare::hash_operand): ... here.
6067 * fold-const.h (operand_equal_p): Move to the class.
6068 (class operand_compare): New.
6069 * tree.c (add_expr): Remove.
6070
6071 2019-10-30 Martin Liska <mliska@suse.cz>
6072
6073 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6074 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6075
6076 2019-10-30 Martin Liska <mliska@suse.cz>
6077
6078 PR lto/91393
6079 PR lto/88220
6080 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6081 from a first_clone in order to get proper LTO section
6082 in LTO stream.
6083 (cgraph_node::get_untransformed_body):
6084 Use lto_get_section_data where symtab_node::order
6085 must be provided.
6086 * cgraphclones.c (cgraph_node::find_replacement):
6087 Update also symbol order.
6088 * ipa-fnsummary.c (ipa_fn_summary_read):
6089 Use new function lto_get_summary_section_data.
6090 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6091 * ipa-icf.c (sem_item_optimizer::read_summary):
6092 Likewise.
6093 * ipa-prop.c (ipa_prop_read_jump_functions):
6094 Likewise.
6095 (ipcp_read_transformation_summaries): Likewise.
6096 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6097 * lto-cgraph.c (input_node): Add also order_base.
6098 (input_varpool_node): Likewise.
6099 (input_cgraph_1): Assign the order_base.
6100 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6101 * lto-opts.c (lto_write_options): Pass new argument.
6102 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6103 (lto_get_summary_section_data): New.
6104 (lto_get_raw_section_data): Add order argument.
6105 (lto_create_simple_input_block): Likewise.
6106 * lto-section-out.c (lto_destroy_simple_output_block):
6107 Likewise.
6108 * lto-streamer-in.c (lto_input_toplevel_asms):
6109 Use lto_get_summary_section_data.
6110 (lto_input_mode_table): Likewise.
6111 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6112 (lto_output_toplevel_asms): Pass new argument.
6113 (copy_function_or_variable): Likewise.
6114 (produce_lto_section):Likewise.
6115 (produce_symtab): Likewise.
6116 (lto_write_mode_table): Likewise.
6117 (produce_asm_for_decls): Likewise.
6118 * lto-streamer.c (lto_get_section_name): Concat symbol name
6119 and symbol order.
6120 * lto-streamer.h (lto_get_section_data): Add order argument.
6121 (lto_get_summary_section_data): New.
6122 (lto_get_raw_section_data): Add order argument.
6123 (lto_get_section_name): Likewise.
6124 * varpool.c (varpool_node::get_constructor): Pass order argument.
6125
6126 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6127
6128 PR tree-optimization/92262
6129 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6130 ubase or cbase here.
6131 (remove_unused_ivs): Unshare comp before using it.
6132
6133 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6134
6135 * ipa-prop.c (update_jump_functions_after_inlining):
6136 Watch for missing summaries.
6137
6138 2019-10-30 Richard Biener <rguenther@suse.de>
6139
6140 PR tree-optimization/65930
6141 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6142 chains also allow a leading and trailing conversion.
6143 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6144 intermediate reduction chains.
6145 (vect_analyze_slp_instance): Likewise. Build a SLP
6146 node for a trailing conversion manually.
6147
6148 2019-10-30 Martin Liska <mliska@suse.cz>
6149
6150 * cgraph.c (cgraph_node::local_info): Transform to ...
6151 (cgraph_node::local_info_node): ... this.
6152 (cgraph_node::dump): Remove cgraph_local_info and
6153 put its fields directly into cgraph_node.
6154 (cgraph_node::get_availability): Likewise.
6155 (cgraph_node::make_local): Likewise.
6156 (cgraph_node::verify_node): Likewise.
6157 * cgraph.h (struct GTY): Likewise.
6158 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6159 (duplicate_thunk_for_node): Likewise.
6160 (cgraph_node::create_clone): Likewise.
6161 (cgraph_node::create_virtual_clone): Likewise.
6162 (cgraph_node::create_version_clone): Likewise.
6163 * cgraphunit.c (cgraph_node::reset): Likewise.
6164 (cgraph_node::finalize_function): Likewise.
6165 (cgraph_node::add_new_function): Likewise.
6166 (analyze_functions): Likewise.
6167 * combine.c (setup_incoming_promotions): Likewise.
6168 * config/i386/i386.c (ix86_function_regparm): Likewise.
6169 (ix86_function_sseregparm): Likewise.
6170 (init_cumulative_args): Likewise.
6171 * ipa-cp.c (determine_versionability): Likewise.
6172 (count_callers): Likewise.
6173 (set_single_call_flag): Likewise.
6174 (initialize_node_lattices): Likewise.
6175 (estimate_local_effects): Likewise.
6176 (create_specialized_node): Likewise.
6177 (identify_dead_nodes): Likewise.
6178 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6179 (ipa_fn_summary_generate): Likewise.
6180 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6181 (process_hsa_functions): Likewise.
6182 * ipa-icf.c (set_local): Likewise.
6183 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6184 * ipa-inline.c (speculation_useful_p): Likewise.
6185 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6186 (ipa_profile): Likewise.
6187 * ipa-split.c (split_function): Likewise.
6188 (execute_split_functions): Likewise.
6189 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6190 (ipa_sra_ipa_function_checks): Likewise.
6191 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6192 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6193 * lto-cgraph.c (lto_output_node): Likewise.
6194 (input_overwrite_node): Likewise.
6195 * multiple_target.c (expand_target_clones): Likewise.
6196 * omp-simd-clone.c (simd_clone_create): Likewise.
6197 * trans-mem.c (expand_call_tm): Likewise.
6198 (ipa_tm_mayenterirr_function): Likewise.
6199 (ipa_tm_diagnose_tm_safe): Likewise.
6200 (ipa_tm_diagnose_transaction): Likewise.
6201 (ipa_tm_create_version): Likewise.
6202 (ipa_tm_transform_calls_redirect): Likewise.
6203 (ipa_tm_execute): Likewise.
6204 * tree-inline.c (expand_call_inline): Likewise.
6205
6206 2019-10-29 Martin Liska <mliska@suse.cz>
6207
6208 * symbol-summary.h (function_summary): Pass memory location
6209 to underlaying hash_map (or vec).
6210 (V>::fast_function_summary): Likewise.
6211
6212 2019-10-29 Martin Liska <mliska@suse.cz>
6213
6214 * ggc.h (ggc_alloc_no_dtor): New function.
6215 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6216 destructor and ggc_free.
6217 (ipa_free_size_summary): Call delete instead
6218 of release.
6219 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6220 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6221 (ipa_free_all_edge_args): Call destructor and ggc_free.
6222 (ipa_free_all_node_params): Likewise.
6223 (ipcp_free_transformation_sum): Likewise.
6224 * ipa-prop.h (ipa_check_create_node_params):
6225 Call new ggc_alloc_no_dtor.
6226 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6227 (ipa_sra_analysis): Call destructor and ggc_free.
6228 Replace release with delete operator.
6229 * symbol-summary.h (release): Remove ..
6230 (V>::~fast_function_summary): and move logic here.
6231 Likewise for other classes.
6232
6233 2019-10-29 Richard Biener <rguenther@suse.de>
6234
6235 PR tree-optimization/92260
6236 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6237 lane-reducing ops.
6238
6239 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6240
6241 PR tree-optimization/88915
6242 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6243 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6244 and make the valueize function pointer also take a void pointer.
6245 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6246 around vn_valueize, to call it without a context.
6247 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6248 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6249 (~_loop_vec_info): Release epilogue_vinfos.
6250 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6251 number of iterations of epilogue.
6252 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6253 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6254 versioning threshold needed for main loop.
6255 (vect_analyze_loop): Likewise.
6256 (find_in_mapping): New helper function.
6257 (update_epilogue_loop_vinfo): New function.
6258 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6259 on main loop and call update_epilogue_loop_vinfo to update it.
6260 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6261 stmts on loop preheader edge.
6262 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6263 we decided to vectorize epilogues. Update epilogues NITERS and
6264 construct ADVANCE to update epilogues data references where needed.
6265 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6266 (vect_do_peeling, vect_update_inits_of_drs,
6267 determine_peel_for_niter, vect_analyze_loop): Add or update
6268 declarations.
6269 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6270 created loop_vec_info's for epilogues when available. Otherwise analyse
6271 epilogue separately.
6272
6273 2019-10-29 Richard Biener <rguenther@suse.de>
6274
6275 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6276 example.
6277
6278 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6279
6280 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6281 index for the COND_EXPR from stmt_info rather than reduc_info.
6282
6283 2019-10-29 Richard Biener <rguenther@suse.de>
6284
6285 PR tree-optimization/65930
6286 * tree-vect-loop.c (check_reduction_path): Relax single-use
6287 check allowing out-of-loop uses.
6288 (vect_is_simple_reduction): SLP reduction chains cannot have
6289 intermediate stmts used outside of the loop.
6290 (vect_create_epilog_for_reduction): The adjustment might need
6291 to be converted.
6292 (vectorizable_reduction): Annotate live stmts of the reduction
6293 chain with STMT_VINFO_REDUC_DEF.
6294 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6295
6296 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6297
6298 * calls.c (pass_by_reference): Leave the target to decide whether
6299 POLY_INT_CST-sized arguments should be passed by value or reference,
6300 rather than forcing them to be passed by reference.
6301 (must_pass_in_stack_var_size): Likewise.
6302 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6303 V31_REGNUM to P15_REGNUM.
6304 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6305 Take an extra "silent_p" parameter, defaulting to false.
6306 (aarch64_sve::svbool_type_p): Declare.
6307 (aarch64_sve::nvectors_if_data_type): Likewise.
6308 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6309 (aarch64_frame::reg_offset): Turn into poly_int64s.
6310 (aarch64_frame::save_regs_size): Likewise.
6311 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6312 (aarch64_frame::sve_callee_adjust): Likewise.
6313 (aarch64_frame::spare_reg_reg): Likewise.
6314 (ARM_PCS_SVE): New arm_pcs value.
6315 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6316 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6317 (CUMULATIVE_ARGS::silent_p): Likewise.
6318 (BITS_PER_SVE_PRED): New macro.
6319 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6320 function. Reject aarch64_vector_pcs attributes on SVE functions.
6321 (aarch64_attribute_table): Use the above handler.
6322 (aarch64_sve_abi): New function.
6323 (aarch64_sve_argument_p): Likewise.
6324 (aarch64_returns_value_in_sve_regs_p): Likewise.
6325 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6326 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6327 descriptor for them.
6328 (aarch64_simd_decl_p): Delete.
6329 (aarch64_emit_cfi_for_reg_p): New function.
6330 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6331 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6332 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6333 as partly clobbered for the SVE PCS.
6334 (aarch64_function_ok_for_sibcall): Check whether the two functions
6335 use the same ABI, rather than checking specifically for whether
6336 they're aarch64_vector_pcs functions.
6337 (aarch64_pass_by_reference): Raise an error for attempts to pass
6338 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6339 if there are not enough free registers left, or if the argument is
6340 variadic.
6341 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6342 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6343 tuples in memory.
6344 (aarch64_layout_arg): Take a function_arg_info rather than
6345 individual properties. Handle SVE predicates, vectors and tuples.
6346 Raise an error if they are passed to unprototyped functions.
6347 (aarch64_function_arg): If the silent_p flag is set, suppress the
6348 usual error about using float registers without TARGET_FLOAT.
6349 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6350 it in the cumulative_args structure. Initialize aapcs_nprn and
6351 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6352 error about using float registers without TARGET_FLOAT.
6353 If the silent_p flag is not set, also raise an error about
6354 using SVE functions when SVE is disabled.
6355 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6356 and call it for SVE functions too. Update aapcs_nprn similarly
6357 to the other register counts.
6358 (aarch64_layout_frame): If a big-endian function needs to save
6359 and restore Z8-Z15, search for a spare predicate that it can use.
6360 Store SVE predicates at the bottom of the register save area,
6361 followed by SVE vectors, then followed by the normal slots.
6362 Keep pointing the hard frame pointer at the base of the normal slots,
6363 above the SVE vectors. Update the various frame creation and
6364 tear-down strategies for the new layout, initializing the new
6365 sve_callee_adjust field. Add an additional layout for frames
6366 whose saved registers are all SVE registers.
6367 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6368 (aarch64_return_address_signing_enabled): Likewise.
6369 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6370 aarch64_reg_save_mode.
6371 (aarch64_adjust_sve_callee_save_base): New function.
6372 (aarch64_add_cfa_expression): Move earlier in file. Take the
6373 saved register as an rtx rather than a register number and use
6374 its mode for the MEM slot.
6375 (aarch64_save_callee_saves): Remove the mode argument and instead
6376 use aarch64_reg_save_mode to get the mode of each save slot.
6377 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6378 offsets. Allow GP offsets to be saved at a VL-based offset from
6379 the stack, handling this case using the frame pointer if available
6380 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6381 big-endian SVE functions; use normal moves for other SVE saves.
6382 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6383 returns true. Add explicit CFA notes when not storing via the
6384 stack pointer. Do not try to pair SVE saves.
6385 (aarch64_restore_callee_saves): Cope with poly_int64 register
6386 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6387 use normal moves for other SVE restores. Only add CFA restore notes
6388 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6389 SVE restores.
6390 (aarch64_get_separate_components): Always keep the first SVE save
6391 in the prologue if we need to use it as a stack probe. Don't allow
6392 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6393 Likewise the spare predicate register that they need. Update the
6394 offset calculation to account for the SVE save area. Use the
6395 appropriate range check for SVE LDR and STR instructions.
6396 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6397 (aarch64_process_components): Likewise. Update the offset
6398 calculation to account for the SVE save area. Only mark the
6399 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6400 Do not try to pair SVE saves.
6401 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6402 reg_offsets. When handling the final allocation, expect the
6403 first SVE register save to be part of the initial allocation
6404 and for it to act as a probe at SP. Account for the SVE callee
6405 save area in the dump information.
6406 (aarch64_expand_prologue): Update the frame diagram. Fold the
6407 SVE callee allocation into the initial allocation if stack clash
6408 protection is enabled. Use new variables to track the offset
6409 of the frame chain (and hard frame pointer) from the current
6410 stack pointer, and likewise the offset of the bottom of the
6411 register save area. Update calls to aarch64_save_callee_saves
6412 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6413 saving the FP&SIMD registers. Save the predicate registers.
6414 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6415 into account when setting the stack pointer from the frame pointer,
6416 and when deciding whether we can inherit the initial adjustment
6417 amount from the prologue. Restore the predicate registers after
6418 the vector registers, then apply sve_callee_adjust, then restore
6419 the general registers.
6420 (aarch64_secondary_reload): Don't use secondary SVE reloads
6421 for VNx16BImode.
6422 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6423 (aarch64_short_vector_p): Return false for SVE types.
6424 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6425 at the start of the function. Return false for SVE types.
6426 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6427 functions too.
6428 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6429 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6430 to big-endian targets for bytewise moves.
6431 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6432
6433 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6434 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6435 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6436
6437 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6438 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6439 aarch64-sve-builtins-base.o to extra_objs. Add
6440 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6441 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6442 (aarch64-sve-builtins-shapes.o): Likewise.
6443 (aarch64-sve-builtins-base.o): New rules.
6444 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6445 (aarch64_resolve_overloaded_builtin): Likewise.
6446 (aarch64_check_builtin_call): Likewise.
6447 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6448 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6449 pragma.
6450 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6451 (aarch64_svprfop): New enum.
6452 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6453 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6454 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6455 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6456 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6457 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6458 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6459 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6460 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6461 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6462 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6463 (aarch64_sve::mangle_builtin_type): Likewise.
6464 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6465 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6466 (aarch64_sve::expand_builtin): Likewise.
6467 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6468 (aarch64_sve_int_mode): Likewise.
6469 (aarch64_ptrue_all_mode): New function.
6470 (aarch64_convert_sve_data_to_pred): Make public.
6471 (svprfop_token): New function.
6472 (aarch64_output_sve_prefetch): Likewise.
6473 (aarch64_fold_sve_cnt_pat): Likewise.
6474 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6475 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6476 instead of gen_while_ult.
6477 (aarch64_replace_reg_mode): Make public.
6478 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6479 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6480 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6481 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6482 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6483 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6484 (aarch64_sve_ptrue_svpattern_p): Likewise.
6485 (aarch64_sve_pred_valid_immediate): Check
6486 aarch64_sve_ptrue_svpattern_p.
6487 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6488 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6489 functions.
6490 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6491 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6492 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6493 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6494 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6495 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6496 New unspecs.
6497 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6498 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6499 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6500 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6501 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6502 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6503 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6504 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6505 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6506 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6507 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6508 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6509 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6510 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6511 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6512 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6513 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6514 (Vesize): Handle partial vector modes.
6515 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6516 mode attributes.
6517 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6518 iterators.
6519 (s, paired_extend, inc_dec): New code attributes.
6520 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6521 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6522 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6523 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6524 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6525 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6526 UNSPEC_COND_FMULX.
6527 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6528 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6529 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6530 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6531 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6532 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6533 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6534 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6535 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6536 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6537 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6538 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6539 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6540 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6541 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6542 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6543 UNSPEC_COND_FSCALE.
6544 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6545 (binqops_op, binqops_op_rev, last_op): New int attributes.
6546 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6547 (fn, ab): New int attributes.
6548 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6549 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6550 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6551 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6552 UNSPEC_RBIT.
6553 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6554 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6555 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6556 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6557 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6558 UNSPEC_COND_FMULX.
6559 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6560 (brk_reg_con, brk_reg_opno): New int attributes.
6561 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6562 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6563 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6564 UNSPEC_COND_FMIN.
6565 (max_elem_bits): New int attribute.
6566 (min_elem_bits): Handle UNSPEC_RBIT.
6567 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6568 TRUNCATE as well as SUBREG.
6569 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6570 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6571 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6572 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6573 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6574 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6575 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6576 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6577 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6578 (aarch64_gather_scale_operand_h): New predicates.
6579 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6580 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6581 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6582 (*aarch64_sve_reinterpret<mode>): Allow any source register
6583 instead of requiring an exact match.
6584 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6585 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6586 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6587 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6588 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6589 (aarch64_update_ffrt): New patterns.
6590 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6591 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6592 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6593 (@aarch64_ld<fn>f1<mode>): New patterns.
6594 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6595 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6596 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6597 (@aarch64_ldnt1<mode>): New patterns.
6598 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6599 the scalar part of the address.
6600 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6601 scalar part of the addresse and add an alternative for handling
6602 nonzero offsets.
6603 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6604 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6605 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6606 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6607 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6608 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6609 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6610 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6611 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6612 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6613 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6614 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6615 (@aarch64_sve_prefetch<mode>): New patterns.
6616 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6617 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6618 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6619 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6620 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6621 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6622 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6623 (@aarch64_stnt1<mode>): New patterns.
6624 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6625 the scalar part of the address.
6626 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6627 the scalar part of the addresse and add an alternative for handling
6628 nonzero offsets.
6629 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6630 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6631 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6632 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6633 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6634 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6635 New patterns.
6636 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6637 (extract_last_<mode>): Generalize to...
6638 (@extract_<LAST:last_op>_<mode>): ...this.
6639 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6640 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6641 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6642 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6643 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6644 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6645 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6646 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6647 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6648 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6649 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6650 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6651 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6652 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6653 (*aarch64_adr_uxtw_unspec): Likewise.
6654 (*aarch64_adr_uxtw): Rename to...
6655 (*aarch64_adr_uxtw_and): ...this.
6656 (@aarch64_adr<mode>_shift): New expander.
6657 (*aarch64_adr_shift_sxtw): New pattern.
6658 (aarch64_<su>abd<mode>_3): Rename to...
6659 (@aarch64_pred_<su>abd<mode>): ...this.
6660 (<su>abd<mode>_3): Update accordingly.
6661 (@aarch64_cond_<su>abd<mode>): New expander.
6662 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6663 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6664 (*<su>mul<mode>3_highpart): Rename to...
6665 (@aarch64_pred_<optab><mode>): ...this.
6666 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6667 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6668 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6669 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6670 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6671 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6672 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6673 (*v<ASHIFT:optab><mode>3): Rename to...
6674 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6675 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6676 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6677 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6678 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6679 (@cond_asrd<mode>): New expander.
6680 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6681 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6682 (*sdiv_pow2<mode>3): Delete.
6683 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6684 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6685 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6686 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6687 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6688 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6689 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6690 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6691 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6692 (*add<SVE_F:mode>3): Rename to...
6693 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6694 for SVE_STRICT_GP.
6695 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6696 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6697 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6698 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6699 (*sub<SVE_F:mode>3): Rename to...
6700 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6701 for SVE_STRICT_GP.
6702 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6703 (*fabd<SVE_F:mode>3): Rename to...
6704 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6705 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6706 (*mul<SVE_F:mode>3): Rename to...
6707 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6708 for SVE_STRICT_GP.
6709 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6710 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6711 to...
6712 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6713 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6714 (*<nlogical><PRED_ALL:mode>3): Rename to...
6715 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6716 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6717 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6718 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6719 (aarch64_pred_<logical_nn><mode>_z): ...this.
6720 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6721 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6722 (*fma<SVE_I:mode>4): Rename to...
6723 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6724 (*fnma<SVE_I:mode>4): Rename to...
6725 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6726 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6727 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6728 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6729 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6730 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6731 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6732 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6733 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6734 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6735 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6736 (@aarch64_sve_tmad<mode>): Likewise.
6737 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6738 (*aarch64_sel_dup<mode>): Rename to...
6739 (@aarch64_sel_dup<mode>): ...this.
6740 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6741 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6742 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6743 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6744 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6745 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6746 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6747 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6748 (*fcm<cmp_op><mode>): Rename to...
6749 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6750 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6751 (*fcmuo<mode>): Rename to...
6752 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6753 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6754 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6755 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6756 (fold_extract_last_<mode>): Generalize to...
6757 (@fold_extract_<last_op>_<mode>): ...this.
6758 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6759 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6760 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6761 DImode result explicit.
6762 (reduc_plus_scal_<mode>): Update accordingly.
6763 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6764 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6765 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6766 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6767 (*aarch64_sve_tbl<mode>): Rename to...
6768 (@aarch64_sve_tbl<mode>): ...this.
6769 (@aarch64_sve_compact<mode>): New pattern.
6770 (*aarch64_sve_dup_lane<mode>): Rename to...
6771 (@aarch64_sve_dup_lane<mode>): ...this.
6772 (@aarch64_sve_dupq_lane<mode>): New pattern.
6773 (@aarch64_sve_splice<mode>): Likewise.
6774 (aarch64_sve_<perm_insn><mode>): Rename to...
6775 (@aarch64_sve_<perm_insn><mode>): ...this.
6776 (*aarch64_sve_ext<mode>): Rename to...
6777 (@aarch64_sve_ext<mode>): ...this.
6778 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6779 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6780 to...
6781 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6782 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6783 Rename to...
6784 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6785 ...this.
6786 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6787 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6788 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6789 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6790 to...
6791 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6792 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6793 a "@" marker.
6794 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6795 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6796 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6797 pattern.
6798 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6799 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6800 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6801 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6802 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6803 "@" marker.
6804 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6805 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6806 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6807 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6808 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6809 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6810 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6811 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6812 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6813 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6814 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6815 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6816 (aarch64_sve_cnt_pat): Likewise.
6817 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6818 (*aarch64_sve_incsi_pat): Likewise.
6819 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6820 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6821 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6822 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6823 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6824 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6825 (*aarch64_sve_decsi_pat): Likewise.
6826 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6827 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6828 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6829 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6830 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6831 (@aarch64_pred_cntp<mode>): Likewise.
6832 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6833 New expander.
6834 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6835 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6836 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6837 New expander.
6838 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6839 New pattern.
6840 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6841 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6842 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6843 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6844 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6845 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6846 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6847 New expander.
6848 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6849 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6850 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6851 New expander.
6852 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6853 New pattern.
6854 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6855 expander.
6856 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6857 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6858 expander.
6859 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6860 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6861 expander.
6862 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6863 * config/aarch64/arm_sve.h: New file.
6864 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6865 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6866 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6867 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6868 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6869 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6870 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6871 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6872 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6873
6874 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6875
6876 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6877 New pattern.
6878 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6879 SVE modes.
6880
6881 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6882
6883 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6884 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6885 FFRT_REGNUM + 1.
6886 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6887 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6888 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6889 (aarch64_hard_regno_nregs): Handle the new register classes.
6890 (aarch64_hard_regno_mode_ok): Likewise.
6891 (aarch64_regno_regclass): Likewise.
6892 (aarch64_class_max_nregs): Likewise.
6893 (aarch64_register_move_cost): Likewise.
6894 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6895 as general register_operands.
6896
6897 2019-10-29 Martin Liska <mliska@suse.cz>
6898
6899 * ggc-common.c: One can't subtract unsigned types
6900 in compare function.
6901
6902 2019-10-29 Martin Liska <mliska@suse.cz>
6903
6904 * cgraphunit.c (symbol_table::compile): Pass
6905 title as dump_memory_report argument.
6906 * toplev.c (dump_memory_report): New argument.
6907 (finalize): Pass new argument.
6908 * toplev.h (dump_memory_report): Add argument.
6909
6910 2019-10-29 Martin Liska <mliska@suse.cz>
6911
6912 * ggc-common.c: Move Leak to the first column.
6913
6914 2019-10-29 Martin Liska <mliska@suse.cz>
6915
6916 * cgraphunit.c (symbol_table::compile): Remove argument
6917 for dump_memory_report.
6918 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6919 (compare_final): Remove in order to make report
6920 better readable.
6921 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6922 * mem-stats.h (mem_alloc_description::get_list):
6923 Do not pass cmp.
6924 (mem_alloc_description::dump): Likewise here.
6925 * toplev.c (dump_memory_report): Remove final
6926 argument.
6927 (finalize): Likewise.
6928 * toplev.h (dump_memory_report): Remove argument.
6929
6930 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6931
6932 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6933 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6934 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6935 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6936 accept "const".
6937
6938 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6939
6940 * coretypes.h (string_int_pair): New typedef.
6941 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6942 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6943 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6944
6945 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6946
6947 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6948 (simulate_builtin_function_decl): Declare.
6949 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6950 (LANG_HOOKS_INITIALIZER): Include it.
6951 * langhooks.c (add_builtin_function_common): Rename to...
6952 (build_builtin_function): ...this. Add a location parameter and use
6953 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6954 the decl instead.
6955 (add_builtin_function): Update accordingly, passing the returned
6956 decl to the lang hook.
6957 (add_builtin_function_ext_scope): Likewise
6958 (simulate_builtin_function_decl): New function.
6959
6960 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6961
6962 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6963 example, use actual names of supported offload targets.
6964
6965 PR target/92258
6966 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6967
6968 2019-10-28 Martin Sebor <msebor@redhat.com>
6969
6970 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6971 (handle_store): Pass argument to get_addr_stridx.
6972
6973 2019-10-28 Martin Sebor <msebor@redhat.com>
6974
6975 PR tree-optimization/92226
6976 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6977 the offset is in the open range outlined by SI's length.
6978
6979 2019-10-28 Martin Sebor <msebor@redhat.com>
6980
6981 PR c/66970
6982 * doc/cpp.texi (__has_builtin): Document.
6983 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6984
6985 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6986
6987 PR target/82981
6988 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6989 doubleword and low doubleword result of multiplication on
6990 MIPS64R6.
6991
6992 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6993 pure qualifier to the built-in.
6994 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6995 built-ins.
6996 (struct mips_builtin_description): Add is_pure flag.
6997 (mips_init_builtins): Mark built-in as pure if the flag in the
6998 corresponding mips_builtin_description struct is set.
6999
7000 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7001 alternative which covers the floating-point input value. Also
7002 forbid the split of insert.d pattern for floating-point values.
7003
7004 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7005
7006 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7007 * config/riscv/riscv-sr.c: New file.
7008 * config/riscv/riscv.c (riscv_reorg): New function.
7009 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7010 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7011 (riscv_remove_unneeded_save_restore_calls): Declare.
7012 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7013
7014 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7015
7016 PR tree-optimization/92163
7017 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7018 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7019 before calling bitmap_set_bit.
7020 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7021 delete_dead_or_redundant_assignment.
7022 (dse_dom_walker::dse_optimize_stmt): Likewise.
7023 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7024
7025 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7026
7027 PR middle-end/91272
7028 * tree-vect-stmts.c (vectorizable_condition): Support
7029 EXTRACT_LAST_REDUCTION with fully-masked loops.
7030
7031 2019-10-28 Richard Biener <rguenther@suse.de>
7032
7033 PR tree-optimization/92252
7034 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7035 STMT_VINFO_REDUC_IDX when swapping operands.
7036
7037 2019-10-28 Richard Biener <rguenther@suse.de>
7038
7039 PR tree-optimization/92241
7040 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7041 we failed to update the reduction index do not use the pattern
7042 stmts for the reduction chain.
7043 (vectorizable_reduction): When the reduction chain is corrupt,
7044 fail.
7045 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7046 fail to update the reduction chain.
7047
7048 2019-10-28 Richard Biener <rguenther@suse.de>
7049
7050 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7051 STMT_VINFO_REDUC_IDX from the actual stmt.
7052 (vect_transform_reduction): Likewise.
7053 (vectorizable_reduction): Compute the reduction chain length,
7054 do not recompute the reduction operand index. Remove no longer
7055 necessary restriction for condition reduction chains.
7056
7057 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7058
7059 PR target/92225
7060 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7061 condition for V2DImode.
7062
7063 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7064
7065 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7066 Remove %k operand modifier.
7067 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7068
7069 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7070
7071 PR rtl-optimization/92007
7072 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7073 call it after reload if hot/cold partitioning has been done.
7074 (class pass_postreload_jump): Rename to
7075 pass_jump_after_combine.
7076 (make_pass_postreload_jump): Rename to
7077 make_pass_jump_after_combine.
7078 * passes.def(pass_postreload_jump): Move before reload, rename
7079 to pass_jump_after_combine.
7080 * tree-pass.h (make_pass_postreload_jump): Rename to
7081 make_pass_jump_after_combine.
7082
7083 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7084
7085 PR ipa/92242
7086 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7087 for missing EDGE_REF
7088 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7089
7090 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7091
7092 PR tree-optimization/88760
7093 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7094 Enable -funroll-loops for -O2 and above.
7095 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7096 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7097 do not turn on web and rngreg implicitly, if the unroller is not
7098 explicitly enabled.
7099
7100 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7101
7102 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7103 jump functions.
7104
7105 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7106
7107 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7108 * cgraph.h (cgraph_node::rtl_info): Likewise.
7109
7110 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7111
7112 * ipa-cp.c (propagate_constants_across_call): If args are not available
7113 just drop everything to varying.
7114 (find_aggregate_values_for_callers_subset): Watch for missing
7115 edge summary.
7116 (find_more_scalar_values_for_callers_subs): Likewise.
7117 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7118 update_jump_functions_after_inlining, propagate_controlled_uses):
7119 Watch for missing summaries.
7120 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7121 is finished.
7122 (ipa_write_node_info): Watch for missing summaries.
7123 (ipa_read_edge_info): Create new ref.
7124 (ipa_edge_args_sum_t): Add remove.
7125 (IPA_EDGE_REF_GET_CREATE): New macro.
7126 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7127 edge summary.
7128 (remap_edge_change_prob): Likewise.
7129
7130 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7131
7132 * ipa-inline-transform.c (inline_call): update function summaries
7133 after expanidng thunk.
7134
7135 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7136
7137 * ipa-icf.c (sem_function::merge): Update function summaries.
7138 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7139
7140 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7141
7142 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7143 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7144 operand already has scalar mode.
7145 (iptr): Remove SF/DF.
7146
7147 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7148
7149 PR target/91289
7150 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7151 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7152 this.
7153
7154 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7155
7156 * config/i386/sse.md
7157 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7158 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7159 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7160 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7161 <sse>_vmmaskcmp<mode>3):
7162 Change predicates from vector_operand to nonimmediate_operand,
7163 constraints xBm to xm, since scalar operations don't need
7164 memory address alignment.
7165 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7166 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7167 round_saeonly_nimm_predicate with
7168 round_saeonly_nimm_scalar_predicate.
7169 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7170 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7171 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7172 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7173 avx512f_vmfmadd_<mode>_mask3<round_name>,
7174 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7175 *avx512f_vmfmsub_<mode>_mask<round_name>,
7176 avx512f_vmfmsub_<mode>_mask3<round_name>,
7177 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7178 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7179 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7180 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7181 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7182 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7183 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7184 cvtusi2<ssescalarmodesuffix>32<round_name>,
7185 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7186 round_nimm_predicate with round_nimm_scalr_predicate.
7187 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7188 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7189 avx512er_vmrcp28<mode><round_saeonly_name>,
7190 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7191 ): Replace round_saeonly_nimm_predicate with
7192 round_saeonly_nimm_scalar_predicate.
7193 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7194 vector_operand with nonimmediate_operand.
7195 * config/i386/subst.md (round_scalar_nimm_predicate,
7196 round_saeonly_scalar_nimm_predicate): Replace
7197 vector_operand with nonimmediate_operand.
7198
7199 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7200
7201 PR target/89071
7202 * config/i386/i386.md (*rcpsf2_sse): Add
7203 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7204 (*rsqrtsf2_sse): Ditto.
7205 (*sqrt<mode>2_sse): Ditto.
7206 (sse4_1_round<mode>2): separate constraint vm, add
7207 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7208 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7209 by pass rpad.
7210 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7211 Ditto.
7212 (*sse_vmrsqrtv4sf2): Ditto.
7213 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7214 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7215 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7216 <iptr> pointer size modifier since vround support memory operand.
7217
7218 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7219
7220 PR target/85969
7221 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7222 static function.
7223
7224 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7225 Tobias Burnus <tobias@codesourcery.com>
7226
7227 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7228 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7229 common block decls.
7230
7231 2019-10-25 Richard Biener <rguenther@suse.de>
7232
7233 PR tree-optimization/92222
7234 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7235 (_slp_oprnd_info::second_pattern): Likewise.
7236 (_slp_oprnd_info::any_pattern): New.
7237 (vect_create_oprnd_info): Adjust.
7238 (vect_get_and_check_slp_defs): Compute whether any stmt is
7239 in a pattern.
7240 (vect_build_slp_tree_2): Avoid building up a node from scalars
7241 if any of the operand defs, not just the first, is in a pattern.
7242
7243 2019-10-25 Richard Biener <rguenther@suse.de>
7244
7245 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7246 swapping if we actually have to modify the IL on a shared stmt.
7247 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7248 because we no longer modify the IL.
7249
7250 2019-10-25 Martin Liska <mliska@suse.cz>
7251
7252 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7253
7254 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7255
7256 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7257 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7258 handled by vect_transform_reduction. Allow fully-masked loops
7259 to be used with reduction chains.
7260 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7261 operations in fully-masked loops.
7262 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7263 operations in fully-masked loops.
7264
7265 2019-10-25 Richard Biener <rguenther@suse.de>
7266
7267 * tree-vect-loop.c (vectorizable_reduction): Verify
7268 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7269 correctly.
7270 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7271 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7272 stmts.
7273
7274 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7275
7276 * gimplify.h (omp_construct_selector_matches): Declare.
7277 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7278 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7279 called function if needed for flag_openmp.
7280 (gimplify_scan_omp_clauses): Set ctx->code.
7281 (omp_construct_selector_matches): New function.
7282 * omp-general.h (omp_constructor_traits_to_codes,
7283 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7284 * omp-general.c (omp_constructor_traits_to_codes,
7285 omp_context_selector_matches, omp_resolve_declare_variant): New
7286 functions.
7287
7288 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7289 literal.
7290 * config/rx/rx.c (rx_print_operand): Likewise.
7291 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7292 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7293 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7294 Likewise.
7295 * genemit.c (emit_c_code): Likewise.
7296 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7297
7298 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7299
7300 * symbols-summary.h (fast_function_summary<T *, V>::release,
7301 fast_call_summary<T *, V>::release): Free m_vector.
7302
7303 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7304
7305 * cgraphunit.c (symbol_table::process_new_functions): Call
7306 ipa_free_size_summary.
7307 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7308 (devirtualization_time_bonus): Update.
7309 (ipcp_propagate_stage): Update.
7310 * ipa-fnsummary.c (ipa_size_summaries): New.
7311 (ipa_fn_summary_alloc): Alloc size summary.
7312 (dump_ipa_call_summary): Update.
7313 (ipa_dump_fn_summary): Update.
7314 (analyze_function_body): Update.
7315 (compute_fn_summary): Likewise.
7316 (ipa_get_stack_frame_offset): New function.
7317 (inline_update_callee_summaries): Do not update frame offsets.
7318 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7319 remove call and function summary.
7320 (ipa_update_overall_fn_summary): Update.
7321 (inline_read_section): Update.
7322 (ipa_fn_summary_write): Update.
7323 (ipa_free_fn_summary): Do not remove summaries.
7324 (ipa_free_size_summary): New.
7325 (release summary pass): Also run at WPA.
7326 * ipa-fnsummary.h (ipa_size_summary): Declare.
7327 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7328 estimated_self_stack_size.
7329 (ipa_size_summary_t): New type.
7330 (ipa_size_summaries): Declare.
7331 (ipa_free_size_summary): Declare.
7332 (ipa_get_stack_frame_offset): Declare.
7333 * ipa-icf.c (sem_function::merge): Update.
7334 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7335 (estimate_growth): Update.
7336 (growth_likely_positive): Update.
7337 (clone_inlined_nodes): Update.
7338 (inline_call): Update.
7339 * ipa-inline.c (caller_growth_limits): Update.
7340 (edge_badness): Update.
7341 (recursive_inlining): Update.
7342 (inline_small_functions): Update.
7343 (inline_to_all_callers_1): Update.
7344 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7345
7346 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7347
7348 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7349 (uavg<mode>3_ceil): ... This.
7350 (altivec_vavgs<VI_char>): Rename to...
7351 (avg<mode>3_ceil): ... This.
7352 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7353 VAVGUW, VAVGSW): Adjust.
7354
7355 2019-10-24 Nathan Sidwell <nathan@acm.org>
7356
7357 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7358
7359 2019-10-24 Martin Liska <mliska@suse.cz>
7360
7361 * symbol-summary.h (gt_pch_nx): Mark all functions
7362 with gcc_unreachable as we do not expect to be called.
7363
7364 2019-10-24 Richard Biener <rguenther@suse.de>
7365
7366 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7367 chains try harder with operand swapping and instead of
7368 putting a shifted chain into the reduction operands put
7369 a repetition of the final reduction op there as if we'd
7370 reassociate the expression.
7371
7372 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7373
7374 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7375 statics_not_read and statics_not_written to statics_read and
7376 statics_written respectively.
7377 (no_module_statics): New static var.
7378 (ipa_reference_get_not_read_global): Rename to ...
7379 (ipa_reference_get_read_global): ... this.
7380 (ipa_reference_get_not_written_global): Rename to ...
7381 (ipa_reference_get_written_global): ... this.
7382 (dump_static_vars_set_to_file): Dump no_module_statics.
7383 (copy_static_var_set): Add for propagation parameter.
7384 (ipa_init): Initialize no_module_statics.
7385 (ipa_ref_opt_summary_t::duplicate): Update.
7386 (ipa_ref_opt_summary_t::remove): Update.
7387 (propagate): Update.
7388 (write_node_summary_p): Look correctly for bitmap differences.
7389 (ipa_reference_write_optimization_summary): Update.
7390 (ipa_reference_read_optimization_summary): Update.
7391 * ipa-reference.h
7392 (ipa_reference_get_not_read_global): Rename to ...
7393 (ipa_reference_get_read_global): ... this.
7394 (ipa_reference_get_not_written_global): Rename to ...
7395 (ipa_reference_get_written_global): ... this.
7396 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7397 (call_may_clobber_ref_p_1): Update.
7398
7399 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7400
7401 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7402 and add comment.
7403 (msp430_hard_regno_nregs_with_padding): Remove.
7404
7405 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7406
7407 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7408 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7409 shift amount is between 1 and 4.
7410 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7411 is between 1 and 4.
7412
7413 2019-10-24 Richard Biener <rguenther@suse.de>
7414
7415 PR tree-optimization/92205
7416 * tree-vect-loop.c (vectorizable_reduction): Restrict
7417 search for alternate vectype_in to lane-reducing patterns
7418 we support.
7419
7420 2019-10-24 Richard Biener <rguenther@suse.de>
7421
7422 PR tree-optimization/92203
7423 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7424 Skip eliminating conversion stmts inserted by insertion.
7425
7426 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7427
7428 * config/s390/s390.c (s390_get_thread_pointer): Use
7429 gen_get_thread_pointer.
7430 (s390_expand_split_stack_prologue): Likewise.
7431 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7432 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7433 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7434 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7435 parameterized name.
7436
7437 2019-10-24 Richard Biener <rguenther@suse.de>
7438
7439 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7440 SLP discovery fails try to handle the reduction as part
7441 of SLP reduction discovery.
7442
7443 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7444
7445 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7446 declaration.
7447 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7448 attribute if it exists, rather than the insn size. If we use the
7449 insn size, adjust the size to remove the extra size that prefixed
7450 instructions take.
7451 (rs6000_adjust_insn_length): New function.
7452 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7453 update the instruction sized if prefixed instructions are used.
7454 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7455 (non_prefixed_length attribute): Delete.
7456 (num_insns attribute): New insn attribute to return the number of
7457 instructions.
7458 (max_prefixed_insns attribute): New insn attribute to return the
7459 maximum number of prefixed instructions in an insn.
7460 (length attribute): Do not adjust for prefix instructions here,
7461 punt to ADJUST_INSN_LENGTH.
7462 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7463 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7464 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7465 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7466 max_prefixed_insns and num_insns.
7467
7468 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7469 (movtd_64bit_nodm): Reformat.
7470 (mov<mode>_32bit): Reformat.
7471 (mov<mode>_softfloat): Reformat.
7472 (FMOVE128_GPR splitter): Reformat.
7473 (DIFD splitter): Reformat.
7474 (TI2 splitter): Reformat.
7475 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7476 bits of the offset for the memory address are non-zero, use PLWA
7477 if prefixed instructions are available.
7478
7479 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7480
7481 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7482
7483 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7484
7485 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7486 previous patch.
7487
7488 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7489
7490 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7491 (cmp_symbol_files): New.
7492 (lto_output): Copy sections in file order.
7493 * lto-streamer.h (lto_file_decl_data): Add field order.
7494
7495 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7496
7497 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7498 * ipa-reference.c (reference_vars_map_t): new type.
7499 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7500 (ipa_reference_var_uid): Implement.
7501 (varpool_node_hooks): New static var.
7502 (varpool_removal_hook): New function.
7503 (is_improper): Do not check bitmap for id==-1
7504 (get_static_name): Update.
7505 (ipa_init): Initialize new datastructures.
7506 (analyze_function): Do not recompute ids.
7507 (propagate): Free reference_vars_to_consider.
7508 (stream_out_bitmap): Update.
7509 (ipa_reference_read_optimization_summary): Update.
7510
7511 2019-10-23 qing zhao <qing.zhao@oracle.com>
7512
7513 PR gcov-profile/91971
7514 * coverage.c (coverage_init): Mangle the full path of filename when
7515 filename is a absolute path.
7516
7517 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7518
7519 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7520 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7521 (msp430_has_hwmult): New.
7522 (msp430_output_labelref):
7523 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7524 * config/msp430/msp430.md (mulhisi3): Likewise.
7525 (umulhisi3): Likewise.
7526 (mulsidi3): Likewise.
7527 (umulsidi3): Likewise.
7528
7529 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7530
7531 PR ipa/92074
7532 * params.def (inline-heuristics-hint-percent): Set to 600.
7533
7534 2019-10-23 Richard Biener <rguenther@suse.de>
7535
7536 PR tree-optimization/65930
7537 * tree-vect-loop.c (check_reduction_path): Allow conversions
7538 that only change the sign.
7539 (vectorizable_reduction): Relax latch def stmts we handle further.
7540
7541 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7542
7543 PR debug/90231
7544 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7545 (remove_unused_ivs): Use it instead of get_computation_at. When
7546 choosing best candidate, only consider candidates where
7547 get_debug_computation_at actually returns non-NULL.
7548
7549 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7550
7551 PR tree-optimization/92131
7552 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7553 range would be symbolic, drop to varying for any explicit overflow
7554 in the constant part or if neither range is a singleton.
7555
7556 2019-10-23 Martin Liska <mliska@suse.cz>
7557
7558 PR middle-end/81669
7559 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7560 Initialize m_data.
7561
7562 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7563
7564 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7565 int_mode_for_mode rather than mode_for_int_vector for scalars.
7566
7567 2019-10-23 Richard Biener <rguenther@suse.de>
7568
7569 PR tree-optimization/92179
7570 * tree-vect-stmts.c (vectorizable_shift): For shift args
7571 that are all the same remove type restriction in the SLP case.
7572 Adjust SLP code to handle converting of the shift arg to
7573 only apply in case the modes are different.
7574
7575 2019-10-23 Martin Liska <mliska@suse.cz>
7576
7577 PR ipa/91969
7578 * ipa-inline.c (recursive_inlining): Do not print
7579 when curr->count is not initialized.
7580
7581 2019-10-23 Richard Biener <rguenther@suse.de>
7582
7583 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7584 op from scalars in case there's a constant operand in its
7585 definition.
7586
7587 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7588
7589 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7590 against out of range max skip or log values.
7591
7592 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7593
7594 * cgraph.c (dump_graphviz): Change name to dump_name
7595
7596 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7597
7598 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7599 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7600 subtraction from a carry operation.
7601
7602 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7603
7604 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7605
7606 2019-10-22 Richard Biener <rguenther@suse.de>
7607
7608 PR tree-optimization/92173
7609 * tree-vect-loop.c (vectorizable_reduction): If
7610 vect_transform_reduction cannot handle code-generation try without
7611 the single-def-use-cycle optimization. Pass optab_vector to
7612 optab_for_tree_code to get vector shifts as that's what we'd
7613 generate.
7614
7615 2019-10-22 Michael Matz <matz@suse.de>
7616
7617 PR middle-end/90796
7618 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7619 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7620 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7621
7622 2019-10-22 Richard Biener <rguenther@suse.de>
7623
7624 PR tree-optimization/92173
7625 * tree-vect-loop.c (vectorizable_reduction): If
7626 vect_transform_reduction cannot handle code-generation try without
7627 the single-def-use-cycle optimization. Pass optab_vector to
7628 optab_for_tree_code to get vector shifts as that's what we'd
7629 generate.
7630
7631 2019-10-22 Martin Liska <mliska@suse.cz>
7632
7633 * diagnostic-format-json.cc (json_from_expanded_location):
7634 Use json::integer_number.
7635 * gcov.c (output_intermediate_json_line): Use new
7636 json::integer_number.
7637 (output_json_intermediate_file): Likewise.
7638 * json.cc (number::print): Move to ...
7639 (float_number::print): ... this.
7640 (integer_number::print): New.
7641 (test_writing_numbers): Move to ...
7642 (test_writing_float_numbers): ... this.
7643 (test_writing_integer_numbers): New.
7644 (json_cc_tests): Register test_writing_integer_numbers.
7645 * json.h (class value): Add forward declaration
7646 for float_number and integer_number.
7647 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7648 (class number): Move to ...
7649 (class float_number): ... this.
7650 (class integer_number): New.
7651 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7652 Use json::integer_number.
7653 (optrecord_json_writer::location_to_json): Likewise.
7654 (optrecord_json_writer::profile_count_to_json): Likewise.
7655 (optrecord_json_writer::pass_to_json): Likewise.
7656
7657 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7658
7659 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7660 autodetected_vector_size rather than vector_size is zero.
7661 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7662 Set autodetected_vector_size immediately after calling
7663 vect_analyze_loop_2. Check for a fatal error before advancing
7664 next_size.
7665
7666 2019-10-21 Jason Merrill <jason@redhat.com>
7667
7668 * lock-and-run.sh: Check for process existence rather than timeout.
7669
7670 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7671
7672 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7673 widening multiplication.
7674
7675 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7676
7677 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7678 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7679 type attribute.
7680 (subsi3_carryin_shift): Separate into register and constant controlled
7681 alternatives. Use shift_amount_operand for operand 4. Set shift
7682 attribute and simplify type attribute.
7683 (subsi3_carryin_shift_alt): Likewise.
7684 (rsbsi3_carryin_shift): Likewise.
7685 (rsbsi3_carryin_shift_alt): Likewise.
7686 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7687 and register controlled shifts into distinct alternatives.
7688 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7689 (andsi_not_shiftsi_si_scc): Likewise.
7690 (arm_cmpsi_negshiftsi_si): Likewise.
7691 (not_shiftsi): Remove redundant M constraint from alternative 1.
7692 (not_shiftsi_compare0): Likewise.
7693 (arm_cmpsi_insn): Remove redundant alternative 2.
7694 (cmpsi_shift_swp): Likewise.
7695 (sub_shiftsi): Likewise.
7696 (sub_shiftsi_compare0_scratch): Likewise.
7697 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7698 (thumb2_cmpsi_neg_shiftsi): Likewise.
7699
7700 2019-10-21 Richard Biener <rguenther@suse.de>
7701
7702 PR tree-optimization/92162
7703 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7704 STMT_VINFO_REDUC_IDX in reduc_info.
7705 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7706
7707 2019-10-21 Richard Biener <rguenther@suse.de>
7708
7709 * tree-vectorizer.h (_slp_tree::ops): New member.
7710 (SLP_TREE_SCALAR_OPS): New.
7711 (vect_get_slp_defs): Adjust prototype.
7712 * tree-vect-slp.c (vect_free_slp_tree): Release
7713 SLP_TREE_SCALAR_OPS.
7714 (vect_create_new_slp_node): Initialize it. New overload for
7715 initializing by an operands array.
7716 (_slp_oprnd_info::ops): New member.
7717 (vect_create_oprnd_info): Initialize it.
7718 (vect_free_oprnd_info): Release it.
7719 (vect_get_and_check_slp_defs): Populate the operands array.
7720 Do not swap operands in the IL when not necessary.
7721 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7722 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7723 swap operands in the operands array. Do not swap operands in
7724 the IL.
7725 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7726 (vect_gather_slp_loads): Fix.
7727 (vect_detect_hybrid_slp_stmts): Likewise.
7728 (vect_slp_analyze_node_operations_1): Search for a internal
7729 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7730 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7731 the def-type push/pop dance.
7732 (vect_get_constant_vectors): Compute number_of_vectors here.
7733 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7734 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7735 (vect_get_slp_defs): Simplify greatly.
7736 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7737 (vect_transform_reduction): Likewise.
7738 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7739 (vectorizable_call): Likewise.
7740 (vectorizable_operation): Likewise.
7741 (vectorizable_load): Likewise.
7742 (vectorizable_condition): Likewise.
7743 (vectorizable_comparison): Likewise.
7744
7745 2019-10-21 Richard Biener <rguenther@suse.de>
7746
7747 PR tree-optimization/92161
7748 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7749 for reductions.
7750
7751 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7752
7753 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7754 (aarch64_rndr): New define_insn.
7755 (aarch64_rndrrs): Likewise.
7756 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7757 (TARGET_RNG): Likewise.
7758 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7759 argument.
7760 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7761 Add fourth argument in prototype.
7762 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7763 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7764 (aarch64_init_rng_builtins): Define.
7765 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7766 (aarch64_expand_rng_builtin): Define.
7767 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7768 RNG builtins.
7769 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7770 __ARM_FEATURE_RNG when TARGET_RNG.
7771 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7772
7773 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7774
7775 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7776 alignment is more restrictive.
7777
7778 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7779
7780 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7781 (vect_update_max_nunits): Update comment.
7782 (current_vector_size): Delete.
7783 * tree-vect-stmts.c (current_vector_size): Likewise.
7784 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7785 of current_vector_size.
7786 (get_mask_type_for_scalar_type): Likewise.
7787 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7788 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7789 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7790 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7791 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7792 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7793
7794 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7795
7796 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7797 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7798 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7799 accordingly.
7800
7801 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7802
7803 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7804 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7805 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7806 call accordingly.
7807 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7808
7809 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7810
7811 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7812 a loop_vec_info.
7813 (vect_set_loop_condition_masked): Update call accordingly.
7814
7815 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7816
7817 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7818 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7819 (simple_integer_narrowing): Update call accordingly.
7820 (vectorizable_conversion): Likewise.
7821
7822 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7823
7824 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7825 (vectorizable_call): Update call accordingly.
7826
7827 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7828
7829 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7830 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7831 (duplicate_and_interleave): Update call accordingly.
7832 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7833
7834 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7835
7836 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7837 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7838 (vect_get_constant_vectors): Update call accordingly.
7839 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7840
7841 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7842
7843 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7844 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7845 (vect_prologue_cost_for_slp_op): Update call accordingly.
7846 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7847 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7848 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7849 (get_mask_type_for_scalar_type): Likewise.
7850 (vect_get_vector_types_for_stmt): Likewise.
7851 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7852 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7853 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7854 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7855 (vect_split_statement, vect_convert_input): Likewise.
7856 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7857 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7858 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7859 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7860 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7861 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7862 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7863 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7864 (vect_recog_mask_conversion_pattern): Likewise.
7865 (vect_add_conversion_to_pattern): Likewise.
7866 (vect_recog_gather_scatter_pattern): Likewise.
7867 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7868 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7869
7870 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7871
7872 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7873 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7874 (vect_check_load_store_mask): Update call accordingly.
7875 (vect_get_mask_type_for_stmt): Likewise.
7876 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7877 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7878 (vect_convert_mask_for_vectype): Likewise.
7879
7880 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7881
7882 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7883 a vec_info.
7884 (vect_recog_dot_prod_pattern): Update call accordingly.
7885 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7886 (vect_recog_widen_sum_pattern): Likewise.
7887
7888 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7889
7890 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7891 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7892 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7893 accordingly.
7894
7895 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7896
7897 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7898 get_vectype_for_scalar_type_and_size instead of
7899 get_vectype_for_scalar_type.
7900
7901 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7902
7903 * common.opt (-fcommon): Fix description.
7904
7905 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7906
7907 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7908 * config/i386/i386.c (ix86_pre_reload_split): New function.
7909 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7910 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7911 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7912 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7913 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7914 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7915 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7916 *<shift_insn><dwi>3_doubleword_mask,
7917 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7918 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7919 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7920 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7921 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7922 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7923 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7924 *avx2_<code>v8qiv8si2<mask_name>_2,
7925 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7926 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7927 *avx512f_<code>v8qiv8di2<mask_name>_2,
7928 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7929 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7930 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7931 sse4_2_pcmpistr): Likewise.
7932
7933 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7934
7935 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7936 now defaults to https.
7937
7938 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7939
7940 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7941 skip non-zero array accesses.
7942
7943 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7944
7945 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7946 and return a boolean success value. Move the allocation and
7947 initialization of the bb_vec_info to...
7948 (vect_slp_bb_region): ...here. Update call accordingly.
7949 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7950 than in vect_slp_analyze_bb_1.
7951
7952 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7953
7954 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7955 when processing the given datarefs for the first time and
7956 check_datarefs subsequently.
7957 (vect_slp_bb_region): New function, split out of...
7958 (vect_slp_bb): ...here. Don't recompute the region bounds and
7959 dataref sets when retrying with a different vector size.
7960
7961 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7962 Uroš Bizjak <ubizjak@gmail.com>
7963
7964 PR target/92140
7965 * config/i386/predicates.md (int_nonimmediate_operand): New special
7966 predicate.
7967 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7968 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7969 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7970 define_insn_and_split patterns.
7971
7972 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7973
7974 * config/rs6000/rs6000.md: Delete out--of-date comment about
7975 special-casing integer loads.
7976
7977 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7978
7979 * escaped_string.h (escaped_string): New header.
7980 * tree.c (escaped_string): Remove escaped_string class.
7981
7982 2019-10-18 Martin Sebor <msebor@redhat.com>
7983
7984 PR tree-optimization/92157
7985 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7986 compute_string_length to return a negative result.
7987
7988 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7989
7990 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7991 (negvsi3, negvdi3): Delete.
7992 (negdi2_compare): Delete.
7993
7994 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7995
7996 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7997 operations.
7998 (subdi3_compare1): Delete pattern.
7999 (subvsi3_borrow): New insn pattern.
8000 (subvsi3_borrow_imm): Likewise.
8001
8002 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8003
8004 * config/arm/arm.md (subv<mode>4): Delete.
8005 (subvdi4): New expander pattern.
8006 (subvsi4): Likewise. Handle some immediate values.
8007 (subvsi3_intmin): New insn pattern.
8008 (subvsi3): Likewise.
8009 (subvsi3_imm1): Likewise.
8010 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8011 idioms.
8012
8013 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8014
8015 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8016 incoming operands. Early split the calculation into SImode
8017 operations.
8018 (usubvsi3_borrow): New insn pattern.
8019 (usubvsi3_borrow_imm): Likewise.
8020
8021 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8022
8023 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8024 (usubvsi4): New pattern. Allow some immediate values for inputs.
8025 (usubvdi4): New pattern.
8026
8027 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8028
8029 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8030 or second operand of the PLUS inside a DImode equality test to be
8031 sign-extend when selecting CC_Vmode.
8032 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8033 instructions.
8034 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8035 expand patterns.
8036 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8037 (addsi3_cin_vout_0): Likewise.
8038 (adddi3_compareV): Delete.
8039
8040 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8041
8042 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8043 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8044 to transform this back into the summation version when that leads
8045 to smaller code.
8046
8047 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8048
8049 * config/arm/arm.md (addv<mode>4): Delete.
8050 (addvsi4): New pattern. Handle immediate values that the architecture
8051 supports.
8052 (addvdi4): New pattern.
8053 (addsi3_compareV): Rename to ...
8054 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8055 and use COMPARE rather than NE.
8056 (addsi3_compareV_imm): New pattern.
8057 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8058 a signed-overflow check.
8059
8060 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8061
8062 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8063 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8064 CC_ADCmode.
8065 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8066 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8067 with overflow.
8068 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8069 expand patterns.
8070 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8071 (addsi3_cin_cout_imm_insn): Likewise.
8072 (adddi3_compareC): Delete insn.
8073 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8074
8075 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8076
8077 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8078 * (uaddv<mode>4): Delete expansion pattern.
8079 (uaddvsi4): New pattern.
8080 (uaddvdi4): Likewise.
8081 (addsi3_compareC): Delete pattern, change callers to use
8082 addsi3_compare_op1.
8083 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8084 reduce the number of alternatives and re-work type attribute handling.
8085 (addsi3_compare_op2): Clean up constraints to reduce the number of
8086 alternatives and re-work type attribute handling.
8087 (compare_addsi2_op0): Likewise.
8088 (compare_addsi2_op1): Likewise.
8089
8090 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8091
8092 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8093 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8094 for DImode operands.
8095 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8096 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8097 CC_NCVmode.
8098 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8099 (arm_cmpdi_unsigned): Delete.
8100
8101 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8102
8103 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8104 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8105 unchanged only if that will be cheaper.
8106 (arm_select_cc_mode): Recognize a swapped comparison that will
8107 be regenerated using RSBS or RSCS. Relax restriction on selecting
8108 CC_RSBmode.
8109 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8110 a constant.
8111 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8112 is CC_RSBmode.
8113 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8114 as CCmode.
8115 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8116 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8117
8118 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8119
8120 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8121 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8122 need these modes.
8123 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8124 of EQ, NE, LT, GE, LTU and GEU.
8125 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8126 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8127 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8128 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8129 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8130
8131 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8132
8133 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8134 operand 2.
8135 (cstoredi4): Similarly, but for operand 3.
8136 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8137 canonicalization of unsigned compares with a constant on Arm.
8138 Prefer using const+1 and adjusting the comparison over swapping the
8139 operands whenever the original constant was not valid.
8140 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8141 register here.
8142 (arm_validize_comparison): Do not force invalid DImode operands to
8143 registers here.
8144
8145 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8146
8147 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8148 return CC_Zmode if comparing against a constant where one word is
8149 zero.
8150 (arm_gen_compare_reg): Split DImode handling to ...
8151 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8152 against simple constants.
8153 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8154
8155 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8156
8157 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8158 (rsbsi3_carryin_shift_alt): Likewise.
8159
8160 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8161
8162 * config/arm/arm.md (negscc_borrow): New pattern.
8163 (mov_negscc): Don't split if the insn would match negscc_borrow.
8164 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8165 (thumb2_mov_negscc_strict_it): Likewise.
8166
8167 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8168
8169 * config/arm/arm.c (arm_insn_cost): New function.
8170 (TARGET_INSN_COST): Override default definition.
8171
8172 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8173
8174 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8175 borrow operations.
8176
8177 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8178
8179 * config/arm/arm.c (strip_carry_operation): New function.
8180 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8181 for SImode.
8182
8183 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8184
8185 * config/arm/predicates.md (arm_carry_operation): New special
8186 predicate.
8187 * config/arm/iterators.md (LTUGEU): Delete iterator.
8188 (cnb): Delete code attribute.
8189 (optab): Delete ltu and geu elements.
8190 * config/arm/arm.md (addsi3_carryin): Renamed from
8191 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8192 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8193 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8194 (addsi3_carryin_clobercc): Similarly.
8195 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8196 Thumb2 state.
8197
8198 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8199
8200 * config/arm/arm.md (arm_subdi3): Delete insn.
8201 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8202
8203 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8204
8205 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8206 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8207 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8208 return CC_RSBmode.
8209 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8210 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8211 expand.
8212 (subdi3): Rewrite to early-expand the sub-operations.
8213 (rsb_im_compare): New pattern.
8214 (negdi2): Delete.
8215 (negdi2_insn): Delete.
8216 (arm_negsi2): Correct type attribute to alu_imm.
8217 (negsi2_0compare): New insn pattern.
8218 (negsi2_carryin): New insn pattern.
8219
8220 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8221
8222 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8223 operand 2.
8224
8225 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8226
8227 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8228 to match canonical form.
8229
8230 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8231
8232 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8233 (extend<mode>di2): Likewise.
8234
8235 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8236
8237 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8238 * config/arm/arm.c (arm_decompose_di_binop): New function.
8239 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8240 If not generating Thumb-1 code, decompose the operation into 32-bit
8241 pieces.
8242 * add0si_carryin_<optab>: New pattern.
8243
8244 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8245
8246 * arm.md (adddi3): Only accept register operands.
8247 (arm_adddi3): Convert to simple insn with no split. Do not accept
8248 constants.
8249 (adddi_sesidi_di): Delete patern.
8250 (adddi_zesidi_di): Likewise.
8251 (uaddv<mode>4): Use LTU as condition for branch.
8252 (adddi3_compareV): Convert to simple insn with no split.
8253 (addsi3_compareV_upper): Delete pattern.
8254 (adddi3_compareC): Convert to simple insn with no split. Correct
8255 flags setting expression.
8256 (addsi3_compareC_upper): Delete pattern.
8257 (addsi3_compareC): Correct flags setting expression.
8258 (subdi3_compare1): Convert to simple insn with no split.
8259 (subsi3_carryin_compare): Delete pattern.
8260 (arm_subdi3): Convert to simple insn with no split.
8261 (subdi_zesidi): Delete pattern.
8262 (subdi_di_sesidi): Delete pattern.
8263 (subdi_zesidi_di): Delete pattern.
8264 (subdi_sesidi_di): Delete pattern.
8265 (subdi_zesidi_zesidi): Delete pattern.
8266 (negvdi3): Use s_register_operand.
8267 (negdi2_compare): Convert to simple insn with no split.
8268 (negdi2_insn): Likewise.
8269 (negsi2_carryin_compare): Delete pattern.
8270 (negdi_zero_extendsidi): Delete pattern.
8271 (arm_cmpdi_insn): Convert to simple insn with no split.
8272 (negdi2): Don't call gen_negdi2_neon.
8273 * config/arm/neon.md (adddi3_neon): Delete pattern.
8274 (subdi3_neon): Delete pattern.
8275 (negdi2_neon): Delete pattern.
8276 (splits for negdi2_neon): Delete splits.
8277
8278 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8279
8280 PR middle-end/92153
8281 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8282 than after it.
8283
8284 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8285
8286 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8287 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8288 new multilib variants and new mappings.
8289
8290 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8291
8292 PR target/86040
8293 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8294
8295 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8296 Richard Sandiford <richard.sandiford@arm.com>
8297
8298 PR target/86753
8299 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8300 and define hashmap traits for it.
8301 (loop_vec_info::scalar_cond_masked_set): New member.
8302 (vect_record_loop_mask): Adjust prototype.
8303 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8304 Implement method.
8305 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8306 vect_record_loop_mask.
8307 (vectorizable_live_operation): Likewise.
8308 (vect_record_loop_mask): New param scalar_mask. Add entry
8309 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8310 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8311 Pass it as last arg to vect_record_loop_mask.
8312 (vectorizable_call): Pass scalar_mask as last arg to
8313 vect_record_loop_mask.
8314 (vectorizable_store): Likewise.
8315 (vectorizable_load): Likewise.
8316 (vectorizable_condition): Check if another part of vectorized code
8317 applies loop_mask to condition or to it's inverse, and if yes,
8318 apply loop_mask to result of vector comparison.
8319
8320 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8321
8322 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8323
8324 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8325
8326 PR tree-optimization/92056
8327 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8328 before calling compute_builtin_object_size.
8329
8330 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8331
8332 PR target/65342
8333 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8334 (movdi_low_st): Delete.
8335 * config/rs6000/rs6000.c
8336 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8337 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8338 * config/rs6000/rs6000.md (movsi_low): Delete.
8339
8340 2019-10-17 Jason Merrill <jason@redhat.com>
8341
8342 * gimplify.h (get_initialized_tmp_var): Add default argument to
8343 post_p.
8344 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8345 NULL post_p argument.
8346 * targhooks (std_gimplify_va_arg_expr): Likewise.
8347
8348 2019-10-17 Richard Biener <rguenther@suse.de>
8349
8350 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8351 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8352 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8353 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8354 * tree-vect-loop.c (vect_is_simple_reduction): Set
8355 STMT_VINFO_REDUC_CODE.
8356 (vectorizable_reduction): Remove dead and redundant code, use
8357 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8358
8359 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8360
8361 Fix breakage introduced by r276985.
8362
8363 * config/avr/avr.c (avr_option_override): Remove set of
8364 PARAM_ALLOW_STORE_DATA_RACES.
8365 * common/config/avr/avr-common.c (avr_option_optimization_table)
8366 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8367
8368 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8369
8370 * config/i386/i386.h (processor_costs): Add clear_ratio.
8371 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8372 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8373 of 6 and move_ratio in all cost models.
8374
8375 2019-10-17 Richard Biener <rguenther@suse.de>
8376
8377 * tree-vect-loop.c (check_reduction_path): Compute reduction
8378 operation here.
8379 (vect_is_simple_reduction): Remove special-case of single-stmt
8380 reduction path detection.
8381
8382 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8383
8384 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8385
8386 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8387
8388 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8389 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8390 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8391 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8392 New combine patterns.
8393 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8394 above.
8395 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8396
8397 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8398
8399 * tree-vrp.c (value_range_base::dump): Display +INF for both
8400 pointers and integers when appropriate.
8401
8402 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8403
8404 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8405 when to use versioning threshold.
8406
8407 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8408
8409 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8410 outlined code from ...
8411 (vect_analyze_loop_2): ... here.
8412
8413 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8414
8415 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8416 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8417 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8418
8419 2019-10-17 Richard Biener <rguenther@suse.de>
8420
8421 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8422 (vect_is_simple_reduction): Move all validity checks ...
8423 (vectorizable_reduction): ... here. Compute whether we
8424 need a fold-left reduction here.
8425 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8426 both overloads, check needs_fold_left_reduction_p directly.
8427 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8428
8429 2019-10-17 Richard Biener <rguenther@suse.de>
8430
8431 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8432 TARGET_MEM_REF creation.
8433
8434 2019-10-17 Richard Biener <rguenther@suse.de>
8435
8436 PR tree-optimization/92129
8437 * tree-vect-loop.c (vectorizable_reduction): Also fail
8438 on GIMPLE_SINGLE_RHS.
8439
8440 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8441
8442 PR tree-optimization/92056
8443 * tree-object-size.c (cond_expr_object_size): Return early if then_
8444 processing resulted in unknown size.
8445
8446 PR tree-optimization/92115
8447 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8448 temporary if it could trap.
8449
8450 2019-10-17 Richard Biener <rguenther@suse.de>
8451
8452 PR debug/91887
8453 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8454 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8455
8456 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8457
8458 * tree-ssa-strlen.c (maybe_invalidate): Use
8459 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8460
8461 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8462 Jim Wilson <jimw@sifive.com>
8463
8464 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8465 regs to SIBCALL_REGS.
8466 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8467 passing regs to SIBCALL_REGS.
8468
8469 2019-10-16 Martin Sebor <msebor@redhat.com>
8470
8471 PR tree-optimization/83821
8472 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8473 the length of a string when available.
8474 (handle_builtin_memset) Add argument.
8475 (handle_store, strlen_check_and_optimize_call): Same.
8476 (check_and_optimize_stmt): Same. Pass it to callees.
8477
8478 2019-10-16 Martin Sebor <msebor@redhat.com>
8479
8480 PR tree-optimization/91996
8481 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8482 information.
8483 (compare_nonzero_chars): Add an overload.
8484 (count_nonzero_bytes): Add an argument. Call overload above.
8485 Handle non-constant lengths in some range.
8486 (handle_store): Add an argument.
8487 (check_and_optimize_stmt): Pass an argument to handle_store.
8488
8489 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8490
8491 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8492
8493 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8494
8495 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8496 operands which correspond to the same input-output register to
8497 have the same pseudo assigned to them.
8498
8499 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8500
8501 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8502
8503 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8504
8505 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8506 Apply reasonable limit to symbol offsets.
8507
8508 2019-10-16 Richard Biener <rguenther@suse.de>
8509
8510 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8511 (vect_is_simple_reduction): Delay checking to
8512 vectorizable_reduction and relax the checking.
8513 (vectorizable_reduction): Check we have a simple use. Check
8514 for bogus condition reductions.
8515 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8516 are looking at the last stmt in a pattern sequence when
8517 filling in backedge PHI values.
8518
8519 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8520 Jiufu Guo <guojiufu@linux.ibm.com>
8521
8522 PR target/70010
8523 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8524 the callee explicitly disables some isa_flags the caller is using.
8525
8526 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8527
8528 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8529
8530 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8531
8532 * genmodes.c (mode_data::order): New field.
8533 (blank_mode): Update accordingly.
8534 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8535 (make_vector_modes): Likewise.
8536 (VECTOR_MODES): Update use accordingly.
8537 (cmp_modes): Sort by the new order field ahead of sorting by size.
8538 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8539 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8540 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8541 (aarch64_classify_vector_mode): Handle the new partial modes.
8542 (aarch64_vl_bytes): New function.
8543 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8544 when counting the number of registers in an SVE mode.
8545 (aarch64_class_max_nregs): Likewise.
8546 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8547 in registers yet.
8548 (aarch64_classify_address): Treat partial vectors analogously
8549 to full vectors.
8550 (aarch64_print_address_internal): Consolidate the printing of
8551 MUL VL addresses, using aarch64_vl_bytes as the number of
8552 bytes represented by "VL".
8553 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8554
8555 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8556
8557 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8558 rather than known_lt when choosing frame layouts.
8559
8560 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8561
8562 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8563 that all the adjustments add up to the full frame size.
8564 Use crtl->outgoing_args_size directly as the final adjustment
8565 where appropriate.
8566
8567 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8568
8569 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8570 "frame" reference instead of always referring directly to
8571 "cfun->machine->frame".
8572
8573 2019-10-16 Richard Biener <rguenther@suse.de>
8574
8575 PR tree-optimization/92119
8576 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8577 against missing bswap lhs.
8578
8579 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8580
8581 PR middle-end/92033
8582 * poly-int.h (constant_lower_bound_with_limit): New function.
8583 (constant_upper_bound_with_limit): Likewise.
8584 * doc/poly-int.texi: Document them.
8585 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8586 into the worst-case INTEGER_CST bounds.
8587
8588 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8589
8590 PR ipa/91088
8591 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8592 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8593 * ipa-predicat.h (struct expr_eval_op): New struct.
8594 (expr_eval_ops): New typedef.
8595 (struct condition): Add type and param_ops fields, remove size field.
8596 (add_condition): Replace size parameter with type parameter, add
8597 param_ops parameter.
8598 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8599 (predicate::add_clause): Add comparisons on type and param_ops.
8600 (dump_condition): Add debug dump for param_ops.
8601 (remap_after_inlining): Adjust call arguments to add_condition.
8602 (add_condition): Replace size parameter with type parameter, add
8603 param_ops parameter. Unshare constant value used in conditions.
8604 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8605 parameter expressions using param_ops.
8606 (decompose_param_expr): New function.
8607 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8608 to replace call to unmodified_parm_or_parm_agg_item.
8609 (set_switch_stmt_execution_predicate): Likewise.
8610 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8611 with type.
8612 (inline_read_section): Read param_ops from summary stream.
8613 (ipa_fn_summary_write): Write param_ops to summary stream.
8614
8615 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8616
8617 PR rtl-optimization/92107
8618 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8619 expression written.
8620
8621 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8622
8623 * config/darwin.c: Update description of fix and continue.
8624
8625 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8626
8627 * config/darwin.c (darwin_binds_local_p): Update to call
8628 default_binds_local_p_3 () directly. amend comments.
8629
8630 2019-10-15 Richard Biener <rguenther@suse.de>
8631
8632 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8633 (tree_is_indexable): Use it.
8634 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8635 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8636 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8637
8638 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8639
8640 * config/msp430/msp430.md (zero_extendqipsi2): New.
8641 (zero_extendqisi2): Optimize case where src register and base dst
8642 register are the same.
8643 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8644 (zero_extendpsisi2): Optimize r->m case.
8645 Add unnamed insn patterns to catch insns combine searches for when
8646 optimizing pointer manipulation.
8647
8648 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8649
8650 * config/msp430/msp430.md: Group zero_extend* insns together.
8651
8652 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8653
8654 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8655 constraint.
8656 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8657 POST_INC.
8658 (msp430_subreg): Likewise.
8659 (msp430_split_addsi): Likewise.
8660 (msp430_print_operand_addr): Likewise.
8661 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8662 (USE_STORE_POST_INCREMENT): Define.
8663 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8664 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8665 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8666 (msp430_general_dst_operand): New.
8667 (msp430_general_dst_nonv_operand): New.
8668 (msp430_nonsubreg_operand): Remove.
8669 (msp430_nonsubreg_dst_operand): New.
8670 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8671 of defunct msp430_nonsubreg_operand.
8672 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8673
8674 2019-10-15 Richard Biener <rguenther@suse.de>
8675
8676 PR tree-optimization/91929
8677 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8678 (get_or_alloc_expr_for_name): Initialize it.
8679 (get_or_alloc_expr_for_constant): Likewise.
8680 (phi_translate_1): Copy it.
8681 (create_expression_by_pieces): Use the original location
8682 of the expression for the inserted stmt.
8683 (compute_avail): Record the location of the stmt for the
8684 expressions created.
8685
8686 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8687
8688 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8689 before using tree_to_uhwi.
8690
8691 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8692
8693 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8694
8695 2019-10-15 Richard Biener <rguenther@suse.de>
8696
8697 PR tree-optimization/92094
8698 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8699 do not adjust the reduction definition def type.
8700 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8701 defines the latch argument of the PHI.
8702
8703 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8704
8705 PR target/92035
8706 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8707 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8708 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8709 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8710 _mm_maskz_roundscale_round_sd): New intrinsics.
8711 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8712 __builtin_ia32_rndscales?_mask_round builtins instead of
8713 __builtin_ia32_rndscales?_round.
8714 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8715 __builtin_ia32_rndscalesd_round): Remove.
8716 (__builtin_ia32_rndscaless_mask_round,
8717 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8718 * config/i386/sse.md
8719 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8720 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8721 ... this, adjust and add subst atrributes to make it maskable.
8722
8723 2019-10-15 Richard Biener <rguenther@suse.de>
8724
8725 PR middle-end/92046
8726 * common.opt (fallow-store-data-races): New.
8727 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8728 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8729 * doc/invoke.texi (fallow-store-data-races): Document.
8730 (--param allow-store-data-races): Remove docs.
8731 * opts.c (default_options_table): Enable -fallow-store-data-races
8732 at -Ofast.
8733 (default_options_optimization): Do not enable --param
8734 allow-store-data-races at -Ofast.
8735 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8736 instead of PARAM_ALLOW_STORE_DATA_RACES.
8737 * tree-ssa-loop-im.c (execute_sm): Likewise.
8738
8739 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8740
8741 PR tree-optimization/92085
8742 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8743 instead of calling it unconditionally after
8744 delete_dead_or_redundant_assignment and fix indentation.
8745
8746 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8747
8748 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8749 TARGET_VFP_DOUBLE.
8750 (*fmsub<SDF:mode>4): Likewise.
8751 *fnmsub<SDF:mode>4): Likewise.
8752 (*fnmadd<SDF:mode>4): Likewise.
8753
8754 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8755
8756 * doc/tree-ssa.texi: Update renamed macro name.
8757
8758 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8759
8760 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8761 vector constants.
8762
8763 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8764
8765 * config/darwin.c: Use unsigned ints for the picbase label
8766 counters, initialise the vars explicitly.
8767 (update_pic_label_number_if_needed): Move a variable declaration
8768 to where it's needed.
8769 (machopic_output_function_base_name): Use a more strict checking
8770 assert, and and unsigned int for the picbase label counter.
8771 (machopic_get_function_picbase): Likewise.
8772
8773 2019-10-14 Richard Biener <rguenther@suse.de>
8774
8775 PR middle-end/92046
8776 * dse.c (scan_insn): Use param max_active_local_stores.
8777 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8778 based on optimization level.
8779 * loop-invariant.c (move_loop_invariants): Adjust
8780 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8781 * opts.c (default_options_optimization): Do not adjust
8782 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8783 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8784
8785 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8786
8787 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8788
8789 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8790
8791 * config/arm/arm.c (arm_option_override): Don't override sched
8792 pressure algorithm.
8793
8794 2019-10-14 Richard Biener <rguenther@suse.de>
8795
8796 PR tree-optimization/92069
8797 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8798 cycles do not set vect_nested_cycle on the latch definition.
8799
8800 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8801
8802 * function-abi.h (expr_callee_abi): Declare.
8803 * function-abi.cc (expr_callee_abi): New function.
8804
8805 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8806
8807 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8808 into [1,MAX].
8809 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8810 non-zero being represented as [1,MAX].
8811
8812 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8813
8814 * tree-sra.c (dump_access): Add missing braces.
8815
8816 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8817
8818 * config/darwin.c (machopic_indirection_name): Rework the
8819 function to emit linker-visible symbols only for indirections
8820 in the data section. Clean up the code and update comments.
8821
8822 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8823
8824 * config/darwin.c (machopic_indirect_data_reference): Remove
8825 redundant code.
8826
8827 2019-10-13 Nathan Sidwell <nathan@acm.org>
8828
8829 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8830
8831 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8832
8833 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8834 c99_runtime.
8835
8836 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8837
8838 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8839 so non-virutal are before virutals.
8840 (output_function): Avoid body modifications.
8841
8842 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8843
8844 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8845 %r22. Load function address before global pointer.
8846 (pa_attr_length_indirect_call): Adjust length of inline versions of
8847 $$dyncall.
8848 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8849 before normal cases. Update inline $$dyncall sequences to preserve
8850 function descriptor address in register %r22.
8851 (TRAMPOLINE_CODE_SIZE): Adjust.
8852 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8853 register %r22 contains trampoline address.
8854 (pa_trampoline_init): Adjust offsets.
8855 (pa_trampoline_adjust_address): Likewise.
8856 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8857
8858 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8859
8860 PR target/67183
8861 * config/darwin.c (machopic_indirection): New field to flag
8862 non-lazy-symbol-pointers in the data section.
8863 (machopic_indirection_name): Compute if an indirection should
8864 appear in the data section.
8865 (machopic_output_data_section_indirection): New callback split
8866 from machopic_output_indirection.
8867 (machopic_output_stub_indirection): Likewise.
8868 (machopic_output_indirection): Retain the code for non-lazy
8869 symbol pointers in their regular section.
8870 (machopic_finish): Use the new callbacks to order the indirection
8871 output.
8872
8873 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8874
8875 * config/darwin-protos.h (machopic_finish): Delete.
8876 * config/darwin.c (machopic_finish): Make static.
8877
8878 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8879
8880 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8881 sections when building kernel extension code.
8882
8883 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8884
8885 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8886 later standard."
8887
8888 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8889
8890 * config/pa/pa.c (pa_option_override): Remove trailing comma
8891 from warning.
8892
8893 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8894
8895 PR middle-end/92063
8896 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8897 <case VEC_COND_EXPR>: Return false with *handled = false.
8898 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8899 recursing on the first operand.
8900 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8901 instead of tree_could_trap_p.
8902 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8903
8904 2019-10-11 Jim Wilson <jimw@sifive.com>
8905
8906 PR rtl-optimization/91860
8907 * combine.c (subst): If new_rtx is a constant, also check for
8908 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8909
8910 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8911
8912 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8913 INTVAL when calling store_bit_field.
8914
8915 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8916
8917 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8918 size.
8919
8920 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8921
8922 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8923 vectorizable_live_operation.
8924 (vectorizable_live_operation): Adjust parameters.
8925 * tree-vect-stmts.c (vect_init_vector,
8926 vect_gen_widened_results_half): Fix typo in function comment.
8927 (can_vectorize_live_stmts): Adjust function comment.
8928 Adjust parameters. Adjust call to vectorizable_live_operation.
8929 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8930 (vect_transform_stmt): Adjust function comment. Adjust call to
8931 can_vectorize_live_stmts.
8932 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8933
8934 2019-10-11 Richard Biener <rguenther@suse.de>
8935
8936 PR tree-optimization/90883
8937 PR tree-optimization/91091
8938 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8939 alias-sets both for recording VN table entries and continuing
8940 walking after translating through copies. Handle same-sized
8941 reads from SSA names by returning the plain SSA name.
8942 (eliminate_dom_walker::eliminate_stmt): Properly handle
8943 non-size precision stores in redundant store elimination.
8944
8945 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8946
8947 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8948 (ggc_collect): Dump later to not interfere with release_page dump.
8949 (ggc_trim): New function.
8950 * ggc-none.c (ggc_trim): New.
8951 * ggc.h (ggc_trim): Declare.
8952
8953 2019-10-11 Richard Biener <rguenther@suse.de>
8954
8955 PR tree-optimization/92066
8956 PR tree-optimization/92046
8957 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8958 Fix bogus cost model check.
8959
8960 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8961
8962 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8963 (LANG_HOOKS_DECLS): Add it.
8964 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8965 update comment for omp_is_optional_argument.
8966 * omp-general.c (omp_is_allocatable_or_ptr): New.
8967 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8968 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8969 Fortran's optional arguments and allocatable/pointer scalars
8970 with use_device_addr.
8971
8972 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8973
8974 PR target/77918
8975 * config/s390/2827.md: Add new opcodes.
8976 * config/s390/2964.md: Likewise.
8977 * config/s390/3906.md: Likewise.
8978 * config/s390/8561.md: Likewise.
8979 * config/s390/s390-builtins.def (s390_vfchesb): Use
8980 the new vec_cmpgev4sf_quiet_nocc.
8981 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8982 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8983 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8984 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8985 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8986 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8987 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8988 * config/s390/s390-modes.def (CCSFPS): New mode.
8989 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8990 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8991 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8992 (s390_expand_vec_compare): Use non-signaling patterns where
8993 necessary.
8994 (s390_reverse_condition): Support CCSFPS.
8995 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8996 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8997 (asm_fcmp_op): Likewise.
8998 (*smaxv2df3_vx): Use pattern for quiet comparison.
8999 (*sminv2df3_vx): Likewise.
9000 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9001 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9002 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9003 (vec_cmplt<mode>_quiet_nocc): New expander.
9004 (vec_cmpge<mode>_quiet_nocc): New pattern.
9005 (vec_cmple<mode>_quiet_nocc): New expander.
9006 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9007 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9008 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9009 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9010 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9011 (vec_cmpungt<mode>): New expander.
9012 (vec_cmpunge<mode>): Likewise.
9013 (vec_cmpuneq<mode>): Use quiet patterns.
9014 (vec_cmpltgt<mode>): Allow only on z14+.
9015 (vec_cmpordered<mode>): Use quiet patterns.
9016 (vec_cmpunordered<mode>): Likewise.
9017 (VEC_CMP_EXPAND): Add ungt and unge.
9018
9019 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9020
9021 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9022 parameter.
9023 * lto-streamer-out.c: Include tree-dfa.h.
9024 (output_cfg): Do not use cfun.
9025 (lto_prepare_function_for_streaming): New.
9026 (output_function): Do not push cfun; do not initialize loop optimizer.
9027 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9028 * passes.c (ipa_write_summaries): Use it.
9029 (ipa_write_optimization_summaries): Do not modify bodies.
9030 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9031 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9032 * tree-ssa-dse.c (pass_dse::execute): Update use of
9033 renumber_gimple_stmt_uids.
9034 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9035
9036 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9037
9038 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9039 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9040
9041 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9042
9043 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9044 macros.
9045 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9046 Also define DFP macros for these conditions.
9047 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9048 DEC128_SUBNORMAL_MIN): Do not define.
9049 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9050 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9051
9052 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9053 Sandra Loosemore <sandra@codesourcery.com>
9054
9055 PR middle-end/26241
9056 * doc/lto.texi (IPA): Reference to the IPA passes.
9057 * doc/passes.texi (Pass manager): Add node IPA passes and
9058 description for each IPA pass.
9059
9060 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9061
9062 * ipa-reference.c: Do not include splay-tree.h
9063 (reference_vars_to_consider): Turn to hash map.
9064 (get_static_name, ipa_init, analyze_function, propagate,
9065 stream_out_bitmap, ipa_reference_write_optimization_summary,
9066 ipa_reference_write_optimization_summary): Update.
9067
9068 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9069
9070 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9071
9072 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9073
9074 * config/darwin.c: Lookup Objective C metadata and force indirection
9075 for IVAR refs.
9076
9077 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9078
9079 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9080 addresses.
9081 (mem_operand_gpr): Add check for prefixed addresses.
9082 (mem_operand_ds_form): Add check for prefixed addresses.
9083 (rs6000_legitimate_offset_address_p): If we support prefixed
9084 addresses, check for a 34-bit offset instead of 16-bit.
9085 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9086 Do not allow load/store with update if the address is prefixed.
9087 (rs6000_mode_dependent_address): If we support prefixed
9088 addresses, check for a 34-bit offset instead of 16-bit.
9089
9090 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9091
9092 PR target/77918
9093 * config/s390/vector.md (vcond_comparison_operator): New
9094 predicate.
9095 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9096
9097 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9098
9099 PR 87488
9100 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9101 -D.
9102 * configure.ac (--with-documentation-root-url): New option.
9103 * configure: Regenerate.
9104 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9105 option URL, add it as a new string field of the diagnostic option.
9106 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9107 (print_option_information): If get_option_url is non-NULL, call
9108 it, and if the result is non-NULL, potentially emit an escape
9109 sequence to markup the option text with the resulting URL.
9110 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9111 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9112 example of JSON output.
9113 * opts-diagnostic.h (get_option_url): New decl.
9114 * opts.c (get_option_url): New function.
9115 * toplev.c (general_init): Initialize the get_option_url callback.
9116
9117 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9118
9119 PR 87488
9120 * common.opt (fdiagnostics-urls=): New option.
9121 (diagnostic-url.h): Add SourceInclude.
9122 (diagnostic_url_rule): New enum.
9123 * diagnostic-color.c: Include "diagnostic-url.h".
9124 (diagnostic_urls_enabled_p): New function.
9125 * diagnostic-url.h: New file.
9126 * diagnostic.c: Include "diagnostic-url.h".
9127 (diagnostic_urls_init): New function.
9128 * diagnostic.h (diagnostic_urls_init): New decl.
9129 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9130 -fdiagnostics-urls to the list.
9131 (-fdiagnostics-urls): New option.
9132 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9133 (driver::global_initializations): Call diagnostic_urls_init.
9134 * opts-global.c (init_options_once): Likewise.
9135 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9136 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9137 show_urls.
9138 (pp_begin_url): New function.
9139 (pp_end_url): New function.
9140 (selftest::test_urls): New selftest.
9141 (selftest::pretty_print_c_tests): Call it.
9142 * pretty-print.h (pretty_printer::show_urls): New field.
9143 (pp_begin_url): New decl.
9144 (pp_end_url): New decl.
9145
9146 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9147
9148 PR target/92022
9149 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9150
9151 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9152
9153 PR target/88630
9154 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9155 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9156 also for TARGET_FPU_SH4_300.
9157 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9158 TARGET_SH4_300.
9159 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9160 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9161 (*negsf2_i): Split into ...
9162 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9163 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9164 (**abssf2_i): Split into ...
9165 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9166 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9167 (*negdf2_i): Split into ...
9168 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9169 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9170 (**abssf2_i): Split into ...
9171 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9172
9173 2019-10-10 Richard Biener <rguenther@suse.de>
9174
9175 PR middle-end/92046
9176 * opts.c (finish_options): Do not influence global --params
9177 from options that are adjustable per function.
9178 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9179 Apply --param adjustment based on active cost-model.
9180 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9181 further store-sinking when vectorization or if-conversion
9182 are not enabled.
9183
9184 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9185
9186 PR middle-end/92037
9187 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9188 rather than ggc_alloc_cleared to alloc symbol table.
9189 * toplev.c (general_init): Likewise.
9190 * cgraph.h (symbol_table): Explicitly construct every field.
9191
9192 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9193
9194 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9195 (PF_Z15): ... this.
9196 * config.gcc: Add z15 as option for --with-arch and --with-tune
9197 configure switches.
9198 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9199 error reporting for unsupported builtins.
9200 * config/s390/s390-opts.h (enum processor_type): Rename
9201 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9202 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9203 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9204 Likewise.
9205 * config/s390/s390-builtins.def: Likewise.
9206 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9207 (s390_expand_builtin): Add missing check for unsupported builtins.
9208 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9209 (s390_rtx_costs): Likewise.
9210 (s390_get_sched_attrmask): Rename arch13 to z15.
9211 (s390_get_unit_mask): Likewise.
9212 (s390_is_fpd): Likewise.
9213 (s390_is_fxd): Likewise.
9214 * config/s390/s390.h (enum processor_flags): Likewise.
9215 * config/s390/s390.md: Likewise.
9216 * config/s390/vector.md: Likewise.
9217 * config/s390/vx-builtins.md: Likewise.
9218 * config/s390/s390.opt: Add z15 to processor_type value.
9219
9220 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9221
9222 PR target/91035
9223 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9224 prototype.
9225 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9226 ("split_stack_data", "split_stack_call")
9227 ("split_stack_call_<mode>", "split_stack_cond_call")
9228 ("split_stack_cond_call_<mode>"): Remove.
9229 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9230 insn definition.
9231 * config/s390/s390.c (s390_output_split_stack_data): New function.
9232 (s390_expand_split_stack_prologue): Use the merged expander.
9233
9234 2019-10-09 Martin Sebor <msebor@redhat.com>
9235
9236 PR tree-optimization/90879
9237 * builtins.c (check_access): Avoid using maxbound when null.
9238 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9239 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9240 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9241 conditional.
9242 (get_range_strlen): Overwrite initial maxbound when non-null.
9243 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9244 changes.
9245 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9246 (used_only_for_zero_equality): New function.
9247 (handle_builtin_memcmp): Call it.
9248 (determine_min_objsize): Return an integer instead of tree.
9249 (get_len_or_size, strxcmp_eqz_result): New functions.
9250 (maybe_warn_pointless_strcmp): New function.
9251 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9252 between a longer string and a smaller array.
9253 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9254
9255 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9256
9257 * config/darwin.c (darwin_override_options): Make the check for
9258 Objective-C ABI version more specific for 64bit code.
9259
9260 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9261
9262 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9263 indicate that the new symbol is an indirection.
9264 (machopic_indirect_call_target): Likewise.
9265 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9266 (MACHO_SYMBOL_INDIRECTION_P): New.
9267 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9268
9269 2019-10-08 Jason Merrill <jason@redhat.com>
9270
9271 * doc/invoke.texi: Document -fconcepts-ts.
9272
9273 2019-10-09 Richard Biener <rguenther@suse.de>
9274
9275 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9276 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9277
9278 2019-10-08 Richard Biener <rguenther@suse.de>
9279
9280 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9281 (_stmt_vec_info::force_single_cycle): Likewise.
9282 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9283 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9284 * tree-vect-loop.c (vectorizable_reduction): Set
9285 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9286 (vect_transform_reduction): Use them to remove redundant code.
9287 (vect_transform_cycle_phi): Likewise.
9288
9289 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9290
9291 PR tree-optimization/90836
9292 * match.pd (popcount): New pattern.
9293
9294 2019-10-08 Martin Sebor <msebor@redhat.com>
9295
9296 PR middle-end/92026
9297 PR middle-end/92014
9298 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9299 again once nbytes has been set. Set the access size when not yet set.
9300
9301 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9302
9303 * config/darwin.c (machopic_select_section): Remove dead code for
9304 old Objective-C section selection method, replace with unreachable.
9305
9306 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9307
9308 * config/darwin.c (machopic_indirect_data_reference): Check for
9309 required indirections before making direct access to defined
9310 values.
9311 (machopic_output_indirection): Place the indirected pointes for
9312 required indirections into the non-lazy symbol pointers section.
9313 (darwin_encode_section_info):
9314 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9315 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9316
9317 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9318
9319 PR target/91994
9320 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9321 instead of ALL_SSE_REG to check if function call preserves some
9322 256-bit SSE registers.
9323
9324 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9325
9326 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9327 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9328 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9329
9330 2019-10-08 Richard Biener <rguenther@suse.de>
9331
9332 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9333 (_stmt_vec_info::is_reduc_info): Add.
9334 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9335 (vectorizable_condition): Remove.
9336 (vectorizable_shift): Likewise.
9337 (vectorizable_reduction): Adjust.
9338 (info_for_reduction): New.
9339 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9340 (vect_analyze_scalar_cycles_1): ... here.
9341 (vect_analyze_loop_operations): Adjust.
9342 (needs_fold_left_reduction_p): Simplify for single caller.
9343 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9344 for nested cycles not part of double reductions.
9345 (vect_model_reduction_cost): Pass in the reduction type.
9346 (info_for_reduction): New function.
9347 (vect_create_epilog_for_reduction): Use it, access reduction
9348 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9349 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9350 (vectorize_fold_left_reduction): Remove pointless assert.
9351 (vectorizable_reduction): Analyze the full reduction when
9352 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9353 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9354 stmt code-generation to vectorizable_* in most cases. Verify
9355 code-generation only for cases handled by
9356 vect_transform_reductuon.
9357 (vect_transform_reduction): Use info_for_reduction to get at
9358 reduction meta. Simplify.
9359 (vect_transform_cycle_phi): Likewise.
9360 (vectorizable_live_operation): Likewise.
9361 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9362 at the PHI node for STMT_VINFO_REDUC_TYPE.
9363 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9364 longer necessary code.
9365 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9366 (vectorizable_condition): Likewise. Get at reduction related
9367 info via info_for_reduction.
9368 (vect_analyze_stmt): Adjust.
9369 (vect_transform_stmt): Likewise.
9370 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9371 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9372
9373 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9374
9375 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9376 -fno-fp-int-builtin-inexact default for C2X.
9377
9378 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9379 Richard Biener <rguenther@suse.de>
9380
9381 PR tree-optimization/91532
9382 * tree-if-conv.c: Include tree-ssa-dse.h.
9383 (ifcvt_local_dce): Change param from bb to loop,
9384 and call dse_classify_store.
9385 (tree_if_conversion): Pass loop instead of loop->header as arg
9386 to ifcvt_local_dce.
9387 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9388 (delete_dead_or_redundant_assignment): Remove static qualifier from
9389 declaration, and add prototype in tree-ssa-dse.h.
9390 (dse_store_status): Move to tree-ssa-dse.h.
9391 (dse_classify_store): Remove static qualifier and add new tree param
9392 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9393 * tree-ssa-dse.h: New header.
9394
9395 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9396
9397 * config/darwin.c (machopic_output_indirection): Don't put
9398 hidden symbol indirections into the .data section, use the
9399 non-lazy symbol pointers section as normal.
9400 (darwin_encode_section_info): Record if a symbol is hidden.
9401 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9402 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9403
9404 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9405
9406 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9407 predicates instead of accessing bits directly.
9408 (machopic_indirect_call_target): Likewise.
9409 (machopic_output_indirection): Likewise.
9410 (darwin_encode_section_info): Improve description. Use renamed
9411 symbol flags. Use predicate macros for variables and functions.
9412 * config/darwin.h:
9413 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9414 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9415 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9416 (MACHO_SYMBOL_VARIABLE_P): New.
9417 (MACHO_SYMBOL_DEFINED_P):New.
9418 (MACHO_SYMBOL_STATIC_P): New.
9419 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9420 (SYMBOL_FLAG_SUBT_DEP): New.
9421 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9422
9423 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9424
9425 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9426 (msp430_expand_epilogue): Likewise.
9427 * config/msp430/predicates.md: Likewise.
9428 * config/msp430/msp430.md: Likewise.
9429 Replace blocks of 8 spaces with tabs.
9430
9431 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9432
9433 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9434 * config/msp430/msp430.c (msp430_split_addsi): New.
9435 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9436 a block of C code for splitting addsi.
9437
9438 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9439
9440 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9441 ix86_expand_rounddf_32): Reorder functions.
9442 * config/i386/i386-protos.h: Update.
9443
9444 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9445
9446 * config.in: Regenerate.
9447 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9448 Add new "Yx" constraint.
9449 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9450 function.
9451 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9452 prototype.
9453 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9454 code/data region to be selected in the small memory model.
9455 (msp430_section_attr): Don't warn if the "section" and "lower"
9456 attributes are used together.
9457 (msp430_handle_generic_attribute): Likewise.
9458 (msp430_var_in_low_mem): New function.
9459 (TARGET_ENCODE_SECTION_INFO): Define.
9460 (msp430_encode_section_info): New function.
9461 (gen_prefix): Return early in the small memory model.
9462 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9463 ".lower" prefix if -m{code,data}-region=lower have been passed.
9464 (msp430_output_aligned_decl_common): Emit common symbols when
9465 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9466 set.
9467 (TARGET_ASM_FILE_END): Define.
9468 (msp430_file_end): New function.
9469 (msp430_do_not_relax_short_jumps): Allow relaxation when
9470 function will be in the lower region.
9471 (msp430_op_not_in_high_mem): New function.
9472 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9473 the 'X' operand selector.
9474 Clarify comment for 'x' operand selector.
9475 * config/msp430/msp430.h (LINK_SPEC): Propagate
9476 -m{code,data}-region to the linker via spec function
9477 msp430_propagate_region_opt.
9478 (msp430_propagate_region_opt): New prototype.
9479 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9480 (SYMBOL_FLAG_LOW_MEM): Define.
9481 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9482 selector.
9483 (zero_extendqihi2): Fix operand number used by "%X" selector.
9484 (zero_extendqisi2): Likewise.
9485 (zero_extendhisi2): Likewise.
9486 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9487 (movhi): Likewise.
9488 (addqi3): Likewise.
9489 (addhi3): Likewise.
9490 (addsi3): Likewise.
9491 (addhi3_cy): Likewise.
9492 (addchi4_cy): Likewise.
9493 (subqi3): Likewise.
9494 (subhi3): Likewise.
9495 (subsi3): Likewise.
9496 (bic<mode>3): Likewise.
9497 (and<mode>3): Likewise.
9498 (ior<mode>3): Likewise.
9499 (xor<mode>3): Likewise.
9500 (slli_1): Add missing "%X" operand selector.
9501 (slll_1): Likewise.
9502 (slll_2): Likewise.
9503 (srai_1): Likewise.
9504 (sral_1): Likewise.
9505 (sral_2): Likewise.
9506 (srli_1): Likewise.
9507 (srll_1): Likewise.
9508 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9509 selector.
9510 (cbranchhi4_real): Likewise.
9511 (cbranchqi4_reversed): Likewise.
9512 (cbranchhi4_reversed): Likewise.
9513 (*bitbranch<mode>4): Likewise.
9514 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9515 * config/msp430/msp430.opt (mcode-region=): Set default to
9516 MSP430_REGION_LOWER. Improve docstring.
9517 (mdata-region=): Likewise.
9518 (muse-lower-region-prefix): New option.
9519 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9520 mdata-region=none multilib.
9521 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9522 mdata-region=none multilib.
9523 MULTILIB_EXCEPTIONS: Remove.
9524 MULTILIB_REQUIRED: Define.
9525 * configure: Regenerate.
9526 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9527 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9528 * doc/extend.texi: Clarify comment for {upper,lower,either}
9529 function attributes.
9530 Add separate description for "lower" variable attribute.
9531
9532 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9533
9534 PR target/77918
9535 * optabs-tree.c (vcond_icode_p): New function.
9536 (vcond_eq_icode_p): Likewise.
9537 (expand_vec_cond_expr_p): Use vcond_icode_p and
9538 vcond_eq_icode_p.
9539 * optabs.c (can_vcond_compare_p): New function.
9540 * optabs.h (can_vcond_compare_p): Likewise.
9541
9542 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9543
9544 PR target/77918
9545 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9546 caller passes a non-trapping condition.
9547 (is_gimple_condexpr): Allow trapping conditions.
9548 (is_gimple_condexpr_1): New helper function.
9549 (is_gimple_condexpr_for_cond): New function, acts like old
9550 is_gimple_condexpr.
9551 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9552 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9553 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9554 * gimplify.c (gimplify_cond_expr): Use
9555 is_gimple_condexpr_for_cond.
9556 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9557 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9558 VEC_COND_EXPR.
9559 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9560 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9561 is_gimple_condexpr_for_cond, remove pointless tmp check
9562 (forward_propagate_into_cond): Remove pointless tmp check.
9563
9564 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9565
9566 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9567 match that of other gsi_next_* functions. Adjust the comment.
9568 (gsi_start_nonvirtual_phis): New function.
9569 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9570 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9571
9572 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9573
9574 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9575 setjmp situation here. Fix a verb's ending: "the exact variables or
9576 elements for which there are warnings depends" -> "... depend".
9577
9578 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9579
9580 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9581
9582 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9583
9584 * ipa-prop.c (ipa_vr::nonzero_p): New.
9585 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9586 non-zero range.
9587 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9588 * tree-vrp.c (range_has_numeric_bounds_p): New.
9589 (range_int_cst_p): Use range_has_numeric_bounds_p.
9590 (get_range_op_handler): New.
9591 (supported_types_p): New.
9592 (defined_ranges_p): New.
9593 (drop_undefines_to_varying): New.
9594 (range_fold_binary_symbolics_p): New.
9595 (range_fold_unary_symbolics_p): New.
9596 (range_fold_unary_expr): Extract out into above functions.
9597 (range_fold_binary_expr): Same.
9598 (value_range_base::normalize_addresses): New.
9599 (value_range_base::normalize_symbolics): Normalize addresses.
9600 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9601
9602 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9603
9604 * tree-vrp.c (value_range_base::singleton_p): Use
9605 value_range_base::num_pairs instead of vrp_val_is* to check
9606 if a range has one sub-range.
9607
9608 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9609
9610 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9611 DEF is not a true earlyclobber but is tied to a specific input
9612 operand, and so is effectively earlyclobber wrt inputs that have
9613 different values.
9614 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9615
9616 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9617
9618 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9619 (pod_mode): Mark operators likewise.
9620 (scalar_int_mode): Mark non-default constructors and
9621 operators with CONSTEXPR.
9622 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9623 (fixed_size_mode): Likewise.
9624
9625 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9626
9627 PR target/91994
9628 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9629 and wrap the unspec_volatile in a parallel.
9630 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9631 the unspec_volatile.
9632 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9633 unspec_volatile to be wrapped in a parallel.
9634 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9635 (ix86_add_reg_usage_to_vzerouppers): New functions.
9636 (rest_of_handle_insert_vzeroupper): Use them to add register
9637 usage information to the vzeroupper instructions.
9638
9639 2019-10-07 Richard Biener <rguenther@suse.de>
9640
9641 PR tree-optimization/91975
9642 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9643 handle invariants.
9644
9645 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9646
9647 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9648 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9649
9650 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9651
9652 * config/darwin.c (darwin_override_options): Adjust objective-c
9653 ABI version error messages to avoid punctuation and contracted
9654 negations.
9655
9656 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9657
9658 * ipa-inline.c: Fix type; compute size rather than self_size
9659 for size of caller function.
9660
9661 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9662
9663 PR target/59888
9664 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9665 choose const_data section for constants with relocations.
9666 (machopic_select_section): Pass relocation flag to
9667 darwin_rodata_section ().
9668
9669 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9670
9671 PR tree-optimization/91734
9672 * generic-match-head.c: Include fold-const-call.h.
9673 * match.pd (sqrt(x) cmp c): Check the boundary value and
9674 in case inexact computation of c*c affects comparison of the boundary,
9675 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9676 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9677 for -frounding-math. For c2, try the next smaller or larger floating
9678 point constant depending on comparison code and if it has the same
9679 sqrt as c2, use it instead of c2.
9680
9681 2019-10-04 Martin Sebor <msebor@redhat.com>
9682
9683 PR middle-end/91977
9684 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9685 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9686 uninitialized objects.
9687
9688 2019-10-04 Martin Sebor <msebor@redhat.com>
9689
9690 * builtins.c (compute_objsize): Add an argument.
9691 * tree-object-size.c (addr_object_size): Same.
9692 (compute_builtin_object_size): Same.
9693 * tree-object-size.h (compute_builtin_object): Same.
9694
9695 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9696
9697 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9698
9699 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9700
9701 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9702
9703 2019-10-04 Martin Jambor <mjambor@suse.cz>
9704
9705 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9706 fntype when switching to calling memcpy instead of memset.
9707
9708 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9709
9710 * hash-table.h (hash_table::empty_slow): Don't assign
9711 size_t values to int variables.
9712
9713 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9714
9715 * expr.c (convert_mode_scalar): Remove shadowing local var.
9716 (emit_block_move): Rename local vars.
9717 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9718 (emit_push_insn): Rename local vars.
9719 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9720 shadowing local vars.
9721 (store_constructor): Remove shadowing local vars. Rename local var.
9722 (store_field, expand_cond_expr_using_cmove,
9723 expand_expr_real_2): Remove shadowing local vars.
9724 (expand_expr_real_1,
9725 do_store_flag): Remove shadowing local vars. Rename local vars.
9726
9727 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9728
9729 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9730
9731 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9732
9733 * genmatch.c (commutate): Rename local var.
9734 (lower_cond): Reuse local var.
9735 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9736 dt_operand::gen, dt_operand::gen_gimple_expr,
9737 dt_simplify::gen): Add a param. Rename generated vars.
9738 (decision_tree::insert_operand,
9739 (capture_info::walk_match, capture_info::walk_result,
9740 capture_info::walk_c_expr): Rename local vars.
9741 (expr::gen_transform): Rename generated vars.
9742 Use snprintf. Rename local vars.
9743 (capture::gen_transform, dt_operand::get_name,
9744 dt_operand::gen_opname): Rename generated vars.
9745 (write_predicate): Adjust call to gen_kids.
9746 (parser::get_internal_capture_id): Rename generated vars.
9747 (parser::parse_expr): Rename local vars.
9748 (parser::parse_if): Remove local var.
9749 (parser::parse_pattern, add_operator): Rename local vars.
9750
9751 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9752
9753 * builtins.def (DEF_C2X_BUILTIN): New macro.
9754 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9755 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9756 (strndup): Use DEF_C2X_BUILTIN.
9757 * coretypes.h (enum function_class): Add function_c2x_misc.
9758
9759 2019-10-04 Maya Rashish <coypu@sdf.org>
9760
9761 * ira-color.c (update_costs_from_allocno): Call
9762 ira_init_register_move_cost_if_necessary.
9763
9764 2019-10-04 Jeff Law <law@redhat.com>
9765
9766 * config/h8300/h8300.md (cpymemsi): Disable.
9767 (movmd, movmd_internal_<mode>, movstr, movsd):
9768 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9769 (movmd splitter, movsd splitter): Likewise.
9770
9771 * range-op.cc (range_tests): Avoid two tests when ints and
9772 shorts are the same size.
9773
9774 2019-10-04 Richard Biener <rguenther@suse.de>
9775
9776 PR lto/91968
9777 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9778 BLOCK_VARS.
9779
9780 2019-10-04 Richard Biener <rguenther@suse.de>
9781
9782 PR tree-optimization/91982
9783 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9784 against EXTRACT_LAST_REDUCTION.
9785 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9786
9787 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9788
9789 * range-op.o (value_range_from_overflowed_bounds): Rename from
9790 adjust_overflow_bound.
9791 (value_range_with_overflow): Rename from
9792 create_range_with_overflow.
9793 (create_possibly_reversed_range): Adjusted for above renames.
9794 (operator_*::wi_fold): Same.
9795 (cross_product_operator::wi_cross_productor): Same.
9796
9797 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9798
9799 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9800 -Wshadow=compatible-local): Fix description.
9801 Add an example where -Wshadow=compatible-local does not
9802 warn.
9803
9804 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9805
9806 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9807
9808 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9809 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9810
9811 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9812
9813 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9814 can_move_by_pieces issue.
9815
9816 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9817
9818 PR target/87243
9819 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9820 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9821 is available and the user has not set one on the command line.
9822
9823 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9824
9825 PR target/91769
9826 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9827 instead of REGNO equality check on addr.reg.
9828
9829 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9830
9831 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9832 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9833 * doc/invoke.texi (inline-heuristics-hint-percent,
9834 inline-heuristics-hint-percent-O2): Document.
9835 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9836 hint attribute.
9837 (can_inline_edge_by_limits_p): Use it.
9838
9839 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9840
9841 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9842 to print CONST_DOUBLEs.
9843
9844 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9845
9846 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9847 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9848 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9849
9850 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9851
9852 * Makefile.in (OBJS): Add range.o and range-op.o.
9853 Remove wide-int-range.o.
9854 * function-tests.c (test_ranges): New.
9855 (function_tests_c_tests): Call test_ranges.
9856 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9857 range_fold_unary_expr instead of extract_range_from_unary_expr.
9858 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9859 * range-op.cc: New file.
9860 * range-op.h: New file.
9861 * range.cc: New file.
9862 * range.h: New file.
9863 * selftest.h (range_tests): New prototype.
9864 * ssa.h: Include range.h.
9865 * tree-vrp.c (value_range_base::value_range_base): New
9866 constructors.
9867 (value_range_base::singleton_p): Do not call
9868 ranges_from_anti_range until sure we will need to.
9869 (value_range_base::type): Rename gcc_assert to
9870 gcc_checking_assert.
9871 (vrp_val_is_max): New argument.
9872 (vrp_val_is_min): Same.
9873 (wide_int_range_set_zero_nonzero_bits): Move from
9874 wide-int-range.cc.
9875 (extract_range_into_wide_ints): Remove.
9876 (extract_range_from_multiplicative_op): Remove.
9877 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9878 from extract_range_from_binary_expr.
9879 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9880 from extract_range_from_binary_expr.
9881 (extract_range_from_binary_expr): Remove.
9882 (normalize_for_range_ops): New.
9883 (range_fold_binary_expr): New.
9884 (range_fold_unary_expr): New.
9885 (value_range_base::num_pairs): New.
9886 (value_range_base::lower_bound): New.
9887 (value_range_base::upper_bound): New.
9888 (value_range_base::upper_bound): New.
9889 (value_range_base::contains_p): New.
9890 (value_range_base::invert): New.
9891 (value_range_base::union_): New.
9892 (value_range_base::intersect): New.
9893 (range_compatible_p): New.
9894 (value_range_base::operator==): New.
9895 (determine_value_range_1): Call range_fold_*expr instead of
9896 extract_range_from_*expr.
9897 * tree-vrp.h (class value_range_base): Add new constructors.
9898 Add methods for union_, intersect, operator==, contains_p,
9899 num_pairs, lower_bound, upper_bound, invert.
9900 (vrp_val_is_min): Add handle_pointers argument.
9901 (vrp_val_is_max): Same.
9902 (extract_range_from_unary_expr): Remove.
9903 (extract_range_from_binary_expr): Remove.
9904 (range_fold_unary_expr): New.
9905 (range_fold_binary_expr): New.
9906 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9907 range_fold_binary_expr instead of extract_range_from_binary_expr.
9908 (vr_values::extract_range_basic): Same.
9909 (vr_values::extract_range_from_unary_expr): Call
9910 range_fold_unary_expr instead of extract_range_from_unary_expr.
9911 * wide-int-range.cc: Remove.
9912 * wide-int-range.h: Remove.
9913
9914 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9915
9916 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9917 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9918 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9919 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9920 macro.
9921
9922 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9923
9924 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9925 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9926 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9927 * glimits.h: Likewise.
9928
9929 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9930
9931 PR rtl-optimization/91976
9932 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9933 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9934 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9935
9936 2019-10-02 Martin Sebor <msebor@redhat.com>
9937
9938 PR tree-optimization/80936
9939 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9940
9941 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9942
9943 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9944 instead of reg_class_contents[ALL_REGS].
9945
9946 2019-09-30 Jason Merrill <jason@redhat.com>
9947
9948 Add some hash_map_safe_* functions like vec_safe_*.
9949 * hash-map.h (default_hash_map_size): New variable.
9950 (create_ggc): Use it as default argument.
9951 (hash_map_maybe_create, hash_map_safe_get)
9952 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9953
9954 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9955
9956 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9957 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9958 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9959 (can_inline_edge_by_limits_p): Use it.
9960 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9961 (want_inline_small_function_p): Use O2 bounds.
9962 (edge_badness): LIkewise.
9963 * opts.c (default_options): Add OPT_finline_functions.
9964 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9965 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9966 New parameters.
9967 * doc/invoke.texi (-finline-functions): Update documentation.
9968 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9969 inline-min-speedup-O2): Document.
9970 (early-inlining-insns-O2): Simplify docs.
9971
9972 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9973
9974 PR rtl-optimization/87047
9975 * ifcvt.c (average_cost): New static function. Use it...
9976 (noce_process_if_block): ... here.
9977
9978 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9979
9980 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9981 * config/rs6000/rs6000-string.c (expand_block_move): Add
9982 might_overlap parm.
9983 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9984 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9985
9986 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9987
9988 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9989 (expand_builtin_memcpy): Use might_overlap parm.
9990 (expand_builtin_mempcpy_args): Use might_overlap parm.
9991 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9992 (expand_builtin_memory_copy_args): Add might_overlap parm.
9993 * expr.c (emit_block_move_via_cpymem): Rename to
9994 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9995 or movmem optab as appropriate.
9996 (emit_block_move_hints): Add might_overlap parm, do the right
9997 thing for might_overlap==true.
9998 * expr.h (emit_block_move_hints): Update prototype.
9999
10000 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10001
10002 * tree-eh.h (unsplit_eh_edges): Declare.
10003 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10004 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10005 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10006 (struct store_immediate_info): Add lp_nr field.
10007 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10008 initialize lp_nr with it.
10009 (struct merged_store_group): Add lp_nr and only_constants fields.
10010 (merged_store_group::merged_store_group): Initialize them.
10011 (merged_store_group::can_be_merged_into): Deal with them.
10012 (pass_store_merging): Rename terminate_and_release_chain into
10013 terminate_and_process_chain.
10014 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10015 renaming and remove useless assertions.
10016 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10017 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10018 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10019 instead of always recomputing it and compare lp_nr.
10020 (imm_store_chain_info::output_merged_store): If the group is in an
10021 active EH region, register new stores if they can throw. Moreover,
10022 if the insertion has created new basic blocks, adjust the PHI nodes
10023 of the post landing pad.
10024 (imm_store_chain_info::output_merged_stores): If the original stores
10025 are in an active EH region, deregister them.
10026 (lhs_valid_for_store_merging_p): Prettify.
10027 (adjust_bit_pos): New function extracted from...
10028 (mem_valid_for_store_merging): ...here. Use it for the base address
10029 and also for the offset if it is the addition of a constant.
10030 (lp_nr_for_store): New function.
10031 (pass_store_merging::process_store): Change return type to bool.
10032 Call lp_nr_for_store to initialize the store info. Propagate the
10033 return status of various called functions to the return value.
10034 (store_valid_for_store_merging_p): New predicate.
10035 (enum basic_block_status): New enumeration.
10036 (get_status_for_store_merging): New function.
10037 (pass_store_merging::execute): If the function can throw and catch
10038 non-call exceptions, unsplit the EH edges on entry and clean up the
10039 CFG on exit if something changed. Call get_status_for_store_merging
10040 for every basic block and keep the chains open across basic blocks
10041 when possible. Terminate and process open chains at the end, if any.
10042
10043 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10044
10045 * reginfo.c (globalize_reg): Fix shadowed variable in
10046 function_abis walk.
10047
10048 2019-10-02 Martin Jambor <mjambor@suse.cz>
10049
10050 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10051 do not compute some stuff when set.
10052 (cgraph_node::create_edge): Likewise.
10053 (cgraph_node::create_indirect_edge): Renamed last parameter to
10054 coning_p and flipped its meaning, don't even calculate
10055 inline_failed when set.
10056 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10057 (symbol_table::::create_edge): Likewise.
10058 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10059 the default value.
10060 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10061 call graph edge creating functions.
10062
10063 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10064
10065 PR c++/91222
10066 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10067 namespace types.
10068
10069 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10070
10071 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10072
10073 2019-10-02 Richard Biener <rguenther@suse.de>
10074
10075 * tree-vectorizer.h (vect_transform_reduction): Declare.
10076 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10077 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10078 stmt transform to ...
10079 (vect_transform_reduction): ... this.
10080
10081 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10082
10083 * omp-low.c (lower_omp_target): Dereference optional argument
10084 to work with the right pointer.
10085
10086 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10087
10088 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10089 false.
10090 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10091 * langhooks.h (omp_is_optional_argument): New hook.
10092 * omp-general.c (omp_is_optional_argument): New.
10093 * omp-general.h (omp_is_optional_argument): New declaration.
10094 * omp-low.c (lower_omp_target): Create temporary for received value
10095 and take the address for new_var if the original variable was a
10096 DECL_BY_REFERENCE. Use size of referenced object when a
10097 pass-by-reference optional argument used as argument to firstprivate.
10098
10099 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10100
10101 PR tree-optimization/91940
10102 * tree-vect-patterns.c: Include tree-vector-builder.h and
10103 vec-perm-indices.h.
10104 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10105 unpromoting the argument back to uint16_t, or by converting into a
10106 rotate, or into shifts plus ior.
10107
10108 2019-10-02 Richard Biener <rguenther@suse.de>
10109
10110 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10111 New.
10112 (vect_transform_cycle_phi): Declare.
10113 * tree-vect-stmts.c (vect_transform_stmt): Call
10114 vect_transform_cycle_phi.
10115 * tree-vect-loop.c (vectorizable_reduction): Split out
10116 PHI transformation stage to ...
10117 (vect_transform_cycle_phi): ... here.
10118
10119 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10120
10121 PR middle-end/91957
10122 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10123 eliminable registers.
10124 (make_hard_regno_live): Likewise, and don't make them live.
10125
10126 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10127
10128 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10129 Call pp_emit_prefix.
10130 (layout::print_source_line): Likewise.
10131 (layout::start_annotation_line): Likewise.
10132 (diagnostic_show_locus): Remove call to temporarily clear the
10133 prefix.
10134 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10135 interaction of pp_set_prefix with rulers and fix-it hints.
10136 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10137 prefix when calling diagnostic_show_locus, rather than destroying
10138 it afterwards.
10139 (print_parseable_fixits): Temporarily clear prefix.
10140 * pretty-print.c (pp_format): Save and restore line_length, rather
10141 than assuming it is zero.
10142 (pp_output_formatted_text): Remove assertion that line_length is
10143 zero.
10144
10145 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10146
10147 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10148 Rename to ...
10149 (nonoverlapping_refs_since_match_p): ... this; handle also
10150 ARRAY_REFs.
10151 (alias_stats): Update stats.
10152 (dump_alias_stats): Likewise.
10153 (cheap_array_ref_low_bound): New function.
10154 (aliasing_matching_component_refs_p): Add partial_overlap
10155 argument;
10156 pass it to nonoverlapping_refs_since_match_p.
10157 (aliasing_component_refs_walk): Update call of
10158 aliasing_matching_component_refs_p
10159 (nonoverlapping_array_refs_p): New function.
10160 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10161 indirect_refs_may_alias_p): Update calls of
10162 nonoverlapping_refs_since_match_p.
10163
10164 2019-10-01 Maya Rashish <coypu@sdf.org>
10165
10166 PR target/85401
10167 * ira-color.c (allocno_copy_cost_saving): Call
10168 ira_init_register_move_cost_if_necessary.
10169
10170 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10171
10172 * Makefile.in (gnat_install_lib): New variable.
10173 * configure.ac: Substitute it.
10174 * configure: Regenerate.
10175
10176 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10177
10178 PR lto/91222
10179 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10180 is matched with non-C++ type
10181
10182 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10183
10184 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10185 after local CSE.
10186
10187 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10188
10189 * doc/invoke.texi (early-inlining-insns-O2): Document.
10190 (early-inlining-insns): Update.
10191 * params.def (early-inlining-insns-O2): New bound.
10192 (early-inlining-insns): Update docs.
10193 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10194
10195 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10196
10197 PR target/88562
10198 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10199 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10200 a memory access insn.
10201
10202 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10203
10204 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10205 vpmsumd.
10206
10207 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10208
10209 PR target/77918
10210 * config/s390/s390.c (s390_expand_vec_compare): Use
10211 gen_vec_cmpordered and gen_vec_cmpunordered.
10212 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10213 vec_unordered): Delete.
10214 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10215 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10216 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10217 (vec_cmp<code>): Generic dispatcher.
10218
10219 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10220
10221 PR target/77918
10222 * config/s390/vector.md (V_HW): Add V1TI in order to make
10223 vcond$a$b generate vcondv1tiv1tf.
10224
10225 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10226
10227 PR rtl-optimization/91948
10228 * ira-build.c (ira_create_allocno): Initialize
10229 ALLOCNO_CROSSED_CALLS_ABIS.
10230 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10231 than regno to ira_need_caller_save_p.
10232
10233 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10234
10235 * config/i386/i386-options.c
10236 (ix86_recompute_optlev_based_flags): New, moved out of...
10237 (ix86_option_override_internal): ... this. Call it.
10238 (ix86_override_options_after_change): Call it here too.
10239
10240 PR debug/91507
10241 * dwarf2out.c (override_type_for_decl_p): New.
10242 (gen_variable_die): Use it.
10243
10244 2019-10-01 Richard Biener <rguenther@suse.de>
10245
10246 * tree-vect-loop.c (vectorizable_reduction): Move variables
10247 to where they are used.
10248
10249 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10250
10251 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10252 (build_def_use): Use PC instead of CC0 in a comment.
10253
10254 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10255
10256 * rtl.def (CLOBBER_HIGH): Delete.
10257 * doc/rtl.texi (clobber_high): Remove documentation.
10258 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10259 (reg_is_clobbered_by_clobber_high): Delete.
10260 (gen_hard_reg_clobber_high): Likewise.
10261 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10262 * cfgexpand.c (expand_gimple_stmt): Likewise.
10263 * combine-stack-adj.c (single_set_for_csa): Likewise.
10264 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10265 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10266 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10267 * cse.c (invalidate_reg): Remove clobber_high parameter.
10268 (invalidate): Update call accordingly.
10269 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10270 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10271 (count_reg_usage, insn_live_p): Likewise.
10272 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10273 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10274 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10275 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10276 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10277 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10278 (mark_nonreg_stores_2): Likewise.
10279 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10280 (df_get_call_refs): Likewise.
10281 * dwarf2out.c (mem_loc_descriptor): Likewise.
10282 * emit-rtl.c (verify_rtx_sharing): Likewise.
10283 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10284 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10285 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10286 * genemit.c (gen_exp, gen_insn): Likewise.
10287 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10288 * haifa-sched.c (haifa_classify_rtx): Likewise.
10289 * ira-build.c (create_insn_allocnos): Likewise.
10290 * ira-costs.c (scan_one_insn): Likewise.
10291 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10292 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10293 * jump.c (mark_jump_label_1): Likewise.
10294 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10295 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10296 handling.
10297 (mark_not_eliminable): Likewise.
10298 * lra-lives.c (process_bb_lives): Likewise.
10299 * lra.c (new_insn_reg): Remove clobber_high parameter.
10300 (collect_non_operand_hard_regs): Likewise. Update call to new
10301 insn_reg. Remove CLOBBER_HIGH handling.
10302 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10303 to collect_non_operand_hard_regs.
10304 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10305 Update call to new_insn_reg.
10306 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10307 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10308 (move2add_note_store): Likewise.
10309 * print-rtl.c (print_pattern): Likewise.
10310 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10311 (if_test_bypass_p): Likewise.
10312 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10313 * reginfo.c (reg_scan_mark_refs): Likewise.
10314 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10315 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10316 (forget_old_reloads_1): Likewise.
10317 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10318 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10319 (dbr_schedule): Likewise.
10320 * resource.c (update_live_status, mark_referenced_resources)
10321 (mark_set_resources): Likewise.
10322 * rtl.c (copy_rtx): Likewise.
10323 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10324 (note_pattern_stores): Likewise.
10325 (reg_is_clobbered_by_clobber_high): Delete.
10326 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10327 CLOBBER_HIGH handling.
10328
10329 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10330
10331 PR target/91452
10332 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10333 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10334 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10335 Handle ARM_PCS_TLSDESC.
10336 (aarch64_tlsdesc_abi_id): New function.
10337 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10338 rtx instead of a list of clobbers and clobber_highs.
10339 (tlsdesc_small_<mode>): Update accordingly.
10340
10341 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10342
10343 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10344 extra callee_abi argument.
10345 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10346 Insert a CALLEE_ABI unspec into the call pattern as the second
10347 element in the PARALLEL.
10348 (aarch64_simd_call_p): Delete.
10349 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10350 the new CALLEE_ABI element of the PARALLEL.
10351 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10352 from the function type, if given.
10353 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10354 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10355 when passed the function_arg_info end marker.
10356 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10357 final argument of gen_sibcall.
10358 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10359 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10360 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10361 pattern.
10362 (call_value): Likewise operand 3.
10363 (sibcall): Likewise operand 2. Place the unspec before rather than
10364 after the return.
10365 (sibcall_value): Likewise operand 3.
10366 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10367 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10368 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10369 constraint strings.
10370 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10371
10372 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10373
10374 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10375 choose_hard_reg_mode.
10376 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10377
10378 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10379
10380 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10381 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10382 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10383
10384 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10385
10386 * diagnostic-show-locus.c (line_label::line_label): Initialize
10387 m_has_vbar.
10388 (line_label::comparator): Reverse the sort order by m_state_idx,
10389 so that when the list is walked backwards the labels appear in
10390 order of insertion into the rich_location.
10391 (line_label::m_has_vbar): New field.
10392 (layout::print_any_labels): When dealing with multiple labels at
10393 the same line and column, only print vertical bars for the one
10394 with the highest label_line.
10395 (selftest::test_one_liner_labels): Update test for multiple labels
10396 to expect the labels to be in the order of insertion into the
10397 rich_location. Add a test for many such labels, where the column
10398 numbers are out-of-order relative to the insertion order.
10399
10400 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10401
10402 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10403 (ix86_frame::expensive_count): Likewise.
10404 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10405 of use_fast_prologue_epilogue robust against incidental changes
10406 in function size.
10407
10408 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10409
10410 PR target/77918
10411 * config/s390/vector.md (vec_unordered<mode>): Call
10412 gen_vec_ordered<mode>.
10413
10414 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10415
10416 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10417 New pattern for ASRD.
10418 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10419 * internal-fn.def (IFN_DIV_POW2): New internal function.
10420 * optabs.def (sdiv_pow2_optab): New optab.
10421 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10422 Modify pattern to support new operation.
10423 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10424 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10425 Document new target selector.
10426
10427 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10428
10429 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10430 to test whether we're compiling a vector PCS function and to test
10431 whether the function needs to save a particular register.
10432 Remove the vector PCS handling of df_set_regs_ever_live.
10433 (aarch64_components_for_bb): Use crtl->abi to test whether
10434 the function needs to save a particular register.
10435 (aarch64_process_components): Use crtl->abi to test whether
10436 we're compiling a vector PCS function.
10437 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10438 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10439
10440 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10441
10442 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10443 Delete.
10444 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10445 whether the block calls a function that clobbers more registers
10446 than the current function is allowed to.
10447 (aarch64_use_simple_return_insn_p): Delete.
10448 * config/aarch64/aarch64.md (simple_return): Remove condition.
10449
10450 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10451
10452 * function-abi.h (function_abi_aggregator): New class.
10453 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10454 function.
10455 * ira.c (update_equiv_regs_prescan): New function. Call
10456 set_paradoxical_subreg here rather than...
10457 (update_equiv_regs): ...here.
10458 (ira): Call update_equiv_regs_prescan.
10459
10460 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10461
10462 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10463 IN_TARGET_CODE.
10464 (call_used_or_fixed_regs): Likewise.
10465 (call_used_or_fixed_reg_p): Likewise.
10466 * reginfo.c (regs_invalidated_by_call): New macro.
10467
10468 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10469
10470 * shrink-wrap.c: Include function-abi.h.
10471 (requires_stack_frame_p): Use crtl->abi to test whether the
10472 current function can use a register without saving it first.
10473
10474 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10475
10476 * sel-sched-ir.h (_def::crosses_call): Replace with...
10477 (_def::crossed_call_abis): ..this new field.
10478 (def_list_add): Take a mask of ABIs instead of a crosses_call
10479 boolean.
10480 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10481 of _def accordingly.
10482 * sel-sched.c: Include function-abi.h.
10483 (hard_regs_data::regs_for_call_clobbered): Delete.
10484 (reg_rename::crosses_call): Replace with...
10485 (reg_rename::crossed_call_abis): ...this new field.
10486 (fur_static_params::crosses_call): Replace with...
10487 (fur_static_params::crossed_call_abis): ...this new field.
10488 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10489 (init_hard_regs_data): Use crtl->abi to test which registers the
10490 current function would need to save before it uses them.
10491 (mark_unavailable_hard_regs): Update handling of call-clobbered
10492 registers, using call_clobbers_in_region to find out which registers
10493 might be call-clobbered (but without taking -fipa-ra into account
10494 for now). Remove separate handling of partially call-clobbered
10495 registers.
10496 (verify_target_availability): Use crossed_call_abis instead of
10497 crosses_call.
10498 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10499 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10500
10501 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10502
10503 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10504 function to test whether a register is fully or partly clobbered.
10505
10506 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10507
10508 * rtlanal.c: Include function-abi.h.
10509 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10510 function and clobbers_reg_p to test whether the register
10511 is call-clobbered.
10512 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10513 to get the ABI of the called function and full_reg_clobbers to
10514 get the set of fully call-clobbered registers. Warn about the
10515 pitfalls of using this mode.
10516
10517 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10518
10519 * reload.c: Include function-abi.h.
10520 (find_equiv_reg): Use clobbers_reg_p to test whether either
10521 of the equivalent registers is clobbered by a call.
10522 * reload1.c: Include function-abi.h.
10523 (reg_reloaded_call_part_clobbered): Delete.
10524 (reload): Use crtl->abi to test which registers would need
10525 saving in the prologue before use.
10526 (find_reg): Likewise.
10527 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10528 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10529 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10530
10531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10532
10533 * regrename.h (du_head::call_clobber_mask): New field.
10534 (du_head::need_caller_save_reg): Replace with...
10535 (du_head::call_abis): ...this new field.
10536 * regrename.c: Include function-abi.h.
10537 (call_clobbered_in_chain_p): New function.
10538 (check_new_reg_p): Use crtl->abi when deciding whether a register
10539 is free for use after RA. Use call_clobbered_in_chain_p to test
10540 whether a candidate register would be clobbered by a call.
10541 (find_rename_reg): Don't add call-clobber conflicts here.
10542 (rename_chains): Check call_abis instead of need_caller_save_reg.
10543 (merge_chains): Update for changes to du_head.
10544 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10545 target. Record the ABI identifier in call_abis and the set of
10546 fully or partially clobbered registers in call_clobber_mask.
10547 Add fully-clobbered registers to hard_conflicts here rather
10548 than in find_rename_reg.
10549 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10550 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10551 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10552 function-abi.h.
10553 * config/c6x/c6x.c: Likewise.
10554
10555 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10556
10557 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10558 mode of the register when deciding whether it is no longer
10559 available after a call.
10560
10561 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10562
10563 * recog.c: Include function-abi.h.
10564 (peep2_find_free_register): Use crtl->abi when deciding whether
10565 a register is free for use after RA.
10566
10567 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10568
10569 * postreload-gcse.c: Include regs.h and function-abi.h.
10570 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10571 call insn target. Conservatively assume that partially-clobbered
10572 registers are altered.
10573
10574 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10575
10576 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10577 when deciding whether a register is free for use after RA.
10578 (reload_combine): Remove unnecessary use of fixed_reg_set.
10579 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10580 call insn target. Use reg_mode when testing whether a register
10581 is no longer available.
10582
10583 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10584
10585 * target.def (return_call_with_max_clobbers): Delete.
10586 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10587 * doc/tm.texi: Regenerate.
10588 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10589 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10590 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10591 (lra_reg::call_insn): Delete.
10592 * lra.c: Include function-abi.h.
10593 (initialize_lra_reg_info_element): Don't initialize the fields above.
10594 (lra): Use crtl->abi to test whether the current function needs to
10595 save a register in the prologue. Remove special pre-inheritance
10596 lra_create_live_ranges pass for flag_ipa_ra.
10597 * lra-assigns.c: Include function-abi.h
10598 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10599 function needs to save a register in the prologue.
10600 (lra_assign): Assert that registers aren't allocated to a
10601 conflicting register, rather than checking only for overlaps
10602 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10603 and for registers that are not live across a call.
10604 * lra-constraints.c (last_call_for_abi): New variable.
10605 (full_and_partial_call_clobbers): Likewise.
10606 (setup_next_usage_insn): Remove the register from
10607 full_and_partial_call_clobbers.
10608 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10609 whether the register needs a caller save.
10610 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10611 of call_used_or_fixed_regs.
10612 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10613 full_and_partial_call_clobbers.
10614 * lra-lives.c (check_pseudos_live_through_calls): Replace
10615 last_call_used_reg_set and call_insn arguments with an abi argument.
10616 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10617 as the set of conflicting registers.
10618 (calls_have_same_clobbers_p): Delete.
10619 (process_bb_lives): Track the ABI of the last call instead of an
10620 insn/HARD_REG_SET pair. Update calls to
10621 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10622 the set of registers that could be clobbered by an EH edge.
10623 Include partially-clobbered as well as fully-clobbered registers.
10624 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10625 * lra-remat.c: Include function-abi.h.
10626 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10627 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10628 registers and bitmap_view to combine them into dead_regs.
10629 (call_used_input_regno_present_p): Take a function_abi argument
10630 and use it to test whether a register is call-clobbered.
10631 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10632 call insn target. Update tje call to call_used_input_regno_present_p.
10633 (do_remat): Likewise.
10634 (lra_remat): Remove the initialization of call_used_regs_arr_len
10635 and call_used_regs_arr.
10636
10637 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10638
10639 * loop-iv.c: Include regs.h and function-abi.h.
10640 (simplify_using_initial_values): Use insn_callee_abi to get the
10641 ABI of the call insn target. Conservatively assume that
10642 partially-clobbered registers are altered.
10643
10644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10645
10646 * function-abi.h (call_clobbers_in_region): Declare.
10647 (call_clobbered_in_region_p): New function.
10648 * function-abi.cc (call_clobbers_in_region): Likewise.
10649 * ira-int.h: Include function-abi.h.
10650 (ira_allocno::crossed_calls_abis): New field.
10651 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10652 (ira_need_caller_save_regs): New function.
10653 (ira_need_caller_save_p): Likewise.
10654 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10655 of call_used_or_fixed_regs.
10656 (do_reload): Use crtl->abi to test whether the current function
10657 needs to save a register in the prologue. Count registers that
10658 need to be saved rather than registers that don't.
10659 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10660 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10661 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10662 (propagate_some_info_from_allocno): Likewise.
10663 (copy_info_to_removed_store_destinations): Likewise.
10664 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10665 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10666 (ira_build): Use ira_need_caller_save_regs instead of
10667 call_used_or_fixed_regs.
10668 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10669 whether the current function would need to save a register
10670 before using it.
10671 (calculate_spill_cost): Likewise.
10672 (allocno_reload_assign): Use ira_need_caller_save_regs and
10673 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10674 * ira-conflicts.c (ira_build_conflicts): Use
10675 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10676 as the set of call-clobbered registers. Remove the
10677 call_used_or_fixed_regs mask from the calculation of
10678 temp_hard_reg_set and mask its use instead. Remove special
10679 handling of partially-clobbered registers.
10680 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10681 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10682 calculate the set of conflicting registers for calls that
10683 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10684 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10685 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10686 Use eh_edge_abi to calculate the set of registers that could
10687 be clobbered by an EH edge. Include partially-clobbered as
10688 well as fully-clobbered registers.
10689
10690 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10691
10692 * haifa-sched.c: Include function-abi.h.
10693 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10694 the function would need to save a register before using it.
10695
10696 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10697
10698 * gcse.c: Include function-abi.h.
10699 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10700 the call insn target. Invalidate partially call-clobbered
10701 registers as well as fully call-clobbered ones.
10702
10703 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10704
10705 * function.c (aggregate_value_p): Work out which ABI the
10706 function is using before testing which registers are at least
10707 partly preserved by a call.
10708
10709 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10710
10711 * early-remat.c: Include regs.h and function-abi.h.
10712 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10713 registers here.
10714 (early_remat::restrict_remat_for_unavail_regs): New function.
10715 (early_remat::restrict_remat_for_call): Likewise.
10716 (early_remat::process_block): Before calling emit_remat_insns
10717 for a previous call in the block, invalidate any candidates
10718 that would clobber call-preserved registers.
10719 (early_remat::emit_remat_insns_for_block): Likewise for the
10720 final call in a block. Do the same thing for live-in registers
10721 when calling emit_remat_insns at the head of a block.
10722
10723 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10724
10725 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10726 whether the current function needs to save at least part of a
10727 register before using it.
10728 (df_get_exit_block_use_set): Likewise for epilogue restores.
10729
10730 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10731
10732 * df-problems.c: Include regs.h and function-abi.h.
10733 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10734 sparse_invalidated_by_eh and dense_invalidated_by_call to
10735 dense_invalidated_by_eh.
10736 (df_print_bb_index): Update accordingly.
10737 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10738 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10739 that are clobbered by an EH edge. Clobber partially-clobbered
10740 registers as well as fully-clobbered ones.
10741 (df_md_confluence_n): Likewise.
10742 (df_rd_local_compute): Likewise. Update for changes to
10743 df_rd_problem_data.
10744 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10745 of registers that are clobbered by an EH edge. Includde partially-
10746 clobbered registers as well as fully-clobbered ones.
10747
10748 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10749
10750 * cselib.c (cselib_process_insn): If we know what mode a
10751 register was set in, check whether it is clobbered in that
10752 mode by a call. Only fall back to reg_raw_mode if that fails.
10753
10754 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10755
10756 * cse.c: Include regs.h and function-abi.h.
10757 (invalidate_for_call): Take the call insn as an argument.
10758 Use insn_callee_abi to get the ABI of the call and invalidate
10759 partially clobbered registers as well as fully clobbered ones.
10760 (cse_insn): Update call accordingly.
10761
10762 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10763
10764 * combine.c: Include function-abi.h.
10765 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10766 of the target of call insns. Invalidate partially-clobbered
10767 registers as well as fully-clobbered ones.
10768
10769 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10770
10771 * cfgloopanal.c: Include regs.h and function-abi.h.
10772 (init_set_costs): Use default_function_abi to test whether
10773 a general register is call-clobbered.
10774
10775 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10776
10777 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10778 instead of the call-clobbered sets.
10779
10780 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10781
10782 * caller-save.c (setup_save_areas): Remove redundant |s of
10783 fixed_reg_set.
10784 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10785 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10786 value is useful.
10787
10788 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10789
10790 * rtl.h (predefined_function_abi): Declare.
10791 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10792 instead of a boolean call_save flag.
10793 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10794 accordingly.
10795 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10796 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10797 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10798 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10799 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10800 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10801 * reginfo.c (init_reg_modes_target): Likewise.
10802 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10803 instead of a boolean call_save flag.
10804 * targhooks.c: Include function-abi.h.
10805 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10806 using eh_edge_abi to choose the mode.
10807
10808 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10809
10810 * target.def (hard_regno_call_part_clobbered): Take an ABI
10811 identifier instead of an rtx_insn.
10812 * doc/tm.texi: Regenerate.
10813 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10814 (hook_bool_uint_uint_mode_false): New function.
10815 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10816 (hook_bool_uint_uint_mode_false): New function.
10817 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10818 Take an ABI identifier instead of an rtx_insn.
10819 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10820 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10821 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10822 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10823 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10824 Likewise.
10825 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10826 * cselib.c: Include function-abi.h.
10827 (cselib_process_insn): Update call to
10828 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10829 to get the appropriate ABI identifier.
10830 * function-abi.cc (predefined_function_abi::initialize): Update call
10831 to targetm.hard_regno_call_part_clobbered.
10832 * ira-conflicts.c (ira_build_conflicts): Likewise.
10833 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10834 * lra-constraints.c: Include function-abi.h.
10835 (need_for_call_save_p): Update call to
10836 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10837 to get the appropriate ABI identifier.
10838 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10839 * regcprop.c (copyprop_hardreg_forward_1): Update call
10840 to targetm.hard_regno_call_part_clobbered.
10841 * reginfo.c (choose_hard_reg_mode): Likewise.
10842 * regrename.c (check_new_reg_p): Likewise.
10843 * reload.c (find_equiv_reg): Likewise.
10844 * reload1.c (emit_reload_insns): Likewise.
10845 * sched-deps.c: Include function-abi.h.
10846 (deps_analyze_insn): Update call to
10847 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10848 to get the appropriate ABI identifier.
10849 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10850 call to targetm.hard_regno_call_part_clobbered.
10851 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10852
10853 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10854
10855 * config/i386/i386.c: Include function-abi.h.
10856 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10857 if they preserve some 256-bit or 512-bit SSE registers.
10858
10859 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10860
10861 * target.def (insn_callee_abi): New hook.
10862 (remove_extra_call_preserved_regs): Delete.
10863 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10864 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10865 * doc/tm.texi: Regenerate.
10866 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10867 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10868 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10869 insn argument.
10870 (aarch64_remove_extra_call_preserved_regs): Delete.
10871 (aarch64_insn_callee_abi): New function.
10872 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10873 (TARGET_INSN_CALLEE_ABI): New macro.
10874 * rtl.h (get_call_fndecl): Declare.
10875 (cgraph_rtl_info): Fix formatting. Tweak comment for
10876 function_used_regs. Remove function_used_regs_valid.
10877 * rtlanal.c (get_call_fndecl): Moved from final.c
10878 * function-abi.h (insn_callee_abi): Declare.
10879 (target_function_abi_info): Mention insn_callee_abi.
10880 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10881 way to get_call_reg_set_usage did.
10882 (insn_callee_abi): New function.
10883 * regs.h (get_call_reg_set_usage): Delete.
10884 * final.c: Include function-abi.h.
10885 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10886 function_used_regs before the main loop rather than afterwards.
10887 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10888 if function_used_regs ends up not being useful.
10889 (get_call_fndecl): Move to rtlanal.c
10890 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10891 * caller-save.c: Include function-abi.h.
10892 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10893 instead of get_call_reg_set_usage.
10894 * cfgcleanup.c: Include function-abi.h.
10895 (old_insns_match_p): Use insn_callee_abi instead of
10896 get_call_reg_set_usage.
10897 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10898 a tree.
10899 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10900 function_used_regs.
10901 * df-scan.c: Include function-abi.h.
10902 (df_get_call_refs): Use insn_callee_abi instead of
10903 get_call_reg_set_usage.
10904 * ira-lives.c: Include function-abi.h.
10905 (process_bb_node_lives): Use insn_callee_abi instead of
10906 get_call_reg_set_usage.
10907 * lra-lives.c: Include function-abi.h.
10908 (process_bb_lives): Use insn_callee_abi instead of
10909 get_call_reg_set_usage.
10910 * postreload.c: Include function-abi.h.
10911 (reload_combine): Use insn_callee_abi instead of
10912 get_call_reg_set_usage.
10913 * regcprop.c: Include function-abi.h.
10914 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10915 get_call_reg_set_usage.
10916 * resource.c: Include function-abi.h.
10917 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10918 instead of get_call_reg_set_usage.
10919 * var-tracking.c: Include function-abi.h.
10920 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10921 get_call_reg_set_usage.
10922
10923 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10924
10925 * target.def (fntype_abi): New target hook.
10926 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10927 * doc/tm.texi: Regenerate.
10928 * target.h (predefined_function_abi): Declare.
10929 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10930 if defined.
10931 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10932 * config/aarch64/aarch64.c: Include function-abi.h.
10933 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10934 (TARGET_FNTYPE_ABI): Define.
10935
10936 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10937
10938 * Makefile.in (OBJS): Add function-abi.o.
10939 (GTFILES): Add function-abi.h.
10940 * function-abi.cc: New file.
10941 * function-abi.h: Likewise.
10942 * emit-rtl.h (rtl_data::abi): New field.
10943 * function.c: Include function-abi.h.
10944 (prepare_function_start): Initialize crtl->abi.
10945 * read-rtl-function.c: Include regs.h and function-abi.h.
10946 (read_rtl_function_body): Initialize crtl->abi.
10947 (read_rtl_function_body_from_file_range): Likewise.
10948 * reginfo.c: Include function-abi.h.
10949 (init_reg_sets_1): Initialize default_function_abi.
10950 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10951 when making a register global.
10952 * target-globals.h (this_target_function_abi_info): Declare.
10953 (target_globals::function_abi_info): New field.
10954 (restore_target_globals): Copy it.
10955 * target-globals.c: Include function-abi.h.
10956 (default_target_globals): Initialize the function_abi_info field.
10957 (target_globals): Allocate it.
10958 (save_target_globals): Free it.
10959
10960 2019-09-30 Nick Clifton <nickc@redhat.com>
10961
10962 PR target/85978
10963 * config/frv/frv.c (frv_register_move_cost): Add break statements
10964 to avoid falling through to the wrong cases. Tidy code.
10965
10966 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10967
10968 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10969 For multi-registers modes, test how big each register part is.
10970
10971 2019-09-30 Nick Clifton <nickc@redhat.com>
10972
10973 PR target/59205
10974 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10975 (TARGET_ASM_SELECT_SECTION): Remove definition.
10976 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10977
10978 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10979
10980 * emit-rtl.c (init_raw_REG): New function.
10981 (gen_raw_REG): Use init_raw_REG.
10982 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10983 macros.
10984 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10985 * rtl.h (rtx_init): New function.
10986 (rtx_alloca): New function.
10987 (init_raw_REG): New function.
10988 (alloca_raw_REG): New macro.
10989
10990 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10991
10992 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10993 (pcrel_local_address): Replace pcrel_address predicate, use the
10994 new function address_to_insn_form.
10995 (pcrel_external_address): Replace with new implementation using
10996 address_to_insn_form..
10997 (prefixed_mem_operand): Delete predicate which is now unused.
10998 (pcrel_external_mem_operand): Delete predicate which is now
10999 unused.
11000 * config/rs6000/rs6000-protos.h (enum insn_form): New
11001 enumeration.
11002 (enum non_prefixed_form): New enumeration.
11003 (address_to_insn_form): New declaration.
11004 (prefixed_load_p): New declaration.
11005 (prefixed_store_p): New declaration.
11006 (prefixed_paddi_p): New declaration.
11007 (rs6000_asm_output_opcode): New declaration.
11008 (rs6000_final_prescan_insn): Move declaration and update calling
11009 signature.
11010 (address_is_prefixed): New helper inline function.
11011 * config/rs6000/rs6000.c(print_operand_address): Check for either
11012 PC-relative local symbols or PC-relative external symbols.
11013 (rs6000_emit_move): Support loading PC-relative addresses.
11014 (mode_supports_prefixed_address_p): Delete, no longer used.
11015 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11016 (address_to_insn_form): New function to decode an address format.
11017 (reg_to_non_prefixed): New function to identify what the
11018 non-prefixed memory instruction format is for a register.
11019 (prefixed_load_p): New function to identify prefixed loads.
11020 (prefixed_store_p): New function to identify prefixed stores.
11021 (prefixed_paddi_p): New function to identify prefixed load
11022 immediates.
11023 (next_insn_prefixed_p): New static state variable.
11024 (rs6000_final_prescan_insn): New function to determine if an insn
11025 uses a prefixed instruction.
11026 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11027 prefixed instruction.
11028 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11029 (ASM_OUTPUT_OPCODE): New target hook.
11030 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11031 prefixed instructions.
11032 (prefixed_length): New insn attribute for the size of prefixed
11033 instructions.
11034 (non_prefixed_length): New insn attribute for the size of
11035 non-prefixed instructions.
11036 (pcrel_local_addr): New insn to load up a local PC-relative
11037 address.
11038 (pcrel_extern_addr): New insn to load up an external PC-relative
11039 address.
11040 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11041 GPR and loading a 128-bit floating point type to a GPR.
11042
11043 2019-09-30 Richard Biener <rguenther@suse.de>
11044
11045 * gimple.c (gimple_get_lhs): For PHIs return the result.
11046 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11047 SLP instance as argument.
11048 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11049 double-reduction PHIs with vectorizable_lc_phi.
11050 (vect_analyze_loop_operations): Adjust.
11051 (vect_create_epilog_for_reduction): Remove all code not dealing
11052 with reduction LC PHI or epilogue generation.
11053 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11054 for live stmts of reductions.
11055 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11056 do not handle defs that are not vect_internal_def.
11057 (can_vectorize_live_stmts): Adjust.
11058 (vect_analyze_stmt): When the vectorized stmt defined a value
11059 used on backedges adjust the backedge uses of vectorized PHIs.
11060
11061 2019-09-30 Martin Jambor <mjambor@suse.cz>
11062
11063 PR ipa/91853
11064 * tree-inline.c (force_value_to_type): New function.
11065 (setup_one_parameter): Use force_value_to_type to convert type.
11066 * tree-inline.c (force_value_to_type): Declare.
11067 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11068 with register type mismatches.
11069
11070 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11071
11072 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11073 32-bit PowerPC.
11074 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11075 * config/rs6000/t-freebsd64: Make use of the above define and build
11076 the 32-bit libraries with secure-plt.
11077
11078 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11079
11080 PR target/91931
11081 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11082 gen_int_mode instead of GEN_INT.
11083
11084 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11085
11086 * config/darwin.c (gen_macho_low): Amend to include the mode
11087 argument.
11088 (machopic_indirect_data_reference): Amend gen_macho_low call
11089 to include mode argument
11090 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11091 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11092 the macho_high expander and two define_insn entries.
11093
11094 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11095
11096 PR bootstrap/90543
11097 * optc-save-gen.awk: Fix up printing string option differences.
11098
11099 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11100
11101 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11102 vec_perm cost to 1 for non-Power7 VSX architectures.
11103
11104 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11105
11106 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11107 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11108 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11109
11110 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11111
11112 * config/darwin.c (gen_macho_high): Amend to include the mode
11113 argument.
11114 (machopic_indirect_data_reference): Amend gen_macho_high call
11115 to include mode argument.
11116 (machopic_legitimize_pic_address): Likewise.
11117 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11118 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11119 the macho_high expander and two define_insn entries.
11120
11121 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11122
11123 PR target/86805
11124 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11125
11126 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11127
11128 PR target/80672
11129 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11130 std::string::compare instead of std::string::find.
11131
11132 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11133
11134 * configure: Regenerate.
11135
11136 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11137
11138 PR middle-end/91920
11139 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11140 variables as shared.
11141
11142 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11143
11144 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11145 replaces the expander and two define_insn entries.
11146 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11147 call.
11148 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11149
11150 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11151
11152 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11153 (fibonacci_heap::nodes): Likewise.
11154 (fibonacci_heap::min_key): Likewise.
11155 (fibonacci_heap::min): Likewise.
11156
11157 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11158
11159 * cgraph.c (cgraph_node::get_fun): Make const.
11160 * cgraph.h (cgraph_node::get_fun): Likewise.
11161
11162 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11163
11164 PR target/91919
11165 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11166 of SImode MULT.
11167
11168 2019-09-27 Richard Biener <rguenther@suse.de>
11169
11170 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11171 (STMT_VINFO_REDUC_FN): Likewise.
11172 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11173 STMT_VINFO_REDUC_FN.
11174 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11175 for condition reductions.
11176 (vect_create_epilog_for_reduction): Compute all required state
11177 from the stmt to be vectorized.
11178 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11179 invocation and remove then dead code. For single def-use chains
11180 record only a single vector stmt.
11181
11182 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11183
11184 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11185 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11186 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11187 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11188 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11189 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11190 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11191 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11192 (aarch64_general_builtin_rsqrt): Declare.
11193 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11194 New function.
11195 (aarch64_mangle_builtin_type): Rename to...
11196 (aarch64_general_mangle_builtin_type): ...this.
11197 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11198 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11199 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11200 aarch64_general_add_builtin instead of add_builtin_function.
11201 (aarch64_init_builtins): Rename to...
11202 (aarch64_general_init_builtins): ...this. Use
11203 aarch64_general_add_builtin instead of add_builtin_function.
11204 (aarch64_builtin_decl): Rename to...
11205 (aarch64_general_builtin_decl): ...this and remove the unused
11206 arguments.
11207 (aarch64_expand_builtin): Rename to...
11208 (aarch64_general_expand_builtin): ...this and remove the unused
11209 arguments.
11210 (aarch64_builtin_rsqrt): Rename to...
11211 (aarch64_general_builtin_rsqrt): ...this.
11212 (aarch64_fold_builtin): Rename to...
11213 (aarch64_general_fold_builtin): ...this. Take the function subcode
11214 and return type as arguments. Remove the "ignored" argument.
11215 (aarch64_gimple_fold_builtin): Rename to...
11216 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11217 subcode and gcall as arguments, and return the new function call.
11218 * config/aarch64/aarch64.c (aarch64_init_builtins)
11219 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11220 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11221 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11222 instead of aarch64_builtin_rsqrt.
11223 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11224 instead of aarch64_mangle_builtin_type.
11225
11226 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11227
11228 * target.def (check_builtin_call): New target hook.
11229 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11230 * doc/tm.texi: Regenerate.
11231
11232 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11233
11234 PR tree-optimization/91909
11235 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11236 reduc_index parameter. When handling COND_REDUCTION, make sure
11237 that the reduction phi operand is in the correct arm of the
11238 VEC_COND_EXPR.
11239 (vectorizable_reduction): Pass reduc_index to the above.
11240
11241 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11242
11243 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11244 New combine pattern.
11245
11246 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11247
11248 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11249 loop instruction into new basic block before the loop when basic
11250 block that precedes the loop is empty.
11251
11252 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11253
11254 * function.c (gimplify_parameters): Use build_clobber function.
11255 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11256 * tree-inline.c (expand_call_inline): Likewise.
11257 * tree-sra.c (clobber_subtree): Likewise.
11258 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11259 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11260 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11261 lower_omp_target): Likewise.
11262 * omp-expand.c (expand_omp_for_generic): Likewise.
11263 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11264
11265 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11266
11267 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11268 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11269 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11270 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11271 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11272 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11273 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11274 LD_ELEMREV_V16QI): Use the PURE attribute.
11275
11276 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11277
11278 * config/rs6000/darwin.md: Replace the expanders for
11279 load_macho_picbase and reload_macho_picbase with use of '@'
11280 and <mode> in their respective define_insns.
11281 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11282 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11283 Pmode to gen_load_macho_picbase.
11284 * config/rs6000/rs6000.md: Likewise.
11285
11286 2019-09-25 Richard Biener <rguenther@suse.de>
11287
11288 PR tree-optimization/91896
11289 * tree-vect-loop.c (vectorizable_reduction): The single
11290 def-use cycle optimization cannot apply when there's more
11291 than one pattern stmt involved.
11292
11293 2019-09-26 Richard Biener <rguenther@suse.de>
11294
11295 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11296 loop-closed PHIs that are vect_internal_def.
11297 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11298 Simplify.
11299 (vectorizable_lc_phi): New.
11300 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11301 (vect_transform_stmt): Likewise.
11302 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11303 (vectorizable_lc_phi): Declare.
11304
11305 2019-09-26 Richard Biener <rguenther@suse.de>
11306
11307 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11308 vectorizable_reduction for vect_double_reduction_def.
11309 (vect_transform_loop): Likewise.
11310 (vect_create_epilog_for_reduction): Move double-reduction
11311 PHI creation and preheader argument setting of PHIs ...
11312 (vectorizable_reduction): ... here. Also process
11313 vect_double_reduction_def PHIs, creating the vectorized
11314 PHI nodes, remembering the scalar adjustment computed for
11315 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11316 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11317 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11318 Initialize STMT_VINFO_REDUC_CODE.
11319 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11320 (_stmt_vec_info::reduc_code): Likewise.
11321 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11322 (STMT_VINFO_REDUC_CODE): Likewise.
11323
11324 2019-09-26 Matt Turner <mattst88@gmail.com>
11325
11326 PR driver/69471
11327 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11328 (mtune=): Add Negative(mtune=).
11329 (mcpu=): Add Negative(mcpu=).
11330 * config/arm/arm.opt: Likewise.
11331
11332 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11333
11334 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11335 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11336 Define.
11337 * config/arm/arm_acle.h: Define builtins for the above.
11338 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11339 (simd32_op): Handle the above.
11340 * config/arm/unspecs.md: Define unspecs for the above.
11341
11342 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11343
11344 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11345 (arm_<sup>xtb16): Likewise.
11346 (arm_usada8): Likewise.
11347 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11348 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11349 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11350 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11351 __sxtb16, __uxtab16, __uxtb16): Define.
11352 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11353 * config/arm/unspecs.md: Define unspecs for the above.
11354 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11355 (USXTB16): Likewise.
11356 (simd32_op): New int_attribute.
11357 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11358 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11359
11360 2019-09-26 Martin Jambor <mjambor@suse.cz>
11361
11362 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11363 internal_error.
11364
11365 2019-09-26 Martin Jambor <mjambor@suse.cz>
11366
11367 * ipa-sra.c (process_scan_results): Fix continue condition.
11368
11369 2019-09-26 Martin Liska <mliska@suse.cz>
11370
11371 PR tree-optimization/91885
11372 * tree-vectorizer.c (try_vectorize_loop_1): Add
11373 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11374
11375 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11376
11377 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11378 aarch64_plus_immediate rather than aarch64_uimm12_shift
11379 to test for valid PLUS immediates.
11380
11381 2019-09-25 Martin Jambor <mjambor@suse.cz>
11382
11383 * tree-sra.c (no_accesses_p): Remove.
11384 (no_accesses_representant): Likewise.
11385
11386 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11387
11388 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11389 consistenly.
11390 (vaba_s16): Likewise.
11391 (vaba_s32): Likewise.
11392 (vaba_u8): Likewise.
11393 (vaba_u16): Likewise.
11394 (vaba_u32): Likewise.
11395 (vabal_high_s8): Likewise.
11396 (vabal_high_s16): Likewise.
11397 (vabal_high_s32): Likewise.
11398 (vabal_high_u8): Likewise.
11399 (vabal_high_u16): Likewise.
11400 (vabal_high_u32): Likewise.
11401 (vabal_s8): Likewise.
11402 (vabal_s16): Likewise.
11403 (vabal_s32): Likewise.
11404 (vabal_u8): Likewise.
11405 (vabal_u16): Likewise.
11406 (vabal_u32): Likewise.
11407 (vabaq_s8): Likewise.
11408 (vabaq_s16): Likewise.
11409 (vabaq_s32): Likewise.
11410 (vabaq_u8): Likewise.
11411 (vabaq_u16): Likewise.
11412 (vabaq_u32): Likewise.
11413 (vabd_s8): Likewise.
11414 (vabd_s16): Likewise.
11415 (vabd_s32): Likewise.
11416 (vabd_u8): Likewise.
11417 (vabd_u16): Likewise.
11418 (vabd_u32): Likewise.
11419 (vabdl_high_s8): Likewise.
11420 (vabdl_high_s16): Likewise.
11421 (vabdl_high_s32): Likewise.
11422 (vabdl_high_u8): Likewise.
11423 (vabdl_high_u16): Likewise.
11424 (vabdl_high_u32): Likewise.
11425 (vabdl_s8): Likewise.
11426 (vabdl_s16): Likewise.
11427 (vabdl_s32): Likewise.
11428 (vabdl_u8): Likewise.
11429 (vabdl_u16): Likewise.
11430 (vabdl_u32): Likewise.
11431 (vabdq_s8): Likewise.
11432 (vabdq_s16): Likewise.
11433 (vabdq_s32): Likewise.
11434 (vabdq_u8): Likewise.
11435 (vabdq_u16): Likewise.
11436 (vabdq_u32): Likewise.
11437 (vaddlv_s8): Likewise.
11438 (vaddlv_s16): Likewise.
11439 (vaddlv_u8): Likewise.
11440 (vaddlv_u16): Likewise.
11441 (vaddlvq_s8): Likewise.
11442 (vaddlvq_s16): Likewise.
11443 (vaddlvq_s32): Likewise.
11444 (vaddlvq_u8): Likewise.
11445 (vaddlvq_u16): Likewise.
11446 (vaddlvq_u32): Likewise.
11447 (vcvtx_f32_f64): Likewise.
11448 (vcvtx_high_f32_f64): Likewise.
11449 (vcvtxd_f32_f64): Likewise.
11450 (vmla_n_f32): Likewise.
11451 (vmla_n_s16): Likewise.
11452 (vmla_n_s32): Likewise.
11453 (vmla_n_u16): Likewise.
11454 (vmla_n_u32): Likewise.
11455 (vmla_s8): Likewise.
11456 (vmla_s16): Likewise.
11457 (vmla_s32): Likewise.
11458 (vmla_u8): Likewise.
11459 (vmla_u16): Likewise.
11460 (vmla_u32): Likewise.
11461 (vmlal_high_n_s16): Likewise.
11462 (vmlal_high_n_s32): Likewise.
11463 (vmlal_high_n_u16): Likewise.
11464 (vmlal_high_n_u32): Likewise.
11465 (vmlal_high_s8): Likewise.
11466 (vmlal_high_s16): Likewise.
11467 (vmlal_high_s32): Likewise.
11468 (vmlal_high_u8): Likewise.
11469 (vmlal_high_u16): Likewise.
11470 (vmlal_high_u32): Likewise.
11471 (vmlal_n_s16): Likewise.
11472 (vmlal_n_s32): Likewise.
11473 (vmlal_n_u16): Likewise.
11474 (vmlal_n_u32): Likewise.
11475 (vmlal_s8): Likewise.
11476 (vmlal_s16): Likewise.
11477 (vmlal_s32): Likewise.
11478 (vmlal_u8): Likewise.
11479 (vmlal_u16): Likewise.
11480 (vmlal_u32): Likewise.
11481 (vmlaq_n_f32): Likewise.
11482 (vmlaq_n_s16): Likewise.
11483 (vmlaq_n_s32): Likewise.
11484 (vmlaq_n_u16): Likewise.
11485 (vmlaq_n_u32): Likewise.
11486 (vmlaq_s8): Likewise.
11487 (vmlaq_s16): Likewise.
11488 (vmlaq_s32): Likewise.
11489 (vmlaq_u8): Likewise.
11490 (vmlaq_u16): Likewise.
11491 (vmlaq_u32): Likewise.
11492 (vmls_n_f32): Likewise.
11493 (vmls_n_s16): Likewise.
11494 (vmls_n_s32): Likewise.
11495 (vmls_n_u16): Likewise.
11496 (vmls_n_u32): Likewise.
11497 (vmls_s8): Likewise.
11498 (vmls_s16): Likewise.
11499 (vmls_s32): Likewise.
11500 (vmls_u8): Likewise.
11501 (vmls_u16): Likewise.
11502 (vmls_u32): Likewise.
11503 (vmlsl_high_n_s16): Likewise.
11504 (vmlsl_high_n_s32): Likewise.
11505 (vmlsl_high_n_u16): Likewise.
11506 (vmlsl_high_n_u32): Likewise.
11507 (vmlsl_high_s8): Likewise.
11508 (vmlsl_high_s16): Likewise.
11509 (vmlsl_high_s32): Likewise.
11510 (vmlsl_high_u8): Likewise.
11511 (vmlsl_high_u16): Likewise.
11512 (vmlsl_high_u32): Likewise.
11513 (vmlsl_n_s16): Likewise.
11514 (vmlsl_n_s32): Likewise.
11515 (vmlsl_n_u16): Likewise.
11516 (vmlsl_n_u32): Likewise.
11517 (vmlsl_s8): Likewise.
11518 (vmlsl_s16): Likewise.
11519 (vmlsl_s32): Likewise.
11520 (vmlsl_u8): Likewise.
11521 (vmlsl_u16): Likewise.
11522 (vmlsl_u32): Likewise.
11523 (vmlsq_n_f32): Likewise.
11524 (vmlsq_n_s16): Likewise.
11525 (vmlsq_n_s32): Likewise.
11526 (vmlsq_n_u16): Likewise.
11527 (vmlsq_n_u32): Likewise.
11528 (vmlsq_s8): Likewise.
11529 (vmlsq_s16): Likewise.
11530 (vmlsq_s32): Likewise.
11531 (vmlsq_u8): Likewise.
11532 (vmlsq_u16): Likewise.
11533 (vmlsq_u32): Likewise.
11534 (vmovl_high_s8): Likewise.
11535 (vmovl_high_s16): Likewise.
11536 (vmovl_high_s32): Likewise.
11537 (vmovl_high_u8): Likewise.
11538 (vmovl_high_u16): Likewise.
11539 (vmovl_high_u32): Likewise.
11540 (vmovl_s8): Likewise.
11541 (vmovl_s16): Likewise.
11542 (vmovl_s32): Likewise.
11543 (vmovl_u8): Likewise.
11544 (vmovl_u16): Likewise.
11545 (vmovl_u32): Likewise.
11546 (vmovn_high_s16): Likewise.
11547 (vmovn_high_s32): Likewise.
11548 (vmovn_high_s64): Likewise.
11549 (vmovn_high_u16): Likewise.
11550 (vmovn_high_u32): Likewise.
11551 (vmovn_high_u64): Likewise.
11552 (vmovn_s16): Likewise.
11553 (vmovn_s32): Likewise.
11554 (vmovn_s64): Likewise.
11555 (vmovn_u16): Likewise.
11556 (vmovn_u32): Likewise.
11557 (vmovn_u64): Likewise.
11558 (vmull_high_n_s16): Likewise.
11559 (vmull_high_n_s32): Likewise.
11560 (vmull_high_n_u16): Likewise.
11561 (vmull_high_n_u32): Likewise.
11562 (vmull_high_p8): Likewise.
11563 (vmull_high_s8): Likewise.
11564 (vmull_high_s16): Likewise.
11565 (vmull_high_s32): Likewise.
11566 (vmull_high_u8): Likewise.
11567 (vmull_high_u16): Likewise.
11568 (vmull_high_u32): Likewise.
11569 (vmull_n_s16): Likewise.
11570 (vmull_n_s32): Likewise.
11571 (vmull_n_u16): Likewise.
11572 (vmull_n_u32): Likewise.
11573 (vmull_p8): Likewise.
11574 (vmull_s8): Likewise.
11575 (vmull_s16): Likewise.
11576 (vmull_s32): Likewise.
11577 (vmull_u8): Likewise.
11578 (vmull_u16): Likewise.
11579 (vmull_u32): Likewise.
11580 (vpadal_s8): Likewise.
11581 (vpadal_s16): Likewise.
11582 (vpadal_s32): Likewise.
11583 (vpadal_u8): Likewise.
11584 (vpadal_u16): Likewise.
11585 (vpadal_u32): Likewise.
11586 (vpadalq_s8): Likewise.
11587 (vpadalq_s16): Likewise.
11588 (vpadalq_s32): Likewise.
11589 (vpadalq_u8): Likewise.
11590 (vpadalq_u16): Likewise.
11591 (vpadalq_u32): Likewise.
11592 (vpaddl_s8): Likewise.
11593 (vpaddl_s16): Likewise.
11594 (vpaddl_s32): Likewise.
11595 (vpaddl_u8): Likewise.
11596 (vpaddl_u16): Likewise.
11597 (vpaddl_u32): Likewise.
11598 (vpaddlq_s8): Likewise.
11599 (vpaddlq_s16): Likewise.
11600 (vpaddlq_s32): Likewise.
11601 (vpaddlq_u8): Likewise.
11602 (vpaddlq_u16): Likewise.
11603 (vpaddlq_u32): Likewise.
11604 (vpaddq_s8): Likewise.
11605 (vpaddq_s16): Likewise.
11606 (vpaddq_s32): Likewise.
11607 (vpaddq_s64): Likewise.
11608 (vpaddq_u8): Likewise.
11609 (vpaddq_u16): Likewise.
11610 (vpaddq_u32): Likewise.
11611 (vpaddq_u64): Likewise.
11612 (vqdmulh_n_s16): Likewise.
11613 (vqdmulh_n_s32): Likewise.
11614 (vqdmulhq_n_s16): Likewise.
11615 (vqdmulhq_n_s32): Likewise.
11616 (vqmovn_high_s16): Likewise.
11617 (vqmovn_high_s32): Likewise.
11618 (vqmovn_high_s64): Likewise.
11619 (vqmovn_high_u16): Likewise.
11620 (vqmovn_high_u32): Likewise.
11621 (vqmovn_high_u64): Likewise.
11622 (vqmovun_high_s16): Likewise.
11623 (vqmovun_high_s32): Likewise.
11624 (vqmovun_high_s64): Likewise.
11625 (vqrdmulh_n_s16): Likewise.
11626 (vqrdmulh_n_s32): Likewise.
11627 (vqrdmulhq_n_s16): Likewise.
11628 (vqrdmulhq_n_s32): Likewise.
11629 (vrsqrte_u32): Likewise.
11630 (vrsqrteq_u32): Likewise.
11631 (vtst_p8): Likewise.
11632 (vtst_p16): Likewise.
11633 (vtst_p64): Likewise.
11634 (vtstq_p8): Likewise.
11635 (vtstq_p16): Likewise.
11636 (vtstq_p64): Likewise.
11637 (vaddlv_s32): Likewise.
11638 (vaddlv_u32): Likewise.
11639 (vqtbl1_p8): Likewise.
11640 (vqtbl1_s8): Likewise.
11641 (vqtbl1_u8): Likewise.
11642 (vqtbl1q_p8): Likewise.
11643 (vqtbl1q_s8): Likewise.
11644 (vqtbl1q_u8): Likewise.
11645 (vqtbx1_s8): Likewise.
11646 (vqtbx1_u8): Likewise.
11647 (vqtbx1_p8): Likewise.
11648 (vqtbx1q_s8): Likewise.
11649 (vqtbx1q_u8): Likewise.
11650 (vqtbx1q_p8): Likewise.
11651 (vtbl1_s8): Likewise.
11652 (vtbl1_u8): Likewise.
11653 (vtbl1_p8): Likewise.
11654 (vtbl2_s8): Likewise.
11655 (vtbl2_u8): Likewise.
11656 (vtbl2_p8): Likewise.
11657 (vtbl3_s8): Likewise.
11658 (vtbl3_u8): Likewise.
11659 (vtbl3_p8): Likewise.
11660 (vtbl4_s8): Likewise.
11661 (vtbl4_u8): Likewise.
11662 (vtbl4_p8): Likewise.
11663 (vtbx2_s8): Likewise.
11664 (vtbx2_u8): Likewise.
11665 (vtbx2_p8): Likewise.
11666 (vld1_f32): Likewise.
11667 (vld1_f64): Likewise.
11668 (vld1_p8): Likewise.
11669 (vld1_p16): Likewise.
11670 (vld1_p64): Likewise.
11671 (vld1_s8): Likewise.
11672 (vld1_s16): Likewise.
11673 (vld1_s32): Likewise.
11674 (vld1_s64): Likewise.
11675 (vld1_u8): Likewise.
11676 (vld1_u16): Likewise.
11677 (vld1_u32): Likewise.
11678 (vld1_u64): Likewise.
11679 (vld1q_f32): Likewise.
11680 (vld1q_f64): Likewise.
11681 (vld1q_p8): Likewise.
11682 (vld1q_p16): Likewise.
11683 (vld1q_p64): Likewise.
11684 (vld1q_s8): Likewise.
11685 (vld1q_s16): Likewise.
11686 (vld1q_s32): Likewise.
11687 (vld1q_s64): Likewise.
11688 (vld1q_u8): Likewise.
11689 (vld1q_u16): Likewise.
11690 (vld1q_u32): Likewise.
11691 (vld1q_u64): Likewise.
11692 (vpmax_s8): Likewise.
11693 (vpmax_s16): Likewise.
11694 (vpmax_s32): Likewise.
11695 (vpmax_u8): Likewise.
11696 (vpmax_u16): Likewise.
11697 (vpmax_u32): Likewise.
11698 (vpmaxq_s8): Likewise.
11699 (vpmaxq_s16): Likewise.
11700 (vpmaxq_s32): Likewise.
11701 (vpmaxq_u8): Likewise.
11702 (vpmaxq_u16): Likewise.
11703 (vpmaxq_u32): Likewise.
11704 (vpmax_f32): Likewise.
11705 (vpmaxq_f32): Likewise.
11706 (vpmaxq_f64): Likewise.
11707 (vpmaxqd_f64): Likewise.
11708 (vpmaxs_f32): Likewise.
11709 (vpmaxnm_f32): Likewise.
11710 (vpmaxnmq_f32): Likewise.
11711 (vpmaxnmq_f64): Likewise.
11712 (vpmaxnmqd_f64): Likewise.
11713 (vpmaxnms_f32): Likewise.
11714 (vpmin_s8): Likewise.
11715 (vpmin_s16): Likewise.
11716 (vpmin_s32): Likewise.
11717 (vpmin_u8): Likewise.
11718 (vpmin_u16): Likewise.
11719 (vpmin_u32): Likewise.
11720 (vpminq_s8): Likewise.
11721 (vpminq_s16): Likewise.
11722 (vpminq_s32): Likewise.
11723 (vpminq_u8): Likewise.
11724 (vpminq_u16): Likewise.
11725 (vpminq_u32): Likewise.
11726 (vpmin_f32): Likewise.
11727 (vpminq_f32): Likewise.
11728 (vpminq_f64): Likewise.
11729 (vpminqd_f64): Likewise.
11730 (vpmins_f32): Likewise.
11731 (vpminnm_f32): Likewise.
11732 (vpminnmq_f32): Likewise.
11733 (vpminnmq_f64): Likewise.
11734 (vpminnmqd_f64): Likewise.
11735 (vpminnms_f32): Likewise.
11736 (vmla_f32): Likewise.
11737 (vmlaq_f32): Likewise.
11738 (vmlaq_f64): Likewise.
11739 (vmls_f32): Likewise.
11740 (vmlsq_f32): Likewise.
11741 (vmlsq_f64): Likewise.
11742 (vqtbl2_s8): Likewise.
11743 (vqtbl2_u8): Likewise.
11744 (vqtbl2_p8): Likewise.
11745 (vqtbl2q_s8): Likewise.
11746 (vqtbl2q_u8): Likewise.
11747 (vqtbl2q_p8): Likewise.
11748 (vqtbl3_s8): Likewise.
11749 (vqtbl3_u8): Likewise.
11750 (vqtbl3_p8): Likewise.
11751 (vqtbl3q_s8): Likewise.
11752 (vqtbl3q_u8): Likewise.
11753 (vqtbl3q_p8): Likewise.
11754 (vqtbl4_s8): Likewise.
11755 (vqtbl4_u8): Likewise.
11756 (vqtbl4_p8): Likewise.
11757 (vqtbl4q_s8): Likewise.
11758 (vqtbl4q_u8): Likewise.
11759 (vqtbl4q_p8): Likewise.
11760 (vqtbx2_s8): Likewise.
11761 (vqtbx2_u8): Likewise.
11762 (vqtbx2_p8): Likewise.
11763 (vqtbx2q_s8): Likewise.
11764 (vqtbx2q_u8): Likewise.
11765 (vqtbx2q_p8): Likewise.
11766 (vqtbx3_s8): Likewise.
11767 (vqtbx3_u8): Likewise.
11768 (vqtbx3_p8): Likewise.
11769 (vqtbx3q_s8): Likewise.
11770 (vqtbx3q_u8): Likewise.
11771 (vqtbx3q_p8): Likewise.
11772 (vqtbx4_s8): Likewise.
11773 (vqtbx4_u8): Likewise.
11774 (vqtbx4_p8): Likewise.
11775 (vqtbx4q_s8): Likewise.
11776 (vqtbx4q_u8): Likewise.
11777 (vqtbx4q_p8): Likewise.
11778 (vrev16_p8): Likewise.
11779 (vrev16_s8): Likewise.
11780 (vrev16_u8): Likewise.
11781 (vrev16q_p8): Likewise.
11782 (vrev16q_s8): Likewise.
11783 (vrev16q_u8): Likewise.
11784 (vrev32_p8): Likewise.
11785 (vrev32_p16): Likewise.
11786 (vrev32_s8): Likewise.
11787 (vrev32_s16): Likewise.
11788 (vrev32_u8): Likewise.
11789 (vrev32_u16): Likewise.
11790 (vrev32q_p8): Likewise.
11791 (vrev32q_p16): Likewise.
11792 (vrev32q_s8): Likewise.
11793 (vrev32q_s16): Likewise.
11794 (vrev32q_u8): Likewise.
11795 (vrev32q_u16): Likewise.
11796 (vrev64_f32): Likewise.
11797 (vrev64_p8): Likewise.
11798 (vrev64_p16): Likewise.
11799 (vrev64_s8): Likewise.
11800 (vrev64_s16): Likewise.
11801 (vrev64_s32): Likewise.
11802 (vrev64_u8): Likewise.
11803 (vrev64_u16): Likewise.
11804 (vrev64_u32): Likewise.
11805 (vrev64q_f32): Likewise.
11806 (vrev64q_p8): Likewise.
11807 (vrev64q_p16): Likewise.
11808 (vrev64q_s8): Likewise.
11809 (vrev64q_s16): Likewise.
11810 (vrev64q_s32): Likewise.
11811 (vrev64q_u8): Likewise.
11812 (vrev64q_u16): Likewise.
11813 (vrev64q_u32): Likewise.
11814 (vsha1cq_u32): Likewise.
11815 (vsha1mq_u32): Likewise.
11816 (vsha1pq_u32): Likewise.
11817 (vsha1h_u32): Likewise.
11818 (vsha1su0q_u32): Likewise.
11819 (vsha1su1q_u32): Likewise.
11820 (vsha256hq_u32): Likewise.
11821 (vsha256h2q_u32): Likewise.
11822 (vsha256su0q_u32): Likewise.
11823 (vsha256su1q_u32): Likewise.
11824 (vmull_p64): Likewise.
11825 (vmull_high_p64): Likewise.
11826 (vsqrt_f32): Likewise.
11827 (vsqrtq_f32): Likewise.
11828 (vsqrt_f64): Likewise.
11829 (vsqrtq_f64): Likewise.
11830 (vst1_f32): Likewise.
11831 (vst1_f64): Likewise.
11832 (vst1_p8): Likewise.
11833 (vst1_p16): Likewise.
11834 (vst1_p64): Likewise.
11835 (vst1_s8): Likewise.
11836 (vst1_s16): Likewise.
11837 (vst1_s32): Likewise.
11838 (vst1_s64): Likewise.
11839 (vst1_u8): Likewise.
11840 (vst1_u16): Likewise.
11841 (vst1_u32): Likewise.
11842 (vst1_u64): Likewise.
11843 (vst1q_f32): Likewise.
11844 (vst1q_f64): Likewise.
11845 (vst1q_p8): Likewise.
11846 (vst1q_p16): Likewise.
11847 (vst1q_p64): Likewise.
11848 (vst1q_s8): Likewise.
11849 (vst1q_s16): Likewise.
11850 (vst1q_s32): Likewise.
11851 (vst1q_s64): Likewise.
11852 (vst1q_u8): Likewise.
11853 (vst1q_u16): Likewise.
11854 (vst1q_u32): Likewise.
11855 (vst1q_u64): Likewise.
11856 (vst1_s64_x2): Likewise.
11857 (vst1_u64_x2): Likewise.
11858 (vst1_f64_x2): Likewise.
11859 (vst1_s8_x2): Likewise.
11860 (vst1_p8_x2): Likewise.
11861 (vst1_s16_x2): Likewise.
11862 (vst1_p16_x2): Likewise.
11863 (vst1_s32_x2): Likewise.
11864 (vst1_u8_x2): Likewise.
11865 (vst1_u16_x2): Likewise.
11866 (vst1_u32_x2): Likewise.
11867 (vst1_f16_x2): Likewise.
11868 (vst1_f32_x2): Likewise.
11869 (vst1_p64_x2): Likewise.
11870 (vst1q_s8_x2): Likewise.
11871 (vst1q_p8_x2): Likewise.
11872 (vst1q_s16_x2): Likewise.
11873 (vst1q_p16_x2): Likewise.
11874 (vst1q_s32_x2): Likewise.
11875 (vst1q_s64_x2): Likewise.
11876 (vst1q_u8_x2): Likewise.
11877 (vst1q_u16_x2): Likewise.
11878 (vst1q_u32_x2): Likewise.
11879 (vst1q_u64_x2): Likewise.
11880 (vst1q_f16_x2): Likewise.
11881 (vst1q_f32_x2): Likewise.
11882 (vst1q_f64_x2): Likewise.
11883 (vst1q_p64_x2): Likewise.
11884 (vst1_s64_x3): Likewise.
11885 (vst1_u64_x3): Likewise.
11886 (vst1_f64_x3): Likewise.
11887 (vst1_s8_x3): Likewise.
11888 (vst1_p8_x3): Likewise.
11889 (vst1_s16_x3): Likewise.
11890 (vst1_p16_x3): Likewise.
11891 (vst1_s32_x3): Likewise.
11892 (vst1_u8_x3): Likewise.
11893 (vst1_u16_x3): Likewise.
11894 (vst1_u32_x3): Likewise.
11895 (vst1_f16_x3): Likewise.
11896 (vst1_f32_x3): Likewise.
11897 (vst1_p64_x3): Likewise.
11898 (vst1q_s8_x3): Likewise.
11899 (vst1q_p8_x3): Likewise.
11900 (vst1q_s16_x3): Likewise.
11901 (vst1q_p16_x3): Likewise.
11902 (vst1q_s32_x3): Likewise.
11903 (vst1q_s64_x3): Likewise.
11904 (vst1q_u8_x3): Likewise.
11905 (vst1q_u16_x3): Likewise.
11906 (vst1q_u32_x3): Likewise.
11907 (vst1q_u64_x3): Likewise.
11908 (vst1q_f16_x3): Likewise.
11909 (vst1q_f32_x3): Likewise.
11910 (vst1q_f64_x3): Likewise.
11911 (vst1q_p64_x3): Likewise.
11912 (vst2_s64): Likewise.
11913 (vst2_u64): Likewise.
11914 (vst2_f64): Likewise.
11915 (vst2_s8): Likewise.
11916 (vst2_p8): Likewise.
11917 (vst2_s16): Likewise.
11918 (vst2_p16): Likewise.
11919 (vst2_s32): Likewise.
11920 (vst2_u8): Likewise.
11921 (vst2_u16): Likewise.
11922 (vst2_u32): Likewise.
11923 (vst2_f16): Likewise.
11924 (vst2_f32): Likewise.
11925 (vst2_p64): Likewise.
11926 (vst2q_s8): Likewise.
11927 (vst2q_p8): Likewise.
11928 (vst2q_s16): Likewise.
11929 (vst2q_p16): Likewise.
11930 (vst2q_s32): Likewise.
11931 (vst2q_s64): Likewise.
11932 (vst2q_u8): Likewise.
11933 (vst2q_u16): Likewise.
11934 (vst2q_u32): Likewise.
11935 (vst2q_u64): Likewise.
11936 (vst2q_f16): Likewise.
11937 (vst2q_f32): Likewise.
11938 (vst2q_f64): Likewise.
11939 (vst2q_p64): Likewise.
11940 (vst3_s64): Likewise.
11941 (vst3_u64): Likewise.
11942 (vst3_f64): Likewise.
11943 (vst3_s8): Likewise.
11944 (vst3_p8): Likewise.
11945 (vst3_s16): Likewise.
11946 (vst3_p16): Likewise.
11947 (vst3_s32): Likewise.
11948 (vst3_u8): Likewise.
11949 (vst3_u16): Likewise.
11950 (vst3_u32): Likewise.
11951 (vst3_f16): Likewise.
11952 (vst3_f32): Likewise.
11953 (vst3_p64): Likewise.
11954 (vst3q_s8): Likewise.
11955 (vst3q_p8): Likewise.
11956 (vst3q_s16): Likewise.
11957 (vst3q_p16): Likewise.
11958 (vst3q_s32): Likewise.
11959 (vst3q_s64): Likewise.
11960 (vst3q_u8): Likewise.
11961 (vst3q_u16): Likewise.
11962 (vst3q_u32): Likewise.
11963 (vst3q_u64): Likewise.
11964 (vst3q_f16): Likewise.
11965 (vst3q_f32): Likewise.
11966 (vst3q_f64): Likewise.
11967 (vst3q_p64): Likewise.
11968 (vst4_s64): Likewise.
11969 (vst4_u64): Likewise.
11970 (vst4_f64): Likewise.
11971 (vst4_s8): Likewise.
11972 (vst4_p8): Likewise.
11973 (vst4_s16): Likewise.
11974 (vst4_p16): Likewise.
11975 (vst4_s32): Likewise.
11976 (vst4_u8): Likewise.
11977 (vst4_u16): Likewise.
11978 (vst4_u32): Likewise.
11979 (vst4_f16): Likewise.
11980 (vst4_f32): Likewise.
11981 (vst4_p64): Likewise.
11982 (vst4q_s8): Likewise.
11983 (vst4q_p8): Likewise.
11984 (vst4q_s16): Likewise.
11985 (vst4q_p16): Likewise.
11986 (vst4q_s32): Likewise.
11987 (vst4q_s64): Likewise.
11988 (vst4q_u8): Likewise.
11989 (vst4q_u16): Likewise.
11990 (vst4q_u32): Likewise.
11991 (vst4q_u64): Likewise.
11992 (vst4q_f16): Likewise.
11993 (vst4q_f32): Likewise.
11994 (vst4q_f64): Likewise.
11995 (vst4q_p64): Likewise.
11996 (vtbx4_s8): Likewise.
11997 (vtbx4_u8): Likewise.
11998 (vtbx4_p8): Likewise.
11999 (vtrn_f32): Likewise.
12000 (vtrn_p8): Likewise.
12001 (vtrn_p16): Likewise.
12002 (vtrn_s8): Likewise.
12003 (vtrn_s16): Likewise.
12004 (vtrn_s32): Likewise.
12005 (vtrn_u8): Likewise.
12006 (vtrn_u16): Likewise.
12007 (vtrn_u32): Likewise.
12008 (vtrnq_f32): Likewise.
12009 (vtrnq_p8): Likewise.
12010 (vtrnq_p16): Likewise.
12011 (vtrnq_s8): Likewise.
12012 (vtrnq_s16): Likewise.
12013 (vtrnq_s32): Likewise.
12014 (vtrnq_u8): Likewise.
12015 (vtrnq_u16): Likewise.
12016 (vtrnq_u32): Likewise.
12017 (vrsqrte_f16): Likewise.
12018 (vrsqrteq_f16): Likewise.
12019 (vsqrt_f16): Likewise.
12020 (vsqrtq_f16): Likewise.
12021 (vabd_f16): Likewise.
12022 (vabdq_f16): Likewise.
12023 (vpadd_f16): Likewise.
12024 (vpaddq_f16): Likewise.
12025 (vpmax_f16): Likewise.
12026 (vpmaxq_f16): Likewise.
12027 (vpmaxnm_f16): Likewise.
12028 (vpmaxnmq_f16): Likewise.
12029 (vpmin_f16): Likewise.
12030 (vpminq_f16): Likewise.
12031 (vpminnm_f16): Likewise.
12032 (vpminnmq_f16): Likewise.
12033 (vrsqrts_f16): Likewise.
12034 (vrsqrtsq_f16): Likewise.
12035
12036 2019-09-25 Richard Biener <rguenther@suse.de>
12037
12038 PR tree-optimization/91896
12039 * tree-vect-loop.c (vectorizable_reduction): The single
12040 def-use cycle optimization cannot apply when there's more
12041 than one pattern stmt involved.
12042
12043 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12044
12045 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12046 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12047 (reload_macho_picbase_<mode>): Likewise.
12048
12049 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12050
12051 * config/rs6000/rs6000.md: Move darwin.md include until
12052 after the definition of the mode iterators.
12053
12054 2019-09-23 Martin Sebor <msebor@redhat.com>
12055
12056 PR tree-optimization/91570
12057 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12058 non-constant minlen, maxlen and maxbound.
12059
12060 2019-09-24 Richard Biener <rguenther@suse.de>
12061
12062 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12063 Rename to...
12064 (_stmt_vec_info::cond_reduc_code): ... this.
12065 (_stmt_vec_info::induc_cond_initial_val): Add.
12066 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12067 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12068 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12069 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12070 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12071 the reduction code.
12072 (vect_create_epilog_for_reduction): Drop special
12073 induction condition reduction params, pass in reduction code
12074 and simplify.
12075 (vectorizable_reduction): Perform condition reduction kind
12076 selection only at analysis time. Adjust passing on state.
12077
12078 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12079
12080 * config/aarch64/aarch64.md (mov<mode>): Don't call
12081 aarch64_split_dimode_const_store on volatile MEM.
12082
12083 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12084
12085 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12086 Update hwcap string for fp16fml.
12087
12088 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12089
12090 PR middle-end/91866
12091 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12092 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12093
12094 2019-09-24 Martin Liska <mliska@suse.cz>
12095
12096 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12097 instead of if-elseif-elseif-...
12098 * gimple-expr.c (extract_ops_from_tree): Likewise.
12099 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12100 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12101
12102 2019-09-24 Martin Jambor <mjambor@suse.cz>
12103
12104 PR ipa/91831
12105 * ipa-param-manipulation.c (carry_over_param): Make a method of
12106 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12107 in case of a context mismatch.
12108 (ipa_param_body_adjustments::common_initialization): Adjust call to
12109 carry_over_param.
12110 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12111 private method carry_over_param.
12112
12113 2019-09-24 Martin Jambor <mjambor@suse.cz>
12114
12115 PR ipa/91832
12116 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12117
12118 2019-09-24 Richard Biener <rguenther@suse.de>
12119
12120 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12121 base.
12122
12123 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12124
12125 * config/arm/t-arm (arm-builtins.o): Add dependency on
12126 arm_acle_builtins.def.
12127
12128 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12129
12130 PR target/91823
12131 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12132 canonical CONST_INTs. Use gen_rtvec.
12133
12134 2019-09-23 Richard Biener <rguenther@suse.de>
12135
12136 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12137 avoid adjusting by + 0 or * 1.
12138 (vect_create_epilog_for_reduction): Get reduction code only
12139 when necessary. Deal with adjustment_def only when necessary.
12140
12141 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12142
12143 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12144 memmodel index.
12145
12146 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12147
12148 PR ipa/91835
12149 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12150 "ipa-sra".
12151
12152 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12153
12154 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12155 code. Merge code blocks with common conditionals. Use declared
12156 macro instead of a magic number for PIC level.
12157
12158 2019-09-21 Martin Sebor <msebor@redhat.com>
12159
12160 PR middle-end/91830
12161 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12162 Simplify computation of the offset of the referenced subobject.
12163
12164 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12165
12166 * config/darwin.c (machopic_legitimize_pic_address): Check
12167 for lra not reload.
12168
12169 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12170
12171 * ira-conflicts.c (can_use_same_reg_p): New function.
12172 (process_reg_shuffles): Take an insn parameter. Ignore cases
12173 in which input operand op_num could seemingly never be allocated
12174 to the same register as the destination.
12175 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12176
12177 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12178
12179 * simplify-rtx.c (neg_const_int): Replace with...
12180 (neg_poly_int_rtx): ...this new function.
12181 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12182 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12183 (simplify_plus_minus): Likewise for constant terms here.
12184
12185 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12186
12187 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12188 HOST_WIDE_PRINT_UNSIGNED.
12189
12190 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12191
12192 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12193 character.
12194
12195 2019-09-20 Maya Rashish <coypu@sdf.org>
12196
12197 PR target/86811
12198 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12199 Define to speculation_safe_value_not_needed.
12200
12201 2019-09-20 Richard Biener <rguenther@suse.de>
12202 Uros Bizjak <ubizjak@gmail.com>
12203
12204 PR target/91814
12205 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12206 previous change.
12207 (general_scalar_chain::convert_op): Force not suitable memory
12208 operands to a register.
12209
12210 2019-09-20 Richard Biener <rguenther@suse.de>
12211
12212 PR tree-optimization/91821
12213 * tree-vect-loop.c (check_reduction_path): Check we can compute
12214 reduc_idx.
12215 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12216 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12217 operands in canonical order.
12218 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12219 STMT_VINFO_REDUC_IDX.
12220 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12221 (STMT_VINFO_REDUC_IDX): Likewise.
12222
12223 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12224
12225 PR target/91269
12226 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12227
12228 2019-09-20 Richard Biener <rguenther@suse.de>
12229
12230 PR tree-optimization/91822
12231 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12232 parameter.
12233 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12234 for reduc_index in nested cycles, adjust vectorizable_condition
12235 calls.
12236 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12237 parameter.
12238 (vect_analyze_stmt): Adjust.
12239 (vect_transform_stmt): Likewise.
12240
12241 2019-09-20 Richard Biener <rguenther@suse.de>
12242
12243 PR target/91767
12244 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12245 Ensure there's a sequence point between allocating the new register
12246 and passing a reference to a reg via regno_reg_rtx.
12247
12248 2019-09-20 Martin Jambor <mjambor@suse.cz>
12249
12250 * coretypes.h (cgraph_edge): Declare.
12251 * ipa-param-manipulation.c: Rewrite.
12252 * ipa-param-manipulation.h: Likewise.
12253 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12254 (OBJS): Added ipa-sra.o.
12255 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12256 and ref_p, added fields param_adjustments and performed_splits.
12257 (struct cgraph_clone_info): Remove ags_to_skip and
12258 combined_args_to_skip, new field param_adjustments.
12259 (cgraph_node::create_clone): Changed parameters to use
12260 ipa_param_adjustments.
12261 (cgraph_node::create_virtual_clone): Likewise.
12262 (cgraph_node::create_virtual_clone_with_body): Likewise.
12263 (tree_function_versioning): Likewise.
12264 (cgraph_build_function_type_skip_args): Removed.
12265 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12266 using ipa_param_adjustments.
12267 (clone_of_p): Likewise.
12268 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12269 (build_function_decl_skip_args): Likewise.
12270 (duplicate_thunk_for_node): Adjust parameters using
12271 ipa_param_body_adjustments, copy param_adjustments instead of
12272 args_to_skip.
12273 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12274 (cgraph_node::create_virtual_clone): Likewise.
12275 (cgraph_node::create_version_clone_with_body): Likewise.
12276 (cgraph_materialize_clone): Likewise.
12277 (symbol_table::materialize_all_clones): Likewise.
12278 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12279 ipa_replace_map check.
12280 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12281 (initialize_node_lattices): Make aware that some parameters might have
12282 already been removed.
12283 (want_remove_some_param_p): New function.
12284 (create_specialized_node): Convert to using ipa_param_adjustments and
12285 deal with possibly pre-existing adjustments.
12286 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12287 (output_node_opt_summary): Do not stream removed fields. Stream
12288 parameter adjustments instead of argumetns to skip.
12289 (input_node_opt_summary): Likewise.
12290 (input_node_opt_summary): Likewise.
12291 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12292 * lto-streamer.h (lto_section_type): Likewise.
12293 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12294 param_body_adjs.
12295 (copy_decl_to_var): Declare.
12296 * tree-inline.c (update_clone_info): Do not remap old_tree.
12297 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12298 statements, walk all extra generated statements and remap their
12299 operands.
12300 (redirect_all_calls): Add killed SSA names to a hash set.
12301 (remap_ssa_name): Do not remap killed SSA names.
12302 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12303 half of functionality moved to ipa_param_body_adjustments.
12304 (copy_decl_to_var): Make exported.
12305 (copy_body): Destroy killed_new_ssa_names hash set.
12306 (expand_call_inline): Remap performed splits.
12307 (update_clone_info): Likewise.
12308 (tree_function_versioning): Simplify tree_map processing. Updated to
12309 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12310 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12311 for the new interface.
12312 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12313 (simd_clone_compute_base_data_type): Likewise.
12314 (simd_clone_init_simd_arrays): Adjust for the new interface.
12315 (simd_clone_adjust_argument_types): Likewise.
12316 (struct modify_stmt_info): Likewise.
12317 (ipa_simd_modify_stmt_ops): Likewise.
12318 (ipa_simd_modify_function_body): Likewise.
12319 (simd_clone_adjust): Likewise.
12320 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12321 (type_internals_preclude_sra_p): Make public.
12322 * tree-sra.h: New file.
12323 * ipa-inline-transform.c (save_inline_function_body): Update to
12324 refelct new tree_function_versioning signature.
12325 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12326 ipa_param_adjustments to get current parameter indices.
12327 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12328 (ipcp_update_bits): Likewise.
12329 (ipcp_update_vr): Likewise.
12330 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12331 * ipa-sra.c: New file.
12332 * multiple_target.c (create_target_clone): Update to reflet new type
12333 of create_version_clone_with_body.
12334 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12335 tree_function_versioning.
12336 (modify_function): Update to reflect new type of
12337 tree_function_versioning.
12338 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12339 * passes.def: Remove old IPA-SRA and add new one.
12340 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12341 (make_pass_ipa_sra): Declare.
12342 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12343 ipa_sra_retvalues.
12344 * doc/invoke.texi (ipa-sra-max-replacements): New.
12345
12346 2019-09-19 Martin Sebor <msebor@redhat.com>
12347
12348 PR middle-end/91631
12349 * builtins.c (component_size): Correct trailing array computation,
12350 rename to component_ref_size and move...
12351 (compute_objsize): Adjust.
12352 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12353 (builtin_access::strict): Do not consider memmove.
12354 (builtin_access::write_off): New function.
12355 (builtin_memref::builtin_memref): Initialize refsize.
12356 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12357 refsize.
12358 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12359 Handle refsize.
12360 (builtin_access::builtin_access): Initialize dstoff to destination
12361 refeence offset here instead of in maybe_diag_overlap. Adjust
12362 referencess even to unrelated objects. Adjust sizrange of bounded
12363 string functions to reflect bound. For strcat, adjust destination
12364 sizrange by that of source.
12365 (builtin_access::strcat_overlap): Adjust offsets and sizes
12366 to reflect the increase in destination sizrange above.
12367 (builtin_access::overlap): Do not set dstoff here but instead
12368 in builtin_access::builtin_access.
12369 (check_bounds_or_overlap): Use builtin_access::write_off.
12370 (maybe_diag_access_bounds): Add argument. Add informational notes.
12371 (dump_builtin_memref, dump_builtin_access): New functions.
12372 * tree.c (component_ref_size): ...to here.
12373 * tree.h (component_ref_size): Declare.
12374 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12375 nul in the size of the source string.
12376
12377 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12378
12379 PR c/67224
12380 * doc/cpp.texi: Document support for extended characters in
12381 identifiers.
12382 * doc/cppopts.texi: Likewise.
12383
12384 2019-09-19 Richard Biener <rguenther@suse.de>
12385
12386 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12387 (check_reduction_path): New overload having the path as result.
12388 (vect_is_simple_reduction): From the detected reduction
12389 path build a SLP reduction chain if possible.
12390
12391 2019-09-19 Richard Biener <rguenther@suse.de>
12392
12393 PR target/91814
12394 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12395 Force operand to a register if it isn't nonimmediate_operand.
12396
12397 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12398
12399 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12400 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12401 (logical_op): Remove code attribute.
12402 (logical_OP): Likewise.
12403
12404 2019-09-19 Martin Liska <mliska@suse.cz>
12405
12406 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12407 Use proper casting.
12408
12409 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12410
12411 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12412 registers with %R.
12413
12414 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12415 for NE comparison of TImode values.
12416 (aarch64_emit_load_exclusive): Add support for TImode.
12417 (aarch64_emit_store_exclusive): Likewise.
12418 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12419 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12420 Change iterator from ALLI to ALLI_TI.
12421 (@atomic_compare_and_swap<JUST_TI>): New.
12422 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12423 (aarch64_load_exclusive_pair): New.
12424 (aarch64_store_exclusive_pair): New.
12425 * config/aarch64/iterators.md (JUST_TI): New.
12426
12427 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12428 strong_zero_p for aarch64_track_speculation; unify some code paths;
12429 use aarch64_gen_compare_reg instead of open-coding.
12430
12431 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12432 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12433 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12434 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12435 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12436 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12437 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12438 (atomic_<atomic_op><ALLI>): Likewise.
12439 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12440 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12441 * doc/invoke.texi: Document -moutline-atomics.
12442
12443 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12444
12445 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12446 trivial predicate for condition branch.
12447 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12448 for switch case.
12449 (compute_bb_predicates): Update predicate based on post-dominating
12450 relationship.
12451 (analyze_function_body): Calculate post-dominating information.
12452
12453 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12454
12455 * tree-vectorizer.h (vectorizable_condition): Take an int
12456 reduction index instead of a boolean flag.
12457 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12458 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12459 reductions if the reduction accumulator is the "then" rather
12460 than the "else" value.
12461 (vect_analyze_stmt): Update call accordingly.
12462 (vect_transform_stmt): Likewise.
12463 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12464 asserting that the index is > 0.
12465
12466 2019-09-19 Martin Liska <mliska@suse.cz>
12467
12468 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12469 (sort_congruence_classes_by_decl_uid): Likewise.
12470 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12471 easier sorting.
12472 (sem_item_optimizer::merge_classes): Likewise.
12473
12474 2019-09-19 Richard Biener <rguenther@suse.de>
12475
12476 PR tree-optimization/91812
12477 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12478 volatile loads.
12479
12480 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12481
12482 * defaults.h (TARGET_UNIT): New macro.
12483 (target_unit): New type.
12484 * rtl.h (native_encode_rtx, native_decode_rtx)
12485 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12486 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12487 * rtlanal.c (subreg_lsb_1): Delete.
12488 (subreg_size_lsb): New function.
12489 * simplify-rtx.c: Include rtx-vector-builder.h
12490 (simplify_immed_subreg): Delete.
12491 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12492 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12493 functions.
12494 (simplify_subreg): Use them.
12495 (test_vector_subregs_modes, test_vector_subregs_repeating)
12496 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12497 (test_vector_subregs): New functions.
12498 (test_vector_ops): Call test_vector_subregs for integer vector
12499 modes with at least 2 elements.
12500
12501 2019-09-19 Richard Biener <rguenther@suse.de>
12502
12503 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12504 LOOP_VINFO_OPERANDS_SWAPPED.
12505 (parloops_is_simple_reduction): Likewise.
12506 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12507 initialize operands_swapped.
12508 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12509 (vect_is_slp_reduction): Do not swap operands.
12510 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12511 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12512
12513 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12514
12515 PR target/87007
12516 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12517 Add avx_partial_xmm_update.
12518
12519 2019-09-18 Jim Wilson <jimw@sifive.com>
12520
12521 PR target/91683
12522 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12523 (riscv_move_integer): Likewise.
12524 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12525 riscv_move_integer arg.
12526 (riscv_legitimize_move): Likewise.
12527 (riscv_force_temporary): New parameter in_splitter. Don't call
12528 force_reg if true.
12529 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12530 arg.
12531 (riscv_add_offset): Likewise.
12532 (riscv_split_symbol): New parameter in_splitter. Pass to
12533 riscv_force_temporary.
12534 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12535 arg.
12536 (riscv_move_integer): New parameter in_splitter. New local
12537 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12538 in_splitter TRUE.
12539 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12540 riscv_split_symbol, and riscv_force_temporary args.
12541 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12542 riscv_move_integer arg.
12543 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12544
12545 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12546
12547 PR target/90878
12548 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12549 hard register store cost to 6.
12550
12551 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12552
12553 PR target/91446
12554 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12555 pseudo register store cost from 3 to 6 to make it the same as
12556 QImode and HImode.
12557
12558 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12559
12560 PR target/91738
12561 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12562 (one_cmpldi2): Likewise.
12563 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12564 of the constant parts is simple.
12565 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12566 (logical_op): Add new code attribute.
12567 (logical_OP): Likewise.
12568 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12569 (arm_iordi_operand): Add predicate.
12570 (arm_xordi_operand): Add predicate.
12571
12572 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12573
12574 * config/arm/arm.md (maddsidi4): Remove expander.
12575 (mulsidi3adddi): Remove pattern.
12576 (mulsidi3adddi_v6): Likewise.
12577 (mulsidi3_nov6): Likewise.
12578 (mulsidi3_v6): Likewise.
12579 (umulsidi3): Remove expander.
12580 (umulsidi3_nov6): Remove pattern.
12581 (umulsidi3_v6): Likewise.
12582 (umulsidi3adddi): Likewise.
12583 (umulsidi3adddi_v6): Likewise.
12584 (<Us>mulsidi3): Add combined expander.
12585 (<Us>maddsidi4): Likewise.
12586 (<US>mull): Add combined umull and smull pattern.
12587 (<US>mlal): Likewise.
12588 * config/arm/iterators.md (Us): Add new iterator.
12589
12590 2019-09-18 Richard Biener <rguenther@suse.de>
12591
12592 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12593 swapping.
12594 (vectorize_fold_left_reduction): Remove assert.
12595 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12596 operand in position 2. Remove assert.
12597
12598 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12599
12600 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12601 (smulsi3_highpart_nov6): Remove pattern.
12602 (smulsi3_highpart_v6): Likewise.
12603 (umulsi3_highpart): Likewise.
12604 (umulsi3_highpart_nov6): Likewise.
12605 (umulsi3_highpart_v6): Likewise.
12606 (<US>mull_high): Add new combined multiply pattern.
12607
12608 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12609
12610 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12611 (arm_mulsi3_v6): Likewise.
12612 (mulsi3addsi_v6): Likewise.
12613 (mulsi3subsi): Likewise.
12614 (mul): Add new multiply pattern.
12615 (mla): Likewise.
12616 (mls): Likewise.
12617
12618 2019-09-18 Richard Biener <rguenther@suse.de>
12619
12620 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12621 (parloops_valid_reduction_input_p): Copy from
12622 valid_reduction_input_p.
12623 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12624 (parloops_needs_fold_left_reduction_p): Copy from
12625 needs_fold_left_reduction_p.
12626 (parloops_is_simple_reduction): Copy from
12627 vect_is_simple_reduction.
12628 (parloops_force_simple_reduction): Copy from
12629 vect_force_simple_reduction.
12630 (gather_scalar_reductions): Adjust.
12631 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12632 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12633
12634 2019-09-18 Richard Biener <rguenther@suse.de>
12635
12636 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12637 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12638 static.
12639 (vect_create_epilog_for_reduction): Remove dead code.
12640
12641 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12642
12643 * varasm.c (assemble_real): Generate canonical const_ints.
12644
12645 2019-09-18 Richard Biener <rguenther@suse.de>
12646
12647 PR lto/91763
12648 * lto-streamer-in.c (input_eh_regions): Move EH init to
12649 lto_materialize_function.
12650 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12651 Likewise.
12652
12653 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12654
12655 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12656 are INTEGER_CSTs.
12657
12658 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12659
12660 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12661 of checking specifically for INTEGER_CST.
12662
12663 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12664
12665 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12666 sizes instead of uhwi sizes.
12667
12668 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12669
12670 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12671 (add_const_value_attribute): Handle CONST_POLY_INT.
12672
12673 2019-09-18 Martin Liska <mliska@suse.cz>
12674
12675 * dbgcnt.def (store_merging): New counter.
12676 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12677 Use it in store merging.
12678
12679 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12680
12681 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12682 function.
12683 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12684 * config/arm/arm.c (arm_sched_variable_issue): New function.
12685 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12686
12687 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12688
12689 * config/arm/types.md (no_reservation): New reservation.
12690 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12691 no_insn here.
12692 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12693 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12694 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12695 * config/arm/arm1020e.md (1020alu_op): Likewise.
12696 * config/arm/arm1026ejs.md (alu_op): Likewise.
12697 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12698 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12699 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12700 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12701 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12702 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12703 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12704 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12705 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12706 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12707 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12708 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12709 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12710 * config/arm/fa526.md (526_alu_op): Likewise.
12711 * config/arm/fa606te.md (606te_alu_op): Likewise.
12712 * config/arm/fa626te.md (626te_alu_op): Likewise.
12713 * config/arm/fa726te.md (726te_alu_op): Likewise.
12714 * config/arm/xgene1.md (xgene1_nop): Likewise.
12715
12716 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12717
12718 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12719 "no_insn" to "branch".
12720
12721 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12722
12723 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12724
12725 2019-09-17 Richard Biener <rguenther@suse.de>
12726
12727 PR debug/91772
12728 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12729 was missing generate locations only once.
12730
12731 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12732
12733 PR ipa/91089
12734 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12735 option.
12736 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12737 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12738 for switch default case using range analysis information.
12739
12740 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12741
12742 PR target/91749
12743 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12744 mode attributed is supported by FDPIC.
12745
12746 2019-09-17 Richard Biener <rguenther@suse.de>
12747
12748 PR tree-optimization/91790
12749 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12750 use the correct DR for setting up realignment.
12751
12752 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12753
12754 PR target/91719
12755 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12756 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12757 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12758 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12759
12760 2019-09-16 Jason Merrill <jason@redhat.com>
12761
12762 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12763
12764 2019-09-16 Martin Liska <mliska@suse.cz>
12765
12766 * gimple-fold.c (or_comparisons_1): Remove rules moved
12767 to ...
12768 * match.pd: ... here.
12769
12770 2019-09-16 Martin Liska <mliska@suse.cz>
12771
12772 * gimple-fold.c (or_comparisons_1): Remove rules
12773 moved to ...
12774 * match.pd: ... here.
12775
12776 2019-09-16 Martin Liska <mliska@suse.cz>
12777
12778 * genmatch.c (dt_node::append_simplify): Do not print
12779 warning when we have duplicate patterns belonging
12780 to a same simplify rule.
12781 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12782 (maybe_fold_comparisons_from_match_pd): Handle
12783 tcc_comparison as a results.
12784 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12785
12786 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12787 Qi Feng <ffengqi@linux.ibm.com>
12788
12789 PR middle-end/88784
12790 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12791 (x > y && x == XXX_MIN): Optimize into 'false'.
12792 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12793 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12794 (x < y && x == XXX_MAX): Optimize into 'false'.
12795 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12796 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12797 (x <= y || x != XXX_MIN): Optimize into 'true'.
12798 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12799 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12800 (x >= y || x != XXX_MAX): Optimize into 'true'.
12801 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12802
12803 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12804 Martin Liska <mliska@suse.cz>
12805
12806 * gimple-fold.c (and_comparisons_1): Add type as first
12807 argument.
12808 (and_var_with_comparison): Likewise.
12809 (and_var_with_comparison_1): Likewise.
12810 (or_comparisons_1): Likewise.
12811 (or_var_with_comparison): Likewise.
12812 (or_var_with_comparison_1): Likewise.
12813 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12814 (maybe_fold_or_comparisons): Likewise.
12815 (maybe_fold_comparisons_from_match_pd): New.
12816 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12817 (maybe_fold_or_comparisons): Likewise.
12818 * gimple.c (gimple_size): Make it public and add num_ops argument.
12819 (gimple_init): New function.
12820 (gimple_alloc): Call gimple_init.
12821 * gimple.h (gimple_size): New.
12822 (gimple_init): Likewise.
12823 * tree-if-conv.c (fold_or_predicates): Pass type.
12824 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12825 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12826 (optimize_vec_cond_expr): Likewise.
12827 (ovce_extract_ops): Return type of conditional expression.
12828 * tree-ssanames.c (init_ssa_name_imm_use): New.
12829 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12830 * tree-ssanames.h (init_ssa_name_imm_use): New.
12831
12832 2019-09-16 Richard Biener <rguenther@suse.de>
12833
12834 PR tree-optimization/91756
12835 PR tree-optimization/87132
12836 * tree-ssa-alias.h (enum translate_flags): New.
12837 (get_continuation_for_phi): Use it instead of simple bool flag.
12838 (walk_non_aliased_vuses): Likewise.
12839 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12840 (get_continuation_for_phi): When looking across backedges only
12841 disallow valueization.
12842 (walk_non_aliased_vuses): Adjust.
12843 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12844 if requested.
12845
12846 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12847
12848 PR middle-end/80791
12849 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12850 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12851 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12852 * target.def (have_count_reg_decr_p): New hook.
12853 (doloop_cost_for_generic): Likewise.
12854 (doloop_cost_for_address): Likewise.
12855 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12856 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12857 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12858 * doc/tm.texi: Regenerate.
12859 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12860 addend.
12861 (record_group): Init doloop_p.
12862 (add_candidate_1): Add optional argument doloop, change the handlings
12863 accordingly.
12864 (add_candidate): Likewise.
12865 (generic_predict_doloop_p): Update attribute.
12866 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12867 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12868 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12869 MIN_EXPR.
12870 (get_computation_cost): Update for doloop IV cand extra cost.
12871 (determine_group_iv_cost_cond): Update for doloop IV cand.
12872 (determine_iv_cost): Likewise.
12873 (ivopts_estimate_reg_pressure): Likewise.
12874 (may_eliminate_iv): Update handlings for doloop IV cand.
12875 (add_iv_candidate_for_doloop): New function.
12876 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12877 (iv_ca_set_no_cp): Update for doloop IV cand.
12878 (iv_ca_set_cp): Likewise.
12879 (iv_ca_dump): Dump register cost.
12880 (find_doloop_use): New function.
12881 (analyze_and_mark_doloop_use): Likewise.
12882 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12883
12884 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12885
12886 PR middle-end/91708
12887 * cse.c (cse_insn): Do not replace anything with a
12888 MEM.
12889
12890 2019-09-13 Ian Lance Taylor <iant@golang.org>
12891
12892 * doc/invoke.texi (Optimize Options): Fix typo.
12893
12894 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12895
12896 PR tree-optimization/89386
12897 * config/i386/sse.md (smulhrs<mode>3): New expander.
12898 (smulhrsv4hi3): Ditto.
12899
12900 2019-09-12 Richard Biener <rguenther@suse.de>
12901
12902 PR tree-optimization/91750
12903 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12904 in the type of the evolution.
12905
12906 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12907
12908 PR tree-optimization/89386
12909 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12910 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12911 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12912 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12913 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12914 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12915 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12916 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12917 (su, r): Handle the unspecs above.
12918 (bt): New int attribute.
12919 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12920 * internal-fn.c (first_commutative_argument): Commutativity info for
12921 above.
12922 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12923 (umulhrs_optab): New optabs.
12924 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12925 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12926 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12927 function.
12928 (vect_vect_recog_func_ptrs): Add it.
12929
12930 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12931
12932 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12933 code.
12934
12935 2019-09-11 Nathan Sidwell <nathan@acm.org>
12936
12937 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12938 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12939
12940 2019-09-11 Richard Biener <rguenther@suse.de>
12941
12942 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12943 * lto-wrapper.c (merge_and_complain): Pick up -g.
12944 (append_compiler_options): Likewise.
12945 (run_gcc): Re-instantiate handling -g0 at link-time.
12946 * doc/invoke.texi (flto): Document debug info generation.
12947
12948 2019-09-11 Richard Biener <rguenther@suse.de>
12949
12950 PR tree-optimization/90387
12951 * vr-values.c (vr_values::extract_range_basic): After inlining
12952 simplify non-constant __builtin_constant_p to false.
12953
12954 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12955
12956 PR rtl-optimization/89795
12957 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12958 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12959
12960 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12961
12962 PR tree-optimization/91723
12963 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12964 instead of pointer equality when checking if argument vectypes are
12965 the same.
12966
12967 PR middle-end/91725
12968 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12969 of get_nonzero_bits, only call it for integral types.
12970
12971 2019-09-11 Richard Biener <rguenther@suse.de>
12972
12973 Revert
12974 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12975
12976 * match.pd: Add flag_unsafe_math_optimizations check
12977 before deciding on the widest type in a binary math operation.
12978
12979 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12980
12981 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12982 and CALL_REALLY_USED_REGISTERS must be defined, and that
12983 CALL_REALLY_USED_REGISTERS is preferred.
12984 * doc/tm.texi: Regenerate.
12985 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12986 (call_really_used_regs): Likewise.
12987 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12988 CALL_REALLY_USED_REGISTERS are defined.
12989 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12990 initial value if defined.
12991 (initial_call_really_used_regs): Delete.
12992 (saved_call_really_used_regs): Likewise.
12993 (CALL_REALLY_USED_REGNO_P): Likewise.
12994 (init_reg_sets): Remove handling of call_really_used_regs.
12995 (save_register_info, restore_register_info, globalize_reg): Likewise.
12996 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12997 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12998 outside operand_reg_set.
12999 (fix_register): Don't change call_used_regs if
13000 CALL_REALLY_USED_REGISTERS is defined.
13001 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13002 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13003 instead of call_really_used_regs.
13004 (csky_conditional_register_usage): Remove the old handling of
13005 call_used_regs and change the handling of call_really_used_regs
13006 to use call_used_regs instead.
13007 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13008 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13009 making a register fixed.
13010 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13011 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13012 instead of call_really_used_regs.
13013 (m32r_conditional_register_usage): Don't set call_used_regs when
13014 making a register fixed.
13015 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13016 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13017 instead of call_really_used_regs.
13018 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13019 (mips_cfun_call_saved_reg_p): Likewise.
13020 (mips_swap_registers): Remove the old handling of call_used_regs
13021 and change the handling of call_really_used_regs to use call_used_regs
13022 instead.
13023 (mips_conditional_register_usage): Likewise.
13024 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13025 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13026 instead of call_really_used_regs.
13027 (mn10300_get_live_callee_saved_regs): Likewise.
13028 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13029 (mn10300_conditional_register_usage): Don't set call_used_regs when
13030 making a register fixed.
13031 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13032 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13033 Remove the old handling of call_used_regs and change the handling
13034 of call_really_used_regs to use call_used_regs instead.
13035 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13036 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13037 instead of call_really_used_regs.
13038 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13039 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13040 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13041 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13042 (s390_conditional_register_usage): Remove the old handling of
13043 call_used_regs and change the handling of call_really_used_regs
13044 to use call_used_regs instead.
13045 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13046 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13047 (sh_fix_range, reg_unused_after): Likewise.
13048 (sh_conditional_register_usage): Remove the old handling of
13049 call_used_regs and change the handling of call_really_used_regs
13050 to use call_used_regs instead.
13051 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13052 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13053 call_used_regs when making a register fixed.
13054 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13055 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13056 call_used_regs when making a register fixed.
13057 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13058 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13059 set call_used_regs when making a register fixed.
13060 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13061 * config/visium/visium.c (visium_conditional_register_usage): Remove
13062 the old handling of call_used_regs and change the handling of
13063 call_really_used_regs to use call_used_regs instead.
13064
13065 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13066
13067 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13068 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13069 * reginfo.c (call_used_regs): New macro.
13070
13071 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13072
13073 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13074 fixed_regs test.
13075 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13076 (bpf_expand_epilogue): Likewise.
13077 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13078 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13079 (ft32_expand_epilogue): Likewise.
13080 * config/i386/i386.c (ix86_save_reg): Likewise.
13081 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13082 (moxie_expand_epilogue): Likewise.
13083 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13084 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13085 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13086
13087 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13088
13089 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13090 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13091 instead of testing call_used_regs directly.
13092 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13093 (aarch64_components_for_bb): Likewise.
13094 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13095 * config/arc/arc.c (arc_must_save_register): Likewise.
13096 (arc_epilogue_uses): Likewise.
13097 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13098 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13099 (arm_compute_save_reg0_reg12_mask): Likewise.
13100 (arm_compute_save_core_reg_mask): Likewise.
13101 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13102 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13103 (cmse_nonsecure_entry_clear_before_return): Likewise.
13104 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13105 (arm_expand_epilogue): Likewise.
13106 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13107 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13108 (_reg_unused_after): Likewise.
13109 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13110 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13111 (add_to_reg, hwloop_optimize): Likewise.
13112 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13113 (bpf_expand_epilogue): Likewise.
13114 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13115 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13116 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13117 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13118 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13119 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13120 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13121 * config/frv/frv.c (frv_stack_info): Likewise.
13122 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13123 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13124 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13125 (move_callee_saved_registers): Likewise.
13126 * config/h8300/h8300.c (byte_reg): Likewise.
13127 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13128 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13129 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13130 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13131 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13132 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13133 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13134 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13135 * config/m32c/m32c.c (need_to_save): Likewise.
13136 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13137 * config/mcore/mcore.c (calc_live_regs): Likewise.
13138 * config/microblaze/microblaze.c (microblaze_must_save_register):
13139 Likewise.
13140 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13141 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13142 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13143 (mmix_expand_epilogue): Likewise.
13144 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13145 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13146 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13147 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13148 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13149 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13150 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13151 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13152 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13153 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13154 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13155 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13156 * config/rl78/rl78.c (need_to_save): Likewise.
13157 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13158 (rs6000_stack_info, generate_set_vrsave): Likewise.
13159 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13160 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13161 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13162 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13163 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13164 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13165 (save_local_or_in_reg_p): Likewise.
13166 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13167 (xstormy16_epilogue_uses): Likewise.
13168 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13169 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13170 * config/v850/v850.c (compute_register_save_size): Likewise.
13171 * config/vax/vax.c (vax_expand_prologue): Likewise.
13172 * config/visium/visium.c (visium_save_reg_p): Likewise.
13173 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13174 * cselib.c (cselib_process_insn): Likewise.
13175 * df-scan.c (df_get_entry_block_def_set): Likewise.
13176 * function.c (aggregate_value_p): Likewise.
13177 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13178 * ira-lives.c (process_bb_node_lives): Likewise.
13179 * ira.c (do_reload): Likewise.
13180 * lra-lives.c (process_bb_lives): Likewise.
13181 * lra-remat.c (lra_remat): Likewise.
13182 * lra.c (lra): Likewise.
13183 * postreload.c (reload_combine_recognize_pattern): Likewise.
13184 (reload_cse_move2add): Likewise.
13185 * recog.c (peep2_find_free_register): Likewise.
13186 * regrename.c (check_new_reg_p): Likewise.
13187 * reload.c (find_equiv_reg): Likewise.
13188 * reload1.c (reload, find_reg): Likewise.
13189 * sel-sched.c (init_hard_regs_data): Likewise.
13190
13191 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13192
13193 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13194 regs_invalidated_by_call & ~fixed_reg_set instead of
13195 call_used_or_fixed_regs & ~fixed_reg_set.
13196 * config/sh/sh.c (output_stack_adjust): Likewise.
13197
13198 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13199
13200 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13201 (call_used_reg_set): Delete.
13202 (call_used_or_fixed_regs): New macro.
13203 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13204 of call_used_reg_set.
13205 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13206 instead of call_used_regs.
13207 (save_call_clobbered_regs): Likewise.
13208 * cfgcleanup.c (old_insns_match_p): Likewise.
13209 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13210 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13211 Likewise.
13212 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13213 * config/sh/sh.c (output_stack_adjust): Likewise.
13214 * final.c (collect_fn_hard_reg_usage): Likewise.
13215 * ira-build.c (ira_build): Likewise.
13216 * ira-color.c (calculate_saved_nregs): Likewise.
13217 (allocno_reload_assign, calculate_spill_cost): Likewise.
13218 * ira-conflicts.c (ira_build_conflicts): Likewise.
13219 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13220 * ira-lives.c (process_bb_node_lives): Likewise.
13221 * ira.c (setup_reg_renumber): Likewise.
13222 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13223 * lra-constraints.c (need_for_call_save_p): Likewise.
13224 (need_for_split_p, inherit_in_ebb): Likewise.
13225 * lra-lives.c (process_bb_lives): Likewise.
13226 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13227 * postreload.c (reload_combine): Likewise.
13228 * regrename.c (find_rename_reg): Likewise.
13229 * reload1.c (reload_as_needed): Likewise.
13230 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13231 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13232 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13233
13234 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13235
13236 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13237 (no_caller_save_reg_set): Delete.
13238 * caller-save.c (init_caller_save): Don't initialize it.
13239 * ira-conflicts.c (ira_build_conflicts): Calculate
13240 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13241
13242 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13243
13244 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13245 (target_hard_regs::x_savable_regs): New field.
13246 (call_fixed_reg_set): Delete.
13247 (savable_regs): New macro,
13248 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13249 (init_reg_sets_1): Likewise. Initialize savable_regs.
13250 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13251 for all registers. Set savable_regs instead of call_fixed_reg_set.
13252 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13253 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13254 * config/sh/sh.c (output_stack_adjust): Likewise.
13255
13256 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13257
13258 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13259 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13260 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13261
13262 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13263
13264 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13265 * rtlanal.c (get_call_rtx_from): Likewise.
13266 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13267 than the pattern to get_call_rtx_from.
13268 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13269 an rtx_insn * instead of an rtx.
13270 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13271
13272 2019-09-10 Martin Liska <mliska@suse.cz>
13273
13274 * common.opt: Use newly added WarnRemoved.
13275 * config/aarch64/aarch64.opt: Likewise.
13276 * config/arm/arm.opt: Likewise.
13277 * config/i386/i386.opt: Likewise.
13278 * config/ia64/ia64.opt: Likewise.
13279 * config/rs6000/rs6000.opt: Likewise.
13280 * doc/options.texi: Document WarnRemoved properly.
13281 * dwarf2out.c (gen_producer_string): Handle renamed
13282 OPT_SPECIAL_warn_removed.
13283 * lto-opts.c (lto_write_options): Likewise.
13284 * lto-wrapper.c (merge_and_complain): Likewise.
13285 * opts-common.c (decode_cmdline_option): Likewise.
13286 (prune_options): Likewise.
13287 (read_cmdline_option): Likewise.
13288 (control_warning_option): Likewise.
13289 * opts.c (print_filtered_help): Likewise.
13290 * optc-gen.awk: Parse for WarnRemoved and make usage
13291 of Deprecated an error.
13292 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13293
13294 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13295
13296 * doc/install.texi: Fix syntax for html generation.
13297
13298 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13299
13300 PR middle-end/91680
13301 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13302 the shift type to type.
13303
13304 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13305
13306 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13307 FDPIC mode.
13308 (stack_protect_combined_test_insn): Likewise.
13309
13310 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13311 Mickaël Guêné <mickael.guene@st.com>
13312
13313 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13314 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13315 (load_tp_soft_fdpic): New pattern.
13316 (load_tp_soft): Disable in FDPIC mode.
13317
13318 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13319 Mickaël Guêné <mickael.guene@st.com>
13320
13321 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13322 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13323 (arm_call_tls_get_addr): Add FDPIC support.
13324 (legitimize_tls_address): Likewise.
13325 (arm_emit_tls_decoration): Likewise.
13326
13327 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13328 Mickaël Guêné <mickael.guene@st.com>
13329
13330 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13331 support.
13332 (arm_trampoline_init): Likewise.
13333 (arm_trampoline_adjust_address): Likewise.
13334 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13335
13336 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13337 Mickaël Guêné <mickael.guene@st.com>
13338
13339 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13340 (legitimize_pic_address): Enforce binding rules on function
13341 pointers in FDPIC mode.
13342 (arm_assemble_integer): Likewise.
13343
13344 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13345 Mickaël Guêné <mickael.guene@st.com>
13346
13347 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13348 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13349 FDPIC.
13350
13351 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13352 Mickaël Guêné <mickael.guene@st.com>
13353
13354 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13355 field.
13356
13357 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13358 Mickaël Guêné <mickael.guene@st.com>
13359
13360 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13361 in FDPIC mode.
13362 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13363 new function.
13364 * config/arm/arm.c (arm_option_override): Define pic register to
13365 FDPIC_REGNUM.
13366 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13367 have no decl or go through PLT.
13368 (calculate_pic_address_constant): New function.
13369 (legitimize_pic_address): Call calculate_pic_address_constant.
13370 (arm_load_pic_register): Handle TARGET_FDPIC.
13371 (arm_is_segment_info_known): New function.
13372 (arm_pic_static_addr): Add support for FDPIC.
13373 (arm_load_function_descriptor): New function.
13374 (arm_emit_call_insn): Add support for FDPIC.
13375 (arm_assemble_integer): Add support for FDPIC.
13376 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13377 Define. (FDPIC_REGNUM): New define.
13378 * config/arm/arm.md (call): Add support for FDPIC.
13379 (call_value): Likewise.
13380 (restore_pic_register_after_call): New pattern.
13381 (untyped_call): Disable if FDPIC.
13382 (untyped_return): Likewise.
13383 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13384
13385 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13386 Mickaël Guêné <mickael.guene@st.com>
13387
13388 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13389 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13390 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13391 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13392 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13393 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13394 * config/arm/uclinuxfdpiceabi.h: New file.
13395
13396 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13397
13398 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13399
13400 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13401 Mickaël Guêné <mickael.guene@st.com>
13402
13403 * config/arm/arm.opt: Add -mfdpic option.
13404 * doc/invoke.texi: Add documentation for -mfdpic.
13405
13406 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13407
13408 * expmed.c (extract_bit_field): Update function comment
13409 regarding alt_rtl.
13410 * expr.c (expand_expr_real): Update function comment
13411 regarding alt_rtl.
13412 (expand_misaligned_mem_ref): New helper function.
13413 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13414 Remove duplicate assignment to "base" at case MEM_REF.
13415 Remove a shadowed variable "unsignedp" at case VCE.
13416
13417 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13418
13419 * regset.h (regs_invalidated_by_call_regset): Delete.
13420 (fixed_reg_set_regset): Likewise.
13421 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13422 (fixed_reg_set_regset, persistent_obstack): Likewise.
13423 (init_reg_sets_1, globalize_reg): Update accordingly.
13424 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13425 instead of a bitmap.
13426 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13427 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13428 instead of regs_invalidated_by_call_regset.
13429 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13430 * df-scan.c (df_scan_start_dump): Likewise.
13431 * dse.c (copy_fixed_regs): Likewise.
13432 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13433
13434 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13435
13436 * array-traits.h: New file.
13437 * coretypes.h (array_traits, bitmap_view): New types.
13438 * bitmap.h: Include "array-traits.h"
13439 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13440 (base_bitmap_view, bitmap_view): New classes.
13441 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13442 * hard-reg-set.h: Include array-traits.h.
13443 (array_traits<HARD_REG_SET>): New struct.
13444 * regset.h (IOR_REG_SET_HRS): New macro.
13445 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13446 rather than iterating over each hard register.
13447 * sched-deps.c (sched_analyze_insn): Likewise.
13448 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13449
13450 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13451
13452 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13453 instead of a HARD_REG_SET *.
13454 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13455 (ira_build): Update call accordingly.
13456 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13457
13458 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13459
13460 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13461 (HARD_REG_SET::operator!=): Likewise.
13462 (hard_reg_set_equal_p): Delete.
13463 * cfgcleanup.c (old_insns_match_p): Use == instead of
13464 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13465 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13466 (add_allocno_hard_regs_to_forest): Likewise.
13467 (setup_allocno_available_regs_num): Likewise.
13468 * ira.c (setup_pressure_classes): Likewise.
13469 (setup_allocno_and_important_classes): Likewise.
13470 (setup_reg_class_relations): Likewise.
13471 * lra-lives.c (process_bb_lives): Likewise.
13472 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13473
13474 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13475
13476 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13477 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13478 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13479 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13480 Likewise.
13481 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13482 * ira.c (setup_reg_renumber): Likewise.
13483 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13484 * regrename.c (regrename_find_superclass): Likewise.
13485 * reload1.c (find_reg): Likewise.
13486
13487 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13488
13489 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13490 * caller-save.c (setup_save_areas): Use "&~" instead of
13491 AND_COMPL_HARD_REG_SET.
13492 (save_call_clobbered_regs): Likewise.
13493 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13494 Likewise.
13495 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13496 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13497 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13498 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13499 (mips_conditional_register_usage): Likewise.
13500 * config/sh/sh.c (output_stack_adjust): Likewise.
13501 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13502 (setup_profitable_hard_regs): Likewise.
13503 (get_conflict_and_start_profitable_regs): Likewise.
13504 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13505 (ira_build_conflicts): Likewise.
13506 * ira-costs.c (restrict_cost_classes): Likewise.
13507 (setup_regno_cost_classes_by_aclass): Likewise.
13508 * ira-lives.c (process_bb_node_lives): Likewise.
13509 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13510 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13511 (setup_allocno_and_important_classes, setup_class_translate_array)
13512 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13513 Likewise.
13514 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13515 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13516 (process_alt_operands, inherit_in_ebb): Likewise.
13517 * lra-eliminations.c (update_reg_eliminate): Likewise.
13518 * lra-lives.c (process_bb_lives): Likewise.
13519 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13520 * resource.c (find_dead_or_set_registers): Likewise.
13521 (mark_target_live_regs): Likewise.
13522 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13523 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13524 (implicit_clobber_conflict_p): Likewise.
13525 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13526 (try_shrink_wrapping): Likewise.
13527
13528 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13529
13530 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13531 (HARD_REG_SET::operator|=): Likewise.
13532 (IOR_HARD_REG_SET): Delete.
13533 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13534 IOR_HARD_REG_SET.
13535 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13536 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13537 * final.c (collect_fn_hard_reg_usage): Likewise.
13538 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13539 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13540 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13541 (propagate_some_info_from_allocno): Likewise.
13542 (copy_info_to_removed_store_destinations): Likewise.
13543 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13544 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13545 (fast_allocation): Likewise.
13546 * ira-conflicts.c (ira_build_conflicts): Likewise.
13547 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13548 (process_bb_node_lives): Likewise.
13549 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13550 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13551 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13552 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13553 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13554 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13555 (process_bb_lives): Likewise.
13556 * lra-spills.c (assign_spill_hard_regs): Likewise.
13557 * postreload.c (reload_combine): Likewise.
13558 * reginfo.c (init_reg_sets_1): Likewise.
13559 * regrename.c (merge_overlapping_regs, find_rename_reg)
13560 (merge_chains): Likewise.
13561 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13562 (find_reload_regs, finish_spills, choose_reload_regs_init)
13563 (emit_reload_insns): Likewise.
13564 * reorg.c (redundant_insn): Likewise.
13565 * resource.c (find_dead_or_set_registers, mark_set_resources)
13566 (mark_target_live_regs): Likewise.
13567 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13568 * sched-deps.c (sched_analyze_insn): Likewise.
13569 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13570 (find_best_reg_for_expr): Likewise.
13571 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13572
13573 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13574
13575 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13576 (HARD_REG_SET::operator&): Likewise.
13577 (AND_HARD_REG_SET): Delete.
13578 * caller-save.c (setup_save_areas): Use "&" instead of
13579 AND_HARD_REG_SET.
13580 (save_call_clobbered_regs): Likewise.
13581 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13582 * config/m32c/m32c.c (reduce_class): Likewise.
13583 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13584 * final.c (get_call_reg_set_usage): Likewise.
13585 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13586 (setup_left_conflict_sizes_p): Likewise.
13587 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13588 (ira_build_conflicts): Likewise.
13589 * ira-costs.c (restrict_cost_classes): Likewise.
13590 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13591 (setup_reg_class_relations): Likewise.
13592 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13593 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13594 * resource.c (find_dead_or_set_registers): Likewise.
13595 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13596
13597 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13598
13599 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13600 (COMPL_HARD_REG_SET): Delete.
13601 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13602 of COMPL_HARD_REG_SET.
13603 (try_rename_operands): Likewise.
13604 * config/sh/sh.c (push_regs): Likewise.
13605 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13606 * lra-constraints.c (contains_reg_p): Likewise.
13607 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13608
13609 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13610
13611 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13612 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13613 of COPY_HARD_REG_SET.
13614 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13615 (epiphany_conditional_register_usage): Likewise.
13616 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13617 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13618 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13619 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13620 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13621 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13622 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13623 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13624 * config/sh/sh.c (output_stack_adjust): Likewise.
13625 * final.c (collect_fn_hard_reg_usage): Likewise.
13626 (get_call_reg_set_usage): Likewise.
13627 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13628 (ira_flattening): Likewise.
13629 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13630 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13631 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13632 (ira_reassign_pseudos): Likewise.
13633 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13634 (ira_build_conflicts): Likewise.
13635 * ira-costs.c (restrict_cost_classes): Likewise.
13636 (setup_regno_cost_classes_by_aclass): Likewise.
13637 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13638 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13639 (setup_stack_reg_pressure_class, setup_pressure_classes)
13640 (setup_allocno_and_important_classes, setup_class_translate_array)
13641 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13642 (ira_setup_eliminable_regset): Likewise.
13643 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13644 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13645 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13646 (process_alt_operands, inherit_in_ebb): Likewise.
13647 * lra-lives.c (process_bb_lives): Likewise.
13648 * lra-spills.c (assign_spill_hard_regs): Likewise.
13649 * lra.c (lra): Likewise.
13650 * mode-switching.c (new_seginfo): Likewise.
13651 * postreload.c (reload_combine): Likewise.
13652 * reg-stack.c (straighten_stack): Likewise.
13653 * reginfo.c (save_register_info, restore_register_info): Likewise.
13654 (init_reg_sets_1, record_subregs_of_mode): Likewise
13655 * regrename.c (create_new_chain, rename_chains): Likewise.
13656 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13657 (find_reload_regs): Likewise.
13658 * resource.c (find_dead_or_set_registers): Likewise.
13659 (mark_target_live_regs): Likewise.
13660 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13661
13662 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13663
13664 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13665 (note_pattern_stores): Declare.
13666 (note_stores): Take an rtx_insn *.
13667 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13668 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13669 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13670 (note_stores): Take an rtx_insn * as argument and process
13671 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13672 (note_pattern_stores): ...this.
13673 (find_first_parameter_load): Pass the insn rather than
13674 its pattern to note_stores.
13675 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13676 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13677 (insert_one_insn): Likewise.
13678 * combine.c (combine_instructions): Likewise.
13679 (likely_spilled_retval_p): Likewise.
13680 (try_combine): Use note_pattern_stores instead of note_stores.
13681 (record_dead_and_set_regs): Pass the insn rather than its pattern
13682 to note_stores.
13683 (reg_dead_at_p): Likewise.
13684 * config/bfin/bfin.c (workaround_speculation): Likewise.
13685 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13686 rather than an rtx.
13687 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13688 instead of note_stores.
13689 (frv_optimize_membar_local): Pass the insn rather than its pattern
13690 to note_stores.
13691 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13692 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13693 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13694 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13695 (mips_reorg_process_insns): Likewise.
13696 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13697 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13698 rather than rtxes.
13699 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13700 its pattern to note_stores.
13701 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13702 of note_stores.
13703 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13704 the insn to note_stores.
13705 (prescan_insns_for_dce): Update call accordingly.
13706 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13707 to note_stores.
13708 * df-problems.c (can_move_insns_across): Likewise.
13709 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13710 * function.c (assign_parm_setup_reg): Likewise.
13711 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13712 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13713 (single_set_gcse): Likewise.
13714 * ira.c (validate_equiv_mem): Likewise.
13715 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13716 for no_equiv.
13717 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13718 pattern to note_stores.
13719 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13720 * loop-iv.c (simplify_using_initial_values): Likewise.
13721 * mode-switching.c (optimize_mode_switching): Likewise.
13722 * optabs.c (emit_libcall_block_1): Likewise.
13723 (expand_atomic_compare_and_swap): Likewise.
13724 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13725 (record_opr_changes): Likewise. Remove explicit handling of
13726 CALL_INSN_FUNCTION_USAGE.
13727 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13728 * regcprop.c (kill_clobbered_values): Likewise.
13729 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13730 to note_stores.
13731 * regrename.c (build_def_use): Likewise.
13732 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13733 for mark_not_eliminable.
13734 (reload_as_needed): Pass the insn rather than its pattern
13735 to note_stores.
13736 (emit_output_reload_insns): Likewise.
13737 * resource.c (mark_target_live_regs): Likewise.
13738 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13739 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13740 instead of note_stores.
13741 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13742 its pattern to note_stores.
13743 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13744 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13745
13746 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13747
13748 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13749 than a #define. Use a structure rather than an array as the
13750 fallback definition. Remove special cases for low array sizes.
13751 (const_hard_reg_set): New typedef.
13752 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13753 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13754 (hard_reg_set_empty_p): Likewise.
13755 (SET_HARD_REG_BIT): Use a function rather than a macro to
13756 handle the case in which HARD_REG_SET is a structure.
13757 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13758 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13759 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13760 (IOR_COMPL_HARD_REG_SET): Likewise.
13761 (hard_reg_set_iterator::pset): Constify the pointer target.
13762 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13763 of a "const HARD_REG_SET". Update the handling of non-integer
13764 HARD_REG_SETs.
13765 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13766 * reload.h: Likewise.
13767 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13768 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13769 of a "const HARD_REG_SET".
13770 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13771 (range_in_hard_reg_set_p): Likewise.
13772 * ira-costs.c (restrict_cost_classes): Likewise.
13773 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13774 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13775 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13776 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13777 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13778 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13779 take an unsigned int and open-code the HARD_REG_SET operations.
13780
13781 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13782
13783 * Makefile.in (OBJS): Remove bt-load.o.
13784 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13785 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13786 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13787 document that the option no longer does anything.
13788 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13789 * target.def (branch_target_register_class): Delete.
13790 (branch_target_register_callee_saved): Likewise.
13791 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13792 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13793 * doc/tm.texi: Regenerate.
13794 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13795 (make_pass_branch_target_load_optimize2): Likewise.
13796 * passes.def (pass_branch_target_load_optimize1): Likewise.
13797 (pass_branch_target_load_optimize2): Likewise.
13798 * targhooks.h (default_branch_target_register_class): Likewise.
13799 * targhooks.c (default_branch_target_register_class): Likewise.
13800 * opt-suggestions.c (test_completion_valid_options): Remove
13801 -fbtr-bb-exclusive from the list of test options.
13802 * bt-load.c: Remove.
13803
13804 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13805
13806 * match.pd: Add flag_unsafe_math_optimizations check
13807 before deciding on the widest type in a binary math operation.
13808
13809 2019-09-09 Martin Liska <mliska@suse.cz>
13810
13811 * config/i386/i386.opt: Update comment of removed
13812 options that are preserved only for backward
13813 compatibility.
13814
13815 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13816
13817 PR target/87853
13818 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13819 instead of __v16qs.
13820
13821 PR target/91704
13822 * config/i386/avxintrin.h (__v32qs): New typedef.
13823 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13824 instead of __v32qi.
13825
13826 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13827
13828 * doc/invoke.texi (Option Summary): Cover eBPF.
13829 (eBPF Options): New section.
13830 * doc/extend.texi (BPF Built-in Functions): Likewise.
13831 (BPF Kernel Helpers): Likewise.
13832
13833 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13834
13835 * config.gcc: Support for bpf-*-* targets.
13836 * common/config/bpf/bpf-common.c: New file.
13837 * config/bpf/t-bpf: Likewise.
13838 * config/bpf/predicates.md: Likewise.
13839 * config/bpf/constraints.md: Likewise.
13840 * config/bpf/bpf.opt: Likewise.
13841 * config/bpf/bpf.md: Likewise.
13842 * config/bpf/bpf.h: Likewise.
13843 * config/bpf/bpf.c: Likewise.
13844 * config/bpf/bpf-protos.h: Likewise.
13845 * config/bpf/bpf-opts.h: Likewise.
13846 * config/bpf/bpf-helpers.h: Likewise.
13847 * config/bpf/bpf-helpers.def: Likewise.
13848
13849 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13850
13851 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13852 indirect_calls.
13853
13854 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13855
13856 * opt-functions.awk (integer_range_info): Make sure values are in
13857 numeric context before operating with them.
13858
13859 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13860
13861 * genemit.c (gen_split): Print the filename and line number where the
13862 splitter (or peephole2) was defined, to the dump file.
13863
13864 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13865
13866 PR tree-optimization/91665
13867 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13868 incompatible with the type of PHI result.
13869
13870 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13871
13872 PR target/91684
13873 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13874 gen_unaligned_storedi for 4-byte aligned addresses.
13875
13876 2019-09-06 Jim Wilson <jimw@sifive.com>
13877
13878 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13879 change.
13880
13881 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13882
13883 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13884
13885 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13886
13887 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13888 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13889
13890 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13891
13892 PR target/91654
13893 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13894 cost of SSE->integer and integer->SSE moves from 2 to 6.
13895 (core_cost): Ditto.
13896
13897 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13898
13899 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13900 before testing TYPE_TRANSPARENT_AGGR.
13901 * calls.c (initialize_argument_information, load_register_parameters):
13902 Likewise.
13903
13904 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13905
13906 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13907 high regs.
13908 (cmp_ior): Likewise.
13909
13910 2019-09-06 Martin Liska <mliska@suse.cz>
13911
13912 * doc/match-and-simplify.texi: Separate tuples with ;.
13913
13914 2019-09-06 Martin Liska <mliska@suse.cz>
13915
13916 PR c++/91125
13917 * Makefile.in: Remove tlink.o.
13918 * collect2.c (do_link): New function isolated
13919 from do_tlink.
13920 (main): Use.
13921 * collect2.h (do_tlink): Remove declaration of do_tlink.
13922 * doc/extend.texi: Remove documentation of -frepo.
13923 * doc/invoke.texi: Likewise.
13924 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13925 * tlink.c: Remove.
13926
13927 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13928 Jim Wilson <jimw@sifive.com>
13929
13930 PR target/91635
13931 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13932 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13933 paradoxical_subreg_p (operands[0]).
13934 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13935 use as intermediate value.
13936
13937 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13938
13939 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13940 (sync_compare_and_swap<mode>_insn): Likewise.
13941
13942 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13943
13944 PR middle-end/91615
13945 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13946 without movmisalign optab.
13947
13948 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13949
13950 PR middle-end/91001
13951 PR middle-end/91105
13952 PR middle-end/91106
13953 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13954 types, use type of their first field instead of type of
13955 args[i].tree_value.
13956
13957 2019-09-05 Richard Biener <rguenther@suse.de>
13958
13959 PR rtl-optimization/91656
13960 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13961 of early out.
13962
13963 2019-09-05 Richard Biener <rguenther@suse.de>
13964
13965 PR middle-end/90501
13966 * tree-inline.c (declare_return_variable): Mark the return
13967 slot as addressable after building an address of it.
13968
13969 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13970
13971 * doc/install.texi: Update and clarify requirements to build GNAT.
13972
13973 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13974
13975 PR middle-end/91577
13976 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13977 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13978 call to be in memory.
13979 (pass_expand::execute): Call discover_nonconstant_array_refs before
13980 setting currently_expanding_to_rtl.
13981
13982 2019-09-04 Caroline Tice <cmtice@google.com>
13983
13984 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13985 specified together.
13986
13987 2019-09-04 Marek Polacek <polacek@redhat.com>
13988
13989 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13990
13991 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13992
13993 PR target/32413
13994 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13995 for QI and HImode moves between SSE and general registers.
13996
13997 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13998
13999 PR c/78736
14000 * doc/invoke.texi: Document -Wenum-conversion.
14001
14002 2019-09-04 Richard Biener <rguenther@suse.de>
14003
14004 PR rtl-optimization/36262
14005 * postreload-gcse.c: Include intl.h and gcse.h.
14006 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14007 to avoid linear list walk.
14008 (record_last_mem_set_info): Gate off if not computing transparentness.
14009 (get_bb_avail_insn): If transparentness isn't computed give up
14010 early.
14011 (gcse_after_reload_main): Skip compute_transp and extended PRE
14012 if gcse_or_cprop_is_too_expensive says so.
14013
14014 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14015
14016 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14017 noinit section.
14018 (msp430_select_section): Handle decls with the "noinit" attribute with
14019 default_elf_select_section.
14020 Handle SECCAT_RODATA_MERGE_* section types with
14021 default_elf_select_section.
14022 Add comments about handling of unsupported section types.
14023 (msp430_section_type_flags): Remove handling of the noinit section.
14024
14025 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14026
14027 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14028 conflicting msp430-specific attributes.
14029 (msp430_section_attr): Likewise.
14030 Add warnings about conflicts with generic "noinit" and "section"
14031 attributes.
14032 Fix grammar in -mlarge error message.
14033 (msp430_data_attr): Rename to msp430_persist_attr.
14034 Add warnings about conflicts with generic "noinit" and "section"
14035 attributes.
14036 Add warning for when variable is not initialized.
14037 Chain conditionals which prevent the attribute being added.
14038 (ATTR_EXCL): New helper.
14039 (attr_reent_exclusions): New exclusion table.
14040 (attr_naked_exclusions): Likewise.
14041 (attr_crit_exclusions): Likewise.
14042 (attr_lower_exclusions): Likewise.
14043 (attr_upper_exclusions): Likewise.
14044 (attr_either_exclusions): Likewise.
14045 (attr_persist_exclusions): Likewise.
14046 (msp430_attribute_table): Update with exclusion rules.
14047 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14048 has a section.
14049
14050 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14051
14052 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14053 (msp430_handle_generic_attribute): New function.
14054 * doc/tm.texi: Regenerate.
14055 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14056 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14057 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14058 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14059
14060 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14061
14062 PR tree-optimization/91504
14063 * match.pd: Add ((~a & b) ^a) --> (a | b).
14064
14065 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14066
14067 PR target/91604
14068 * config/i386/i386-expand.c (split_double_mode): If there is more than
14069 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14070 already split matching MEM operand instead of calling adjust_address
14071 again.
14072
14073 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14074
14075 * config.gcc: Obsolete spu target. Remove references to spu.
14076 * configure.ac: Remove references to spu.
14077 * configure: Regenerate.
14078 * config/spu/: Remove directory.
14079 * common/config/spu/: Remove directory.
14080
14081 * doc/extend.texi: Remove references to spu.
14082 * doc/invoke.texi: Likewise.
14083 * doc/md.texi: Likewise.
14084 * doc/sourcebuild.texi: Likewise.
14085
14086 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14087
14088 PR middle-end/91603
14089 PR middle-end/91612
14090 PR middle-end/91613
14091 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14092 and SSA_NAME referring to CONSTANT_P correctly.
14093
14094 2019-09-03 Richard Biener <rguenther@suse.de>
14095
14096 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14097 (vn_nary_op_insert): Likewise.
14098 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14099 (vn_nary_op_lookup): Likewise.
14100 (vn_nary_op_insert): Likewise.
14101
14102 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14103
14104 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14105 (*op0, 1) instead of XEXP (*op1, 0).
14106
14107 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14108
14109 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14110 (aarch64_fjcvtzs): New define_insn.
14111 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14112 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14113 Add AARCH64_JSCVT.
14114 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14115 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14116 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14117 __ARM_FEATURE_JCVT where appropriate.
14118 * config/aarch64/arm_acle.h (__jcvt): Define.
14119
14120 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14121
14122 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14123 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14124 (aarch64_<frintnzs_op><mode>): New define_insn.
14125 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14126 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14127 __ARM_FEATURE_FRINT when appropriate.
14128 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14129 frint32x, frint64z, frint64x.
14130 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14131 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14132 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14133 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14134 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14135 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14136 * config/aarch64/iterators.md (VSFDF): Define.
14137 (FRINTNZX): Likewise.
14138 (frintnzs_op): Likewise.
14139
14140 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14141
14142 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14143 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14144 Cortex-A34.
14145 * config/aarch64/aarch64-tune.md: Regenerated.
14146 * doc/invoke.texi: Document the new processors.
14147
14148 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14149
14150 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14151 string.
14152 (ssbs): Likewise.
14153 (sve2): Likewise.
14154 (sve2-sm4): Likewise.
14155 (sveaes): Likewise.
14156 (svesha3): Likewise.
14157 (svebitperm): Likewise.
14158
14159 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14160 Richard Biener <rguenther@suse.de>
14161
14162 PR tree-optimization/91597
14163 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14164 BIT_AND_EXPR optimization for pointers, even if both operand
14165 ranges don't include NULL, the result can be NULL.
14166
14167 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14168
14169 PR middle-end/91605
14170 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14171 (non_mem_decl_p): ...this.
14172 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14173 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14174 unconditionally as before.
14175
14176 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14177
14178 PR target/91323
14179 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14180 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14181 * tree.def (LTGT_EXPR): Likewise.
14182 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14183
14184 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14185
14186 PR go/91617
14187 * fold-const.c (range_check_type): For enumeral and boolean
14188 type, pass 1 to type_for_size langhook instead of
14189 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14190 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14191 (build_range_check): Don't call unsigned_type_for for pointer types.
14192 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14193 range_check_type result.
14194
14195 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14196
14197 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14198 (replace_ref): Do not replace a chain of only two candidates which are
14199 valid memory references.
14200
14201 2019-09-02 Martin Liska <mliska@suse.cz>
14202
14203 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14204 Bail out when we'll end up with the same number of clusters as
14205 at the beginning.
14206 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14207 (jump_table_cluster::can_be_handled): Remove the guard
14208 as it's already handled in ::is_enabled. Allocate output
14209 after early bail out.
14210
14211 2019-09-02 Martin Liska <mliska@suse.cz>
14212
14213 PR gcov-profile/91601
14214 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14215 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14216 also negative edges.
14217 (circuit): Handle also negative edges as they can happen
14218 in some situations.
14219
14220 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14221
14222 PR target/91472
14223 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14224 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14225 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14226
14227 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14228
14229 PR middle-end/91623
14230 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14231 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14232 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14233 zero vector.
14234
14235 PR lto/91572
14236 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14237 GIMPLE_ASM TREE_LIST operands.
14238
14239 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14240
14241 * doc/generic.texi (Unary and Binary Expressions): Mark up
14242 an instance of TYPE_MIN.
14243
14244 2019-08-31 Stafford Horne <shorne@gmail.com>
14245
14246 * config/or1k/constraints.md (t): New constraint.
14247 * config/or1k/or1k.h (GOT_REGS): New register class.
14248 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14249
14250 2019-08-30 Jim Wilson <jimw@sifive.com>
14251
14252 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14253 and -fpic and -mplt then disable -msave-restore and warn.
14254
14255 2019-08-30 Martin Sebor <msebor@redhat.com>
14256
14257 PR middle-end/91599
14258 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14259 the statement doesn't have one.
14260 * gimple-pretty-print.c (percent_G_format): Same.
14261
14262 PR middle-end/91584
14263 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14264 before using them to validate MEM_REF offset.
14265
14266 2019-08-30 Marek Polacek <polacek@redhat.com>
14267
14268 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14269
14270 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14271
14272 * config/arm/arm.md (unaligned_loaddi,
14273 unaligned_storedi): New unspec insn patterns.
14274 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14275 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14276 and unaligned_storedi for 4-byte aligned memory.
14277 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14278 4-byte aligned memory.
14279
14280 2019-08-30 Martin Jambor <mjambor@suse.cz>
14281
14282 tree-optimization/91579
14283 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14284 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14285 appropriate.
14286 (arg_needs_copy_p): Removed.
14287 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14288 arg_needs_copy_p.
14289 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14290
14291 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14292
14293 * config/i386/i386-features.c
14294 (general_scalar_chain::compute_convert_gain):
14295 Correct cost for double-word shifts.
14296 (general_scalar_to_vector_candidate_p): Reject count operands
14297 greater or equal to mode bitsize.
14298
14299 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14300
14301 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14302 for moves between SSE and non-general registers and between
14303 mask and non-general registers.
14304 (ix86_register_move_cost): Remove stalled comment.
14305
14306 2019-08-29 Richard Biener <rguenther@suse.de>
14307
14308 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14309 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14310
14311 2019-08-29 Richard Biener <rguenther@suse.de>
14312
14313 PR bootstrap/91580
14314 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14315 Do not emit scalar copies for debug-insns, instead replace
14316 their uses with the reg copy used in the chain or reset them
14317 if there is a reaching definition outside of the chain as well.
14318
14319 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14320
14321 PR target/91560
14322 * config/i386/i386-expand.c (expand_vec_perm_movs,
14323 expand_vec_perm_blend, expand_vec_perm_vpermil,
14324 expand_vec_perm_pshufb, expand_vec_perm_1,
14325 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14326 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14327 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14328 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14329 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14330 comments - replace ix86_expand_vec_perm_builtin_1 with
14331 ix86_expand_vec_perm_const_1.
14332 (expand_vec_perm2_vperm2f128_vblend): New function.
14333 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14334 expand_vec_perm2_vperm2f128_vblend as last resort.
14335 (canonicalize_perm): Formatting fix.
14336
14337 PR tree-optimization/91351
14338 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14339 unsigned_type_for.
14340 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14341 range_check_type returns NULL.
14342 * tree-switch-conversion.c (switch_conversion::build_one_array):
14343 Use range_check_type instead of unsigned_type_for, don't perform
14344 linear opt if it returns NULL.
14345 (bit_test_cluster::find_bit_tests): Formatting fix.
14346 (bit_test_cluster::emit): Use range_check_type instead of
14347 unsigned_type_for.
14348 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14349 returns NULL.
14350
14351 2019-08-29 Richard Biener <rguenther@suse.de>
14352
14353 PR tree-optimization/91568
14354 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14355 (vect_update_max_nunits): Add overload for poly_uint64.
14356 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14357 (vect_build_slp_tree): Record max_nunits into the subtree
14358 and merge it upwards.
14359 (vect_print_slp_tree): Print max_nunits.
14360
14361 2019-08-28 Marek Polacek <polacek@redhat.com>
14362
14363 Implement P1152R4: Deprecating some uses of volatile.
14364 PR c++/91361
14365 * doc/invoke.texi: Document -Wvolatile.
14366
14367 2019-08-28 Marek Polacek <polacek@redhat.com>
14368
14369 PR c++/91360 - Implement C++20 P1143R2: constinit.
14370 * doc/invoke.texi: Document -Wc++20-compat.
14371
14372 2019-08-28 Martin Sebor <msebor@redhat.com>
14373
14374 PR tree-optimization/91457
14375 * builtins.c (component_size): New function.
14376 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14377 * builtins.h (compute_objsize): Add argument.
14378 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14379 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14380 (vrp_prop::check_mem_ref): Same.
14381 (vrp_prop::search_for_addr_array): Set no-warning bit.
14382 (check_array_bounds): Same.
14383
14384 2019-08-28 Martin Sebor <msebor@redhat.com>
14385
14386 PR driver/80545
14387 * opts-common.c (option_enabled): Correct checking for language
14388 options.
14389
14390 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14391
14392 * config/i386/i386.c (ix86_register_move_cost): Do not
14393 limit the cost of moves to/from XMM register to minimum 8.
14394
14395 2019-08-28 Martin Jambor <mjambor@suse.cz>
14396
14397 PR ipa/91468
14398 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14399 checking assert a normal assert to test it really is redundant.
14400 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14401 redundant test.
14402 (update_jump_functions_after_inlining): Removed combining unary
14403 arithmetic operations with an ancestor jump function.
14404 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14405 instead of t.
14406
14407 2019-08-28 Richard Biener <rguenther@suse.de>
14408
14409 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14410 add the MD problem.
14411
14412 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14413 Richard Biener <rguenther@suse.de>
14414
14415 * expr.c (expand_assignment): Handle misaligned DECLs.
14416 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14417 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14418 too.
14419 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14420 * varasm.c (build_constant_desc): Align constants of misaligned types.
14421 * config/arm/predicates.md (aligned_operand): New predicate.
14422 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14423 aligned_operand to check restrictions on memory addresses.
14424 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14425 * config/arm/vec-common.md (mov<VALL>): Likewise.
14426
14427 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14428
14429 PR libgomp/91530
14430 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14431 V_128 iterator instead of VI_128.
14432
14433 2019-08-28 Martin Liska <mliska@suse.cz>
14434
14435 PR tree-optimization/90970
14436 * builtins.c (check_access): Remove assignment to maxread
14437 as it hasn't been used since when it was introduced in r255755.
14438
14439 2019-08-27 Martin Sebor <msebor@redhat.com>
14440
14441 PR tree-optimization/91567
14442 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14443 of unknown strings.
14444 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14445 to PTRDIFF_MAX - 2.
14446
14447 2019-08-27 Jeff Law <law@redhat.com>
14448
14449 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14450 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14451
14452 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14453
14454 PR target/91528
14455 * config/i386/i386-features.c (convert_scalars_to_vector):
14456 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14457 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14458 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14459 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14460
14461 2019-08-27 Richard Biener <rguenther@suse.de>
14462
14463 * config/i386/i386-features.h
14464 (general_scalar_chain::~general_scalar_chain): Add.
14465 (general_scalar_chain::insns_conv): New bitmap.
14466 (general_scalar_chain::n_sse_to_integer): New.
14467 (general_scalar_chain::n_integer_to_sse): Likewise.
14468 (general_scalar_chain::make_vector_copies): Adjust signature.
14469 * config/i386/i386-features.c
14470 (general_scalar_chain::general_scalar_chain): Outline,
14471 initialize new members.
14472 (general_scalar_chain::~general_scalar_chain): New.
14473 (general_scalar_chain::mark_dual_mode_def): Record insns
14474 we need to insert conversions at and count them.
14475 (general_scalar_chain::compute_convert_gain): Account
14476 for conversion instructions at chain boundary.
14477 (general_scalar_chain::make_vector_copies): Generate a single
14478 copy for a def by a specific insn.
14479 (general_scalar_chain::convert_registers): First populate
14480 defs_map, then make copies at out-of chain insns.
14481
14482 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14483
14484 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14485 comment.
14486 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14487
14488 2019-08-27 Martin Liska <mliska@suse.cz>
14489
14490 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14491 loop.
14492 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14493 Enclose in anonymous namespace.
14494 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14495 hard_register initialization in braces.
14496 * tree-vrp.h (value_range_base::supports_type_p): Return false
14497 for function with boolean return type.
14498
14499 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14500
14501 * config/i386/i386.c (emit_i387_cw_initialization)
14502 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14503
14504 2019-08-26 Martin Sebor <msebor@redhat.com>
14505
14506 PR c++/83431
14507 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14508 (sprintf_dom_walker): Remove class.
14509 (get_int_range): Make argument const.
14510 (directive::fmtfunc, directive::set_precision): Same.
14511 (format_none): Same.
14512 (build_intmax_type_nodes): Same.
14513 (adjust_range_for_overflow): Same.
14514 (format_floating): Same.
14515 (format_character): Same.
14516 (format_string): Same.
14517 (format_plain): Same.
14518 (get_int_range): Cast away constness.
14519 (format_integer): Same.
14520 (get_string_length): Call get_range_strlen_dynamic. Handle
14521 null lendata.maxbound.
14522 (should_warn_p): Adjust argument scope qualifier.
14523 (maybe_warn): Same.
14524 (format_directive): Same.
14525 (parse_directive): Same.
14526 (is_call_safe): Same.
14527 (try_substitute_return_value): Same.
14528 (sprintf_dom_walker::handle_printf_call): Rename...
14529 (handle_printf_call): ...to this. Initialize target to host charmap
14530 here instead of in pass_sprintf_length::execute.
14531 (struct call_info): Make global.
14532 (sprintf_dom_walker::compute_format_length): Make global.
14533 (sprintf_dom_walker::handle_gimple_call): Same.
14534 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14535 * print-rtl.c (print_pattern): Reduce the number of spaces to
14536 avoid -Wformat-truncation.
14537 * tree-pass.h (make_pass_warn_printf): New function.
14538 * tree-ssa-strlen.c (strlen_optimize): New variable.
14539 (get_string_length): Add comments.
14540 (get_range_strlen_dynamic): New function.
14541 (check_and_optimize_call): New function.
14542 (handle_integral_assign): New function.
14543 (strlen_check_and_optimize_stmt): Factor code out into
14544 strlen_check_and_optimize_call and handle_integral_assign.
14545 (strlen_dom_walker::evrp): New member.
14546 (strlen_dom_walker::before_dom_children): Use evrp member.
14547 (strlen_dom_walker::after_dom_children): Use evrp member.
14548 (printf_strlen_execute): New function.
14549 (pass_strlen::gate): Update to handle printf calls.
14550 (dump_strlen_info): New function.
14551 (pass_data_warn_printf): New variable.
14552 (pass_warn_printf): New class.
14553 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14554 (handle_printf_call): Same.
14555 * tree-vrp.c (value_range_base::type): Adjust assertion.
14556 * vr-values.c (vr_values::update_value_range): Use type of the first
14557 argument rather than the second.
14558
14559 2019-08-26 Richard Biener <rguenther@suse.de>
14560
14561 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14562 Remove.
14563 (convert_scalars_to_vector): Do not call it.
14564
14565 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14566 Uros Bizjak <ubizjak@gmail.com>
14567
14568 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14569 CASE_MATHFN_FLOATN for roundeven.
14570 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14571 I387_ROUNDEVEN.
14572 (ix86_mode_needed): Likewise.
14573 (ix86_mode_after): Likewise.
14574 (ix86_mode_entry): Likewise.
14575 (ix86_mode_exit): Likewise.
14576 (ix86_emit_mode_set): Likewise.
14577 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14578 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14579 (ix86_entity): Add I387_ROUNDEVEN.
14580 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14581 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14582 (define_int_iterator): Likewise.
14583 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14584 (define_constant): Define ROUND_ROUNDEVEN mode.
14585 (define_attr): Add roundeven mode for i387_cw.
14586 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14587 * internal-fn.def (ROUNDEVEN): New builtin function.
14588 * optabs.def (roundeven_optab): New optab.
14589
14590 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14591
14592 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14593 for ROUNDEVEN.
14594 * builtins.def: Added function definitions for roundeven function
14595 variants.
14596 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14597 function call. Adjust condition for floor, ceil, trunc and round.
14598 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14599 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14600 (integer_valued_real_call_p): Added case for roundeven function.
14601 * real.c (is_even): New function. Returns true if real number is even,
14602 otherwise returns false.
14603 (is_halfway_below): New function. Returns true if real number is
14604 halfway between two integers, else return false.
14605 (real_roundeven): New function. Round real number to nearest integer,
14606 rounding halfway cases towards even.
14607 * real.h (real_value): Added descriptive comments. Added function
14608 declaration for roundeven function.
14609 * doc/extend.texi (Other Builtins): List roundeven variants among
14610 functions which can be handled as builtins.
14611
14612 2019-08-26 Richard Biener <rguenther@suse.de>
14613
14614 PR target/91522
14615 PR target/91527
14616 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14617 New member.
14618 (general_scalar_chain::replace_with_subreg): Remove.
14619 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14620 (general_scalar_chain::convert_reg): Adjust signature.
14621 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14622 iterate over all defs of a reg.
14623 (general_scalar_chain::replace_with_subreg): Remove.
14624 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14625 (general_scalar_chain::make_vector_copies): Populate defs_map,
14626 place copy only after defs that are used as vectors in the chain.
14627 (general_scalar_chain::convert_reg): Emit a copy for a specific
14628 def in a specific instruction.
14629 (general_scalar_chain::convert_op): All reg uses are converted here.
14630 (general_scalar_chain::convert_insn): Emit copies for scalar
14631 uses of defs here. Replace uses with the copies we created.
14632 Replace and convert the def. Adjust REG_DEAD notes, remove
14633 REG_EQUIV/EQUAL notes.
14634 (general_scalar_chain::convert_registers): Only handle copies
14635 into the chain here.
14636
14637 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14638
14639 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14640
14641 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14642
14643 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14644 Add nop_convert case.
14645 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14646 Fold all statements if requested.
14647 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14648 Allow to fold all statements.
14649 * tree-vrp.c (class vrp_folder):
14650 Let substitute_and_fold_engine fold all statements.
14651
14652 2019-08-26 Richard Biener <rguenther@suse.de>
14653
14654 PR tree-optimization/91526
14655 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14656 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14657 TODO_update_address_taken.
14658
14659 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14660
14661 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14662 __STDC_HOSTED__.
14663
14664 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14665
14666 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14667 machine mode for unspec_volatile operand.
14668
14669 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14670
14671 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14672 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14673 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14674 (prefer_neon_for_64bits): Remove.
14675 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14676 (tune_params): Remove PREF_NEON_64_FALSE uses.
14677 (arm_option_override): Remove prefer_neon selection code.
14678 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14679 * config/arm/arm-protos.h (tune_params): Remove
14680 prefer_neon_for_64bits.
14681 (prefer_neon_for_64bits): Remove.
14682
14683 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14684
14685 PR pch/61250
14686 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14687 and issue any diagnostics needed before collecting the pre-PCH
14688 state.
14689
14690 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14691
14692 PR middle-end/91283
14693 * common.opt (fexcess-precision=): Add Optimization flag. Use
14694 flag_excess_precision variable instead of
14695 flag_excess_precision_cmdline.
14696 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14697 member.
14698 (flag_excess_precision): Don't define.
14699 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14700 flag_excess_precision_cmdline. Remove comment.
14701 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14702 and x_flag_excess_precision instead of
14703 frontend_set_flag_excess_precision_cmdline and
14704 x_flag_excess_precision_cmdline.
14705 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14706 x_flag_excess_precision_cmdline.
14707 * toplev.c (init_excess_precision): Remove.
14708 (lang_dependent_init_target): Don't call it.
14709
14710 2019-08-23 Martin Liska <mliska@suse.cz>
14711
14712 * lto-wrapper.c (run_gcc): When setting jobserver
14713 set also parallel to 1. This was done so before r273908.
14714
14715 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14716
14717 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14718 (cortex-a76ae): Likewise.
14719 (cortex-a77): Likewise
14720 * config/arm/arm-tables.opt: Regenerate.
14721 * config/arm/arm-tune.md: Likewise.
14722 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14723 cortex-a77 CPU options.
14724
14725 2019-08-23 Martin Liska <mliska@suse.cz>
14726
14727 * profile.c (instrument_values): Do not set
14728 0 as last argument.
14729 * tree-profile.c (gimple_gen_interval_profiler): Remove
14730 last argument.
14731 (gimple_gen_pow2_profiler): Likewise.
14732 (gimple_gen_topn_values_profiler): Likewise.
14733 (gimple_gen_ic_profiler): Likewise.
14734 (gimple_gen_time_profiler): Likewise.
14735 (gimple_gen_average_profiler): Likewise.
14736 (gimple_gen_ior_profiler): Likewise.
14737 * value-prof.c (dump_histogram_value): Use default
14738 in switch statement instead of HIST_TYPE_MAX.
14739 (stream_in_histogram_value): Likewise.
14740 (gimple_duplicate_stmt_histograms): Do not
14741 use NULL for implicitly set arguments.
14742 (gimple_divmod_values_to_profile): Do not use
14743 reserve+quick_push.
14744 (gimple_indirect_call_to_profile): Likewise.
14745 (gimple_find_values_to_profile): Use implicit
14746 function call arguments.
14747 * value-prof.h (gimple_alloc_histogram_value):
14748 Set default values.
14749 (gimple_gen_interval_profiler): Remove last argument.
14750 (gimple_gen_pow2_profiler): Likewise.
14751 (gimple_gen_topn_values_profiler): Likewise.
14752 (gimple_gen_ic_profiler): Likewise.
14753 (gimple_gen_time_profiler): Likewise.
14754 (gimple_gen_average_profiler): Likewise.
14755 (gimple_gen_ior_profiler): Likewise.
14756
14757 2019-08-22 Martin Sebor <msebor@redhat.com>
14758
14759 PR middle-end/91490
14760 * builtins.c (c_strlen): Rename argument and introduce new local.
14761 Set no-warning bit on original argument.
14762 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14763 Fold empty and zero constructors into empty strings.
14764 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14765 for missing initializers.
14766 * tree.c (build_string_literal): Handle optional argument.
14767 * tree.h (build_string_literal): Add defaulted argument.
14768 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14769 no-warning bit on original expression.
14770
14771 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14772
14773 PR target/91481
14774 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14775 and UNSPEC_DARN_RAW.
14776 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14777 UNSPECV_DARN_RAW.
14778 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14779 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14780 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14781
14782 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14783
14784 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14785 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14786 * config/rs6000/rs6000.md (unspec): ... here.
14787 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14788 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14789 cmpeqb, *cmpeqb_internal): Delete, move to...
14790 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14791 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14792 cmpeqb, *cmpeqb_internal): ... here.
14793
14794 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14795
14796 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14797 intrinsics if __ARM_FP.
14798 Use __ARM_FEATURE_CRC32 ifdef guard.
14799
14800 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14801
14802 * config/arm/arm.md (neon_for_64bits): Remove.
14803 (avoid_neon_for_64bits): Remove.
14804 (arm_adddi3): Always split early.
14805 (arm_subdi3): Always split early.
14806 (negdi2): Remove Neon expansion.
14807 (split zero_extend): Split before reload.
14808 (split sign_extend): Split before reload.
14809
14810 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14811
14812 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14813 (qhs_extenddi_cstr): Likewise.
14814 * config/arm/arm.md (ashldi3): Always expand early.
14815 (ashlsi3): Likewise.
14816 (ashrsi3): Likewise.
14817 (zero_extend<mode>di2): Remove Neon variants.
14818 (extend<mode>di2): Likewise.
14819 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14820 (signed_shift_di3_neon): Likewise.
14821 (unsigned_shift_di3_neon): Likewise.
14822 (ashrdi3_neon_imm_noclobber): Likewise.
14823 (lshrdi3_neon_imm_noclobber): Likewise.
14824 (<shift>di3_neon): Likewise.
14825 (split extend): Remove DI extend split patterns.
14826
14827 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14828
14829 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14830 (split not): Add DImode not splitter.
14831 (anddi3): Remove pattern.
14832 (anddi3_insn): Likewise.
14833 (anddi_zesidi_di): Likewise.
14834 (anddi_sesdi_di): Likewise.
14835 (anddi_notdi_di): Likewise.
14836 (anddi_notzesidi_di): Likewise.
14837 (anddi_notsesidi_di): Likewise.
14838 (iordi3): Likewise.
14839 (iordi3_insn): Likewise.
14840 (iordi_zesidi_di): Likewise.
14841 (iordi_sesidi_di): Likewise.
14842 (xordi3): Likewise.
14843 (xordi3_insn): Likewise.
14844 (xordi_sesidi_di): Likewise.
14845 (xordi_zesidi_di): Likewise.
14846 (one_cmpldi2): Likewise.
14847 (one_cmpldi2_insn): Likewise.
14848 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14849 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14850 alternative.
14851 (iwmmxt_xordi3): Likewise.
14852 (iwmmxt_anddi3): Likewise.
14853 * config/arm/neon.md (orndi3_neon): Remove pattern.
14854 (anddi_notdi_di): Likewise.
14855 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14856 (arm_iordi_operand_neon): Likewise.
14857 (arm_xordi_operand_neon): Likewise.
14858 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14859 (iordi_notzesidi_di): Likewise.
14860 (iordi_notdi_zesidi): Likewise.
14861 (iordi_notsesidi_di): Likewise.
14862
14863 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14864
14865 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14866 insn.
14867 (iorsi3_compare0_scratch): Likewise.
14868
14869 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14870
14871 * config/aarch64/aarch64-simd-builtins.def:
14872 (ld1x4): New.
14873 (st1x4): Likewise.
14874 * config/aarch64/aarch64-simd.md:
14875 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14876 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14877 (aarch64_ld1_x4_<mode>): Likewise.
14878 (aarch64_st1_x4_<mode>): Likewise.
14879 * config/aarch64/arm_neon.h:
14880 (vld1_s8_x4): New function.
14881 (vld1q_s8_x4): Likewise.
14882 (vld1_s16_x4): Likewise.
14883 (vld1q_s16_x4): Likewise.
14884 (vld1_s32_x4): Likewise.
14885 (vld1q_s32_x4): Likewise.
14886 (vld1_u8_x4): Likewise.
14887 (vld1q_u8_x4): Likewise.
14888 (vld1_u16_x4): Likewise.
14889 (vld1q_u16_x4): Likewise.
14890 (vld1_u32_x4): Likewise.
14891 (vld1q_u32_x4): Likewise.
14892 (vld1_f16_x4): Likewise.
14893 (vld1q_f16_x4): Likewise.
14894 (vld1_f32_x4): Likewise.
14895 (vld1q_f32_x4): Likewise.
14896 (vld1_p8_x4): Likewise.
14897 (vld1q_p8_x4): Likewise.
14898 (vld1_p16_x4): Likewise.
14899 (vld1q_p16_x4): Likewise.
14900 (vld1_s64_x4): Likewise.
14901 (vld1_u64_x4): Likewise.
14902 (vld1_p64_x4): Likewise.
14903 (vld1q_s64_x4): Likewise.
14904 (vld1q_u64_x4): Likewise.
14905 (vld1q_p64_x4): Likewise.
14906 (vld1_f64_x4): Likewise.
14907 (vld1q_f64_x4): Likewise.
14908 (vst1_s8_x4): Likewise.
14909 (vst1q_s8_x4): Likewise.
14910 (vst1_s16_x4): Likewise.
14911 (vst1q_s16_x4): Likewise.
14912 (vst1_s32_x4): Likewise.
14913 (vst1q_s32_x4): Likewise.
14914 (vst1_u8_x4): Likewise.
14915 (vst1q_u8_x4): Likewise.
14916 (vst1_u16_x4): Likewise.
14917 (vst1q_u16_x4): Likewise.
14918 (vst1_u32_x4): Likewise.
14919 (vst1q_u32_x4): Likewise.
14920 (vst1_f16_x4): Likewise.
14921 (vst1q_f16_x4): Likewise.
14922 (vst1_f32_x4): Likewise.
14923 (vst1q_f32_x4): Likewise.
14924 (vst1_p8_x4): Likewise.
14925 (vst1q_p8_x4): Likewise.
14926 (vst1_p16_x4): Likewise.
14927 (vst1q_p16_x4): Likewise.
14928 (vst1_s64_x4): Likewise.
14929 (vst1_u64_x4): Likewise.
14930 (vst1_p64_x4): Likewise.
14931 (vst1q_s64_x4): Likewise.
14932 (vst1q_u64_x4): Likewise.
14933 (vst1q_p64_x4): Likewise.
14934 (vst1_f64_x4): Likewise.
14935 (vst1q_f64_x4): Likewise.
14936
14937 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14938
14939 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14940
14941 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14942 Richard Sandiford <richard.sandiford@arm.com>
14943
14944 PR target/88839
14945 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14946 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14947
14948 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14949
14950 PR target/90724
14951 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14952 in reg if it fails aarch64_plus_operand predicate.
14953
14954 2019-08-21 Richard Biener <rguenther@suse.de>
14955
14956 PR tree-optimization/91482
14957 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14958 BUILT_IN_ASSUME_ALIGNED calls.
14959
14960 2019-08-21 Richard Biener <rguenther@suse.de>
14961
14962 PR target/91498
14963 PR target/91503
14964 * config/i386/i386-features.c
14965 (general_scalar_chain::make_vector_copies): Copy stack temporary
14966 rtx when using it multiple times.
14967 (general_scalar_chain::convert_reg): Likewise.
14968
14969 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14970
14971 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14972
14973 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14974
14975 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14976 catch more redundant zero initialization cases.
14977 (dse_dom_walker::dse_optimize_stmt): Likewise.
14978
14979 2019-08-20 Richard Biener <rguenther@suse.de>
14980
14981 PR lto/91307
14982 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14983 by collect2 when targetm.have_ctors_dtors which avoids dragging
14984 in temporary filenames from LTO input objects.
14985
14986 2019-08-20 Richard Biener <rguenther@suse.de>
14987
14988 PR tree-optimization/37242
14989 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14990 to (T)a + (T)b if we know that a + b does not overflow.
14991
14992 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14993
14994 PR rtl-optimization/91347
14995 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14996 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14997
14998 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14999
15000 * calls.h (function_arg_info): Add a pass_by_reference field,
15001 defaulting to false.
15002 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15003 when applying pass-by-reference semantics.
15004 (initialize_argument_information): Likewise.
15005 (emit_library_call_value_1): Likewise.
15006 * function.c (assign_parm_data_one): Remove passed_pointer field.
15007 (assign_parm_find_data_types): Don't set it.
15008 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15009 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15010 arg.pass_by_reference instead of passed_pointer.
15011
15012 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15013
15014 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15015 into a single function_arg_info, updating its fields when we
15016 apply pass-by-reference and promotion semantics. Use the
15017 function_arg_info to track the mode rather than keeping it in
15018 a separate local variable.
15019 (initialize_argument_information): Likewise. Base the final
15020 arg_to_skip on this new function_arg_info rather than creating
15021 a new one from scratch.
15022
15023 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15024
15025 * function.c (assign_parm_data_one): Replace passed_type,
15026 promoted_mode and named_arg with a function_arg_info field.
15027 (assign_parm_find_data_types): Remove local variables and
15028 assign directly to "data". Make data->passed_mode shadow
15029 data->arg.mode until promotion, then assign the promoted
15030 mode to data->arg.mode.
15031 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15032 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15033 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15034 (assign_parm_setup_block, assign_parm_setup_reg)
15035 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15036 arg.mode instead of promoted_mode, arg.type instead of passed_type
15037 and arg.named instead of named_arg. Use data->arg for
15038 function_arg_info structures that had the field values passed_type,
15039 promoted_mode and named_arg. Base other function_arg_infos on
15040 data->arg, changing the necessary properties.
15041
15042 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15043
15044 * calls.h (apply_pass_by_reference_rules): Declare.
15045 * calls.c (apply_pass_by_reference_rules): New function.
15046 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15047 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15048 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15049 * function.c (assign_parm_find_data_types): Likewise.
15050 * var-tracking.c (prepare_call_arguments): Likewise.
15051
15052 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15053
15054 * target.def (must_pass_in_stack): Take a function_arg_info instead
15055 of a mode and a type.
15056 * doc/tm.texi: Regenerate.
15057 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15058 instead of a mode and a type.
15059 (must_pass_in_stack_var_size_or_pad): Likewise.
15060 * calls.c (must_pass_in_stack_var_size): Likewise.
15061 (must_pass_in_stack_var_size_or_pad): Likewise.
15062 (initialize_argument_information): Update call to
15063 targetm.calls.must_pass_in_stack.
15064 (must_pass_va_arg_on_stack): Likewise.
15065 * function.c (assign_parm_find_entry_rtl): Likewise.
15066 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15067 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15068 (alpha_function_arg_advance): Likewise.
15069 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15070 (cr16_function_arg_advance): Likewise.
15071 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15072 (cris_arg_partial_bytes): Likewise.
15073 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15074 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15075 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15076 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15077 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15078 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15079 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15080 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15081 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15082 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15083 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15084 instead of a mode and a type.
15085 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15086 (fr30_num_arg_regs): Likewise.
15087 (fr30_setup_incoming_varargs): Update calls accordingly.
15088 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15089 (fr30_function_arg_advance): Likewise.
15090 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15091 instead of a mode and a type.
15092 * config/gcn/gcn.c (num_arg_regs): Likewise.
15093 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15094 num_arg_regs and targetm.calls.must_pass_in_stack.
15095 (gcn_arg_partial_bytes): Likewise.
15096 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15097 function_arg_info instead of a mode and a type.
15098 (classify_argument): Update call accordingly.
15099 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15100 function_arg_info instead of a mode and a type.
15101 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15102 Likewise.
15103 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15104 (rs6000_parm_needs_stack): Update call accordingly.
15105 (setup_incoming_varargs): Likewise.
15106
15107 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15108
15109 * target.def (callee_copies): Take a function_arg_info instead
15110 of a mode, type and named flag.
15111 * doc/tm.texi: Regenerate.
15112 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15113 instead of a mode, type and named flag.
15114 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15115 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15116 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15117 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15118 instead of a mode, type and named flag.
15119 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15120 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15121 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15122 * calls.h (reference_callee_copied): Take a function_arg_info
15123 instead of a mode, type and named flag.
15124 * calls.c (reference_callee_copied): Likewise.
15125 (initialize_argument_information): Update call accordingly.
15126 (emit_library_call_value_1): Likewise.
15127 * function.c (gimplify_parameters): Likewise.
15128 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15129 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15130 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15131 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15132 (TARGET_CALLEE_COPIES): Define to
15133 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15134 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15135 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15136 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15137 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15138 instead of a mode, type and named flag.
15139 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15140 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15141 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15142 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15143 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15144 (TARGET_CALLEE_COPIES): Define to
15145 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15146 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15147 instead of a mode, type and named flag.
15148 * config/sh/sh.c (sh_callee_copies): Likewise.
15149 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15150 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15151 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15152
15153 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15154
15155 * target.def (function_arg_advance): Take a function_arg_info instead
15156 of a mode, type and named flag.
15157 * doc/tm.texi: Regenerate.
15158 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15159 instead of a mode, type and named flag.
15160 * targhooks.c (default_function_arg_advance): Likewise.
15161 * calls.c (initialize_argument_information): Update call to
15162 targetm.calls.function_arg_advance.
15163 (emit_library_call_value_1): Likewise.
15164 * dse.c (get_call_args): Likewise.
15165 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15166 * function.c (assign_parms, gimplify_parameters): Likewise.
15167 * var-tracking.c (prepare_call_arguments): Likewise.
15168 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15169 function_arg_info instead of a mode, type and named flag.
15170 (aarch64_setup_incoming_varargs): Update call accordingly.
15171 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15172 function_arg_info instead of a mode, type and named flag.
15173 (alpha_setup_incoming_varargs): Update call accordingly.
15174 * config/arc/arc.c (arc_function_arg_advance): Take a
15175 function_arg_info instead of a mode, type and named flag.
15176 (arc_setup_incoming_varargs): Update call accordingly.
15177 * config/arm/arm.c (arm_function_arg_advance): Take a
15178 function_arg_info instead of a mode, type and named flag.
15179 (cmse_func_args_or_return_in_stack): Update call accordingly.
15180 (arm_function_ok_for_sibcall): Likewise.
15181 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15182 * config/avr/avr.c (avr_function_arg_advance): Take a
15183 function_arg_info instead of a mode, type and named flag.
15184 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15185 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15186 (c6x_call_saved_register_used): Update call accordingly.
15187 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15188 function_arg_info instead of a mode, type and named flag.
15189 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15190 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15191 (csky_setup_incoming_varargs): Update call accordingly.
15192 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15193 function_arg_info instead of a mode, type and named flag.
15194 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15195 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15196 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15197 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15198 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15199 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15200 (ix86_setup_incoming_varargs): Update call accordingly.
15201 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15202 function_arg_info instead of a mode, type and named flag.
15203 (ia64_setup_incoming_varargs): Update call accordingly.
15204 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15205 function_arg_info instead of a mode, type and named flag.
15206 (iq2000_expand_prologue): Update call accordingly.
15207 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15208 function_arg_info instead of a mode, type and named flag.
15209 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15210 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15211 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15212 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15213 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15214 Likewise.
15215 (microblaze_expand_prologue): Update call accordingly.
15216 * config/mips/mips.c (mips_function_arg_advance): Take a
15217 function_arg_info instead of a mode, type and named flag.
15218 (mips_setup_incoming_varargs): Update call accordingly.
15219 (mips_output_args_xfer): Likewise.
15220 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15221 function_arg_info instead of a mode, type and named flag.
15222 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15223 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15224 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15225 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15226 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15227 (nios2_setup_incoming_varargs): Update call accordingly.
15228 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15229 function_arg_info instead of a mode, type and named flag.
15230 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15231 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15232 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15233 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15234 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15235 (riscv_setup_incoming_varargs): Update call accordingly.
15236 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15237 function_arg_info instead of a mode, type and named flag.
15238 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15239 Likewise.
15240 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15241 (rs6000_parm_needs_stack): Update call accordingly.
15242 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15243 instead of a mode, type and named flag.
15244 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15245 (s390_call_saved_register_used): Update call accordingly.
15246 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15247 instead of a mode, type and named flag.
15248 (sh_output_mi_thunk): Update call accordingly.
15249 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15250 function_arg_info instead of a mode, type and named flag.
15251 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15252 (spu_setup_incoming_varargs): Update call accordingly.
15253 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15254 function_arg_info instead of a mode, type and named flag.
15255 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15256 (tilegx_setup_incoming_varargs): Update call accordingly.
15257 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15258 function_arg_info instead of a mode, type and named flag.
15259 (tilegx_setup_incoming_varargs): Update call accordingly.
15260 * config/v850/v850.c (v850_function_arg_advance): Take a
15261 function_arg_info instead of a mode, type and named flag.
15262 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15263 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15264 (visium_setup_incoming_varargs): Update call accordingly.
15265 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15266 function_arg_info instead of a mode, type and named flag.
15267
15268 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15269
15270 * target.def (function_arg, function_incoming_arg): Take a
15271 function_arg_info instead of a mode, tree and named flag.
15272 * doc/tm.texi: Regenerate.
15273 * targhooks.h (default_function_arg): Take a function_arg_info
15274 instead of a mode, tree and named flag.
15275 (default_function_incoming_arg): Likewise.
15276 * targhooks.c (default_function_arg): Likewise.
15277 (default_function_incoming_arg): Likewise.
15278 * calls.h (function_arg_info::end_marker_p): New function.
15279 (function_arg_info::end_marker): Likewise.
15280 * calls.c (prepare_call_address, initialize_argument_information)
15281 (expand_call, emit_library_call_value_1): Update calls to
15282 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15283 * dse.c: Include calls.h.
15284 (get_call_args): Update call to targetm.calls.function_arg.
15285 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15286 * var-tracking.c (prepare_call_arguments): Likewise.
15287 * function.c (assign_parm_find_entry_rtl): Update call to
15288 targetm.calls.function_incoming_arg.
15289 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15290 function_arg_info instead of a mode, tree and named flag.
15291 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15292 * config/arc/arc.c (arc_function_arg): Likewise.
15293 * config/arm/arm.c (arm_function_arg): Likewise.
15294 (cmse_func_args_or_return_in_stack): Update call accordingly.
15295 (arm_function_ok_for_sibcall): Likewise.
15296 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15297 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15298 instead of a mode, tree and named flag.
15299 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15300 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15301 (c6x_call_saved_register_used): Update call accordingly.
15302 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15303 instead of a mode, tree and named flag.
15304 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15305 (cris_function_arg_1): Likewise.
15306 * config/csky/csky.c (csky_function_arg): Likewise.
15307 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15308 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15309 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15310 (frv_function_arg_1): Likewise.
15311 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15312 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15313 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15314 * config/i386/i386.c (ix86_function_arg): Likewise.
15315 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15316 (ia64_function_arg_1): Likewise.
15317 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15318 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15319 accordingly.
15320 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15321 instead of a mode, tree and named flag.
15322 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15323 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15324 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15325 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15326 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15327 (microblaze_expand_prologue): Update call accordingly.
15328 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15329 instead of a mode, tree and named flag.
15330 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15331 (mmix_function_arg_1): Likewise.
15332 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15333 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15334 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15335 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15336 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15337 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15338 (nvptx_function_incoming_arg): Likewise.
15339 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15340 * config/pa/pa.c (pa_function_arg): Likewise.
15341 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15342 * config/pru/pru.c (pru_function_arg): Likewise.
15343 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15344 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15345 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15346 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15347 (rs6000_parm_needs_stack): Update call accordingly.
15348 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15349 instead of a mode, tree and named flag.
15350 * config/s390/s390.c (s390_function_arg): Likewise.
15351 (s390_call_saved_register_used): Update call accordingly.
15352 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15353 instead of a mode, tree and named flag.
15354 (sh_output_mi_thunk): Update call accordingly.
15355 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15356 (sparc_function_incoming_arg): Take a function_arg_info instead of
15357 a mode, tree and named flag.
15358 * config/spu/spu.c (spu_function_arg): Likewise.
15359 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15360 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15361 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15362 * config/v850/v850.c (v850_function_arg): Likewise.
15363 * config/vax/vax.c (vax_function_arg): Likewise.
15364 * config/visium/visium.c (visium_function_arg): Likewise.
15365 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15366 (xtensa_function_incoming_arg): Likewise.
15367
15368 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15369
15370 * target.def (setup_incoming_varargs): Take a function_arg_info
15371 instead of a mode and tree.
15372 * doc/tm.texi: Regenerate.
15373 * targhooks.h (default_setup_incoming_varargs): Take a
15374 function_arg_info instead of a mode and tree.
15375 * targhooks.c (default_setup_incoming_varargs): Likewise.
15376 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15377 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15378 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15379 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15380 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15381 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15382 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15383 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15384 Likewise.
15385 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15386 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15387 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15388 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15389 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15390 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15391 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15392 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15393 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15394 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15395 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15396 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15397 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15398 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15399 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15400 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15401 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15402 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15403 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15404 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15405 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15406 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15407 * function.c (assign_parms_setup_varargs): Update call to
15408 targetm.calls.setup_incoming_varargs.
15409
15410 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15411
15412 * target.def (pass_by_reference): Take a function_arg_info instead
15413 of a mode, type and named flag.
15414 * doc/tm.texi: Regenerate.
15415 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15416 accordingly.
15417 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15418 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15419 function_arg_info instead of a mode, type and named flag.
15420 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15421 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15422 mode, type and named flag.
15423 * calls.c (pass_by_reference): Likewise.
15424 (pass_va_arg_by_reference): Update call accordingly.
15425 (initialize_argument_information): Likewise.
15426 (emit_library_call_value_1): Likewise.
15427 * function.c (assign_parm_find_data_types): Likewise.
15428 * var-tracking.c (prepare_call_arguments): Likewise.
15429 * stor-layout.c: Include calls.h.
15430 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15431 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15432 function_arg_info instead of a mode, type and named flag.
15433 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15434 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15435 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15436 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15437 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15438 (c6x_call_saved_register_used): Update call to pass_by_reference.
15439 * config/cris/cris.c (cris_pass_by_reference): Take a
15440 function_arg_info instead of a mode, type and named flag.
15441 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15442 function_arg_info instead of a mode, type and named flag.
15443 (epiphany_arg_partial_bytes): Update call accordingly.
15444 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15445 function_arg_info instead of a mode, type and named flag.
15446 (ft32_arg_partial_bytes): Update call accordingly.
15447 * config/i386/i386.c (ix86_pass_by_reference): Take a
15448 function_arg_info instead of a mode, type and named flag.
15449 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15450 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15451 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15452 (m32r_return_in_memory): Update call accordingly.
15453 * config/mips/mips.c (mips_pass_by_reference): Take a
15454 function_arg_info instead of a mode, type and named flag.
15455 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15456 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15457 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15458 (moxie_arg_partial_bytes): Update call accordingly.
15459 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15460 function_arg_info instead of a mode, type and named flag.
15461 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15462 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15463 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15464 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15465 (riscv_return_in_memory): Update call accordingly.
15466 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15467 function_arg_info instead of a mode, type and named flag.
15468 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15469 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15470 * config/s390/s390.c (s390_pass_by_reference): Take a
15471 function_arg_info instead of a mode, type and named flag.
15472 (s390_call_saved_register_used): Update call accordingly.
15473 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15474 instead of a mode, type and named flag.
15475 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15476 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15477 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15478 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15479 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15480 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15481
15482 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15483
15484 * target.def (arg_partial_bytes): Take a function_arg_info instead
15485 of a mode, type and named flag.
15486 * doc/tm.texi: Regenerate.
15487 * target.h (function_arg_info): Declare.
15488 * calls.h (function_arg_info): New class.
15489 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15490 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15491 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15492 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15493 * calls.c (initialize_argument_information): Update call to
15494 targetm.calls.partial_bytes.
15495 (emit_library_call_value_1): Likewise.
15496 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15497 * function.c (assign_parm_find_entry_rtl): Likewise.
15498 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15499 function_arg_info instead of a mode, type and named flag.
15500 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15501 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15502 (cmse_func_args_or_return_in_stack): Update accordingly.
15503 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15504 function_arg_info instead of a mode, type and named flag.
15505 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15506 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15507 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15508 * config/fr30/fr30.c: Include calls.h.
15509 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15510 type and named flag.
15511 * config/frv/frv.c: Include calls.h.
15512 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15513 type and named flag.
15514 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15515 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15516 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15517 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15518 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15519 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15520 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15521 Likewise.
15522 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15523 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15524 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15525 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15526 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15527 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15528 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15529 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15530 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15531 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15532 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15533 (rs6000_parm_needs_stack): Update call accordingly.
15534 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15535 function_arg_info instead of a mode, type and named flag.
15536 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15537 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15538
15539 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15540
15541 * calls.h (must_pass_va_arg_in_stack): Declare.
15542 * calls.c (must_pass_va_arg_in_stack): New function.
15543 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15544 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15545 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15546 Likewise.
15547 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15548
15549 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15550
15551 * calls.h (pass_va_arg_by_reference): Declare.
15552 * calls.c (pass_va_arg_by_reference): New function.
15553 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15554 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15555 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15556 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15557 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15558 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15559 (mips_gimplify_va_arg_expr): Likewise.
15560 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15561 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15562 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15563 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15564 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15565 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15566 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15567 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15568 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15569 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15570 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15571
15572 2019-08-20 Richard Biener <rguenther@suse.de>
15573
15574 PR target/91498
15575 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15576 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15577 (convert_scalars_to_vector): Add timode_p parameter and use it
15578 to guard TImode-only operation.
15579 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15580 (pass_stv::execute): Pass down timode_p.
15581
15582 2019-08-20 Lili Cui <lili.cui@intel.com>
15583
15584 * common/config/i386/i386-common.c
15585 (processor_names): Add tigerlake and cooperlake.
15586 (processor_alias_table): Add tigerlake and cooperlake.
15587 * config.gcc: Add -march=tigerlake and cooperlake.
15588 * config/i386/driver-i386.c
15589 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15590 Add "has_avx" to classify processor.
15591 * config/i386/i386-builtins.c (processor_model) :
15592 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15593 (arch_names_table): Add tigerlake and cooperlake.
15594 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15595 and PROCESSOR_COOPERLAKE.
15596 * config/i386/i386-c.c
15597 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15598 * config/i386/i386-options.c
15599 (m_TIGERLAKE): Define.
15600 (m_COOPERLAKE): Ditto.
15601 (m_CORE_AVX512): Ditto.
15602 (processor_cost_table): Add cascadelake.
15603 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15604 * config/i386/i386.h
15605 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15606 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15607 (PTA_MOVDIRI): Ditto.
15608 (PTA_MOVDIR64B): Ditto.
15609 (PTA_COOPERLAKE): Ditto.
15610 (PTA_TIGERLAKE): Ditto.
15611 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15612 * doc/extend.texi: Add tigerlake and cooperlake.
15613 * doc/invoke.texi: Add tigerlake and cooperlake.
15614
15615 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15616
15617 * doc/install.texi (Specific, alpha): Remove note to use
15618 binutils 2.11.2 or later.
15619
15620 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15621
15622 PR middle-end/89544
15623 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15624 when possible.
15625
15626 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15627
15628 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15629 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15630 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15631 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15632 * config/aarch64/constraints.md (Dt): New constraint
15633 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15634
15635 2019-08-19 Richard Biener <rguenther@suse.de>
15636
15637 PR tree-optimization/91403
15638 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15639 cases we can handle with tail-recursion...
15640 (follow_ssa_edge_expr): ... here. Do so.
15641
15642 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15643
15644 PR target/91441
15645 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15646 implemented for -fsanitize=kernel-address, and merge check logic
15647 with -fsanitize=address.
15648
15649 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15650
15651 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15652 for cpu and machine. Factor 64/32b builtins.
15653
15654 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15655
15656 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15657 gone, point to sourceforge.net.
15658
15659 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15660
15661 * doc/ux.texi (User Experience Guidelines): Update reference.
15662
15663 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15664
15665 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15666 not LGPL".
15667
15668 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15669
15670 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15671 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15672
15673 2019-08-16 Martin Sebor <msebor@redhat.com>
15674
15675 * tree.def (TYPE_SIZE): Clarify.
15676 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15677
15678 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15679
15680 PR tree-optimization/91109
15681 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15682 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15683 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15684
15685 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15686
15687 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15688 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15689 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15690 (uavg<mode>3_ceil): New expander.
15691 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15692 mode iterator when creating CONST1_RTX.
15693 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15694 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15695 mode iterator for const1_operand predicate.
15696
15697 2019-08-16 Richard Biener <rguenther@suse.de>
15698
15699 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15700 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15701 follow_ssa_edge.
15702 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15703 (analyze_evolution_in_loop): Likewise.
15704 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15705 (follow_ssa_edge_expr): ... here. Refactor code.
15706
15707 2019-08-16 Richard Biener <rguenther@suse.de>
15708
15709 PR target/91469
15710 * config/i386/i386-features.c
15711 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15712
15713 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15714
15715 PR other/91255
15716 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15717 only if subst_name matches curr_attr string.
15718
15719 2019-08-16 Richard Biener <rguenther@suse.de>
15720
15721 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15722 stmt at gsi_p, instead replace it with a NOP removed later.
15723 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15724 that became dead because of that.
15725
15726 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15727
15728 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15729 for which we can't represent a range.
15730 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15731 set_varying.
15732 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15733 Set VR_UNDEFINED if type is not supported.
15734 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15735 * tree-vrp.c (value_range_base::check): Assert that a varying has
15736 min/max set.
15737 (value_range_base::equal_p): Early bail for undefines.
15738 (value_range_base::set_varying): Accept a type.
15739 (value_range::set_varying): Same.
15740 (value_range_base::type): VARYING can have a type, while UNDEFINE
15741 is typeless.
15742 (value_range_base::dump): Print type for VARYING nodes.
15743 (value_range_base::set): Add type to VARYING.
15744 (extract_range_from_multiplicative_op): Pass type to set_varying.
15745 (extract_range_from_binary_expr): Same.
15746 (value_range_base::intersect_helper): Same.
15747 (value_range_base::union_helper): Same.
15748 (value_range_base::normalize_symbolics): Same.
15749 (determine_value_range_1): Same.
15750 * tree-vrp.h (class value_range_base): Add type to set_varying.
15751 Add prototype for dump(void).
15752 Add prototype for supports_type_p.
15753 (class value_range): Add type to set_varying.
15754 Add prototype for dump(void).
15755 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15756 set_varying.
15757 (vr_values::get_lattice_entry): Set varying even if propagation
15758 finished.
15759 Pass type to set_varying.
15760 (vr_values::get_value_range): Remove vr_const_varying.
15761 Reallocate the lattice if needed.
15762 (vr_values::update_value_range): Pass type to set_varying.
15763 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15764 (vr_values::extract_range_from_binary_expr): Same.
15765 (vr_values::extract_range_from_unary_expr): Same.
15766 (vr_values::extract_range_from_cond_expr): Same.
15767 (vr_values::check_for_binary_op_overflow): Same.
15768 (vr_values::extract_range_basic): Same.
15769 (vr_values::extract_range_from_assignment): Same.
15770 (vr_values::vr_values): Increase size of num_vr_values.
15771 (vr_values::extract_range_from_phi_node): Pass type to
15772 set_varying.
15773
15774 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15775
15776 PR target/90878
15777 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15778 for costs of hard register moves.
15779 (ix86_register_move_cost): Likewise.
15780 * config/i386/i386.h (processor_costs): Move costs of hard
15781 register moves to hard_register. Add int_load, int_store,
15782 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15783 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15784 for costs of RTL expressions.
15785 * config/i386/x86-tune-costs.h: Move costs of hard register
15786 moves to hard_register. Duplicate int_load, int_store,
15787 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15788 sse_load, sse_store for costs of RTL expressions.
15789
15790 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15791
15792 * target.def (setup_incoming_vararg_bounds): Remove.
15793 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15794 * doc/tm.texi: Regenerate.
15795 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15796 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15797 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15798 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15799
15800 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15801
15802 MSP430: Fix lines over 80 characters long in
15803 config/msp430/*.{c,h} files
15804
15805 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15806 specifier in string.
15807 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15808 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15809 redundant old comment.
15810 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15811 Split line more than 80 characters long.
15812 * config/msp430/msp430.c (msp430_option_override): Likewise.
15813 (msp430_return_in_memory): Likewise.
15814 (msp430_gimplify_va_arg_expr): Likewise.
15815 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15816 (msp430_legitimate_constant): Likewise.
15817 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15818 (msp430_attr): Likewise.
15819 (msp430_data_attr): Likewise.
15820 (msp430_start_function): Likewise.
15821 (gen_prefix): Likewise.
15822 (msp430_init_sections): Likewise.
15823 (msp430_select_section): Likewise.
15824 (msp430_function_section): Likewise.
15825 (msp430_unique_section): Likewise.
15826 (msp430_output_aligned_decl_common): Likewise.
15827 (msp430_do_not_relax_short_jumps): Likewise.
15828 (msp430_init_builtins): Likewise.
15829 (msp430_expand_delay_cycles): Likewise.
15830 (msp430_expand_prologue): Likewise.
15831 (msp430_expand_epilogue): Likewise.
15832 (msp430_expand_helper): Likewise.
15833 (msp430_split_movsi): Likewise.
15834 (msp430_print_operand): Likewise.
15835 (msp430_return_addr_rtx): Likewise.
15836 (msp430x_extendhisi): Likewise.
15837 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15838 (ASM_SPEC): Likewise.
15839 Remove very obvious comments.
15840 (LIB_SPEC): Split line more than 80 characters long.
15841 (EH_RETURN_HANDLER_RTX): Likewise.
15842 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15843
15844 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15845
15846 MSP430: Fix whitespace errors and incorrect indentation in
15847 config/msp430/*.{c,h} files
15848
15849 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15850 (msp430_select_hwmult_lib): Likewise.
15851 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15852 (msp430_extract_mcu_data): Likewise.
15853 (struct t_msp430_mcu_data): Likewise.
15854 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15855 before left square bracket.
15856 (msp430_option_override): Fix indentation.
15857 (msp430_hard_regno_nregs_with_padding): Likewise.
15858 (msp430_initial_elimination_offset): Likewise.
15859 (msp430_special_register_convention_p): Remove whitespace before left
15860 square bracket and after exclamation mark.
15861 (msp430_evaluate_arg): Likewise.
15862 (msp430_callee_copies): Fix indentation.
15863 (msp430_gimplify_va_arg_expr): Likewise.
15864 (msp430_function_arg_advance): Remove whitespace before left square
15865 bracket.
15866 (reg_ok_for_addr): Likewise.
15867 (msp430_preserve_reg_p): Likewise.
15868 (msp430_compute_frame_info): Likewise.
15869 (msp430_asm_output_addr_const_extra): Add space between function name
15870 and open parenthesis.
15871 (has_section_name): Fix indentation.
15872 (msp430_attr): Remove trailing whitespace.
15873 (msp430_section_attr): Likewise.
15874 (msp430_data_attr): Likewise.
15875 (struct msp430_attribute_table): Fix comment and whitespace.
15876 (msp430_start_function): Remove whitespace before left square bracket.
15877 Add space between function name and open parenthesis.
15878 (msp430_select_section): Remove trailing whitespace.
15879 (msp430_section_type_flags): Remove trailing whitespace.
15880 (msp430_unique_section): Remove space before closing parenthesis.
15881 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15882 (msp430_builtins): Remove whitespace before left square bracket.
15883 (msp430_init_builtins): Fix indentation.
15884 (msp430_expand_prologue): Remove whitespace before left square bracket.
15885 Remove space before closing parenthesis.
15886 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15887 (msp430_split_movsi): Remove space before closing parenthesis.
15888 (helper_function_name_mappings): Fix indentation.
15889 (msp430_use_f5_series_hwmult): Fix whitespace.
15890 (use_32bit_hwmult): Likewise.
15891 (msp430_no_hwmult): Likewise.
15892 (msp430_output_labelref): Remove whitespace before left square bracket.
15893 (msp430_print_operand_raw): Likewise.
15894 (msp430_print_operand_addr): Likewise.
15895 (msp430_print_operand): Add two spaces after '.' in comment.
15896 Fix trailing whitespace.
15897 (msp430x_extendhisi): Fix indentation.
15898 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15899 tab.
15900 (PC_REGNUM): Likewise.
15901 (STACK_POINTER_REGNUM): Likewise.
15902 (CC_REGNUM): Likewise.
15903
15904 2019-08-15 Richard Biener <rguenther@suse.de>
15905
15906 PR target/91454
15907 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15908 helper.
15909 (general_scalar_chain::make_vector_copies): Use it.
15910
15911 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15912
15913 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15914
15915 2019-08-15 Martin Liska <mliska@suse.cz>
15916
15917 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15918 operators with no arguments.
15919 (eliminate_unnecessary_stmts): Likewise here.
15920
15921 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15922
15923 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15924 <case COMPARE>: Revert 2019-08-14 change.
15925 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15926 for (TARGET_64BIT || mode != DImode).
15927
15928 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15929
15930 * tree-vrp.c (value_range_base::set): Merge in code from
15931 value_range_base::set_and_canonicalize.
15932 Enforce canonicalization at set time.
15933 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15934 (value_range_base::set_undefined): Inline call to set().
15935 (value_range_base::set_varying): Same.
15936 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15937 (vrp_val_max): New argument handle_pointers.
15938 (vrp_val_min): Same.
15939 (ranges_from_anti_range): Same.
15940 (extract_range_into_wide_ints): Use tree argument instead of sign
15941 and precision.
15942 (extract_range_from_multiplicative_op): Take in tree type instead
15943 of precision and sign. Adapt function for canonicalized ranges.
15944 (extract_range_from_binary_expr): Pass type to
15945 extract_range_from_multiplicative_op.
15946 Adapt for canonicalized ranges.
15947 (extract_range_from_unary_expr): Same.
15948 (value_range_base::intersect_helper): Adjust for canonicalized
15949 ranges.
15950 (value_range_base::union_helper): Same.
15951 (value_range_base::normalize_symbolics): New.
15952 * tree-vrp.h (class value_range_base): Remove
15953 set_and_canonicalize.
15954 New prototype for normalize_symbolics.
15955 (class value_range): Remove set_and_canonicalize.
15956 (vrp_val_min): Adjust prototype.
15957 (vrp_val_max): Same.
15958 * vr-values.c
15959 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15960 instead of set_and_canonicalize.
15961
15962 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15963
15964 PR middle-end/91444
15965 * tree-vect-stmts.c (vectorizable_call): Check that the function
15966 is a BUILT_IN_MD function before passing it to
15967 targetm.vectorize.builtin_md_vectorized_function.
15968
15969 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15970
15971 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15972 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15973 (aarch64_select_early_remat_modes): Use it.
15974
15975 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15976
15977 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15978 16 for SVE predicates even if they are fixed-length.
15979
15980 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15981
15982 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15983 operand order match the MOV /Z alias.
15984
15985 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15986
15987 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15988 the vector pattern as an aarch64_svpattern argument. Update the
15989 overloaded caller accordingly.
15990 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15991 (aarch64_output_sve_vector_inc_dec): Likewise.
15992
15993 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15994
15995 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15996 multiplication case, try to compute VG * (lowest set bit) directly
15997 rather than always basing the multiplication on VG. Use
15998 expand_mult for the multiplication if we can.
15999
16000 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16001
16002 * config/aarch64/aarch64-protos.h
16003 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16004 (aarch64_sve_inc_dec_immediate_p): Rename to...
16005 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16006 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16007 (aarch64_output_sve_scalar_inc_dec): Declare.
16008 (aarch64_output_sve_inc_dec_immediate): Rename to...
16009 (aarch64_output_sve_vector_inc_dec): ...this.
16010 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16011 (aarch64_output_sve_scalar_inc_dec): New functions.
16012 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16013 arguments. Only handle true ADDVL and ADDPL instructions;
16014 don't emit an INC or DEC.
16015 (aarch64_sve_inc_dec_immediate_p): Rename to...
16016 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16017 (aarch64_output_sve_inc_dec_immediate): Rename to...
16018 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16019 aarch64_sve_vector_inc_dec_immediate_p.
16020 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16021 (aarch64_sve_plus_immediate): New predicates.
16022 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16023 rather than aarch64_sve_addvl_addpl_immediate.
16024 (aarch64_sve_inc_dec_immediate): Rename to...
16025 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16026 aarch64_sve_vector_inc_dec_immediate_p.
16027 (aarch64_sve_add_operand): Update accordingly.
16028 * config/aarch64/constraints.md (Uai): New constraint.
16029 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16030 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16031 operand into a register if it satisfies aarch64_sve_plus_immediate.
16032 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16033 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16034 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16035 aarch64_output_sve_vector_inc_dec instead of
16036 aarch64_output_sve_inc_dec_immediate.
16037
16038 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16039
16040 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16041 (UNSPEC_REVW): New constants.
16042 (elem_bits): New mode attribute.
16043 (SVE_INT_UNARY): New int iterator.
16044 (optab): Handle UNSPEC_REV[BHW].
16045 (sve_int_op): New int attribute.
16046 (min_elem_bits): Handle VNx16QI and the predicate modes.
16047 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16048 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16049 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16050 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16051 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16052 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16053 unspecs based on the total width of the reversed data.
16054 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16055 reinterpret followed by a subreg on big-endian targets.
16056
16057 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16058 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16059
16060 * config/aarch64/aarch64-sve.md
16061 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16062 alternatives in which one of the inputs is in the same register
16063 as the output.
16064
16065 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16066
16067 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16068 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16069
16070 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16071
16072 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16073 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16074
16075 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16076 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16077
16078 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16079 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16080 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16081
16082 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16083 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16084
16085 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16086 Add an alternative that uses reversed shifts.
16087
16088 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16089
16090 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16091 struct.
16092
16093 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16094
16095 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16096 a commutativity marker.
16097
16098 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16099 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16100
16101 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16102 (aarch64_prepare_sve_cond_int_fma): Declare.
16103 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16104 (aarch64_prepare_sve_int_fma): New functions.
16105 (aarch64_prepare_sve_cond_int_fma): Likewise.
16106 * config/aarch64/aarch64-sve.md
16107 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16108 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16109 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16110 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16111 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16112 (*madd<mode>): Rename to...
16113 (*fma<mode>4): ...this.
16114 (*msub<mode>): Rename to...
16115 (*fnma<mode>4): ...this.
16116
16117 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16118 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16119
16120 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16121 Print 2.0 naturally.
16122 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16123 * config/aarch64/predicates.md
16124 (aarch64_sve_float_negated_arith_immediate): New predicate,
16125 renamed from aarch64_sve_float_arith_with_sub_immediate.
16126 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16127 positive and negative constants.
16128 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16129 or an aarch64_sve_float_arith_with_sub_immediate.
16130 * config/aarch64/constraints.md (vsN): Use
16131 aarch64_sve_float_negated_arith_immediate.
16132 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16133 iterator.
16134 (sve_pred_fp_rhs2_immediate): New int attribute.
16135 * config/aarch64/aarch64-sve.md
16136 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16137 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16138 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16139 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16140 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16141 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16142
16143 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16144 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16145
16146 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16147 (*aarch64_cond_abd<SVE_F:mode>_3)
16148 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16149
16150 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16151 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16152
16153 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16154 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16155
16156 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16157 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16158
16159 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16160 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16161 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16162 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16163 optabs.
16164 * optabs.h (create_convert_operand_from): Expand comment.
16165 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16166 when mapping scalar rtxes to vector operands.
16167 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16168 ashiftrt and lshiftrt.
16169 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16170 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16171 (*cond_<optab><mode>_any_const): New patterns.
16172
16173 2019-08-15 Martin Liska <mliska@suse.cz>
16174
16175 PR ipa/91438
16176 * cgraph.c (cgraph_node::remove): When setting
16177 n->origin = NULL for all nested functions, reset
16178 also next_nested.
16179
16180 2019-08-15 Martin Liska <mliska@suse.cz>
16181
16182 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16183 and next_nested.
16184
16185 2019-08-15 Martin Liska <mliska@suse.cz>
16186
16187 PR ipa/91404
16188 * passes.c (order): Remove.
16189 (uid_hash_t): Likewise).
16190 (remove_cgraph_node_from_order): Remove from set
16191 of pointers (cgraph_node *).
16192 (insert_cgraph_node_to_order): New.
16193 (duplicate_cgraph_node_to_order): New.
16194 (do_per_function_toporder): Register all 3 cgraph hooks.
16195 Skip removed_nodes now as we know about all of them.
16196
16197 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16198
16199 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16200 <case E_V8QImode>: Use vector_set path for
16201 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16202 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16203 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16204
16205 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16206
16207 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16208
16209 2019-08-14 Martin Sebor <msebor@redhat.com>
16210
16211 PR tree-optimization/91294
16212 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16213 source length as exact.
16214
16215 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16216
16217 * doc/extend.texi: Add "noinit" attribute documentation.
16218 * doc/sourcebuild.texi: Add noinit effective target documentation.
16219 * varasm.c (default_section_type_flags): Add support for "noinit"
16220 section.
16221 (default_elf_select_section): Add support for "noinit" attribute.
16222 * config/msp430/msp430.c (msp430_attribute_table): Remove
16223 "noinit" entry.
16224
16225 2019-08-14 Richard Biener <rguenther@suse.de>
16226 Uroš Bizjak <ubizjak@gmail.com>
16227
16228 PR target/91154
16229 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16230 mode arguments.
16231 (scalar_chain::smode): New member.
16232 (scalar_chain::vmode): Likewise.
16233 (dimode_scalar_chain): Rename to...
16234 (general_scalar_chain): ... this.
16235 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16236 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16237 base with TImode and V1TImode.
16238 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16239 (general_scalar_chain::vector_const_cost): Adjust for SImode
16240 chains.
16241 (general_scalar_chain::compute_convert_gain): Likewise. Add
16242 {S,U}{MIN,MAX} support.
16243 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16244 (general_scalar_chain::make_vector_copies): Likewise. Handle
16245 non-DImode chains appropriately.
16246 (general_scalar_chain::convert_reg): Likewise.
16247 (general_scalar_chain::convert_op): Likewise.
16248 (general_scalar_chain::convert_insn): Likewise. Add
16249 fatal_insn_not_found if the result is not recognized.
16250 (convertible_comparison_p): Pass in the scalar mode and use that.
16251 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16252 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16253 (scalar_to_vector_candidate_p): Remove by inlining into single
16254 caller.
16255 (general_remove_non_convertible_regs): Rename from
16256 dimode_remove_non_convertible_regs.
16257 (remove_non_convertible_regs): Remove by inlining into single caller.
16258 (convert_scalars_to_vector): Handle SImode and DImode chains
16259 in addition to TImode chains.
16260 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16261 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16262 (*<maxmin>di3_doubleword): Likewise.
16263
16264 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16265 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16266
16267 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16268 (*cond_bic<mode>_any): New patterns.
16269
16270 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16271
16272 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16273 take the equivalent mask, as well as a bit count.
16274 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16275 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16276 (aarch64_sve_pred_and_operand): New predicates.
16277 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16278 code attribute.
16279 * config/aarch64/aarch64-sve.md
16280 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16281 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16282
16283 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16284
16285 * config/aarch64/aarch64-sve.md
16286 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16287 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16288 New patterns.
16289
16290 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16291 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16292
16293 * config/aarch64/aarch64-sve.md
16294 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16295 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16296
16297 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16298 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16299
16300 * config/aarch64/aarch64-sve.md
16301 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16302 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16303
16304 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16305
16306 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16307 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16308 New pattern.
16309
16310 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16311 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16312
16313 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16314
16315 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16316 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16317
16318 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16319 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16320 (aarch64_print_operand): Add support for %I.
16321 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16322 Bitcast floating-point constants to the corresponding integer constant.
16323 (aarch64_float_const_representable_p): Handle vectors as well
16324 as scalars.
16325 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16326 for the new vcond_mask_<mode><vpred> expander.
16327 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16328 test aarch64_float_const_representable_p.
16329 (aarch64_sve_reg_or_dup_imm): New predicate.
16330 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16331 gen_vcond_mask_<mode><vpred> instead of
16332 gen_aarch64_sve_dup<mode>_const.
16333 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16334 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16335 for operands 1 and 2 respectively. Force operand 2 into a
16336 register if operand 1 is a register. Fold old define_insn...
16337 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16338 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16339 floating-point constants that can be moved as integers. Add
16340 alternatives for MOV /M and FMOV /M.
16341 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16342 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16343 1 and 2 respectively.
16344 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16345 as scalars.
16346 (vss): New constraint.
16347
16348 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16349
16350 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16351 (aarch64_sve_float_maxmin_operand): New predicates.
16352 * config/aarch64/constraints.md (vsB): New constraint.
16353 (vsM): Fix typo.
16354 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16355 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16356 UNSPEC_COND_FMINNM.
16357 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16358 Use aarch64_sve_float_maxmin_operand for operand 2.
16359 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16360 Add alternatives for the constant forms.
16361
16362 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16363
16364 * config/aarch64/constraints.md (vsb): New constraint.
16365 (vsm): Generalize description.
16366 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16367 iterator.
16368 (sve_imm_con): Handle smax, smin, umax and umin.
16369 (sve_imm_prefix): New code attribute.
16370 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16371 (aarch64_sve_vsb_operand): New predicates.
16372 (aarch64_sve_mul_immediate): Rename to...
16373 (aarch64_sve_vsm_immediate): ...this.
16374 (aarch64_sve_mul_operand): Rename to...
16375 (aarch64_sve_vsm_operand): ...this.
16376 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16377 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16378 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16379 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16380 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16381 add movprfx support for the immediate alternatives.
16382 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16383 of the above.
16384 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16385 for operand 3.
16386
16387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16388
16389 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16390 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16391 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16392
16393 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16394
16395 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16396 (optab, sve_int_op): Handle them.
16397 * config/aarch64/aarch64-sve.md: Expand comment.
16398
16399 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16400
16401 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16402 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16403 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16404
16405 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16406
16407 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16408 (aarch64_expand_sve_const_pred_trn): New functions.
16409 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16410 use the above functions when the parameter is true.
16411 (aarch64_expand_sve_const_pred): Update call accordingly.
16412 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16413 Rename to...
16414 (@aarch64_sve_<perm_insn><mode>): ...this.
16415
16416 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16417
16418 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16419 Declare.
16420 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16421 (aarch64_sve_emit_int_cmp): New functions.
16422 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16423 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16424 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16425 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16426 (UNSPEC_PRED_Z): New unspec.
16427 (set_clobber_cc_nzc): Delete.
16428 * config/aarch64/aarch64-sve.md: Add a block comment about
16429 UNSPEC_PRED_Z.
16430 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16431 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16432 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16433 UNSPEC_MERGE_PTRUE.
16434 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16435 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16436 check for compatible predicates.
16437 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16438 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16439 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16440 comparisons above.
16441
16442 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16443
16444 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16445 * config/aarch64/aarch64-sve.md: Add a section describing it.
16446 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16447 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16448 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16449 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16450 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16451 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16452 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16453 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16454 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16455 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16456 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16457 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16458 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16459 (aarch64_evpc_rev_local): Update accordingly.
16460
16461 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16462
16463 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16464 iterators.
16465 (SVE_BHSI, SVE_SDI): Tweak comment.
16466 (SVE_HSDI): Likewise. Fix definition.
16467 (SVE_SDF): New mode iterator.
16468 (elem_bits): New mode attribute.
16469 (SVE_COND_FCVT): New int iterator.
16470 * config/aarch64/aarch64-sve.md
16471 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16472 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16473 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16474 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16475 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16476 ...these new patterns.
16477 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16478 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16479 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16480 Merge into...
16481 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16482 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16483 ...these new patterns.
16484 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16485 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16486 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16487 ...this new pattern.
16488 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16489 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16490 ...this new pattern.
16491 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16492
16493 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16494
16495 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16496 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16497 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16498 unspecs.
16499 (optab, su): Handle them.
16500 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16501 * config/aarch64/aarch64-sve.md
16502 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16503 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16504 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16505 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16506 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16507 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16508 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16509 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16510 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16511 FIXUORS.
16512 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16513 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16514 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16515 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16516 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16517 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16518 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16519 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16520 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16521 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16522 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16523 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16524 of UNSPEC_FLOAT_CONVERT.
16525 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16526 aarch64_sve_extend<mode><Vwide>2.
16527
16528 2019-08-14 Richard Biener <rguenther@suse.de>
16529
16530 PR target/91154
16531 * config/i386/i386-features.c
16532 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16533 individual instruction gain. Fix reg-reg copy GRP cost. Use
16534 ix86_cost->sse_op for vector instruction costs.
16535
16536 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16537
16538 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16539 (cmp_op): Handle it.
16540 (SVE_COND_FP_CMP): Rename to...
16541 (SVE_COND_FP_CMP_I0): ...this.
16542 (SVE_FP_CMP): Remove.
16543 * config/aarch64/aarch64-sve.md
16544 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16545 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16546 using unspecs to represent the comparison.
16547 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16548 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16549 accordingly.
16550 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16551 (aarch64_unspec_cond_code): Move after integer code. Handle
16552 UNORDERED.
16553 (aarch64_emit_sve_predicated_cond): Replace with...
16554 (aarch64_emit_sve_fp_cond): ...this new function.
16555 (aarch64_emit_sve_or_conds): Replace with...
16556 (aarch64_emit_sve_or_fp_conds): ...this new function.
16557 (aarch64_emit_sve_inverted_cond): Replace with...
16558 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16559 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16560
16561 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16562
16563 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16564 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16565 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16566 SVE_HSD instead of SVE_SD.
16567
16568 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16569 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16570
16571 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16572 iterator.
16573 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16574 attributes.
16575 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16576 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16577 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16578 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16579 (*div<SVE_F:mode>3): Generalize to...
16580 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16581
16582 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16583 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16584
16585 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16586 constants.
16587 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16588 predicate.
16589 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16590 Declare.
16591 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16592 function.
16593 * config/aarch64/aarch64-sve.md: Add a block comment about the
16594 handling of predicated FP operations.
16595 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16596 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16597 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16598 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16599 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16600 operand.
16601 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16602 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16603 operand.
16604 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16605 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16606 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16607 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16608 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16609 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16610 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16611 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16612 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16613 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16614 strictness operands. Use aarch64_sve_pred_dominates_p to check
16615 whether the predicate on the conditional operation is suitable
16616 for merging. Split patterns into the canonical equal-predicate form.
16617 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16618 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16619
16620 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16621 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16622
16623 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16624 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16625 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16626 rtx codes.
16627 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16628 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16629 unspecs.
16630
16631 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16632 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16633
16634 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16635 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16636 actually has, rather than relying on REG_EQUAL notes.
16637 Make the insn operand order match the SVE operand order.
16638 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16639 the SVE operand order.
16640
16641 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16642
16643 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16644 (aarch64_emit_set_immediate): Likewise.
16645 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16646 (aarch64_pfalse_reg): Likewise.
16647 (aarch64_convert_sve_data_to_pred): New function.
16648 (aarch64_sve_move_pred_via_while): Take an optional target register
16649 and the required register mode.
16650 (aarch64_expand_sve_const_pred_1): New function.
16651 (aarch64_expand_sve_const_pred): Likewise.
16652 (aarch64_expand_mov_immediate): Build an all-true predicate
16653 if the significant bits of the immediate are all true. Use
16654 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16655 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16656 before register allocation.
16657 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16658 a VNx16BI PTRUE when splitting the memory alternative.
16659 (vec_duplicate<mode>): Update accordingly.
16660 (*pred_cmp<cmp_op><mode>): Rename to...
16661 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16662
16663 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16664
16665 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16666 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16667 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16668 (UNSPEC_PTEST): New unspec.
16669 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16670 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16671 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16672 * config/aarch64/aarch64-sve.md: Add a new section describing the
16673 handling of UNSPEC_PTEST.
16674 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16675 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16676 (ptest_ptrue<mode>): Replace with...
16677 (aarch64_ptest<mode>): ...this new pattern.
16678 (cbranch<mode>4): Update after above changes.
16679 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16680 UNSPEC_PTEST_PTRUE.
16681 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16682 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16683 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16684
16685 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16686
16687 PR lto/91287
16688 * builtins.c (builtin_with_linkage_p): New function.
16689 * builtins.h (builtin_with_linkage_p): New function.
16690 * symtab.c (write_symbol): Remove redundant assert.
16691 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16692 Remove FIXME and use builtin_with_linkage_p.
16693
16694 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16695
16696 PR middle-end/91421
16697 * tree-core.h (function_decl::function_code): Change type to
16698 unsigned int.
16699 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16700 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16701 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16702 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16703 is BUILT_IN_NORMAL.
16704 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16705 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16706 (fndecl_built_in_p): Change the type of the "name" argument to
16707 unsigned int.
16708 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16709 after check for DECL_BUILT_IN_CLASS.
16710 * cgraphclones.c (build_function_decl_skip_args): Use
16711 set_decl_built_in_function.
16712 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16713 * ipa-split.c (split_function): Likewise.
16714 * langhooks.c (add_builtin_function_common): Likewise.
16715 * omp-simd-clone.c (simd_clone_create): Likewise.
16716 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16717 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16718 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16719 DECL_FUNCTION_CODE.
16720 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16721 instead of DECL_FUNCTION_CODE.
16722 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16723 instead of DECL_FUNCTION_CODE.
16724 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16725 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16726 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16727 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16728 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16729 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16730 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16731 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16732 (alpha_gimple_fold_builtin): Likewise.
16733 * config/arc/arc.c (arc_expand_builtin): Likewise.
16734 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16735 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16736 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16737 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16738 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16739 * config/frv/frv.c (frv_expand_builtin): Likewise.
16740 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16741 (gcn_expand_builtin): Likewise.
16742 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16743 (fold_builtin_cpu): Likewise.
16744 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16745 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16746 (ix86_gimple_fold_builtin): Likewise.
16747 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16748 (ia64_expand_builtin): Likewise.
16749 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16750 * config/mips/mips.c (mips_expand_builtin): Likewise.
16751 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16752 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16753 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16754 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16755 * config/pa/pa.c (pa_expand_builtin): Likewise.
16756 * config/pru/pru.c (pru_expand_builtin): Likewise.
16757 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16758 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16759 Likewise.
16760 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16761 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16762 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16763 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16764 (rs6000_builtin_reciprocal): Likewise.
16765 * config/rx/rx.c (rx_expand_builtin): Likewise.
16766 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16767 * config/s390/s390.c (s390_expand_builtin): Likewise.
16768 * config/sh/sh.c (sh_expand_builtin): Likewise.
16769 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16770 (sparc_fold_builtin): Likewise.
16771 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16772 * config/spu/spu.c (spu_expand_builtin): Likewise.
16773 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16774 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16775 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16776 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16777 (xtensa_expand_builtin): Likewise.
16778
16779 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16780
16781 PR middle-end/91421
16782 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16783 before the DECL_FUNCTION_CODE.
16784 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16785 to check for a BUILT_IN_ALLOCA call.
16786 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16787 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16788 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16789 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16790 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16791 for BUILT_IN_NORMAL functions.
16792 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16793 test for BUILT_IN_TM_ABORT.
16794 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16795 to check for a BUILT_IN_STACK_RESTORE call.
16796 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16797 * tree-ssa-threadedge.c
16798 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16799 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16800 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16801 test for a BUILT_IN_NORMAL call instead of a negative test for
16802 an internal function call.
16803
16804 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16805
16806 * tree.h (build_vector_a_then_b): Declare.
16807 * tree.c (build_vector_a_then_b): New function.
16808 * fold-const-call.c (fold_while_ult): Likewise.
16809 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16810 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16811 (aarch64_svpattern): New enum.
16812 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16813 constants through aarch64_expand_mov_immediate.
16814 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16815 than general_operand as the predicate for operand 1.
16816 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16817 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16818 insn_type.
16819 (simd_immediate_info::simd_immediate_info): New overload that
16820 takes a scalar_int_mode and an svpattern.
16821 (simd_immediate_info::u): Add a "pattern" field.
16822 (svpattern_token): New function.
16823 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16824 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16825 (aarch64_sve_move_pred_via_while): New functions.
16826 (aarch64_expand_mov_immediate): Try using
16827 aarch64_sve_move_pred_via_while for predicates that contain N ones
16828 followed by M zeros but that do not correspond to a VLnnn pattern.
16829 (aarch64_sve_pred_valid_immediate): New function.
16830 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16831 with PTRUE and PFALSE.
16832 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16833 forms.
16834
16835 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16836
16837 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16838 flag.
16839 (darwin_override_options): Likewise.
16840 * config/darwin.h: Likewise.
16841 * config/darwin.opt: Likewise.
16842 * config/i386/i386.c (output_pic_addr_const): Likewise.
16843 * config/rs6000/darwin.h: Likewise.
16844 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16845 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16846 ... this TARGET_MACHO_SYMBOL_STUBS.
16847 (FUNCTION_PROFILER):Likewise.
16848 * config/i386/i386.h: Likewise.
16849
16850 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16851
16852 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16853 <case E_V2SImode>: Use vec_extr path for
16854 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16855 <case E_V8QImode>: Ditto.
16856 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16857 Use SWI48 mode iterator. Use %k to output operand 0.
16858 (*mmx_pextrw): New insn pattern.
16859 (*mmx_pextrb): Ditto.
16860 (*mmx_pextrb_zext): Ditto.
16861
16862 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16863
16864 * target.def (libc_has_function, libc_has_fast_function): Improve
16865 documentation strings.
16866 * doc/tm.texi: Regenerate.
16867
16868 2019-08-13 Caroline Tice <cmtice@google.com>
16869
16870 PR other/91396
16871 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16872 vtv_end.o or vtv_end_preinit.o files if !static.
16873
16874 2019-08-13 Olivier Hainque <hainque@adacore.com>
16875
16876 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16877
16878 2019-08-13 Olivier Hainque <hainque@adacore.com>
16879
16880 * rtlanal.c (tablejump_casesi_pattern): New function, to
16881 determine if a tablejump insn is a casesi dispatcher. Extracted
16882 from patch_jump_insn.
16883 * rtl.h (tablejump_casesi_pattern): Declare.
16884 * cfgrtl.c (patch_jump_insn): Use it.
16885 * dwarf2cfi.c (create_trace_edges): Use it.
16886
16887 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16888
16889 PR target/81800
16890 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16891 operand is larger than a long int.
16892
16893 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16894
16895 * machmode.h (opt_mode::else_mode): New function.
16896 (opt_mode::else_blk): Use it.
16897 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16898 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16899 (aarch64_gen_stepped_int_parallel): Likewise.
16900 (aarch64_stepped_int_parallel_p): Likewise.
16901 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16902 argument.
16903 * config/aarch64/aarch64.c
16904 (aarch64_expand_sve_widened_duplicate): Delete.
16905 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16906 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16907 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16908 argument. Use early returns in the !CONST_INT_P handling.
16909 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16910 than handling some inline.
16911 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16912 from...
16913 (aarch64_simd_container_mode): ...here.
16914 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16915 (aarch64_sve_ld1rq_operand_p): New functions.
16916 * config/aarch64/predicates.md (descending_int_parallel)
16917 (aarch64_sve_ld1rq_operand): New predicates.
16918 * config/aarch64/constraints.md (UtQ): New constraint.
16919 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16920 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16921 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16922 (@aarch64_sve_reinterpret<mode>): New expander.
16923 (*aarch64_sve_reinterpret<mode>): New pattern.
16924 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16925 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16926 (*sve_ld1rq<Vesize>): Replace with...
16927 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16928
16929 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16930
16931 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16932 16:12.
16933
16934 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16935
16936 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16937 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16938 (msp430_check_path_for_devices): New.
16939 (parse_devices_csv_1): New.
16940 (parse_devices_csv): New.
16941 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16942 MCU data in devices.csv before using the hard-coded data.
16943 Warn if devices.csv isn't found and the MCU wasn't found in the
16944 hard-coded data either.
16945 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16946 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16947 Search for devices.csv on -I and -L paths.
16948 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16949 msp430_set_driver_var.
16950 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16951 -mdevices-csv-loc=.
16952 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16953 searched for devices.csv.
16954 (mwarn-devices-csv): Document option.
16955
16956 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16957
16958 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16959 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16960 Use a single Dn alternative instead of separate Dz and Dm
16961 alternatives. Use aarch64_output_sve_move_immediate.
16962 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16963 function.
16964 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16965 for predicates too.
16966 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16967 (aarch64_output_ptrue): Delete.
16968
16969 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16970
16971 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16972 INDEX.
16973 (simd_immediate_info::value, simd_immediate_info::step)
16974 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16975 with...
16976 (simd_immediate_info::u): ...this new union.
16977 (simd_immediate_info::simd_immediate_info): Update accordingly.
16978 (aarch64_output_simd_mov_immediate): Likewise.
16979 (aarch64_output_sve_mov_immediate): Likewise.
16980
16981 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16982
16983 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16984 extra_gcc_objs.
16985 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16986 (msp430_select_cpu): New spec function.
16987 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16988 MCU data.
16989 * config/msp430/msp430-devices.c: New file.
16990 * config/msp430/msp430-devices.h: New file.
16991 * config/msp430/msp430.c: Remove msp430_mcu_data.
16992 (msp430_option_override): Use msp430_extract_mcu_data to extract
16993 MCU data.
16994 (msp430_use_f5_series_hwmult): Likewise.
16995 (use_32bit_hwmult): Likewise.
16996 (msp430_no_hwmult): Likewise.
16997 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16998 assembler.
16999 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17000 and -mcpu option.
17001 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17002 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17003 Remove hard-coded MCU multilib data.
17004
17005 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17006
17007 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17008 based on the mode instead of testing properties of it.
17009
17010 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17011
17012 * doc/md.texi: Document the x and y constraints for AArch64.
17013 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17014 (FP_LO8_REGS): New reg_class.
17015 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17016 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17017 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17018 * config/aarch64/predicates.md (aarch64_simd_register): Use
17019 FP_REGNUM_P instead of checking the classes manually.
17020 * config/aarch64/constraints.md (y): New constraint.
17021
17022 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17023
17024 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17025 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17026 * config/aarch64/aarch64-simd.md
17027 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17028 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17029 from the asm template.
17030 * config/aarch64/aarch64-sve.md
17031 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17032 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17033 from the asm template.
17034 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17035 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17036 from the asm template.
17037 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17038
17039 2019-08-13 Martin Liska <mliska@suse.cz>
17040
17041 * value-prof.c (gimple_ic_transform): Add new line.
17042 Print details with MSG_NOTE.
17043
17044 2019-08-13 Martin Liska <mliska@suse.cz>
17045
17046 * doc/invoke.texi: Document automatic detection of jobserver.
17047 * lto-wrapper.c (run_gcc): Detect jobserver always.
17048
17049 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17050
17051 * config/i386/i386-expand.c (ix86_expand_vector_set)
17052 <case E_V2SImode>: Use vec_merge path for
17053 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17054 <case E_V8QImode>: Ditto.
17055 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17056 (*mmx_pinsrb): Ditto.
17057
17058 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17059
17060 PR target/83250
17061 PR target/91340
17062 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17063 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17064 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17065 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17066 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17067
17068 2019-08-12 Richard Biener <rguenther@suse.de>
17069
17070 PR lto/91375
17071 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17072 flag_devirtualize.
17073
17074 2019-08-12 Richard Biener <rguenther@suse.de>
17075
17076 PR driver/91130
17077 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17078 lang_mask option, always use CL_DRIVER.
17079 (get_options_from_collect_gcc_options): Adjust.
17080 (find_and_merge_options): Likewise.
17081 (run_gcc): Likewise.
17082
17083 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17084
17085 * ipa-predicate.c (add_condition): Restore inverted test.
17086
17087 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17088
17089 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17090 (enum omp_clause_device_type_kind): New enum.
17091 (struct tree_omp_clause): Add subcode.device_type_kind.
17092 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17093 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17094 for device_type clause.
17095 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17096 * tree-pretty-print.c (dump_omp_clause): Likewise.
17097
17098 PR target/91408
17099 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17100 vector_operand.
17101
17102 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17103
17104 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17105 handling spilled pseudos.
17106
17107 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17108
17109 PR target/91386
17110 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17111 to preserve the contents of the original insns.
17112
17113 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17114
17115 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17116 (addsi3_compare_op2): Likewise.
17117
17118 2019-08-09 Martin Liska <mliska@suse.cz>
17119
17120 * alias.c (alias_ptr_types_compatible_p): Strengten
17121 type comparison in LTO mode.
17122
17123 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17124
17125 PR middle-end/90313
17126 * tree-tailcall.c (find_tail_calls): Reject calls that might
17127 read from an escaped RESULT_DECL.
17128
17129 2019-08-09 Martin Liska <mliska@suse.cz>
17130
17131 * doc/invoke.texi: Document the option value.
17132 * lto-wrapper.c (run_gcc): Set auto_parallel
17133 only with -flto=auto.
17134
17135 2019-08-09 Martin Liska <mliska@suse.cz>
17136
17137 * opts.c (common_handle_option): Error for an invalid argument
17138 to -flto=.
17139
17140 2019-08-09 Martin Liska <mliska@suse.cz>
17141
17142 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17143 use dump_printf to report optimization.
17144 (sem_variable::merge): Likwise.
17145 (sem_item_optimizer::merge_classes): Use dump_printf to report
17146 ICF hits.
17147
17148 2019-08-09 Martin Liska <mliska@suse.cz>
17149
17150 * value-prof.c (gimple_divmod_fixed_value_transform):
17151 Use dump_printf_loc.
17152 (gimple_mod_pow2_value_transform): Likewise.
17153 (gimple_mod_subtract_transform): Likewise.
17154 (init_node_map): Likewise.
17155 (gimple_ic_transform): Likewise.
17156 (gimple_stringops_transform): Likewise.
17157
17158 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17159
17160 * doc/extend.texi: Add const qualifier to ld intrinsics.
17161
17162 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17163
17164 * config/rs6000/dfp.md (D64_D128): Rename to ...
17165 (DDTD): ... this, throughout.
17166 (dfp_suffix): Rename to ...
17167 (q): ... this, throughout.
17168
17169 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17170
17171 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17172 (dfp_suffix): Ditto.
17173 (adddd3, addtd3): Merge to ...
17174 (add<mode>3 for D64_D128): ... this.
17175 (subdd3, subtd3): Merge to ...
17176 (sub<mode>3 for D64_D128): ... this.
17177 (muldd3, multd3): Merge to ...
17178 (mul<mode>3 for D64_D128): ... this.
17179 (divdd3, divtd3): Merge to ...
17180 (div<mode>3 for D64_D128): ... this.
17181 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17182 (*cmp<mode>_internal1 for D64_D128): ... this.
17183 (ftruncdd2, ftrunctd2): Merge to ...
17184 (ftrunc<mode>2 for D64_D128): ... this.
17185 (fixdddi2, fixtddi2): Merge to ...
17186 (fix<mode>di2 for D64_D128): ... this.
17187
17188 2019-08-08 Jim Wilson <jimw@sifive.com>
17189
17190 PR target/91229
17191 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17192 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17193 Pass into recursive call.
17194 (riscv_flatten_aggregate_argument): New arg. Pass to
17195 riscv_flatten_aggregate_field.
17196 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17197 riscv_flatten_aggregate_argument twice, with false and true as last
17198 arg. Process result twice. Compare results and warn if different.
17199 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17200
17201 2019-08-08 Martin Liska <mliska@suse.cz>
17202
17203 PR bootstrap/91352
17204 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17205 * lto-wrapper.c (jobserver_active_p): Likewise.
17206
17207 2019-08-08 Martin Liska <mliska@suse.cz>
17208
17209 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17210 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17211 (create_version_clone_with_body): Likewise.
17212
17213 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17214
17215 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17216 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17217 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17218 GOVD_EXPLICIT flags.
17219 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17220 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17221 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17222 call install_var_field with mask 11 instead of 3.
17223 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17224 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17225
17226 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17227
17228 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17229 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17230
17231 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17232
17233 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17234 MOVPRFX alternatives. Make the GPR alternatives more expensive
17235 than the FPR ones.
17236
17237 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17238
17239 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17240 Disparage the GPR alternative relative to the FPR one.
17241 Fix handling of 8-bit and 16-bit FPR values.
17242
17243 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17244
17245 * config/aarch64/iterators.md (BITWISEV): Delete.
17246 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17247 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17248 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17249 UNSPEC_FMINNMV, UNSPEC_FMINV.
17250 (bit_reduc_op): Delete.
17251 (sve_int_op): New int attribute.
17252 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17253 UNSPEC_FMINNMV, UNSPEC_FMINV.
17254 * config/aarch64/aarch64-sve.md
17255 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17256 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17257 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17258 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17259 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17260 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17261 new patterns.
17262 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17263 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17264 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17265 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17266 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17267 new patterns.
17268
17269 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17270
17271 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17272 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17273 (fms<mode>4, *fms<mode>4): Replace with...
17274 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17275 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17276 Use unspecs instead of rtx codes.
17277 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17278 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17279
17280 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17281
17282 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17283 int iterator.
17284 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17285 * config/aarch64/aarch64-sve.md
17286 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17287 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17288 use a single unspec for the rhs.
17289 (*<su><maxmin><mode>3): Delete.
17290 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17291
17292 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17293
17294 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17295 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17296 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17297 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17298 (optab, sve_fp_op): Handle them.
17299 (SVE_FP_UNARY): Delete.
17300 (optab): Remove sqrt entry.
17301 (sve_fp_op): Remove neg, abs and sqrt entries.
17302 (SVE_COND_FP_UNARY): New int iterator.
17303 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17304 (*<frint_pattern><mode>2): Delete.
17305 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17306 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17307 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17308 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17309
17310 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17311
17312 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17313
17314 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17315
17316 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17317 (UNSPEC_COND_FADD): ...this.
17318 (UNSPEC_COND_SUB): Rename to...
17319 (UNSPEC_COND_FSUB): ...this.
17320 (UNSPEC_COND_MUL): Rename to...
17321 (UNSPEC_COND_FMUL): ...this.
17322 (UNSPEC_COND_DIV): Rename to...
17323 (UNSPEC_COND_FDIV): ...this.
17324 (UNSPEC_COND_MAX): Rename to...
17325 (UNSPEC_COND_FMAXNM): ...this.
17326 (UNSPEC_COND_MIN): Rename to...
17327 (UNSPEC_COND_FMINNM): ...this.
17328 (UNSPEC_COND_LT): Rename to...
17329 (UNSPEC_COND_FCMLT): ...this.
17330 (UNSPEC_COND_LE): Rename to...
17331 (UNSPEC_COND_FCMLE): ...this.
17332 (UNSPEC_COND_EQ): Rename to...
17333 (UNSPEC_COND_FCMEQ): ...this.
17334 (UNSPEC_COND_NE): Rename to...
17335 (UNSPEC_COND_FCMNE): ...this.
17336 (UNSPEC_COND_GE): Rename to...
17337 (UNSPEC_COND_FCMGE): ...this.
17338 (UNSPEC_COND_GT): Rename to...
17339 (UNSPEC_COND_FCMGT): ...this.
17340 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17341 (sve_fp_op_rev): Update accordingly.
17342 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17343
17344 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17345
17346 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17347 banner comments.
17348 * config/aarch64/check-sve-md.awk: New file.
17349 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17350 (insn-conditions.md): Depend on it.
17351
17352 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17353
17354 PR target/91385
17355 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17356 (*negsi2_cmpz_zext): Ditto.
17357
17358 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17359
17360 * config/aarch64/iterators.md (commutative): Remove.
17361
17362 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17363
17364 PR driver/91130
17365 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17366 processing COLLECT_GCC_OPTIONS.
17367 (run_gcc): Likewise.
17368
17369 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17370
17371 PR tree-optimization/91109
17372 * lra-remat.c (update_scratch_ops): Remove assignment of the
17373 hard register.
17374
17375 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17376
17377 * data-streamer.h (streamer_write_poly_uint64): Declare.
17378 (streamer_read_poly_uint64): Likewise.
17379 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17380 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17381 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17382 (add_condition): Take a poly_int64 size.
17383 * ipa-predicate.c (add_condition): Likewise.
17384 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17385 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17386 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17387 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17388 condition::size as a poly_int64.
17389 (unmodified_parm_1): Take a poly_int64 size pointer.
17390 (unmodified_parm): Likewise.
17391 (unmodified_parm_or_parm_agg_item): Likewise.
17392 (set_cond_stmt_execution_predicate): Update accordingly.
17393 (set_switch_stmt_execution_predicate): Likewise.
17394 (will_be_nonconstant_expr_predicate): Likewise.
17395 (will_be_nonconstant_predicate): Likewise.
17396 (inline_read_section): Stream condition::size as a poly_int.
17397 (ipa_fn_summary_write): Likewise.
17398
17399 2019-08-07 Martin Liska <mliska@suse.cz>
17400
17401 * fold-const.c (twoval_comparison_p): Replace int
17402 with bool as a return type.
17403 (simple_operand_p): Likewise.
17404 (operand_equal_p): Replace int with bool as a return type.
17405 * fold-const.h (operand_equal_p): Likewise.
17406
17407 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17408
17409 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17410 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17411 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17412 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17413 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17414 * tree-pretty-print.c (dump_omp_clause): Likewise.
17415 * tree-nested.c (convert_nonlocal_omp_clauses,
17416 convert_local_omp_clauses): Likewise.
17417 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17418 Likewise.
17419 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17420 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17421 clause with array or reference to array types, no matter what type
17422 except for reference it has.
17423
17424 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17425
17426 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17427
17428 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17429
17430 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17431 (arch_canonicalize): Support rv32g and rv64g and fix error
17432 handling.
17433
17434 2019-08-06 Martin Liska <mliska@suse.cz>
17435
17436 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17437 and DECL_IS_OPERATOR_DELETE_P.
17438
17439 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17440
17441 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17442 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17443 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17444 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17445 (gimplify_omp_for): Don't do C++ random access iterator clause
17446 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17447 don't predetermine the artificial iterator in case of C++ random
17448 access iterators as lastprivate, but private. For OMP_LOOP, force
17449 bind expr around simd body and force for_pre_body before the
17450 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17451 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17452 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17453 diff var of C++ random access iterators. Handle
17454 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17455 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17456 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17457 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17458 * omp-low.c (lower_rec_input_clauses): For
17459 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17460 variables instead of default constructing them.
17461 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17462 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17463 is_taskloop_ctx check from the assert to the guarding condition.
17464
17465 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17466
17467 * config/riscv/multilib-generator: (canonical_order): New.
17468 (arch_canonicalize): Dito.
17469 Apply arch_canonicalize for alts.
17470
17471 2019-08-05 Martin Sebor <msebor@redhat.com>
17472
17473 * doc/extend.texi (Common Variable Attributes): Document alias
17474 attribute.
17475
17476 2019-08-05 Marek Polacek <polacek@redhat.com>
17477
17478 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17479 * doc/invoke.texi: Document -Wcomma-subscript.
17480
17481 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17482
17483 * tree-core.h (tree_function_decl): Make function_code an
17484 independent field. Group the remaining bitfields into bytes
17485 and move decl_type so that it contines to be at a byte boundary.
17486 Leave 12 bits for future expansion.
17487
17488 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17489
17490 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17491 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17492 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17493 IFN_MASK_STORE.
17494
17495 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17496
17497 * gimple.h (gimple_move_vops): Declare.
17498 * gimple.c (gimple_move_vops): New function
17499 * gimple-fold.c (replace_call_with_call_and_fold)
17500 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17501 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17502 (gimple_fold_call): Use it.
17503 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17504 * tree-call-cdce.c (use_internal_fn): Likewise.
17505 * tree-if-conv.c (predicate_load_or_store): Likewise.
17506 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17507 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17508 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17509 (update_call_from_tree): Likewise.
17510 * tree-vect-stmts.c (vectorizable_load): Likewise.
17511 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17512
17513 2019-08-05 Martin Liska <mliska@suse.cz>
17514
17515 PR c++/91334
17516 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17517 with not arguments.
17518 (eliminate_unnecessary_stmts): Likewise.
17519
17520 2019-08-05 Richard Biener <rguenther@suse.de>
17521
17522 PR middle-end/91169
17523 * fold-const.c (get_array_ctor_element_at_index): Create
17524 offset_ints according to the sign of the index type and treat
17525 that as signed if it is obviously so.
17526
17527 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17528
17529 PR target/91341
17530 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17531 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17532 _mm256_storeu2_m128i): New function.
17533
17534 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17535
17536 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17537 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17538
17539 2019-08-05 Alan Modra <amodra@gmail.com>
17540
17541 PR target/91349
17542 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17543 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17544
17545 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17546
17547 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17548 bug that was fixed in Tcl 8.6.1.
17549
17550 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17551
17552 * config/rs6000/future.md: New file.
17553 * config/rs6000/rs6000.md: Include future.md.
17554 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17555
17556 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17557
17558 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17559 check to use targetm.slow_unaligned_access instead.
17560
17561 * function.c (assign_param_data_one): Remove unused data members.
17562
17563 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17564
17565 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17566 build_distinct_type_copy.
17567 (simd_clone_adjust_argument_types): Ditto.
17568 (simd_clone_adjust): Call build_distinct_type_copy here.
17569 (expand_simd_clones): Ditto.
17570
17571 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17572
17573 PR target/91201
17574 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17575
17576 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17577
17578 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17579 from 'const void *'.
17580 (sort_locs_in_loop_postorder_cmp): Likewise.
17581
17582 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17583
17584 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17585 (hot-bb-count-ws-permille): Likewise.
17586 (hot-bb-frequency-fraction): Likewise.
17587 (unlikely-bb-count-fraction): Likewise.
17588 * params.def (hot-bb-count-fraction): Rework description.
17589 (hot-bb-count-ws-permille): Likewise.
17590 (hot-bb-frequency-fraction): Likewise.
17591 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17592 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17593
17594 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17595
17596 PR target/91323
17597 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17598 Return false.
17599
17600 2019-08-02 Richard Biener <rguenther@suse.de>
17601
17602 * vec.h (vec::sort): Add gcc_qsort_r support.
17603 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17604 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17605 to gcc_qsort_r style callback.
17606 (sort_locs_in_loop_postorder_cmp): Likewise.
17607 (analyze_memory_references): Use gcc_sort_r interfaces.
17608 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17609
17610 2019-08-02 Martin Liska <mliska@suse.cz>
17611
17612 PR lto/91313
17613 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17614 to detect working job server.
17615 (driver::detect_jobserver): Test whether jobserver
17616 is active from GCC driver. That will prevent situation where
17617 GCC is invoked from a LD plugin and the linker already uses
17618 file descriptors suggested by make. That leads to a wrong
17619 detection.
17620 * gcc.h (driver): Add detect_jobserver.
17621 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17622 not scanning for --jobserver-auth prefix.
17623
17624 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17625
17626 PR tree-optimization/91201
17627 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17628 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17629 extraction.
17630
17631 2019-08-01 Martin Sebor <msebor@redhat.com>
17632
17633 PR c++/90947
17634 * tree.c (type_initializer_zero_p): Define.
17635 * tree.h (type_initializer_zero_p): New function.
17636
17637 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17638
17639 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17640
17641 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17642
17643 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17644 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17645 * predict.c (maybe_hot_count_p): Likewise.
17646 (maybe_hot_bb_p): Tweak comment.
17647 (maybe_hot_edge_p): Likewise.
17648 (probably_never_executed): Likewise. Minor tweak.
17649 (probably_never_executed_bb_p): Likewise.
17650 (unlikely_executed_edge_p): Likewise.
17651 (probably_never_executed_edge_p): Likewise.
17652 (optimize_function_for_size_p): Likewise.
17653 (optimize_function_for_speed_p): Likewise.
17654 (function_optimization_type): Likewise.
17655 (optimize_bb_for_size_p): Likewise.
17656 (optimize_bb_for_speed_p): Likewise.
17657 (bb_optimization_type): Likewise.
17658 (optimize_edge_for_size_p): Likewise.
17659 (optimize_edge_for_speed_p): Likewise.
17660 (optimize_insn_for_size_p): Likewise.
17661 (optimize_insn_for_speed_p): Likewise.
17662 (optimize_loop_for_size_p): Likewise.
17663 (optimize_loop_for_speed_p): Likewise.
17664 (optimize_loop_nest_for_speed_p): Likewise.
17665 (optimize_loop_nest_for_size_p): Likewise.
17666 (predictable_edge_p): Likewise.
17667 (handle_missing_profiles): Minor tweak.
17668
17669 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17670
17671 * config/rs6000/predicates.md (pcrel_external_address): Update
17672 comment.
17673
17674 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17675
17676 PR target/85693
17677 * config/i386/mmx.md (usadv8qi): New expander.
17678
17679 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17680
17681 PR c++/90590
17682 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17683 with reserved names that are in a system header.
17684
17685 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17686
17687 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17688 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17689 (*vec_extractv2si_0_zext): Ditto.
17690 (*vec_extractv2si_1): Add (rm,x) alternative.
17691 (*vec_extractv2si_1_zext): New insn pattern.
17692 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17693 insn constraint.
17694
17695 2019-08-01 Richard Biener <rguenther@suse.de>
17696
17697 * domwalk.c (bb_postorder): Remove static variable.
17698 (cmp_bb_postorder): Adjust.
17699 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17700 (dom_walker::walk): Adjust.
17701
17702 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17703
17704 * sort.cc (sort_r_ctx): New struct.
17705 (reorder23): Make templated on context type.
17706 (reorder45): Ditto.
17707 (cmp1): Ditto. Adjust signature.
17708 (netsort): Ditto.
17709 (mergesort): Ditto.
17710 [CHECKING_P] (cmp2to3): New static function. Use it...
17711 (gcc_qsort) [CHECKING_P]: ...here.
17712 (gcc_sort_r): New function.
17713 * system.h (sort_r_cmp_fn): New function typedef.
17714 (qsort_chk): Adjust signature.
17715 (gcc_sort_r): Declare.
17716 * vec.c (qsort_chk_error): Adjust.
17717 (qsort_chk): Adjust.
17718
17719 2019-08-01 Richard Biener <rguenther@suse.de>
17720
17721 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17722 (compute_antic): Localize it here.
17723
17724 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17725
17726 * common/config/riscv/riscv-common.c: Check -march string ends
17727 with null.
17728
17729 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17730
17731 * ipa-devirt.c (type_warning_cmp): Make static.
17732 (decl_warning_cmp): Ditto.
17733
17734 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17735
17736 PR target/91050
17737 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17738 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17739 use of deleted rs6000_dejagnu_cpu_index variable.
17740 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17741 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17742 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17743 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17744 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17745 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17746
17747 2019-07-31 Richard Biener <rguenther@suse.de>
17748
17749 PR tree-optimization/91280
17750 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17751 Decompose MEM_REF manually for offset handling.
17752
17753 2019-07-31 Richard Biener <rguenther@suse.de>
17754
17755 PR tree-optimization/91293
17756 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17757 of reduction stmts.
17758
17759 2019-07-31 Matt Thomas <matt@3am-software.com>
17760 Nick Hudson <nick@nthcliff.demon.co.uk>
17761 Matthew Green <mrg@eterna.com.au>
17762 Maya Rashish <coypu@sdf.org>
17763
17764 * config.gcc (hppa*-*-netbsd*): New target.
17765 * config/pa/pa-netbsd.h: New file.
17766 * config/pa/pa32-netbsd.h: New file.
17767
17768 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17769
17770 PR tree-optimization/91201
17771 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17772
17773 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17774
17775 * config/gcn/gcn-valu.md
17776 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17777 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17778 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17779 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17780 struct ilist. Add nops for delayeduse insns.
17781 * config/gcn/gcn.md (delayeduse): New attribute.
17782 (*movbi): Remove s_waitcnt from stores.
17783 (*mov<mode>_insn): Likewise.
17784 (*movti_insn): Likewise. Add delayeduse attribute.
17785 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17786 (atomic_store<mode>): Remove or adjust s_waitcnt.
17787
17788 2019-07-31 Richard Biener <rguenther@suse.de>
17789
17790 * vr-values.h (vr_values::swap_vr_value): New.
17791 (vr_values::free_value_range): likewise.
17792 * vr-values.c (vr_values::swap_vr_value): Implement.
17793 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17794 Do not return a range or take a var.
17795 (evrp_range_analyzer::stack): Change back to recording a non-const
17796 value_range *.
17797 * gimple-ssa-evrp-analyze.c
17798 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17799 value-range.
17800 (evrp_range_analyzer::pop_to_marker): Adjust.
17801 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17802 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17803 no longer needed value-range.
17804
17805 2019-07-31 Martin Liska <mliska@suse.cz>
17806
17807 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17808 have size and (or) alignment as 2nd and later arguments.
17809 Mark all of them as necessary.
17810
17811 2019-07-31 Richard Biener <rguenther@suse.de>
17812
17813 PR tree-optimization/91178
17814 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17815 Use tail-recursion.
17816
17817 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17818
17819 PR tree-optimization/91201
17820 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17821 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17822 TARGET_AVX512F.
17823 (reduc_plus_scal_<mode>): Improve formatting by introducing
17824 a temporary.
17825
17826 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17827
17828 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17829 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17830 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17831 (aarch64_init_tme_builtins): New.
17832 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17833 (aarch64_expand_builtin_tme): New.
17834 (aarch64_expand_builtin): Handle TME builtins.
17835 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17836 __ARM_FEATURE_TME when enabled.
17837 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17838 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17839 (TARGET_TME): New.
17840 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17841 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17842 UNSPECV_TCANCEL.
17843 (tstart, ttest, tcommit, tcancel): New instructions.
17844 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17845 (__tcancel, __ttest): New.
17846 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17847 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17848 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17849 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17850 * config/arm/types.md: Add new tme type attr.
17851 * doc/invoke.texi: Document "tme".
17852
17853 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17854
17855 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17856 warn_unused_result attribute.
17857 (cmse_check_address_range): Add warn_unused_result attribute.
17858
17859 2019-07-31 Richard Biener <rguenther@suse.de>
17860
17861 PR tree-optimization/91257
17862 * tree-vrp.c (union_ranges): Unify equality and less tests
17863 by using compare_values. Re-order cheap tests first.
17864
17865 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17866
17867 PR middle-end/91301
17868 * gimplify.c (gimplify_omp_for): If for class iterator on
17869 distribute parallel for there is no data sharing clause
17870 on inner_for_stmt, look for private clause on combined
17871 parallel too and if found, move it to inner_for_stmt.
17872
17873 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17874
17875 * lra-int.h (lra_operand_data): Remove early_clobber field.
17876 (lra_insn_reg): Likewise.
17877 * lra.c (debug_operand_data): Update accordingly.
17878 (setup_operand_alternative): Likewise.
17879 (new_insn_reg): Likewise. Remove early_clobber parameter.
17880 (collect_non_operand_hard_regs): Update call accordingly.
17881 Don't assign to lra_insn_reg::early_clobber.
17882 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17883 and update calls to new_insn_reg.
17884 (lra_update_insn_regno_info): Update calls accordingly.
17885 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17886 alternative number as a parameter and test whether the operand
17887 is earlyclobbered in that particular alternative.
17888 (process_alt_operands): Update call accordingly. Use per-alternative
17889 checks for earyclobber here too.
17890 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17891 against zero for IRA_UNKNOWN_ALT.
17892
17893 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17894
17895 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17896
17897 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17898
17899 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17900 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17901
17902 2019-07-30 Martin Liska <mliska@suse.cz>
17903
17904 PR ipa/89330
17905 * cgraph.c (cgraph_edge::make_direct): Use
17906 edge->indirect_unknown_callee as edge->resolve_speculation can
17907 deallocate edge which is this pointer.
17908
17909 2019-07-30 Richard Biener <rguenther@suse.de>
17910
17911 PR tree-optimization/91257
17912 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17913
17914 2019-07-30 Martin Liska <mliska@suse.cz>
17915
17916 * doc/invoke.texi: Document new behavior.
17917 * lto-wrapper.c (cpuset_popcount): New function
17918 is a copy of libgomp/config/linux/proc.c.
17919 (init_num_threads): Likewise.
17920 (run_gcc): Automatically detect core count for -flto.
17921 (jobserver_active_p): New function.
17922
17923 2019-07-30 Richard Biener <rguenther@suse.de>
17924
17925 PR tree-optimization/91257
17926 * bitmap.h (bitmap_ior_into_and_free): Declare.
17927 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17928 whether to add the unliked element to the freelist.
17929 (bitmap_list_insert_element_after): Add defaulted param for
17930 an already allocated element.
17931 (bitmap_ior_into_and_free): New function.
17932 * tree-ssa-structalias.c (condense_visit): Reduce the
17933 ponts-to and edge bitmaps of the SCC members in a
17934 logarithmic fashion rather than all to one.
17935
17936 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17937
17938 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17939 parameter. When nonnull, make sure that the addition or subtraction
17940 has the same condition.
17941 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17942 for CFN_COND_MUL too.
17943
17944 2019-07-30 Richard Biener <rguenther@suse.de>
17945
17946 PR tree-optimization/91291
17947 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17948 constant values.
17949
17950 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17951
17952 PR middle-end/91216
17953 * omp-low.c (global_nonaddressable_vars): New variable.
17954 (use_pointer_for_field): For global decls, if they are non-addressable,
17955 remember it in the global_nonaddressable_vars bitmap, if they are
17956 addressable and in the global_nonaddressable_vars bitmap, ignore their
17957 TREE_ADDRESSABLE bit.
17958 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17959 vars in global_nonaddressable_vars bitmap.
17960 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17961
17962 PR target/91150
17963 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17964 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17965 comparison to unsigned HOST_WIDE_INT before shifting it left.
17966
17967 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17968
17969 * config/i386/i386.md (movstrict<mode>): Use register_operand
17970 predicate for operand 0. Add expander condition. Assert that
17971 operand 0 is a SUBREG RTX.
17972 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17973 Update operand constraints and insn condition.
17974 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17975 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17976 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17977 Update operand 0 constraints.
17978 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17979
17980 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17981
17982 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17983 when -m{code,data}-region are used without -mlarge.
17984 * config/msp430/msp430.c (msp430_option_override): Error when a
17985 non-default code or data region is used without -mlarge.
17986 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17987 attributes when they are used without -mlarge.
17988
17989 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17990
17991 PR target/70320
17992 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17993
17994 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17995
17996 PR middle-end/91242
17997 * wide-int.h (generic_wide_int::sext_elt): New function.
17998 * inchash.h (hash::add_wide_int): Use it instead of elt.
17999
18000 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18001
18002 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18003 CODE_FOR_arm_##.
18004 * config/arm/arm.md (<crc_variant>): Rename to...
18005 (arm_<crc_variant>): ... This.
18006 (<cdp>): Rename to...
18007 (arm_<cdp>): ... This.
18008 (<ldc>): Rename to...
18009 (arm_<ldc>): ... This.
18010 (<stc>): Rename to...
18011 (arm_<stc>): ... This.
18012 (<mcr>): Rename to...
18013 (arm_<mcr>): ... This.
18014 (<mrc>): Rename to...
18015 (arm_<mrc>): ... This.
18016 (<mcrr>): Rename to...
18017 (arm_<mcrr>): ... This.
18018 (<mrrc>): Rename to...
18019 (arm_<mrrc>): ... This.
18020
18021 2019-07-29 Richard Biener <rguenther@suse.de>
18022
18023 PR tree-optimization/91257
18024 * tree-ssa-sccvn.h (struct vn_avail): New.
18025 (struct vn_ssa_aux): Add avail member.
18026 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18027 member, add m_avail_freelist one.
18028 (rpo_elim::~rpo_elim): Remove.
18029 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18030 data structure.
18031 (rpo_elim::eliminate_push_avail): Likewise.
18032 (do_unwind): Likewise.
18033 (do_rpo_vn): Likewise.
18034
18035 2019-07-29 Richard Biener <rguenther@suse.de>
18036
18037 PR tree-optimization/91257
18038 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18039 most cases, instead call compare_values which handles the
18040 symbolic ranges we handle specially.
18041 (compare_values_warnv): Do not call operand_less_p but open-code
18042 the effective fold calls. Avoid converting so much.
18043
18044 2019-07-29 Martin Liska <mliska@suse.cz>
18045
18046 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18047 remove LHS of operator new call. It's handled latter.
18048
18049 2019-07-29 Richard Biener <rguenther@suse.de>
18050
18051 PR tree-optimization/91267
18052 * vr-values.c (vr_values::update_value_range): Add early return
18053 for effectively VARYING lattice entry.
18054
18055 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18056
18057 PR debug/86638
18058 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18059 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18060 necessary if keep_all_vdefs_p is true.
18061 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18062 that keep_all_vdefs_p is false.
18063 (mark_all_reaching_defs_necessary): Likewise.
18064 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18065
18066 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18067
18068 * common.opt (Og): Change the initial value of flag_dse to 0.
18069 * opts.c (default_options_table): Move OPT_ftree_dse from
18070 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18071 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18072 entry before the OPT_ftree_sra entry.
18073 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18074 of flags disabled by Og.
18075
18076 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18077
18078 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18079 variables for -Og.
18080
18081 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18082
18083 * doc/sourcebuild.texi (check-function-bodies): Document.
18084
18085 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18086
18087 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18088 VEC_DUPLICATE of a fixed-length vector even if the result
18089 is variable-length. Likewise fold a duplicate of a
18090 variable-length vector if the variable-length vector is
18091 itself a duplicate of a fixed-length sequence.
18092 (test_vector_ops_duplicate): Test more cases.
18093
18094 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18095
18096 * vector-builder.h (vector_builder): Add a shape template parameter.
18097 (vector_builder::new_unary_operation): New function, generalizing
18098 the old tree_vector_builder function.
18099 (vector_builder::new_binary_operation): Likewise.
18100 (vector_builder::binary_encoded_nelts): Likewise.
18101 * int-vector-builder.h (int_vector_builder): Update template
18102 parameters to vector_builder.
18103 (int_vector_builder::shape_nelts): New function.
18104 * rtx-vector-builder.h (rtx_vector_builder): Update template
18105 parameters to vector_builder.
18106 (rtx_vector_builder::shape_nelts): New function.
18107 (rtx_vector_builder::nelts_of): Likewise.
18108 (rtx_vector_builder::npatterns_of): Likewise.
18109 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18110 * tree-vector-builder.h (tree_vector_builder): Update template
18111 parameters to vector_builder.
18112 (tree_vector_builder::shape_nelts): New function.
18113 (tree_vector_builder::nelts_of): Likewise.
18114 (tree_vector_builder::npatterns_of): Likewise.
18115 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18116 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18117 (tree_vector_builder::new_binary_operation): Delete.
18118 (tree_vector_builder::binary_encoded_nelts): Likewise.
18119 * simplify-rtx.c: Include rtx-vector-builder.h.
18120 (distributes_over_addition_p): New function.
18121 (simplify_const_unary_operation)
18122 (simplify_const_binary_operation): Generalize handling of vector
18123 constants to include variable-length vectors.
18124 (test_vector_ops_series): Add more tests.
18125
18126 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18127
18128 PR lto/91222
18129 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18130 than INDENTIFIER_POINTER.
18131
18132 2019-07-28 Martin Liska <mliska@suse.cz>
18133
18134 PR ipa/89330
18135 * cgraph.c (symbol_table::create_edge): Always allocate
18136 a cgraph_edge.
18137 (symbol_table::free_edge): Store summary_id to
18138 edge_released_summary_ids if != -1;
18139 * cgraph.h (NEXT_FREE_NODE): Remove.
18140 (SET_NEXT_FREE_NODE): Likewise.
18141 (NEXT_FREE_EDGE): Likewise.
18142 (symbol_table::release_symbol): Store summary_id to
18143 cgraph_released_summary_ids if != -1;
18144 (symbol_table::allocate_cgraph_symbol): Always allocate
18145 a cgraph_node.
18146
18147 2019-07-28 Alan Modra <amodra@gmail.com>
18148
18149 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18150 gen_sibcall.
18151
18152 2019-07-28 Alan Modra <amodra@gmail.com>
18153
18154 PR target/91135
18155 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18156 define.
18157 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18158 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18159 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18160
18161 2019-07-28 Alan Modra <amodra@gmail.com>
18162
18163 PR target/91050
18164 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18165 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18166 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18167 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18168 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18169 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18170 in asm_default spec.
18171 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18172 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18173
18174 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18175
18176 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18177
18178 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18179
18180 PR target/89517
18181 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18182 * config/aarch64/aarch64-option-extensions.def: Add new comments
18183 and restore easier to read options.
18184
18185 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18186
18187 * convert.c (convert_to_real_1): Move part of conversion code...
18188 * match.pd: ...To here.
18189
18190 2019-07-26 Martin Jambor <mjambor@suse.cz>
18191
18192 PR ipa/89330
18193 * ipa-inline-transform.c (check_speculations_1): New function.
18194 (push_all_edges_in_set_to_vec): Likewise.
18195 (check_speculations): Use check_speculations_1, new parameter
18196 new_edges.
18197 (inline_call): Pass new_edges to check_speculations.
18198 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18199 NULL.
18200 (speculation_useful_p): Early return true if edge is inlined, remove
18201 later checks for inline_failed.
18202
18203 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18204
18205 PR rtl-optimization/91223
18206 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18207 matching with INOUT operand.
18208
18209 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18210
18211 * stmt.c (expand_case): Try to narrow the index type if it's larger
18212 than a word. Tidy up.
18213
18214 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18215
18216 * cif-code.def (NEVER_CALL): New code.
18217 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18218 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18219
18220 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18221
18222 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18223 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18224
18225 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18226
18227 * ipa-devirt.c (add_type_duplicate): Fix return value.
18228
18229 2019-07-25 Richard Biener <rguenther@suse.de>
18230
18231 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18232 type parameter and use it instead of guessing expression
18233 type from the first operand.
18234 (extract_range_from_binary_expr): Pass expr_type down.
18235
18236 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18237
18238 * config/arm/arm.md (SATrev): Change to code attribute.
18239 (*satsi_<SAT:code>): Adjust for the above.
18240 (*satsi_<SAT:code>_shift): Likewise.
18241
18242 2019-07-25 Richard Biener <rguenther@suse.de>
18243
18244 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18245 Make value_range * temporary const.
18246 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18247 Likewise.
18248 (evrp_range_analyzer::record_ranges_from_): Likewise.
18249 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18250 deal with having recorded a const one.
18251 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18252 Return a const value_range *.
18253 (evrp_range_analyzer::pop_value_range): Likewise.
18254 (evrp_range_analyzer::stack): Record const value_range *s.
18255 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18256 Adjust.
18257 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18258 (format_integer): Likewise.
18259 (sprintf_dom_walker::handle_gimple_call): Likewise.
18260 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18261 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18262 (vrp_prop::get_value_range): Adjust.
18263 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18264 modifying the lattice in-place.
18265 (vrp_prop::visit_stmt): Likewise.
18266 * vr-values.c (vr_values::get_lattice_entry): New private method.
18267 (vr_values::get_value_range): Wrap it and return a const
18268 value_range *.
18269 (vr_values::set_def_to_varying): New.
18270 (vr_values::set_defs_to_varying): Use it.
18271 (vr_values::update_value_range): Likewise.
18272 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18273 (values::op_with_constant_singleton_va): Likewise.
18274 (vr_values::extract_range_for_var_from_co): Likewise.
18275 (vr_values::extract_range_from_ssa_name): Likewise.
18276 (vr_values::extract_range_from_cond_expr): Likewise.
18277 (vr_values::extract_range_basic): Likewise.
18278 (compare_ranges): Take const value_range *, adjust.
18279 (compare_range_with_value): Likewise.
18280 (vrp_valueize): Adjust.
18281 (vrp_valueize_1): Likewise.
18282 (vr_values::get_vr_for_comparison): Return a const value_range *.
18283 (vr_values::compare_name_with_value): Adjust.
18284 (vr_values::compare_names): Likewise.
18285 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18286 Likewise.
18287 (vr_values::vrp_evaluate_conditional): Likewise.
18288 (find_case_label_ranges): Take a const value_range *.
18289 (vr_values::vrp_visit_switch_stmt): Adjust.
18290 (vr_values::extract_range_from_phi_node): Likewise.
18291 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18292 (vr_values::simplify_abs_using_ranges): Likewise.
18293 (test_for_singularity): Take a const value_range *.
18294 (range_fits_type_p): Likewise.
18295 (vr_values::simplify_cond_using_ranges_1): Adjust.
18296 (vr_values::simplify_cond_using_ranges_2): Likewise.
18297 (vr_values::simplify_switch_using_ranges): Likewise.
18298 (vr_values::simplify_float_conversion_usi): Likewise.
18299 (vr_values::two_valued_val_range_p): Likewise.
18300 * vr-values.h (vr_values::get_value_range): Return a const
18301 value_range *.
18302 (vr_values::set_def_to_varying): New.
18303 (vr_values::get_lattice_entry): New private method.
18304 (vr_values::get_vr_for_comparison): Return a const value_range *.
18305
18306 2019-07-25 Martin Liska <mliska@suse.cz>
18307 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18308
18309 PR c++/23383
18310 * common.opt: Add -fallocation-dce
18311 * gimple.c (gimple_call_operator_delete_p): New.
18312 * gimple.h (gimple_call_operator_delete_p): Likewise.
18313 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18314 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18315 DECL_IS_OPERATOR_DELETE_P.
18316 (mark_all_reaching_defs_necessary_1): Likewise.
18317 (propagate_necessity): Likewise.
18318 (eliminate_unnecessary_stmts): Handle
18319 gimple_call_operator_delete_p.
18320 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18321 Add packing of OPERATOR_DELETE.
18322 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18323 Similarly here.
18324 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18325 (DECL_SET_IS_OPERATOR_DELETE): New.
18326 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18327
18328 2019-07-25 Martin Liska <mliska@suse.cz>
18329
18330 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18331 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18332 * coverage.c (coverage_begin_function): Likewise.
18333 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18334 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18335 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18336 (sem_item::hash_referenced_symbol_properties): Likewise.
18337 * lto-streamer-out.c (hash_tree): Likewise.
18338 * predict.c (expr_expected_value_1): Likewise.
18339 * tree-inline.c (expand_call_inline): Likewise.
18340 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18341 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18342 * tree-core.h (enum function_decl_type): New enum.
18343 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18344 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18345 (set_function_decl_type): Likewise.
18346 (DECL_IS_OPERATOR_NEW_P): New.
18347 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18348 (DECL_LAMBDA_FUNCTION): Likewise.
18349 (DECL_LAMBDA_FUNCTION_P): Likewise.
18350 (DECL_IS_OPERATOR_NEW): Remove.
18351 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18352
18353 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18354
18355 * ipa-profile.c (get_most_common_single_value): Use
18356 get_nth_most_common_value.
18357 * profile.c (sort_hist_value): New function.
18358 (compute_value_histograms): Call sort_hist_value to sort the
18359 values after loading from disk.
18360 * value-prof.c (get_most_common_single_value): Rename to ...
18361 get_nth_most_common_value. Add input params n, return
18362 the n_th value and count.
18363 (gimple_divmod_fixed_value_transform): Use
18364 get_nth_most_common_value.
18365 (gimple_ic_transform): Likewise.
18366 (gimple_stringops_transform): Likewise.
18367 * value-prof.h (get_most_common_single_value): Add input params
18368 n, default to 0.
18369
18370 2019-07-25 Richard Biener <rguenther@suse.de>
18371
18372 PR tree-optimization/91236
18373 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18374 size of CONSTRUCTOR write. Fix buffer size we pass to
18375 native_encode_expr.
18376
18377 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18378
18379 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18380 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18381 r273773.
18382
18383 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18384
18385 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18386 explicitly disabled with --disable-initfini-array.
18387
18388 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18389
18390 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18391 if-exists.
18392
18393 2019-07-24 Martin Sebor <msebor@redhat.com>
18394
18395 PR tree-optimization/91183
18396 PR tree-optimization/86688
18397 * builtins.c (compute_objsize): Handle MEM_REF.
18398 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18399 (get_min_string_length): Remove.
18400 (count_nonzero_bytes): New function.
18401 (handle_char_store): Rename...
18402 (handle_store): to this. Handle multibyte stores via integer types.
18403 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18404 function name.
18405
18406 2019-07-24 Martin Sebor <msebor@redhat.com>
18407
18408 PR driver/80545
18409 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18410 (diagnostic_report_diagnostic): Same.
18411 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18412 (diagnostic_context::lang_mask): New data member.
18413 * ipa-pure-const.c (suggest_attribute): Use
18414 lang_hooks.option_lang_mask ().
18415 * opts-common.c (option_enabled): Handle new argument.
18416 (get_option_state): Pass an additional argument.
18417 * opts.c (print_filtered_help): Print supported languages for
18418 unsupported options. Adjust printing of current state.
18419 * opts.h (option_enabled): Add argument.
18420 * toplev.c (print_switch_values): Use lang_mask.
18421 (general_init): Set global_dc->lang_mask.
18422
18423 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18424
18425 PR bootstrap/87030
18426 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18427
18428 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18429
18430 * cgraphunit.c (symbol_table::compile): Start and stop
18431 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18432 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18433
18434 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18435
18436 * gimplify.c (flag_instrument_functions_exclude_p): Include
18437 namespace/class information in the printable name.
18438 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18439 to tokens entered into the vector.
18440
18441 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18442
18443 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18444 (get_static_chain): Call it instead of build_simple_mem_ref.
18445 (get_frame_field): Likewise.
18446 (get_nonlocal_debug_decl): Likewise.
18447 (convert_nonlocal_reference_op): Likewise.
18448
18449 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18450
18451 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18452 declaration.
18453 (arc_compute_frame_size): Millicode is disabled when compiling
18454 ISR.
18455 (arc_return_address_register): Likewise.
18456 (arc_compute_function_type): Likewise.
18457 (arc_compute_frame_size): Likewise.
18458 (secondary_reload_info): Likewise.
18459 (arc_get_unalign): Likewise.
18460 (arc_can_use_return_insn): Declare.
18461 * config/arc/arc.c (AUX_LP_START): Define
18462 (AUX_LP_END): Likewise.
18463 (arc_frame_info): Update gmask member to 64-bit datum.
18464 (GMASK_LEN): Update.
18465 (arc_compute_function_type): Make it static, move it forward.
18466 (arc_must_save_register): Update, consider the extra regs.
18467 (arc_compute_millicode_save_restore_regs): Update to use the 64
18468 bit gmask.
18469 (arc_compute_frame_size): Likewise.
18470 (arc_enter_leave_p): Likewise.
18471 (arc_save_callee_saves): Likewise.
18472 (arc_restore_callee_saves): Likewise.
18473 (arc_save_callee_enter): Likewise.
18474 (arc_restore_callee_leave): Likewise.
18475 (arc_save_callee_milli): Likewise.
18476 (arc_restore_callee_milli): Likewise.
18477 (arc_expand_prologue): Add new interrupt handling.
18478 (arc_return_address_register): Make it static, move it forward.
18479 (arc_expand_epilogue): Add new interrupt handling.
18480 (arc_get_unalign): Delete.
18481 (arc_epilogue_uses): Make sure we do not remove the extra
18482 saved/restored registers when interrupt.
18483 (arc_can_use_return_insn): New function.
18484 (push_reg): Likewise.
18485 (pop_reg): Likewise.
18486 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18487 procedures.
18488 (arc_restore_callee_saves): Likewise, but restoring.
18489 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18490 (R33_REG): Likewise.
18491 (R34_REG): Likewise.
18492 (R35_REG): Likewise.
18493 (R36_REG): Likewise.
18494 (R37_REG): Likewise.
18495 (R38_REG): Likewise.
18496 (R39_REG): Likewise.
18497 (R45_REG): Likewise.
18498 (R46_REG): Likewise.
18499 (R47_REG): Likewise.
18500 (R48_REG): Likewise.
18501 (R49_REG): Likewise.
18502 (R50_REG): Likewise.
18503 (R51_REG): Likewise.
18504 (R52_REG): Likewise.
18505 (R53_REG): Likewise.
18506 (R54_REG): Likewise.
18507 (R55_REG): Likewise.
18508 (R56_REG): Likewise.
18509 (R58_REG): Likewise.
18510 (type): Add rtie attribute.
18511 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18512 (movsi_insn): Accept moves to lp_count.
18513 (rtie): Update pattern.
18514 (simple_return): Simplify it, don't use this pattern as a return
18515 from an interrupt.
18516 (arc600_rtie): New pattern.
18517 (p_return_i): Clean up.
18518 (return): Likewise.
18519 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18520 family CPUs.
18521 * config/arc/predicates.md (move_src_operand): Consider lp_count
18522 as a register.
18523
18524 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18525
18526 * config/s390/predicates.md (addv_const_operand): New predicate.
18527 * config/s390/s390-modes.def (CCO): New condition code mode.
18528 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18529 (s390_branch_condition_mask): Likewise.
18530 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18531 ("mulv<mode>4"): New expanders.
18532 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18533 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18534 pattern definitions.
18535
18536 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18537
18538 PR middle-end/91166
18539 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18540 (define_predicates): Add entry for uniform_vector_p.
18541 (vec_same_elem_p): New match pattern.
18542
18543 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18544
18545 PR bootstrap/87030
18546 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18547 * config/i386/darwin32-biarch.h .. to here.
18548 * config/i386/darwin64-biarch.h: Adjust comments.
18549 * config/rs6000/darwin32-biarch.h: Likewise.
18550 * config/rs6000/darwin64-biarch.h: Likewise.
18551 * config.gcc: Missed commit from r273746
18552 (*-*-darwin*): Don't include CPU t-darwin here.
18553 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18554 an error message if i686-darwin configuration is attempted for
18555 Darwin >= 18.
18556
18557 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18558
18559 PR bootstrap/87030
18560 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18561 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18562 an error message if i686-darwin configuration is attempted for
18563 Darwin >= 18.
18564 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18565 (powerpc-*-darwin*): Use biarch files where needed.
18566 (powerpc64-*-darwin*): Likewise.
18567 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18568 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18569 arch case.
18570 * config/i386/darwin32-biarch.h: New.
18571 * config/i386/darwin64.h: Rename.
18572 * config/i386/darwin64-biarch.h: To this.
18573 * config/i386/t-darwin: Rename.
18574 * config/i386/t-darwin32-biarch: To this.
18575 * config/i386/t-darwin64: Rename.
18576 * config/i386/t-darwin64-biarch: To this.
18577 * config/rs6000/darwin32-biarch.h: New.
18578 * config/rs6000/darwin64.h: Rename.
18579 * config/rs6000/darwin64-biarch.h: To this.
18580 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18581 arch case.
18582 * config/rs6000/t-darwin8: Rename.
18583 * config/rs6000/t-darwin32-biarch: To this.
18584 * config/rs6000/t-darwin64 Rename.
18585 * config/rs6000/t-darwin64-biarch: To this.
18586
18587 2019-07-23 Martin Sebor <msebor@redhat.com>
18588
18589 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18590
18591 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18592
18593 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18594 (rh): New alias for it.
18595
18596 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18597
18598 * gdbhooks.py: Pass replace=True to
18599 gdb.printing.register_pretty_printer.
18600
18601 2019-07-23 Richard Biener <rguenther@suse.de>
18602
18603 PR debug/91231
18604 * lto-streamer-in.c (input_function): Drop inline-entry markers
18605 that ended up with an unknown location block.
18606
18607 2019-07-23 Richard Biener <rguenther@suse.de>
18608
18609 PR tree-optimization/83518
18610 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18611 init from a constant even when partial defs are already recorded.
18612
18613 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18614
18615 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18616 * config/i386/znver1.md: Enable patterns for znver2 and add store
18617 variants which use extra AGU unit.
18618
18619 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18620
18621 * config/i386/i386-options.c (ix86_option_override_internal): Default
18622 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18623 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18624 for ZNVER2.
18625
18626 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18627
18628 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18629 (znver2_costs): Update 256 bit SSE costs and multiplication.
18630
18631 2019-07-23 Jan Beulich <jbeulich@suse.com>
18632
18633 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18634 Require only AVX512F.
18635 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18636 alternative expanding to vpternlog.
18637
18638 2019-07-23 Martin Liska <mliska@suse.cz>
18639
18640 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18641 to -flto in dwarf producer string.
18642
18643 2019-07-23 Richard Biener <rguenther@suse.de>
18644
18645 * tree-cfg.c (label_for_bb): Remove global var.
18646 (main_block_label): Take label_for_bb as argument.
18647 (cleanup_dead_labels_eh): Likewise, adjust.
18648 (cleanup_dead_labels): Adjust.
18649
18650 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18651
18652 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18653 Configurations): Add documentation for __builtin_mtfsf.
18654
18655 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18656
18657 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18658 * config/riscv/riscv.c (riscv_constant_alignment): Use
18659 riscv_align_data_type.
18660 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18661 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18662 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18663 * config/riscv/riscv.opt (malign-data): New.
18664 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18665
18666 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18667
18668 * cgraph.c (dump_graphviz): New function.
18669 * cgraph.h (dump_graphviz): New function.
18670 * symtab.c (dump_graphviz): New function.
18671
18672 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18673
18674 * config/aarch64/aarch64-simd.md
18675 (*aarch64_simd_sra<mode>): New.
18676 * config/aarch64/iterators.md
18677 (SHIFTRT): New iterator.
18678 (sra_op): New attribute.
18679
18680 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18681
18682 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18683 callee-saved regs R4->R10 in an interrupt function that calls another
18684 function.
18685
18686 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18687
18688 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18689 (_mm_blendv_epi8): New.
18690
18691 2019-07-22 Richard Biener <rguenther@suse.de>
18692
18693 PR tree-optimization/91221
18694 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18695 restrict partial-def handling of empty constructors and
18696 memset to refs with known offset.
18697
18698 2019-07-22 Jan Beulich <jbeulich@suse.com>
18699
18700 * config/i386/sse.md (ternlogsuffix): New.
18701 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18702 AVX512F is in use.
18703 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18704
18705 2019-07-22 Martin Liska <mliska@suse.cz>
18706
18707 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18708 comment.
18709 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18710
18711 2019-07-22 Martin Liska <mliska@suse.cz>
18712
18713 * lto-section-in.c (lto_get_section_data):
18714 Use new function get_compression.
18715 * lto-streamer-out.c (produce_lto_section): Use
18716 set_compression to encode compression algorithm.
18717 * lto-streamer.h (struct lto_section): Do not
18718 use bitfields in the format.
18719
18720 2019-07-22 Martin Liska <mliska@suse.cz>
18721
18722 PR driver/91172
18723 * opts-common.c (decode_cmdline_option): Decode
18724 argument of -Werror and check it for a wrong language.
18725 * opts-global.c (complain_wrong_lang): Remove such case.
18726
18727 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18728
18729 * config/arc/arc.c (prepare_move_operands): Always use an
18730 intermediate register when storing a TLS symbols.
18731
18732 2019-07-22 Stafford Horne <shorne@gmail.com>
18733
18734 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18735 force_reg.
18736
18737 2019-07-22 Stafford Horne <shorne@gmail.com>
18738
18739 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18740 and munordered-float validations.
18741 * config/or1k/constraints.md (d): New register constraint.
18742 * config/or1k/predicates.md (fp_comparison_operator): New.
18743 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18744 operands.
18745 (or1k_expand_compare): Normalize unordered comparisons.
18746 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18747 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18748 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18749 * config/or1k/or1k.md (type): Add fpu.
18750 (fpu): New instruction reservation.
18751 (F, f, fr, fi, FI, FOP, fop): New.
18752 (<fop><F:mode>3): New ALU instruction definition.
18753 (float<fi><F:mode>2): New conversion instruction definition.
18754 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18755 (fpcmpcc): New code iterator.
18756 (*sf_fp_insn): New instruction definition.
18757 (cstore<F:mode>4): New expand definition.
18758 (cbranch<F:mode>4): New expand definition.
18759 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18760 munordered-float): New options.
18761 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18762 munordered-float.
18763
18764 2019-07-22 Stafford Horne <shorne@gmail.com>
18765
18766 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18767 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18768 documenation to be more clear.
18769 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18770 more clear.
18771 * config/or1k/or1k.opt (mrori): New option.
18772 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18773 msfimm, mshftimm): Rewrite documentation to be more clear.
18774 * config/or1k/or1k.md (insn_support): Add ror and rori.
18775 (enabled): Add conditions for ror and rori.
18776 (rotrsi3): Replace condition for shftimm with ror and rori.
18777
18778 2019-07-22 Stafford Horne <shorne@gmail.com>
18779
18780 PR target/90363
18781 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18782 (extend<mode>si2): Update predicate.
18783 * config/or1k/predicates.md (volatile_mem_operand): New.
18784 (reg_or_mem_operand): New.
18785
18786 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18787
18788 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18789 * config/rs6000/rs6000-call.c: ... to here.
18790
18791 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18792
18793 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18794 memory.
18795
18796 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18797
18798 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18799
18800 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18801
18802 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18803
18804 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18805
18806 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18807 (any_memory_operand): New predicate.
18808 (reg_or_mem_operand): Use it.
18809
18810 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18811
18812 PR target/91204
18813 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18814
18815 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18816
18817 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18818 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18819
18820 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18821
18822 * tree.def (OMP_LOOP): New tree code.
18823 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18824 (enum omp_clause_bind_kind): New enum.
18825 (struct tree_omp_clause): Add subcode.bind_kind.
18826 * tree.h (OMP_LOOP_CHECK): Rename to ...
18827 (OMP_LOOPING_CHECK): ... this.
18828 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18829 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18830 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18831 (OMP_CLAUSE_BIND_KIND): Define.
18832 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18833 bind clause entries.
18834 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18835 * tree-pretty-print.c (dump_omp_clause): Likewise.
18836 (dump_generic_node): Handle OMP_LOOP.
18837 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18838 (in_omp_construct): New variable.
18839 (is_gimple_stmt): Handle OMP_LOOP.
18840 (gimplify_scan_omp_clauses): For lastprivate don't set
18841 check_non_private if code == OMP_LOOP. For reduction clause
18842 on OMP_LOOP combined with parallel or teams propagate as shared
18843 on the combined construct. Handle OMP_CLAUSE_BIND.
18844 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18845 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18846 for constructs from a loop construct to gimplify_scan_omp_clauses.
18847 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18848 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18849 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18850 to match the implicit ORT_TARGET construct around whole body.
18851 Temporarily clear in_omp_construct when processing body.
18852 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18853 etc. temporarily set in_omp_construct when processing body.
18854 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18855 * omp-low.c (struct omp_context): Add loop_p.
18856 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18857 in that the original var might be private.
18858 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18859 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18860 addition of loop construct.
18861 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18862
18863 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18864 lastprivate non-addressable iterator of a collapse(1) simd.
18865
18866 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18867
18868 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18869 as in rs6000.c.
18870
18871 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18872
18873 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18874 refer to default conditions. Warn for the 'y' spec which is ignored
18875 by current linkers.
18876
18877 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18878
18879 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18880 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18881 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18882 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18883 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18884 init_cumulative_args, rs6000_promote_function_mode,
18885 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18886 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18887 rs6000_function_arg_boundary, rs6000_parm_offset,
18888 rs6000_parm_start, rs6000_arg_size,
18889 rs6000_darwin64_record_arg_advance_flush,
18890 rs6000_darwin64_record_arg_advance_recurse,
18891 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18892 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18893 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18894 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18895 rs6000_finish_function_arg, rs6000_function_arg,
18896 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18897 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18898 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18899 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18900 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18901 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18902 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18903 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18904 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18905 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18906 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18907 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18908 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18909 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18910 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18911 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18912 get_element_number, altivec_expand_vec_set_builtin,
18913 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18914 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18915 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18916 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18917 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18918 rs6000_expand_builtin, rs6000_vector_type,
18919 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18920 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18921 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18922 to rs6000-call.c.
18923 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18924 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18925 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18926 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18927 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18928 init_cumulative_args, rs6000_promote_function_mode,
18929 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18930 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18931 rs6000_function_arg_boundary, rs6000_parm_offset,
18932 rs6000_parm_start, rs6000_arg_size,
18933 rs6000_darwin64_record_arg_advance_flush,
18934 rs6000_darwin64_record_arg_advance_recurse,
18935 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18936 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18937 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18938 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18939 rs6000_finish_function_arg, rs6000_function_arg,
18940 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18941 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18942 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18943 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18944 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18945 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18946 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18947 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18948 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18949 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18950 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18951 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18952 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18953 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18954 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18955 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18956 get_element_number, altivec_expand_vec_set_builtin,
18957 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18958 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18959 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18960 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18961 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18962 rs6000_expand_builtin, rs6000_vector_type,
18963 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18964 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18965 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18966 to here from rs6000.c.
18967 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18968 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18969 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18970 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18971 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18972 rs6000_return_in_memory, rs6000_return_in_msb,
18973 rs6000_pass_by_reference, setup_incoming_varargs,
18974 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18975 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18976 rs6000_function_arg_padding, rs6000_function_arg,
18977 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18978 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18979 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18980 rs6000_passes_long_double, rs6000_passes_vector,
18981 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18982 altivec_builtin_mask_for_load) Add declarations.
18983 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18984 * config/config.gcc: Add new source file rs6000-call.c to garbage
18985 collector and extra_objs.
18986
18987 2019-07-19 Jeff Law <law@redhat.com>
18988
18989 PR tree-optimization/86061
18990 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18991 strncpy. Drop some trivial dead code.
18992 (maybe_trim_memstar_call): Handle strncpy.
18993
18994 2019-07-19 Richard Biener <rguenther@suse.de>
18995
18996 PR tree-optimization/91211
18997 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18998 memset encoding size.
18999
19000 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19001
19002 PR target/91204
19003 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19004
19005 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19006
19007 PR ipa/91194
19008 * ipa-inline.c (recursive_inlining): Fix limits check.
19009
19010 2019-07-19 Richard Biener <rguenther@suse.de>
19011
19012 PR tree-optimization/91200
19013 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19014 no PHI nodes in middle-bb.
19015
19016 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19017
19018 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19019 to +sve-bitperm.
19020 * config/aarch64/aarch64-option-extensions.def: Likewise.
19021
19022 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19023
19024 PR middle-end/91190
19025 * function.c (insert_temp_slot_address): Store into the hash table
19026 a copy of address to avoid RTL sharing issues.
19027
19028 2019-07-19 Richard Biener <rguenther@suse.de>
19029
19030 PR tree-optimization/91207
19031 Revert
19032 2019-07-17 Richard Biener <rguenther@suse.de>
19033
19034 PR tree-optimization/91178
19035 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19036 loads with a gap larger than the vector size always use
19037 VMAT_STRIDED_SLP.
19038 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19039 avoid loading vectors that are only contained in the gap
19040 and thus are not needed.
19041
19042 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19043
19044 * config/i386/i386.md (*addqi_2_slp): Remove.
19045 (*<code>qi_2_slp): Ditto.
19046
19047 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19048
19049 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19050 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19051 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19052 Rename function from rs6000_prefixed_address.
19053 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19054 TARGET_HAS_TOC.
19055 (TARGET_TOC): Likewise.
19056 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19057 rs6000.h.
19058 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19059 TARGET_HAS_TOC.
19060 (TARGET_TOC): Likewise.
19061 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19062 rs6000.h.
19063 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19064 TARGET_HAS_TOC.
19065 (TARGET_TOC): Likewise.
19066 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19067 check to require -mcmodel=medium for pc-relative addressing.
19068 (create_TOC_reference): Add assertion for TARGET_TOC.
19069 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19070 TARGET_NO_TOC.
19071 (rs6000_emit_move): Likewise.
19072 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19073 to 'TOC_alias_set'.
19074 (get_TOC_alias_set): Likewise.
19075 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19076 TARGET_NO_TOC.
19077 (rs6000_can_eliminate): Likewise.
19078 (rs6000_prefixed_address_mode_p): Rename function from
19079 rs6000_prefixed_address.
19080 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19081 TARGET_HAS_TOC and not pc-relative.
19082 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19083 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19084 TARGET_HAS_TOC.
19085 (TARGET_TOC): Likewise.
19086 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19087 rs6000.h.
19088
19089 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19090
19091 PR target/91188
19092 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19093 for operand 0. Do not use (match_dup) to match operand 1 with
19094 operand 0. Add check in insn constraint that either input operand
19095 matches operand 0. Use SWI12 mode iterator to also handle
19096 HImode operands.
19097 (*and<mode>_1_slp): Ditto.
19098 (*<code>qi_1_slp): Ditto.
19099 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19100 Do not use (match_dup) to match operand 1 with operand 0. Add
19101 check in insn constraint that operand 1 matches operand 0.
19102 Use SWI12 mode iterator to also handle HImode operands.
19103 (*ashl<mode>3_1_slp): Ditto.
19104 (*<shift_insn><mode>3_1_slp): Ditto.
19105 (*<rotate_insn><mode>3_1_slp): Ditto.
19106
19107 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19108
19109 * config/arm/arm-builtins.c
19110 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19111 (arm_expand_unop_builtin): Likewise.
19112 * config/arm/crypto.md
19113 (crypto_sha1h): Convert from define_insn to define_expand.
19114 (crypto_<crypto_pattern>): Likewise.
19115 (crypto_sha1h_lb): New define_insn.
19116 (crypto_<crypto_pattern>_lb): Likewise.
19117
19118 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19119
19120 PR target/90317
19121 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19122 (vsha1cq_u32): Likewise.
19123 (vsha1pq_u32): Likewise.
19124 (vsha1mq_u32): Likewise.
19125 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19126 vec select.
19127 (crypto_sha1c): Correct vec select.
19128 (crypto_sha1m): Likewise.
19129 (crypto_sha1p): Likewise.
19130
19131 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19132
19133 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19134 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19135 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19136 (subdi_zesidi_zesidi): Likewise.
19137 (negdi2_compare, negdi2_insn): Likewise.
19138 (negdi_extensidi): Likewise.
19139 (negdi_zero_extendsidi): Likewise.
19140 (arm_cmpdi_insn): Likewise.
19141 (subsi3_carryin): Use arm_borrow_operation.
19142 (subsi3_carryin_const): Likewise.
19143 (subsi3_carryin_const0): Likewise.
19144 (subsi3_carryin_compare): Likewise.
19145 (subsi3_carryin_compare_const): Likewise.
19146 (subsi3_carryin_compare_const0): Likewise.
19147 (subsi3_carryin_shift): Likewise.
19148 (rsbsi3_carryin_shift): Likewise.
19149 (negsi2_carryin_compare): Likewise.
19150
19151 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19152
19153 PR tree-optimization/91137
19154 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19155 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19156 Init, use and fini the above new field.
19157 (determine_base_object_1): New function.
19158 (determine_base_object): Reimplement using walk_tree.
19159
19160 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19161
19162 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19163 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19164 CLEANUP_FORCE_FAST_DCE is set.
19165 * ifcvt.c (rest_of_handle_if_conversion): Pass
19166 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19167 if-conversion succeeded.
19168
19169 2019-07-18 Richard Biener <rguenther@suse.de>
19170
19171 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19172 branches to make code less indented.
19173
19174 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19175
19176 PR middle-end/81824
19177 * attribs.c (decls_mismatched_attributes): Simplify the logic
19178 that avoids duplicates and false positives.
19179
19180 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19181
19182 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19183 data into data section when generating PIC code.
19184 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19185 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19186 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19187 return 2 for SOM and 0 for other targets.
19188
19189 2019-07-17 Jeff Law <law@redhat.com>
19190
19191 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19192 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19193 avoid unexpected switch statement fallthru.
19194
19195 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19196
19197 * config/i386/i386.md (*add<dwi>3_doubleword):
19198 Remove redundant constraints.
19199 (*add<mode>_1): Ditto.
19200 (*addhi_1): Ditto.
19201 (*addqi_1): Ditto.
19202 (*addqi_1_slp): Ditto.
19203 (*add<mode>_2): Ditto.
19204 (*addv<mode>4): Ditto.
19205 (*sub<dwi>3_doubleword): Ditto.
19206 (*sub<mode>_1): Ditto.
19207 (*subqi_1_slp): Ditto.
19208 (*sub<mode>_2): Ditto.
19209 (*subv<mode>4): Ditto.
19210 (*sub<mode>_3): Ditto.
19211 (@add<mode>3_carry): Ditto.
19212 (@sub<mode>3_carry): Ditto.
19213 (*add<mode>3_cc_overflow_1): Ditto.
19214 (*add<mode>3_zext_cc_overflow_2): Ditto.
19215 (*anddi_1): Ditto.
19216 (*and<mode>_1): Ditto.
19217 (*andqi_1): Ditto.
19218 (*andqi_1_slp): Ditto.
19219 (*anddi_2): Ditto.
19220 (*andqi_2_maybe_si): Ditto.
19221 (*and<mode>_2): Ditto.
19222 (*andqi_2_slp): Ditto.
19223 (*<code><mode>_1): Ditto.
19224 (*<code>qi_1): Ditto.
19225 (*<code>qi_1_slp): Ditto.
19226 (*<code><mode>_2): Ditto.
19227 (*<code>qi_2_slp): Ditto.
19228
19229 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19230
19231 * alias.c (record_component_aliases): Do not simplify pointed-to
19232 types of ODR types.
19233
19234 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19235
19236 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19237 partial reg stall on alternative 2.
19238
19239 2019-07-17 Richard Biener <rguenther@suse.de>
19240
19241 PR tree-optimization/91178
19242 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19243 lower SSA names to avoid quadratic behavior in the common case.
19244 * tree-data-ref.c (split_constant_offset): Add limit argument
19245 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19246 (split_constant_offset_1): Add limit argument and use it to
19247 limit SSA def walking. Optimize the common plus/minus case.
19248
19249 2019-07-17 Richard Biener <rguenther@suse.de>
19250
19251 PR tree-optimization/91178
19252 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19253 loads with a gap larger than the vector size always use
19254 VMAT_STRIDED_SLP.
19255 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19256 avoid loading vectors that are only contained in the gap
19257 and thus are not needed.
19258
19259 2019-07-17 Richard Biener <rguenther@suse.de>
19260
19261 PR tree-optimization/91180
19262 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19263 computation for memset partial defs.
19264
19265 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19266
19267 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19268 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19269 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19270 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19271 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19272 * omp-grid.c (grid_process_grid_body,
19273 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19274 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19275 == GF_OMP_FOR_KIND_SIMD.
19276 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19277 check_omp_nesting_restrictions, scan_omp_1_stmt,
19278 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19279 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19280 omp_find_scan): Likewise.
19281 * omp-expand.c (expand_omp_for): Likewise.
19282 * omp-general.c (omp_extract_for_data): Likewise.
19283
19284 PR tree-optimization/91157
19285 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19286 a vector boolean with scalar mode.
19287 (expand_vector_condition): Handle first operand being a vector boolean
19288 with scalar mode.
19289 (expand_vector_operations_1): For comparisons, don't bail out early
19290 if the return type is vector boolean with scalar mode, but comparison
19291 operand type is not.
19292
19293 2019-07-17 Richard Biener <rguenther@suse.de>
19294
19295 PR tree-optimization/91181
19296 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19297 IFN_LOADs as calls.
19298
19299 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19300
19301 * config/i386/i386.md (*testdi_1): Match CCZmode for
19302 constants that might have the SImode sign bit set.
19303 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19304 Use correct constraints for pentium pairing.
19305 (*test<mode>_1): Ditto.
19306
19307 2019-07-16 Jeff Law <law@redhat.com>
19308
19309 PR rtl-optimization/91173
19310 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19311 SSA_NAME with a constant value, fold its value into the offset
19312 and clear the base before calling gen_addr_rtx.
19313
19314 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19315
19316 PR rtl-optimization/91164
19317 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19318 invalidate dominance info.
19319
19320 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19321
19322 * read-md.h (md_reader::record_potential_iterator_use): Add a
19323 file_location parameter.
19324 * read-rtl.c (attribute_use::loc): New field.
19325 (map_attr_string): Take a file_location parameter. Report cases
19326 in which attributes map to multiple distinct values.
19327 (apply_attribute_uses): Update call accordingly.
19328 (md_reader::handle_overloaded_name): Likewise.
19329 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19330 nonnull strings.
19331 (record_attribute_use): Take a file_location parameter.
19332 Initialize attribute_use::loc.
19333 (md_reader::record_potential_iterator_use): Take a file_location
19334 parameter. Update call to record_attribute_use.
19335 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19336 (rtx_reader::read_rtx_code): Likewise.
19337 (rtx_reader::read_rtx_operand): Likewise. Record a location
19338 for implicitly-expanded empty strings.
19339
19340 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19341
19342 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19343 Use file_location instead of separate fields.
19344 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19345 separate filename and line number.
19346 * read-md.c (ptr_loc): As above.
19347 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19348 (md_reader::fprint_md_ptr_loc): Likewise.
19349 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19350 instead of a separate filename and line number.
19351 (md_reader::read_string): Update call accordingly.
19352
19353 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19354
19355 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19356 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19357 leaving the choice between SFDF and P implicit.
19358 (*mov<mode>_update2): Likewise.
19359 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19360 rather than leaving the choice betweem IBM128 and GPR implicit.
19361 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19362 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19363 QHSI implicit.
19364 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19365 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19366 * config/rs6000/vsx.md
19367 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19368 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19369 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19370 and VSX_EXTRACT_I implicit.
19371
19372 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19373
19374 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19375 Explicitly use <MOVEP1:MODE> for the mode attribute.
19376
19377 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19378
19379 PR bootstrap/91176
19380 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19381
19382 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19383
19384 PR target/91050
19385 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19386 .machine directive.
19387
19388 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19389
19390 * config/i386/i386.md (@test<mode>_ccno_1):
19391 Rename from test<mode>_ccno_1.
19392 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19393 (*testqi_1_maybe_si): Remove modrm attribute.
19394 (*test<mode>_1): Ditto.
19395 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19396 gen_test_ccno_1 and gen_extend_insn.
19397
19398 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19399
19400 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19401 to 0.
19402
19403 2019-07-15 Richard Biener <rguenther@suse.de>
19404
19405 PR middle-end/91162
19406 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19407 node make sure to replace all uses with something valid.
19408
19409 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19410
19411 PR tree-optimization/88497
19412 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19413 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19414 function undistribute_bitref_for_vector.
19415 (undistribute_bitref_for_vector): New function.
19416 (cleanup_vinfo_map): Likewise.
19417 (sort_by_mach_mode): Likewise.
19418
19419 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19420
19421 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19422 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19423 and testdi_ccno_1 using SWI48 mode attribute.
19424 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19425 x86_64_szext_general_operand.
19426 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19427 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19428 instead of genera_operand mode attribute.
19429
19430 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19431
19432 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19433 fopen and fclose to their respective types.
19434 (DotFn.invoke): Ditto.
19435
19436 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19437
19438 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19439 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19440 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19441 (array_index_predicate): Remove.
19442 (analyze_function_body): Account cost for variable ofsetted array
19443 indexing.
19444 (estimate_node_size_and_time): Do not compute array index hint.
19445 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19446 (inline_read_section): Do not read array index hint.
19447 (ipa_fn_summary_write): Do not write array index hint.
19448 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19449 * ipa-cp.c (hint_time_bonus): Remove.
19450 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19451 (ipa_fnsummary): Remove array_index.
19452 * ipa-inline.c (want_inline_small_function_p): Do not use
19453 array_index.
19454 (edge_badness): Likewise.
19455 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19456
19457 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19458
19459 PR target/91148
19460 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19461 superfluous "builtin function" phrasing.
19462
19463 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19464
19465 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19466 Break out from ...
19467 (aliasing_component_refs_walk): Break out from ...
19468 (aliasing_component_refs_p): ... here.
19469
19470 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19471
19472 PR target/91148
19473 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19474 "builtin function" phrasing.
19475
19476 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19477
19478 PR target/90723
19479 * recog.h (temporary_volatile_ok): New class.
19480 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19481 volatile_ok temporarily to true using temporary_volatile_ok.
19482 * expr.c (emit_block_move_via_cpymem): Likewise.
19483 * optabs.c (maybe_legitimize_operand): Likewise.
19484
19485 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19486
19487 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19488 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19489 uses inside of order(concurrent) constructs.
19490 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19491 OMP_CLAUSE_ORDER is seen.
19492 * omp-low.c (struct omp_context): Add order_concurrent member.
19493 (scan_sharing_clauses): Set ctx->order_concurrent if
19494 OMP_CLAUSE_ORDER is seen.
19495 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19496 of simd order(concurrent). Diagnose constructs not allowed inside of
19497 for order(concurrent).
19498 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19499 complaining about static double setjmp (double); or class static
19500 methods or non-global namespace setjmps.
19501 (omp_runtime_api_call): New function.
19502 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19503 order(concurrent) loops.
19504
19505 2019-07-12 Martin Sebor <msebor@redhat.com>
19506
19507 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19508 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19509 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19510 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19511
19512 2019-07-12 Jan Hubicka <jh@suse.cz>
19513
19514 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19515 (indirect_refs_may_alias_p): ... here.
19516 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19517 mem refs in the access paths.
19518
19519 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19520
19521 PR tree-optimization/89430
19522 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19523 store elimination for local variable without address escape.
19524
19525 2019-07-12 Jeff Law <law@redhat.com>
19526
19527 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19528 for the ".far" section.
19529
19530 2019-07-12 Richard Biener <rguenther@suse.de>
19531
19532 PR tree-optimization/91145
19533 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19534 chain check.
19535
19536 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19537
19538 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19539 rather than this_state as the lowering context for the ELSE
19540 seq in a GIMPLE_EH_ELSE.
19541
19542 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19543
19544 * vector-builder.h (vector_builder::elt): Allow already-supplied
19545 elements to be read back before building is complete.
19546
19547 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19548
19549 PR rtl-optimization/91136
19550 * df-core.c (ACCESSING REFS): Fix typos in comment.
19551 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19552 the beginning of the block to the initial set of live registers.
19553
19554 2019-07-12 Richard Biener <rguenther@suse.de>
19555
19556 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19557 * fold-const.c (get_array_ctor_element_at_index): Add
19558 ctor_idx output parameter informing the caller where in
19559 the constructor the element was (not) found. Add early exit
19560 for when the ctor is sorted.
19561 * gimple-fold.c (fold_array_ctor_reference): Support constant
19562 folding across multiple array elements.
19563
19564 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19565
19566 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19567 doesn't have location, set the current location to the function's end.
19568
19569 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19570
19571 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19572 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19573 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19574 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19575 * config/aarch64/aarch64-simd.md
19576 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19577 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19578 * config/aarch64/aarch64-sve.md
19579 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19580 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19581
19582 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19583
19584 * doc/md.texi: Document that @ patterns can have different
19585 numbers of operands.
19586 * genemit.c (handle_overloaded_gen): Handle this case.
19587 * genopinit.c (handle_overloaded_gen): Likewise.
19588 * gensupport.c (replace_operands_with_dups): Iterate over
19589 the new rtx's format rather than the old one's.
19590
19591 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19592
19593 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19594 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19595 order clause entries.
19596 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19597 * tree-pretty-print.c (dump_omp_clause): Likewise.
19598 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19599 Likewise.
19600 * omp-low.c (scan_sharing_clauses): Likewise.
19601 * tree-nested.c (convert_nonlocal_omp_clauses,
19602 convert_local_omp_clauses): Likewise.
19603
19604 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19605
19606 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19607 fallthrough target of current basic block isn't the placed
19608 right next.
19609
19610 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19611
19612 PR target/90980
19613 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19614 (_mm512_storeu_epi64): Likewise.
19615 (_mm512_loadu_epi32): Likewise.
19616 (_mm512_storeu_epi32): Likewise.
19617 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19618 (_mm_storeu_epi64): Likewise.
19619 (_mm256_storeu_epi32): Likewise.
19620 (_mm_storeu_epi32): Likewise.
19621
19622 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19623
19624 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19625
19626 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19627
19628 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19629 Handle Modula-2.
19630
19631 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19632
19633 PR target/91124
19634 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19635 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19636 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19637 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19638 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19639 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19640 define_insns.
19641 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19642 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19643 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19644 define_insns.
19645 (sse2_cvttpd2dq<mask_name>): Change into ...
19646 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19647 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19648 (*sse2_cvtpd2dq<mask_name>): Change into ...
19649 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19650 Add "C" constraint to const0_operand.
19651 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19652 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19653 changes.
19654
19655 PR target/91124
19656 * config/i386/i386-builtin-types.def
19657 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19658 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19659 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19660 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19661 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19662 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19663 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19664 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19665 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19666 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19667 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19668 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19669 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19670 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19671 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19672 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19673 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19674 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19675 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19676 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19677 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19678 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19679 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19680 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19681 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19682 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19683 __builtin_ia32_vpdpbusd_v4si_maskz,
19684 __builtin_ia32_vpdpbusds_v16si_mask,
19685 __builtin_ia32_vpdpbusds_v16si_maskz,
19686 __builtin_ia32_vpdpbusds_v8si_mask,
19687 __builtin_ia32_vpdpbusds_v8si_maskz,
19688 __builtin_ia32_vpdpbusds_v4si_mask,
19689 __builtin_ia32_vpdpbusds_v4si_maskz,
19690 __builtin_ia32_vpdpwssd_v16si_mask,
19691 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19692 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19693 __builtin_ia32_vpdpwssd_v4si_maskz,
19694 __builtin_ia32_vpdpwssds_v16si_mask,
19695 __builtin_ia32_vpdpwssds_v16si_maskz,
19696 __builtin_ia32_vpdpwssds_v8si_mask,
19697 __builtin_ia32_vpdpwssds_v8si_maskz,
19698 __builtin_ia32_vpdpwssds_v4si_mask,
19699 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19700 suffixed types rather than *_INT.
19701 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19702 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19703 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19704 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19705 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19706 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19707
19708 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19709
19710 * tree-vrp.c (intersect_ranges): If we know the intersection is
19711 empty, there is no need to conservatively add anything else to
19712 the set.
19713
19714 2019-07-11 Richard Biener <rguenther@suse.de>
19715
19716 PR middle-end/91131
19717 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19718 when the object is volatile and we have not cleared it even though
19719 there are no nonzero elements.
19720
19721 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19722
19723 * config/rs6000/predicates.md (cint34_operand): Update
19724 SIGNED_34BIT_OFFSET_P call.
19725 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19726 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19727 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19728 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19729 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19730 argument.
19731 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19732 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19733 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19734 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19735 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19736
19737 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19738
19739 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19740 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19741 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19742 (DEF_MIN_OSX_VERSION): New.
19743
19744 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19745
19746 * fold-const.c (fold_relational_const): Fix folding of
19747 vector-to-scalar NE_EXPRs.
19748 (test_vector_folding): Add more tests.
19749
19750 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19751
19752 PR target/91060
19753 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19754 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19755 (vec_setv2di_internal): Reexpress as...
19756 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19757 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19758 rather than gen_neon_vset_lane<mode>.
19759
19760 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19761
19762 PR target/91102
19763 * lra-constraints.c (process_alt_operands): Don't match user
19764 defined regs only if they are early clobbers.
19765
19766 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19767
19768 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19769
19770 2019-07-10 Richard Biener <rguenther@suse.de>
19771
19772 PR tree-optimization/91126
19773 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19774 native encoding offset for BYTES_BIG_ENDIAN.
19775 (vn_reference_lookup_3): Likewise.
19776
19777 2019-07-10 Richard Biener <rguenther@suse.de>
19778
19779 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19780 LHS whenever possible.
19781
19782 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19783
19784 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19785 from ...; work also on duplicated types.
19786 (nonoverlapping_component_refs_since_match): ... here
19787 (ncr_type_uid): Break out from ...
19788 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19789 available.
19790 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19791 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19792
19793 2019-07-09 Martin Sebor <msebor@redhat.com>
19794
19795 PR tree-optimization/90989
19796 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19797 optimization to just single character stores.
19798
19799 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19800
19801 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19802 Swap operands only once.
19803
19804 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19805
19806 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19807 for both call instructions.
19808
19809 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19810
19811 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19812 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19813
19814 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19815
19816 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19817 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19818 function from rs6000-logue.c back to rs6000.c.
19819 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19820
19821 2019-07-09 Martin Sebor <msebor@redhat.com>
19822
19823 PR c++/61339
19824 * auto-profile.c: Change class-key of PODs to struct and others
19825 to class.
19826 * basic-block.h: Same.
19827 * bitmap.c (bitmap_alloc): Same.
19828 * bitmap.h: Same.
19829 * builtins.c (expand_builtin_prefetch): Same.
19830 (expand_builtin_interclass_mathfn): Same.
19831 (expand_builtin_strlen): Same.
19832 (expand_builtin_mempcpy_args): Same.
19833 (expand_cmpstr): Same.
19834 (expand_builtin___clear_cache): Same.
19835 (expand_ifn_atomic_bit_test_and): Same.
19836 (expand_builtin_thread_pointer): Same.
19837 (expand_builtin_set_thread_pointer): Same.
19838 * caller-save.c (setup_save_areas): Same.
19839 (replace_reg_with_saved_mem): Same.
19840 (insert_restore): Same.
19841 (insert_save): Same.
19842 (add_used_regs): Same.
19843 * cfg.c (get_bb_copy): Same.
19844 (set_loop_copy): Same.
19845 * cfg.h: Same.
19846 * cfganal.h: Same.
19847 * cfgexpand.c (alloc_stack_frame_space): Same.
19848 (add_stack_var): Same.
19849 (add_stack_var_conflict): Same.
19850 (add_scope_conflicts_1): Same.
19851 (update_alias_info_with_stack_vars): Same.
19852 (expand_used_vars): Same.
19853 * cfghooks.c (redirect_edge_and_branch_force): Same.
19854 (delete_basic_block): Same.
19855 (split_edge): Same.
19856 (make_forwarder_block): Same.
19857 (force_nonfallthru): Same.
19858 (duplicate_block): Same.
19859 (lv_flush_pending_stmts): Same.
19860 * cfghooks.h: Same.
19861 * cfgloop.c (flow_loops_cfg_dump): Same.
19862 (flow_loop_nested_p): Same.
19863 (superloop_at_depth): Same.
19864 (get_loop_latch_edges): Same.
19865 (flow_loop_dump): Same.
19866 (flow_loops_dump): Same.
19867 (flow_loops_free): Same.
19868 (flow_loop_nodes_find): Same.
19869 (establish_preds): Same.
19870 (flow_loop_tree_node_add): Same.
19871 (flow_loop_tree_node_remove): Same.
19872 (flow_loops_find): Same.
19873 (find_subloop_latch_edge_by_profile): Same.
19874 (find_subloop_latch_edge_by_ivs): Same.
19875 (mfb_redirect_edges_in_set): Same.
19876 (form_subloop): Same.
19877 (merge_latch_edges): Same.
19878 (disambiguate_multiple_latches): Same.
19879 (disambiguate_loops_with_multiple_latches): Same.
19880 (flow_bb_inside_loop_p): Same.
19881 (glb_enum_p): Same.
19882 (get_loop_body_with_size): Same.
19883 (get_loop_body): Same.
19884 (fill_sons_in_loop): Same.
19885 (get_loop_body_in_dom_order): Same.
19886 (get_loop_body_in_custom_order): Same.
19887 (release_recorded_exits): Same.
19888 (get_loop_exit_edges): Same.
19889 (num_loop_branches): Same.
19890 (remove_bb_from_loops): Same.
19891 (find_common_loop): Same.
19892 (delete_loop): Same.
19893 (cancel_loop): Same.
19894 (verify_loop_structure): Same.
19895 (loop_preheader_edge): Same.
19896 (loop_exit_edge_p): Same.
19897 (single_exit): Same.
19898 (loop_exits_to_bb_p): Same.
19899 (loop_exits_from_bb_p): Same.
19900 (get_loop_location): Same.
19901 (record_niter_bound): Same.
19902 (get_estimated_loop_iterations_int): Same.
19903 (max_stmt_executions_int): Same.
19904 (likely_max_stmt_executions_int): Same.
19905 (get_estimated_loop_iterations): Same.
19906 (get_max_loop_iterations): Same.
19907 (get_max_loop_iterations_int): Same.
19908 (get_likely_max_loop_iterations): Same.
19909 * cfgloop.h (simple_loop_desc): Same.
19910 (get_loop): Same.
19911 (loop_depth): Same.
19912 (loop_outer): Same.
19913 (loop_iterator::next): Same.
19914 (loop_outermost): Same.
19915 * cfgloopanal.c (mark_irreducible_loops): Same.
19916 (num_loop_insns): Same.
19917 (average_num_loop_insns): Same.
19918 (expected_loop_iterations_unbounded): Same.
19919 (expected_loop_iterations): Same.
19920 (mark_loop_exit_edges): Same.
19921 (single_likely_exit): Same.
19922 * cfgloopmanip.c (fix_bb_placement): Same.
19923 (fix_bb_placements): Same.
19924 (remove_path): Same.
19925 (place_new_loop): Same.
19926 (add_loop): Same.
19927 (scale_loop_frequencies): Same.
19928 (scale_loop_profile): Same.
19929 (create_empty_if_region_on_edge): Same.
19930 (create_empty_loop_on_edge): Same.
19931 (loopify): Same.
19932 (unloop): Same.
19933 (fix_loop_placements): Same.
19934 (copy_loop_info): Same.
19935 (duplicate_loop): Same.
19936 (duplicate_subloops): Same.
19937 (loop_redirect_edge): Same.
19938 (can_duplicate_loop_p): Same.
19939 (duplicate_loop_to_header_edge): Same.
19940 (mfb_keep_just): Same.
19941 (has_preds_from_loop): Same.
19942 (create_preheader): Same.
19943 (create_preheaders): Same.
19944 (lv_adjust_loop_entry_edge): Same.
19945 (loop_version): Same.
19946 * cfgloopmanip.h: Same.
19947 * cgraph.h: Same.
19948 * cgraphbuild.c: Same.
19949 * combine.c (make_extraction): Same.
19950 * config/i386/i386-features.c: Same.
19951 * config/i386/i386-features.h: Same.
19952 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19953 (ix86_emit_outlined_ms2sysv_restore): Same.
19954 (ix86_noce_conversion_profitable_p): Same.
19955 (ix86_init_cost): Same.
19956 (ix86_simd_clone_usable): Same.
19957 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19958 Wstruct-not-pod.
19959 * coretypes.h: Same.
19960 * data-streamer-in.c (string_for_index): Change class-key of PODs
19961 to struct and others to class.
19962 (streamer_read_indexed_string): Same.
19963 (streamer_read_string): Same.
19964 (bp_unpack_indexed_string): Same.
19965 (bp_unpack_string): Same.
19966 (streamer_read_uhwi): Same.
19967 (streamer_read_hwi): Same.
19968 (streamer_read_gcov_count): Same.
19969 (streamer_read_wide_int): Same.
19970 * data-streamer.h (streamer_write_bitpack): Same.
19971 (bp_unpack_value): Same.
19972 (streamer_write_char_stream): Same.
19973 (streamer_write_hwi_in_range): Same.
19974 (streamer_write_record_start): Same.
19975 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19976 (add_cross_iteration_register_deps): Same.
19977 (build_intra_loop_deps): Same.
19978 * df-core.c (df_analyze): Same.
19979 (loop_post_order_compute): Same.
19980 (loop_inverted_post_order_compute): Same.
19981 * df-problems.c (df_rd_alloc): Same.
19982 (df_rd_simulate_one_insn): Same.
19983 (df_rd_local_compute): Same.
19984 (df_rd_init_solution): Same.
19985 (df_rd_confluence_n): Same.
19986 (df_rd_transfer_function): Same.
19987 (df_rd_free): Same.
19988 (df_rd_dump_defs_set): Same.
19989 (df_rd_top_dump): Same.
19990 (df_lr_alloc): Same.
19991 (df_lr_reset): Same.
19992 (df_lr_local_compute): Same.
19993 (df_lr_init): Same.
19994 (df_lr_confluence_n): Same.
19995 (df_lr_free): Same.
19996 (df_lr_top_dump): Same.
19997 (df_lr_verify_transfer_functions): Same.
19998 (df_live_alloc): Same.
19999 (df_live_reset): Same.
20000 (df_live_init): Same.
20001 (df_live_confluence_n): Same.
20002 (df_live_finalize): Same.
20003 (df_live_free): Same.
20004 (df_live_top_dump): Same.
20005 (df_live_verify_transfer_functions): Same.
20006 (df_mir_alloc): Same.
20007 (df_mir_reset): Same.
20008 (df_mir_init): Same.
20009 (df_mir_confluence_n): Same.
20010 (df_mir_free): Same.
20011 (df_mir_top_dump): Same.
20012 (df_word_lr_alloc): Same.
20013 (df_word_lr_reset): Same.
20014 (df_word_lr_init): Same.
20015 (df_word_lr_confluence_n): Same.
20016 (df_word_lr_free): Same.
20017 (df_word_lr_top_dump): Same.
20018 (df_md_alloc): Same.
20019 (df_md_simulate_one_insn): Same.
20020 (df_md_reset): Same.
20021 (df_md_init): Same.
20022 (df_md_free): Same.
20023 (df_md_top_dump): Same.
20024 * df-scan.c (df_insn_delete): Same.
20025 (df_insn_rescan): Same.
20026 (df_notes_rescan): Same.
20027 (df_sort_and_compress_mws): Same.
20028 (df_install_mws): Same.
20029 (df_refs_add_to_chains): Same.
20030 (df_ref_create_structure): Same.
20031 (df_ref_record): Same.
20032 (df_def_record_1): Same.
20033 (df_find_hard_reg_defs): Same.
20034 (df_uses_record): Same.
20035 (df_get_conditional_uses): Same.
20036 (df_get_call_refs): Same.
20037 (df_recompute_luids): Same.
20038 (df_get_entry_block_def_set): Same.
20039 (df_entry_block_defs_collect): Same.
20040 (df_get_exit_block_use_set): Same.
20041 (df_exit_block_uses_collect): Same.
20042 (df_mws_verify): Same.
20043 (df_bb_verify): Same.
20044 * df.h (df_scan_get_bb_info): Same.
20045 * doc/tm.texi: Same.
20046 * dse.c (record_store): Same.
20047 * dumpfile.h: Same.
20048 * emit-rtl.c (const_fixed_hasher::equal): Same.
20049 (set_mem_attributes_minus_bitpos): Same.
20050 (change_address): Same.
20051 (adjust_address_1): Same.
20052 (offset_address): Same.
20053 * emit-rtl.h: Same.
20054 * except.c (dw2_build_landing_pads): Same.
20055 (sjlj_emit_dispatch_table): Same.
20056 * explow.c (allocate_dynamic_stack_space): Same.
20057 (emit_stack_probe): Same.
20058 (probe_stack_range): Same.
20059 * expmed.c (store_bit_field_using_insv): Same.
20060 (store_bit_field_1): Same.
20061 (store_integral_bit_field): Same.
20062 (extract_bit_field_using_extv): Same.
20063 (extract_bit_field_1): Same.
20064 (emit_cstore): Same.
20065 * expr.c (emit_block_move_via_cpymem): Same.
20066 (expand_cmpstrn_or_cmpmem): Same.
20067 (set_storage_via_setmem): Same.
20068 (emit_single_push_insn_1): Same.
20069 (expand_assignment): Same.
20070 (store_constructor): Same.
20071 (expand_expr_real_2): Same.
20072 (expand_expr_real_1): Same.
20073 (try_casesi): Same.
20074 * flags.h: Same.
20075 * function.c (try_fit_stack_local): Same.
20076 (assign_stack_local_1): Same.
20077 (assign_stack_local): Same.
20078 (cut_slot_from_list): Same.
20079 (insert_slot_to_list): Same.
20080 (max_slot_level): Same.
20081 (move_slot_to_level): Same.
20082 (temp_address_hasher::equal): Same.
20083 (remove_unused_temp_slot_addresses): Same.
20084 (assign_temp): Same.
20085 (combine_temp_slots): Same.
20086 (update_temp_slot_address): Same.
20087 (preserve_temp_slots): Same.
20088 * function.h: Same.
20089 * fwprop.c: Same.
20090 * gcc-rich-location.h: Same.
20091 * gcov.c: Same.
20092 * genattrtab.c (check_attr_test): Same.
20093 (check_attr_value): Same.
20094 (convert_set_attr_alternative): Same.
20095 (convert_set_attr): Same.
20096 (check_defs): Same.
20097 (copy_boolean): Same.
20098 (get_attr_value): Same.
20099 (expand_delays): Same.
20100 (make_length_attrs): Same.
20101 (min_fn): Same.
20102 (make_alternative_compare): Same.
20103 (simplify_test_exp): Same.
20104 (tests_attr_p): Same.
20105 (get_attr_order): Same.
20106 (clear_struct_flag): Same.
20107 (gen_attr): Same.
20108 (compares_alternatives_p): Same.
20109 (gen_insn): Same.
20110 (gen_delay): Same.
20111 (find_attrs_to_cache): Same.
20112 (write_test_expr): Same.
20113 (walk_attr_value): Same.
20114 (write_attr_get): Same.
20115 (eliminate_known_true): Same.
20116 (write_insn_cases): Same.
20117 (write_attr_case): Same.
20118 (write_attr_valueq): Same.
20119 (write_attr_value): Same.
20120 (write_dummy_eligible_delay): Same.
20121 (next_comma_elt): Same.
20122 (find_attr): Same.
20123 (make_internal_attr): Same.
20124 (copy_rtx_unchanging): Same.
20125 (gen_insn_reserv): Same.
20126 (check_tune_attr): Same.
20127 (make_automaton_attrs): Same.
20128 (handle_arg): Same.
20129 * genextract.c (gen_insn): Same.
20130 (VEC_char_to_string): Same.
20131 * genmatch.c (print_operand): Same.
20132 (lower): Same.
20133 (parser::parse_operation): Same.
20134 (parser::parse_capture): Same.
20135 (parser::parse_c_expr): Same.
20136 (parser::parse_simplify): Same.
20137 (main): Same.
20138 * genoutput.c (output_operand_data): Same.
20139 (output_get_insn_name): Same.
20140 (compare_operands): Same.
20141 (place_operands): Same.
20142 (process_template): Same.
20143 (validate_insn_alternatives): Same.
20144 (validate_insn_operands): Same.
20145 (gen_expand): Same.
20146 (note_constraint): Same.
20147 * genpreds.c (write_one_predicate_function): Same.
20148 (add_constraint): Same.
20149 (process_define_register_constraint): Same.
20150 (write_lookup_constraint_1): Same.
20151 (write_lookup_constraint_array): Same.
20152 (write_insn_constraint_len): Same.
20153 (write_reg_class_for_constraint_1): Same.
20154 (write_constraint_satisfied_p_array): Same.
20155 * genrecog.c (optimize_subroutine_group): Same.
20156 * gensupport.c (process_define_predicate): Same.
20157 (queue_pattern): Same.
20158 (remove_from_queue): Same.
20159 (process_rtx): Same.
20160 (is_predicable): Same.
20161 (change_subst_attribute): Same.
20162 (subst_pattern_match): Same.
20163 (alter_constraints): Same.
20164 (alter_attrs_for_insn): Same.
20165 (shift_output_template): Same.
20166 (alter_output_for_subst_insn): Same.
20167 (process_one_cond_exec): Same.
20168 (subst_dup): Same.
20169 (process_define_cond_exec): Same.
20170 (mnemonic_htab_callback): Same.
20171 (gen_mnemonic_attr): Same.
20172 (read_md_rtx): Same.
20173 * ggc-page.c: Same.
20174 * gimple-loop-interchange.cc (dump_reduction): Same.
20175 (dump_induction): Same.
20176 (loop_cand::~loop_cand): Same.
20177 (free_data_refs_with_aux): Same.
20178 (tree_loop_interchange::interchange_loops): Same.
20179 (tree_loop_interchange::map_inductions_to_loop): Same.
20180 (tree_loop_interchange::move_code_to_inner_loop): Same.
20181 (compute_access_stride): Same.
20182 (compute_access_strides): Same.
20183 (proper_loop_form_for_interchange): Same.
20184 (tree_loop_interchange_compute_ddrs): Same.
20185 (prune_datarefs_not_in_loop): Same.
20186 (prepare_data_references): Same.
20187 (pass_linterchange::execute): Same.
20188 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20189 (unroll_jam_possible_p): Same.
20190 (fuse_loops): Same.
20191 (adjust_unroll_factor): Same.
20192 (tree_loop_unroll_and_jam): Same.
20193 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20194 (loop_versioning::expensive_stmt_p): Same.
20195 (loop_versioning::version_for_unity): Same.
20196 (loop_versioning::dump_inner_likelihood): Same.
20197 (loop_versioning::find_per_loop_multiplication): Same.
20198 (loop_versioning::analyze_term_using_scevs): Same.
20199 (loop_versioning::record_address_fragment): Same.
20200 (loop_versioning::analyze_expr): Same.
20201 (loop_versioning::analyze_blocks): Same.
20202 (loop_versioning::prune_conditions): Same.
20203 (loop_versioning::merge_loop_info): Same.
20204 (loop_versioning::add_loop_to_queue): Same.
20205 (loop_versioning::decide_whether_loop_is_versionable): Same.
20206 (loop_versioning::make_versioning_decisions): Same.
20207 (loop_versioning::implement_versioning_decisions): Same.
20208 * gimple-ssa-evrp-analyze.c
20209 (evrp_range_analyzer::record_ranges_from_phis): Same.
20210 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20211 (count_multiple_uses): Same.
20212 (split_group): Same.
20213 (imm_store_chain_info::output_merged_store): Same.
20214 (pass_store_merging::process_store): Same.
20215 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20216 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20217 (is_max): Same.
20218 (alloca_call_type): Same.
20219 (pass_walloca::execute): Same.
20220 * gimple-streamer-in.c (input_phi): Same.
20221 (input_gimple_stmt): Same.
20222 * gimple-streamer.h: Same.
20223 * godump.c (go_force_record_alignment): Same.
20224 (go_format_type): Same.
20225 (go_output_type): Same.
20226 (go_output_fndecl): Same.
20227 (go_output_typedef): Same.
20228 (keyword_hash_init): Same.
20229 (find_dummy_types): Same.
20230 * graph.c (draw_cfg_nodes_no_loops): Same.
20231 (draw_cfg_nodes_for_loop): Same.
20232 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20233 * hsa-brig.c: Same.
20234 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20235 * hsa-dump.c (dump_hsa_cfun): Same.
20236 * hsa-gen.c (gen_function_def_parameters): Same.
20237 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20238 * input.c (dump_line_table_statistics): Same.
20239 (test_lexer): Same.
20240 * input.h: Same.
20241 * internal-fn.c (get_multi_vector_move): Same.
20242 (expand_load_lanes_optab_fn): Same.
20243 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20244 (expand_GOMP_SIMT_EXIT): Same.
20245 (expand_GOMP_SIMT_LAST_LANE): Same.
20246 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20247 (expand_GOMP_SIMT_VOTE_ANY): Same.
20248 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20249 (expand_GOMP_SIMT_XCHG_IDX): Same.
20250 (expand_addsub_overflow): Same.
20251 (expand_neg_overflow): Same.
20252 (expand_mul_overflow): Same.
20253 (expand_call_mem_ref): Same.
20254 (expand_mask_load_optab_fn): Same.
20255 (expand_scatter_store_optab_fn): Same.
20256 (expand_gather_load_optab_fn): Same.
20257 * ipa-cp.c (ipa_get_parm_lattices): Same.
20258 (print_all_lattices): Same.
20259 (ignore_edge_p): Same.
20260 (build_toporder_info): Same.
20261 (free_toporder_info): Same.
20262 (push_node_to_stack): Same.
20263 (ipcp_lattice<valtype>::set_contains_variable): Same.
20264 (set_agg_lats_to_bottom): Same.
20265 (ipcp_bits_lattice::meet_with): Same.
20266 (set_single_call_flag): Same.
20267 (initialize_node_lattices): Same.
20268 (ipa_get_jf_ancestor_result): Same.
20269 (ipcp_verify_propagated_values): Same.
20270 (propagate_scalar_across_jump_function): Same.
20271 (propagate_context_across_jump_function): Same.
20272 (propagate_bits_across_jump_function): Same.
20273 (ipa_vr_operation_and_type_effects): Same.
20274 (propagate_vr_across_jump_function): Same.
20275 (set_check_aggs_by_ref): Same.
20276 (set_chain_of_aglats_contains_variable): Same.
20277 (merge_aggregate_lattices): Same.
20278 (agg_pass_through_permissible_p): Same.
20279 (propagate_aggs_across_jump_function): Same.
20280 (call_passes_through_thunk_p): Same.
20281 (propagate_constants_across_call): Same.
20282 (devirtualization_time_bonus): Same.
20283 (good_cloning_opportunity_p): Same.
20284 (context_independent_aggregate_values): Same.
20285 (gather_context_independent_values): Same.
20286 (perform_estimation_of_a_value): Same.
20287 (estimate_local_effects): Same.
20288 (value_topo_info<valtype>::add_val): Same.
20289 (add_all_node_vals_to_toposort): Same.
20290 (value_topo_info<valtype>::propagate_effects): Same.
20291 (ipcp_propagate_stage): Same.
20292 (ipcp_discover_new_direct_edges): Same.
20293 (same_node_or_its_all_contexts_clone_p): Same.
20294 (cgraph_edge_brings_value_p): Same.
20295 (gather_edges_for_value): Same.
20296 (create_specialized_node): Same.
20297 (find_more_scalar_values_for_callers_subset): Same.
20298 (find_more_contexts_for_caller_subset): Same.
20299 (copy_plats_to_inter): Same.
20300 (intersect_aggregates_with_edge): Same.
20301 (find_aggregate_values_for_callers_subset): Same.
20302 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20303 (decide_about_value): Same.
20304 (decide_whether_version_node): Same.
20305 (spread_undeadness): Same.
20306 (identify_dead_nodes): Same.
20307 (ipcp_store_vr_results): Same.
20308 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20309 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20310 (redirect_to_unreachable): Same.
20311 (edge_set_predicate): Same.
20312 (evaluate_conditions_for_known_args): Same.
20313 (evaluate_properties_for_edge): Same.
20314 (ipa_fn_summary_t::duplicate): Same.
20315 (ipa_call_summary_t::duplicate): Same.
20316 (dump_ipa_call_summary): Same.
20317 (ipa_dump_fn_summary): Same.
20318 (eliminated_by_inlining_prob): Same.
20319 (set_cond_stmt_execution_predicate): Same.
20320 (set_switch_stmt_execution_predicate): Same.
20321 (compute_bb_predicates): Same.
20322 (will_be_nonconstant_expr_predicate): Same.
20323 (phi_result_unknown_predicate): Same.
20324 (analyze_function_body): Same.
20325 (compute_fn_summary): Same.
20326 (estimate_edge_devirt_benefit): Same.
20327 (estimate_edge_size_and_time): Same.
20328 (estimate_calls_size_and_time): Same.
20329 (estimate_node_size_and_time): Same.
20330 (remap_edge_change_prob): Same.
20331 (remap_edge_summaries): Same.
20332 (ipa_merge_fn_summary_after_inlining): Same.
20333 (ipa_fn_summary_generate): Same.
20334 (inline_read_section): Same.
20335 (ipa_fn_summary_read): Same.
20336 (ipa_fn_summary_write): Same.
20337 * ipa-fnsummary.h: Same.
20338 * ipa-hsa.c (ipa_hsa_read_section): Same.
20339 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20340 * ipa-icf.c (sem_function::param_used_p): Same.
20341 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20342 * ipa-inline.c (edge_badness): Same.
20343 (inline_small_functions): Same.
20344 * ipa-polymorphic-call.c
20345 (ipa_polymorphic_call_context::stream_out): Same.
20346 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20347 (predicate::remap_after_inlining): Same.
20348 (predicate::stream_out): Same.
20349 * ipa-predicate.h: Same.
20350 * ipa-profile.c (ipa_profile_read_summary): Same.
20351 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20352 (count_formal_params): Same.
20353 (ipa_dump_param): Same.
20354 (ipa_alloc_node_params): Same.
20355 (ipa_print_node_jump_functions_for_edge): Same.
20356 (ipa_print_node_jump_functions): Same.
20357 (ipa_load_from_parm_agg): Same.
20358 (get_ancestor_addr_info): Same.
20359 (ipa_compute_jump_functions_for_edge): Same.
20360 (ipa_analyze_virtual_call_uses): Same.
20361 (ipa_analyze_stmt_uses): Same.
20362 (ipa_analyze_params_uses_in_bb): Same.
20363 (update_jump_functions_after_inlining): Same.
20364 (try_decrement_rdesc_refcount): Same.
20365 (ipa_impossible_devirt_target): Same.
20366 (update_indirect_edges_after_inlining): Same.
20367 (combine_controlled_uses_counters): Same.
20368 (ipa_edge_args_sum_t::duplicate): Same.
20369 (ipa_write_jump_function): Same.
20370 (ipa_write_indirect_edge_info): Same.
20371 (ipa_write_node_info): Same.
20372 (ipa_read_edge_info): Same.
20373 (ipa_prop_read_section): Same.
20374 (read_replacements_section): Same.
20375 * ipa-prop.h (ipa_get_param_count): Same.
20376 (ipa_get_param): Same.
20377 (ipa_get_type): Same.
20378 (ipa_get_param_move_cost): Same.
20379 (ipa_set_param_used): Same.
20380 (ipa_get_controlled_uses): Same.
20381 (ipa_set_controlled_uses): Same.
20382 (ipa_get_cs_argument_count): Same.
20383 * ipa-pure-const.c (analyze_function): Same.
20384 (pure_const_read_summary): Same.
20385 * ipa-ref.h: Same.
20386 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20387 * ipa-split.c (test_nonssa_use): Same.
20388 (dump_split_point): Same.
20389 (dominated_by_forbidden): Same.
20390 (split_part_set_ssa_name_p): Same.
20391 (find_split_points): Same.
20392 * ira-build.c (finish_loop_tree_nodes): Same.
20393 (low_pressure_loop_node_p): Same.
20394 * ira-color.c (ira_reuse_stack_slot): Same.
20395 * ira-int.h: Same.
20396 * ira.c (setup_reg_equiv): Same.
20397 (print_insn_chain): Same.
20398 (ira): Same.
20399 * loop-doloop.c (doloop_condition_get): Same.
20400 (add_test): Same.
20401 (record_reg_sets): Same.
20402 (doloop_optimize): Same.
20403 * loop-init.c (loop_optimizer_init): Same.
20404 (fix_loop_structure): Same.
20405 * loop-invariant.c (merge_identical_invariants): Same.
20406 (compute_always_reached): Same.
20407 (find_exits): Same.
20408 (may_assign_reg_p): Same.
20409 (find_invariants_bb): Same.
20410 (find_invariants_body): Same.
20411 (replace_uses): Same.
20412 (can_move_invariant_reg): Same.
20413 (free_inv_motion_data): Same.
20414 (move_single_loop_invariants): Same.
20415 (change_pressure): Same.
20416 (mark_ref_regs): Same.
20417 (calculate_loop_reg_pressure): Same.
20418 * loop-iv.c (biv_entry_hasher::equal): Same.
20419 (iv_extend_to_rtx_code): Same.
20420 (check_iv_ref_table_size): Same.
20421 (clear_iv_info): Same.
20422 (latch_dominating_def): Same.
20423 (iv_get_reaching_def): Same.
20424 (iv_constant): Same.
20425 (iv_subreg): Same.
20426 (iv_extend): Same.
20427 (iv_neg): Same.
20428 (iv_add): Same.
20429 (iv_mult): Same.
20430 (get_biv_step): Same.
20431 (record_iv): Same.
20432 (analyzed_for_bivness_p): Same.
20433 (record_biv): Same.
20434 (iv_analyze_biv): Same.
20435 (iv_analyze_expr): Same.
20436 (iv_analyze_def): Same.
20437 (iv_analyze_op): Same.
20438 (iv_analyze): Same.
20439 (iv_analyze_result): Same.
20440 (biv_p): Same.
20441 (eliminate_implied_conditions): Same.
20442 (simplify_using_initial_values): Same.
20443 (shorten_into_mode): Same.
20444 (canonicalize_iv_subregs): Same.
20445 (determine_max_iter): Same.
20446 (check_simple_exit): Same.
20447 (find_simple_exit): Same.
20448 (get_simple_loop_desc): Same.
20449 * loop-unroll.c (report_unroll): Same.
20450 (decide_unrolling): Same.
20451 (unroll_loops): Same.
20452 (loop_exit_at_end_p): Same.
20453 (decide_unroll_constant_iterations): Same.
20454 (unroll_loop_constant_iterations): Same.
20455 (compare_and_jump_seq): Same.
20456 (unroll_loop_runtime_iterations): Same.
20457 (decide_unroll_stupid): Same.
20458 (unroll_loop_stupid): Same.
20459 (referenced_in_one_insn_in_loop_p): Same.
20460 (reset_debug_uses_in_loop): Same.
20461 (analyze_iv_to_split_insn): Same.
20462 * lra-eliminations.c (lra_debug_elim_table): Same.
20463 (setup_can_eliminate): Same.
20464 (form_sum): Same.
20465 (lra_get_elimination_hard_regno): Same.
20466 (lra_eliminate_regs_1): Same.
20467 (eliminate_regs_in_insn): Same.
20468 (update_reg_eliminate): Same.
20469 (init_elimination): Same.
20470 (lra_eliminate): Same.
20471 * lra-int.h: Same.
20472 * lra-lives.c (initiate_live_solver): Same.
20473 * lra-remat.c (create_remat_bb_data): Same.
20474 * lra-spills.c (lra_spill): Same.
20475 * lra.c (lra_set_insn_recog_data): Same.
20476 (lra_set_used_insn_alternative_by_uid): Same.
20477 (init_reg_info): Same.
20478 (expand_reg_info): Same.
20479 * lto-cgraph.c (output_symtab): Same.
20480 (read_identifier): Same.
20481 (get_alias_symbol): Same.
20482 (input_node): Same.
20483 (input_varpool_node): Same.
20484 (input_ref): Same.
20485 (input_edge): Same.
20486 (input_cgraph_1): Same.
20487 (input_refs): Same.
20488 (input_symtab): Same.
20489 (input_offload_tables): Same.
20490 (output_cgraph_opt_summary): Same.
20491 (input_edge_opt_summary): Same.
20492 (input_cgraph_opt_section): Same.
20493 * lto-section-in.c (lto_free_raw_section_data): Same.
20494 (lto_create_simple_input_block): Same.
20495 (lto_free_function_in_decl_state_for_node): Same.
20496 * lto-streamer-in.c (lto_tag_check_set): Same.
20497 (lto_location_cache::revert_location_cache): Same.
20498 (lto_location_cache::input_location): Same.
20499 (lto_input_location): Same.
20500 (stream_input_location_now): Same.
20501 (lto_input_tree_ref): Same.
20502 (lto_input_eh_catch_list): Same.
20503 (input_eh_region): Same.
20504 (lto_init_eh): Same.
20505 (make_new_block): Same.
20506 (input_cfg): Same.
20507 (fixup_call_stmt_edges): Same.
20508 (input_struct_function_base): Same.
20509 (input_function): Same.
20510 (lto_read_body_or_constructor): Same.
20511 (lto_read_tree_1): Same.
20512 (lto_read_tree): Same.
20513 (lto_input_scc): Same.
20514 (lto_input_tree_1): Same.
20515 (lto_input_toplevel_asms): Same.
20516 (lto_input_mode_table): Same.
20517 (lto_reader_init): Same.
20518 (lto_data_in_create): Same.
20519 * lto-streamer-out.c (output_cfg): Same.
20520 * lto-streamer.h: Same.
20521 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20522 (generate_prolog_epilog): Same.
20523 (mark_loop_unsched): Same.
20524 (dump_insn_location): Same.
20525 (loop_canon_p): Same.
20526 (sms_schedule): Same.
20527 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20528 (expand_omp_for_generic): Same.
20529 (expand_omp_for_static_nochunk): Same.
20530 (expand_omp_for_static_chunk): Same.
20531 (expand_omp_simd): Same.
20532 (expand_omp_taskloop_for_inner): Same.
20533 (expand_oacc_for): Same.
20534 (expand_omp_atomic_pipeline): Same.
20535 (mark_loops_in_oacc_kernels_region): Same.
20536 * omp-offload.c (oacc_xform_loop): Same.
20537 * omp-simd-clone.c (simd_clone_adjust): Same.
20538 * optabs-query.c (get_traditional_extraction_insn): Same.
20539 * optabs.c (expand_vector_broadcast): Same.
20540 (expand_binop_directly): Same.
20541 (expand_twoval_unop): Same.
20542 (expand_twoval_binop): Same.
20543 (expand_unop_direct): Same.
20544 (emit_indirect_jump): Same.
20545 (emit_conditional_move): Same.
20546 (emit_conditional_neg_or_complement): Same.
20547 (emit_conditional_add): Same.
20548 (vector_compare_rtx): Same.
20549 (expand_vec_perm_1): Same.
20550 (expand_vec_perm_const): Same.
20551 (expand_vec_cond_expr): Same.
20552 (expand_vec_series_expr): Same.
20553 (maybe_emit_atomic_exchange): Same.
20554 (maybe_emit_sync_lock_test_and_set): Same.
20555 (expand_atomic_compare_and_swap): Same.
20556 (expand_atomic_load): Same.
20557 (expand_atomic_store): Same.
20558 (maybe_emit_op): Same.
20559 (valid_multiword_target_p): Same.
20560 (create_integer_operand): Same.
20561 (maybe_legitimize_operand_same_code): Same.
20562 (maybe_legitimize_operand): Same.
20563 (create_convert_operand_from_type): Same.
20564 (can_reuse_operands_p): Same.
20565 (maybe_legitimize_operands): Same.
20566 (maybe_gen_insn): Same.
20567 (maybe_expand_insn): Same.
20568 (maybe_expand_jump_insn): Same.
20569 (expand_insn): Same.
20570 * optabs.h (create_expand_operand): Same.
20571 (create_fixed_operand): Same.
20572 (create_output_operand): Same.
20573 (create_input_operand): Same.
20574 (create_convert_operand_to): Same.
20575 (create_convert_operand_from): Same.
20576 * optinfo.h: Same.
20577 * poly-int.h: Same.
20578 * predict.c (optimize_insn_for_speed_p): Same.
20579 (optimize_loop_for_size_p): Same.
20580 (optimize_loop_for_speed_p): Same.
20581 (optimize_loop_nest_for_speed_p): Same.
20582 (get_base_value): Same.
20583 (predicted_by_loop_heuristics_p): Same.
20584 (predict_extra_loop_exits): Same.
20585 (predict_loops): Same.
20586 (predict_paths_for_bb): Same.
20587 (predict_paths_leading_to): Same.
20588 (propagate_freq): Same.
20589 (pass_profile::execute): Same.
20590 * predict.h: Same.
20591 * profile-count.c (profile_count::differs_from_p): Same.
20592 (profile_probability::differs_lot_from_p): Same.
20593 * profile-count.h: Same.
20594 * profile.c (branch_prob): Same.
20595 * regrename.c (free_chain_data): Same.
20596 (mark_conflict): Same.
20597 (create_new_chain): Same.
20598 (merge_overlapping_regs): Same.
20599 (init_rename_info): Same.
20600 (merge_chains): Same.
20601 (regrename_analyze): Same.
20602 (regrename_do_replace): Same.
20603 (scan_rtx_reg): Same.
20604 (record_out_operands): Same.
20605 (build_def_use): Same.
20606 * regrename.h: Same.
20607 * reload.h: Same.
20608 * reload1.c (init_reload): Same.
20609 (maybe_fix_stack_asms): Same.
20610 (copy_reloads): Same.
20611 (count_pseudo): Same.
20612 (count_spilled_pseudo): Same.
20613 (find_reg): Same.
20614 (find_reload_regs): Same.
20615 (select_reload_regs): Same.
20616 (spill_hard_reg): Same.
20617 (fixup_eh_region_note): Same.
20618 (set_reload_reg): Same.
20619 (allocate_reload_reg): Same.
20620 (compute_reload_subreg_offset): Same.
20621 (reload_adjust_reg_for_icode): Same.
20622 (emit_input_reload_insns): Same.
20623 (emit_output_reload_insns): Same.
20624 (do_input_reload): Same.
20625 (inherit_piecemeal_p): Same.
20626 * rtl.h: Same.
20627 * sanopt.c (maybe_get_dominating_check): Same.
20628 (maybe_optimize_ubsan_ptr_ifn): Same.
20629 (can_remove_asan_check): Same.
20630 (maybe_optimize_asan_check_ifn): Same.
20631 (sanopt_optimize_walker): Same.
20632 * sched-deps.c (add_dependence_list): Same.
20633 (chain_to_prev_insn): Same.
20634 (add_insn_mem_dependence): Same.
20635 (create_insn_reg_set): Same.
20636 (maybe_extend_reg_info_p): Same.
20637 (sched_analyze_reg): Same.
20638 (sched_analyze_1): Same.
20639 (get_implicit_reg_pending_clobbers): Same.
20640 (chain_to_prev_insn_p): Same.
20641 (deps_analyze_insn): Same.
20642 (deps_start_bb): Same.
20643 (sched_free_deps): Same.
20644 (init_deps): Same.
20645 (init_deps_reg_last): Same.
20646 (free_deps): Same.
20647 * sched-ebb.c: Same.
20648 * sched-int.h: Same.
20649 * sched-rgn.c (add_branch_dependences): Same.
20650 (concat_insn_mem_list): Same.
20651 (deps_join): Same.
20652 (sched_rgn_compute_dependencies): Same.
20653 * sel-sched-ir.c (reset_target_context): Same.
20654 (copy_deps_context): Same.
20655 (init_id_from_df): Same.
20656 (has_dependence_p): Same.
20657 (change_loops_latches): Same.
20658 (bb_top_order_comparator): Same.
20659 (make_region_from_loop_preheader): Same.
20660 (sel_init_pipelining): Same.
20661 (get_loop_nest_for_rgn): Same.
20662 (make_regions_from_the_rest): Same.
20663 (sel_is_loop_preheader_p): Same.
20664 * sel-sched-ir.h (inner_loop_header_p): Same.
20665 (get_all_loop_exits): Same.
20666 * selftest.h: Same.
20667 * sese.c (sese_build_liveouts): Same.
20668 (sese_insert_phis_for_liveouts): Same.
20669 * sese.h (defined_in_sese_p): Same.
20670 * sreal.c (sreal::stream_out): Same.
20671 * sreal.h: Same.
20672 * streamer-hooks.h: Same.
20673 * target-globals.c (save_target_globals): Same.
20674 * target-globals.h: Same.
20675 * target.def: Same.
20676 * target.h: Same.
20677 * targhooks.c (default_has_ifunc_p): Same.
20678 (default_empty_mask_is_expensive): Same.
20679 (default_init_cost): Same.
20680 * targhooks.h: Same.
20681 * toplev.c: Same.
20682 * tree-affine.c (aff_combination_mult): Same.
20683 (aff_combination_expand): Same.
20684 (aff_combination_constant_multiple_p): Same.
20685 * tree-affine.h: Same.
20686 * tree-cfg.c (build_gimple_cfg): Same.
20687 (replace_loop_annotate_in_block): Same.
20688 (replace_uses_by): Same.
20689 (remove_bb): Same.
20690 (dump_cfg_stats): Same.
20691 (gimple_duplicate_sese_region): Same.
20692 (gimple_duplicate_sese_tail): Same.
20693 (move_block_to_fn): Same.
20694 (replace_block_vars_by_duplicates): Same.
20695 (move_sese_region_to_fn): Same.
20696 (print_loops_bb): Same.
20697 (print_loop): Same.
20698 (print_loops): Same.
20699 (debug): Same.
20700 (debug_loops): Same.
20701 * tree-cfg.h: Same.
20702 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20703 (chrec_fold_multiply_poly_poly): Same.
20704 (chrec_evaluate): Same.
20705 (chrec_component_in_loop_num): Same.
20706 (reset_evolution_in_loop): Same.
20707 (is_multivariate_chrec): Same.
20708 (chrec_contains_symbols): Same.
20709 (nb_vars_in_chrec): Same.
20710 (chrec_convert_1): Same.
20711 (chrec_convert_aggressive): Same.
20712 * tree-chrec.h: Same.
20713 * tree-core.h: Same.
20714 * tree-data-ref.c (dump_data_dependence_relation): Same.
20715 (canonicalize_base_object_address): Same.
20716 (data_ref_compare_tree): Same.
20717 (prune_runtime_alias_test_list): Same.
20718 (get_segment_min_max): Same.
20719 (create_intersect_range_checks): Same.
20720 (conflict_fn_no_dependence): Same.
20721 (object_address_invariant_in_loop_p): Same.
20722 (analyze_ziv_subscript): Same.
20723 (analyze_siv_subscript_cst_affine): Same.
20724 (analyze_miv_subscript): Same.
20725 (analyze_overlapping_iterations): Same.
20726 (build_classic_dist_vector_1): Same.
20727 (add_other_self_distances): Same.
20728 (same_access_functions): Same.
20729 (build_classic_dir_vector): Same.
20730 (subscript_dependence_tester_1): Same.
20731 (subscript_dependence_tester): Same.
20732 (access_functions_are_affine_or_constant_p): Same.
20733 (get_references_in_stmt): Same.
20734 (loop_nest_has_data_refs): Same.
20735 (graphite_find_data_references_in_stmt): Same.
20736 (find_data_references_in_bb): Same.
20737 (get_base_for_alignment): Same.
20738 (find_loop_nest_1): Same.
20739 (find_loop_nest): Same.
20740 * tree-data-ref.h (dr_alignment): Same.
20741 (ddr_dependence_level): Same.
20742 * tree-if-conv.c (fold_build_cond_expr): Same.
20743 (add_to_predicate_list): Same.
20744 (add_to_dst_predicate_list): Same.
20745 (phi_convertible_by_degenerating_args): Same.
20746 (idx_within_array_bound): Same.
20747 (all_preds_critical_p): Same.
20748 (pred_blocks_visited_p): Same.
20749 (predicate_bbs): Same.
20750 (build_region): Same.
20751 (if_convertible_loop_p_1): Same.
20752 (is_cond_scalar_reduction): Same.
20753 (predicate_scalar_phi): Same.
20754 (remove_conditions_and_labels): Same.
20755 (combine_blocks): Same.
20756 (version_loop_for_if_conversion): Same.
20757 (versionable_outer_loop_p): Same.
20758 (ifcvt_local_dce): Same.
20759 (tree_if_conversion): Same.
20760 (pass_if_conversion::gate): Same.
20761 * tree-if-conv.h: Same.
20762 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20763 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20764 (free_rdg): Same.
20765 (stmt_has_scalar_dependences_outside_loop): Same.
20766 (copy_loop_before): Same.
20767 (create_bb_after_loop): Same.
20768 (const_with_all_bytes_same): Same.
20769 (generate_memset_builtin): Same.
20770 (generate_memcpy_builtin): Same.
20771 (destroy_loop): Same.
20772 (build_rdg_partition_for_vertex): Same.
20773 (compute_access_range): Same.
20774 (data_ref_segment_size): Same.
20775 (latch_dominated_by_data_ref): Same.
20776 (compute_alias_check_pairs): Same.
20777 (fuse_memset_builtins): Same.
20778 (finalize_partitions): Same.
20779 (find_seed_stmts_for_distribution): Same.
20780 (prepare_perfect_loop_nest): Same.
20781 * tree-parloops.c (lambda_transform_legal_p): Same.
20782 (loop_parallel_p): Same.
20783 (reduc_stmt_res): Same.
20784 (add_field_for_name): Same.
20785 (create_call_for_reduction_1): Same.
20786 (replace_uses_in_bb_by): Same.
20787 (transform_to_exit_first_loop_alt): Same.
20788 (try_transform_to_exit_first_loop_alt): Same.
20789 (transform_to_exit_first_loop): Same.
20790 (num_phis): Same.
20791 (gen_parallel_loop): Same.
20792 (gather_scalar_reductions): Same.
20793 (get_omp_data_i_param): Same.
20794 (try_create_reduction_list): Same.
20795 (oacc_entry_exit_single_gang): Same.
20796 (parallelize_loops): Same.
20797 * tree-pass.h: Same.
20798 * tree-predcom.c (determine_offset): Same.
20799 (last_always_executed_block): Same.
20800 (split_data_refs_to_components): Same.
20801 (suitable_component_p): Same.
20802 (valid_initializer_p): Same.
20803 (find_looparound_phi): Same.
20804 (insert_looparound_copy): Same.
20805 (add_looparound_copies): Same.
20806 (determine_roots_comp): Same.
20807 (predcom_tmp_var): Same.
20808 (initialize_root_vars): Same.
20809 (initialize_root_vars_store_elim_1): Same.
20810 (initialize_root_vars_store_elim_2): Same.
20811 (finalize_eliminated_stores): Same.
20812 (initialize_root_vars_lm): Same.
20813 (remove_stmt): Same.
20814 (determine_unroll_factor): Same.
20815 (execute_pred_commoning_cbck): Same.
20816 (base_names_in_chain_on): Same.
20817 (combine_chains): Same.
20818 (pcom_stmt_dominates_stmt_p): Same.
20819 (try_combine_chains): Same.
20820 (prepare_initializers_chain_store_elim): Same.
20821 (prepare_initializers_chain): Same.
20822 (prepare_initializers): Same.
20823 (prepare_finalizers_chain): Same.
20824 (prepare_finalizers): Same.
20825 (insert_init_seqs): Same.
20826 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20827 (compute_overall_effect_of_inner_loop): Same.
20828 (add_to_evolution_1): Same.
20829 (add_to_evolution): Same.
20830 (follow_ssa_edge_binary): Same.
20831 (follow_ssa_edge_expr): Same.
20832 (backedge_phi_arg_p): Same.
20833 (follow_ssa_edge_in_condition_phi_branch): Same.
20834 (follow_ssa_edge_in_condition_phi): Same.
20835 (follow_ssa_edge_inner_loop_phi): Same.
20836 (follow_ssa_edge): Same.
20837 (analyze_evolution_in_loop): Same.
20838 (analyze_initial_condition): Same.
20839 (interpret_loop_phi): Same.
20840 (interpret_condition_phi): Same.
20841 (interpret_rhs_expr): Same.
20842 (interpret_expr): Same.
20843 (interpret_gimple_assign): Same.
20844 (analyze_scalar_evolution_1): Same.
20845 (analyze_scalar_evolution): Same.
20846 (analyze_scalar_evolution_for_address_of): Same.
20847 (get_instantiated_value_entry): Same.
20848 (loop_closed_phi_def): Same.
20849 (instantiate_scev_name): Same.
20850 (instantiate_scev_poly): Same.
20851 (instantiate_scev_binary): Same.
20852 (instantiate_scev_convert): Same.
20853 (instantiate_scev_not): Same.
20854 (instantiate_scev_r): Same.
20855 (instantiate_scev): Same.
20856 (resolve_mixers): Same.
20857 (initialize_scalar_evolutions_analyzer): Same.
20858 (scev_reset_htab): Same.
20859 (scev_reset): Same.
20860 (derive_simple_iv_with_niters): Same.
20861 (simple_iv_with_niters): Same.
20862 (expression_expensive_p): Same.
20863 (final_value_replacement_loop): Same.
20864 * tree-scalar-evolution.h (block_before_loop): Same.
20865 * tree-ssa-address.h: Same.
20866 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20867 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20868 (record_edge_info): Same.
20869 * tree-ssa-live.c (var_map_base_fini): Same.
20870 (remove_unused_locals): Same.
20871 * tree-ssa-live.h: Same.
20872 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20873 (pass_ch_vect::execute): Same.
20874 (pass_ch::process_loop_p): Same.
20875 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20876 (movement_possibility): Same.
20877 (outermost_invariant_loop): Same.
20878 (stmt_cost): Same.
20879 (determine_max_movement): Same.
20880 (invariantness_dom_walker::before_dom_children): Same.
20881 (move_computations): Same.
20882 (may_move_till): Same.
20883 (force_move_till_op): Same.
20884 (force_move_till): Same.
20885 (memref_free): Same.
20886 (record_mem_ref_loc): Same.
20887 (set_ref_stored_in_loop): Same.
20888 (mark_ref_stored): Same.
20889 (sort_bbs_in_loop_postorder_cmp): Same.
20890 (sort_locs_in_loop_postorder_cmp): Same.
20891 (analyze_memory_references): Same.
20892 (mem_refs_may_alias_p): Same.
20893 (find_ref_loc_in_loop_cmp): Same.
20894 (rewrite_mem_ref_loc::operator): Same.
20895 (first_mem_ref_loc_1::operator): Same.
20896 (sm_set_flag_if_changed::operator): Same.
20897 (execute_sm_if_changed_flag_set): Same.
20898 (execute_sm): Same.
20899 (hoist_memory_references): Same.
20900 (ref_always_accessed::operator): Same.
20901 (refs_independent_p): Same.
20902 (record_dep_loop): Same.
20903 (ref_indep_loop_p_1): Same.
20904 (ref_indep_loop_p): Same.
20905 (can_sm_ref_p): Same.
20906 (find_refs_for_sm): Same.
20907 (loop_suitable_for_sm): Same.
20908 (store_motion_loop): Same.
20909 (store_motion): Same.
20910 (fill_always_executed_in): Same.
20911 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20912 (estimated_unrolled_size): Same.
20913 (loop_edge_to_cancel): Same.
20914 (remove_exits_and_undefined_stmts): Same.
20915 (remove_redundant_iv_tests): Same.
20916 (unloop_loops): Same.
20917 (estimated_peeled_sequence_size): Same.
20918 (try_peel_loop): Same.
20919 (canonicalize_loop_induction_variables): Same.
20920 (canonicalize_induction_variables): Same.
20921 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20922 (name_info): Same.
20923 (stmt_after_inc_pos): Same.
20924 (contains_abnormal_ssa_name_p): Same.
20925 (niter_for_exit): Same.
20926 (find_bivs): Same.
20927 (mark_bivs): Same.
20928 (find_givs_in_bb): Same.
20929 (find_induction_variables): Same.
20930 (find_interesting_uses_cond): Same.
20931 (outermost_invariant_loop_for_expr): Same.
20932 (idx_find_step): Same.
20933 (add_candidate_1): Same.
20934 (add_iv_candidate_derived_from_uses): Same.
20935 (alloc_use_cost_map): Same.
20936 (prepare_decl_rtl): Same.
20937 (generic_predict_doloop_p): Same.
20938 (computation_cost): Same.
20939 (determine_common_wider_type): Same.
20940 (get_computation_aff_1): Same.
20941 (get_use_type): Same.
20942 (determine_group_iv_cost_address): Same.
20943 (iv_period): Same.
20944 (difference_cannot_overflow_p): Same.
20945 (may_eliminate_iv): Same.
20946 (determine_set_costs): Same.
20947 (cheaper_cost_pair): Same.
20948 (compare_cost_pair): Same.
20949 (iv_ca_cand_for_group): Same.
20950 (iv_ca_recount_cost): Same.
20951 (iv_ca_set_remove_invs): Same.
20952 (iv_ca_set_no_cp): Same.
20953 (iv_ca_set_add_invs): Same.
20954 (iv_ca_set_cp): Same.
20955 (iv_ca_add_group): Same.
20956 (iv_ca_cost): Same.
20957 (iv_ca_compare_deps): Same.
20958 (iv_ca_delta_reverse): Same.
20959 (iv_ca_delta_commit): Same.
20960 (iv_ca_cand_used_p): Same.
20961 (iv_ca_delta_free): Same.
20962 (iv_ca_new): Same.
20963 (iv_ca_free): Same.
20964 (iv_ca_dump): Same.
20965 (iv_ca_extend): Same.
20966 (iv_ca_narrow): Same.
20967 (iv_ca_prune): Same.
20968 (cheaper_cost_with_cand): Same.
20969 (iv_ca_replace): Same.
20970 (try_add_cand_for): Same.
20971 (get_initial_solution): Same.
20972 (try_improve_iv_set): Same.
20973 (find_optimal_iv_set_1): Same.
20974 (create_new_iv): Same.
20975 (rewrite_use_compare): Same.
20976 (remove_unused_ivs): Same.
20977 (determine_scaling_factor): Same.
20978 * tree-ssa-loop-ivopts.h: Same.
20979 * tree-ssa-loop-manip.c (create_iv): Same.
20980 (compute_live_loop_exits): Same.
20981 (add_exit_phi): Same.
20982 (add_exit_phis): Same.
20983 (find_uses_to_rename_use): Same.
20984 (find_uses_to_rename_def): Same.
20985 (find_uses_to_rename_in_loop): Same.
20986 (rewrite_into_loop_closed_ssa): Same.
20987 (check_loop_closed_ssa_bb): Same.
20988 (split_loop_exit_edge): Same.
20989 (ip_end_pos): Same.
20990 (ip_normal_pos): Same.
20991 (copy_phi_node_args): Same.
20992 (gimple_duplicate_loop_to_header_edge): Same.
20993 (can_unroll_loop_p): Same.
20994 (determine_exit_conditions): Same.
20995 (scale_dominated_blocks_in_loop): Same.
20996 (niter_for_unrolled_loop): Same.
20997 (tree_transform_and_unroll_loop): Same.
20998 (rewrite_all_phi_nodes_with_iv): Same.
20999 * tree-ssa-loop-manip.h: Same.
21000 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21001 (number_of_iterations_ne): Same.
21002 (assert_no_overflow_lt): Same.
21003 (assert_loop_rolls_lt): Same.
21004 (number_of_iterations_lt): Same.
21005 (adjust_cond_for_loop_until_wrap): Same.
21006 (tree_simplify_using_condition): Same.
21007 (simplify_using_initial_conditions): Same.
21008 (simplify_using_outer_evolutions): Same.
21009 (loop_only_exit_p): Same.
21010 (ssa_defined_by_minus_one_stmt_p): Same.
21011 (number_of_iterations_popcount): Same.
21012 (number_of_iterations_exit): Same.
21013 (find_loop_niter): Same.
21014 (finite_loop_p): Same.
21015 (chain_of_csts_start): Same.
21016 (get_val_for): Same.
21017 (loop_niter_by_eval): Same.
21018 (derive_constant_upper_bound_ops): Same.
21019 (do_warn_aggressive_loop_optimizations): Same.
21020 (record_estimate): Same.
21021 (get_cst_init_from_scev): Same.
21022 (record_nonwrapping_iv): Same.
21023 (idx_infer_loop_bounds): Same.
21024 (infer_loop_bounds_from_ref): Same.
21025 (infer_loop_bounds_from_array): Same.
21026 (infer_loop_bounds_from_pointer_arith): Same.
21027 (infer_loop_bounds_from_signedness): Same.
21028 (bound_index): Same.
21029 (discover_iteration_bound_by_body_walk): Same.
21030 (maybe_lower_iteration_bound): Same.
21031 (estimate_numbers_of_iterations): Same.
21032 (estimated_loop_iterations): Same.
21033 (estimated_loop_iterations_int): Same.
21034 (max_loop_iterations): Same.
21035 (max_loop_iterations_int): Same.
21036 (likely_max_loop_iterations): Same.
21037 (likely_max_loop_iterations_int): Same.
21038 (estimated_stmt_executions_int): Same.
21039 (max_stmt_executions): Same.
21040 (likely_max_stmt_executions): Same.
21041 (estimated_stmt_executions): Same.
21042 (stmt_dominates_stmt_p): Same.
21043 (nowrap_type_p): Same.
21044 (loop_exits_before_overflow): Same.
21045 (scev_var_range_cant_overflow): Same.
21046 (scev_probably_wraps_p): Same.
21047 (free_numbers_of_iterations_estimates): Same.
21048 * tree-ssa-loop-niter.h: Same.
21049 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21050 (idx_analyze_ref): Same.
21051 (analyze_ref): Same.
21052 (gather_memory_references_ref): Same.
21053 (mark_nontemporal_store): Same.
21054 (emit_mfence_after_loop): Same.
21055 (may_use_storent_in_loop_p): Same.
21056 (mark_nontemporal_stores): Same.
21057 (should_unroll_loop_p): Same.
21058 (volume_of_dist_vector): Same.
21059 (add_subscript_strides): Same.
21060 (self_reuse_distance): Same.
21061 (insn_to_prefetch_ratio_too_small_p): Same.
21062 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21063 (patch_loop_exit): Same.
21064 (find_or_create_guard_phi): Same.
21065 (easy_exit_values): Same.
21066 (connect_loop_phis): Same.
21067 (connect_loops): Same.
21068 (compute_new_first_bound): Same.
21069 (split_loop): Same.
21070 (tree_ssa_split_loops): Same.
21071 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21072 (is_maybe_undefined): Same.
21073 (tree_may_unswitch_on): Same.
21074 (simplify_using_entry_checks): Same.
21075 (tree_unswitch_single_loop): Same.
21076 (tree_unswitch_loop): Same.
21077 (tree_unswitch_outer_loop): Same.
21078 (empty_bb_without_guard_p): Same.
21079 (used_outside_loop_p): Same.
21080 (get_vop_from_header): Same.
21081 (hoist_guard): Same.
21082 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21083 (get_lsm_tmp_name): Same.
21084 * tree-ssa-loop.h: Same.
21085 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21086 (build_and_add_sum): Same.
21087 (no_side_effect_bb): Same.
21088 (get_ops): Same.
21089 (linearize_expr): Same.
21090 (should_break_up_subtract): Same.
21091 (linearize_expr_tree): Same.
21092 * tree-ssa-scopedtables.c: Same.
21093 * tree-ssa-scopedtables.h: Same.
21094 * tree-ssa-structalias.c (condense_visit): Same.
21095 (label_visit): Same.
21096 (dump_pred_graph): Same.
21097 (perform_var_substitution): Same.
21098 (move_complex_constraints): Same.
21099 (remove_preds_and_fake_succs): Same.
21100 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21101 (determine_bb_domination_status): Same.
21102 (duplicate_thread_path): Same.
21103 (thread_through_all_blocks): Same.
21104 * tree-ssa-threadupdate.h: Same.
21105 * tree-streamer-in.c (streamer_read_string_cst): Same.
21106 (input_identifier): Same.
21107 (unpack_ts_type_common_value_fields): Same.
21108 (unpack_ts_block_value_fields): Same.
21109 (unpack_ts_translation_unit_decl_value_fields): Same.
21110 (unpack_ts_omp_clause_value_fields): Same.
21111 (streamer_read_tree_bitfields): Same.
21112 (streamer_alloc_tree): Same.
21113 (lto_input_ts_common_tree_pointers): Same.
21114 (lto_input_ts_vector_tree_pointers): Same.
21115 (lto_input_ts_poly_tree_pointers): Same.
21116 (lto_input_ts_complex_tree_pointers): Same.
21117 (lto_input_ts_decl_minimal_tree_pointers): Same.
21118 (lto_input_ts_decl_common_tree_pointers): Same.
21119 (lto_input_ts_decl_non_common_tree_pointers): Same.
21120 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21121 (lto_input_ts_field_decl_tree_pointers): Same.
21122 (lto_input_ts_function_decl_tree_pointers): Same.
21123 (lto_input_ts_type_common_tree_pointers): Same.
21124 (lto_input_ts_type_non_common_tree_pointers): Same.
21125 (lto_input_ts_list_tree_pointers): Same.
21126 (lto_input_ts_vec_tree_pointers): Same.
21127 (lto_input_ts_exp_tree_pointers): Same.
21128 (lto_input_ts_block_tree_pointers): Same.
21129 (lto_input_ts_binfo_tree_pointers): Same.
21130 (lto_input_ts_constructor_tree_pointers): Same.
21131 (lto_input_ts_omp_clause_tree_pointers): Same.
21132 (streamer_read_tree_body): Same.
21133 * tree-streamer.h: Same.
21134 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21135 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21136 (vect_analyze_possibly_independent_ddr): Same.
21137 (vect_analyze_data_ref_dependence): Same.
21138 (vect_compute_data_ref_alignment): Same.
21139 (vect_enhance_data_refs_alignment): Same.
21140 (vect_analyze_data_ref_access): Same.
21141 (vect_check_gather_scatter): Same.
21142 (vect_find_stmt_data_reference): Same.
21143 (vect_create_addr_base_for_vector_ref): Same.
21144 (vect_setup_realignment): Same.
21145 (vect_supportable_dr_alignment): Same.
21146 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21147 (adjust_phi_and_debug_stmts): Same.
21148 (vect_set_loop_mask): Same.
21149 (add_preheader_seq): Same.
21150 (vect_maybe_permute_loop_masks): Same.
21151 (vect_set_loop_masks_directly): Same.
21152 (vect_set_loop_condition_masked): Same.
21153 (vect_set_loop_condition_unmasked): Same.
21154 (slpeel_duplicate_current_defs_from_edges): Same.
21155 (slpeel_add_loop_guard): Same.
21156 (slpeel_can_duplicate_loop_p): Same.
21157 (create_lcssa_for_virtual_phi): Same.
21158 (iv_phi_p): Same.
21159 (vect_update_ivs_after_vectorizer): Same.
21160 (vect_gen_vector_loop_niters_mult_vf): Same.
21161 (slpeel_update_phi_nodes_for_loops): Same.
21162 (slpeel_update_phi_nodes_for_guard1): Same.
21163 (find_guard_arg): Same.
21164 (slpeel_update_phi_nodes_for_guard2): Same.
21165 (slpeel_update_phi_nodes_for_lcssa): Same.
21166 (vect_do_peeling): Same.
21167 (vect_create_cond_for_alias_checks): Same.
21168 (vect_loop_versioning): Same.
21169 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21170 (vect_inner_phi_in_double_reduction_p): Same.
21171 (vect_analyze_scalar_cycles_1): Same.
21172 (vect_fixup_scalar_cycles_with_patterns): Same.
21173 (vect_get_loop_niters): Same.
21174 (bb_in_loop_p): Same.
21175 (vect_get_max_nscalars_per_iter): Same.
21176 (vect_verify_full_masking): Same.
21177 (vect_compute_single_scalar_iteration_cost): Same.
21178 (vect_analyze_loop_form_1): Same.
21179 (vect_analyze_loop_form): Same.
21180 (vect_active_double_reduction_p): Same.
21181 (vect_analyze_loop_operations): Same.
21182 (neutral_op_for_slp_reduction): Same.
21183 (vect_is_simple_reduction): Same.
21184 (vect_model_reduction_cost): Same.
21185 (get_initial_def_for_reduction): Same.
21186 (get_initial_defs_for_reduction): Same.
21187 (vect_create_epilog_for_reduction): Same.
21188 (vectorize_fold_left_reduction): Same.
21189 (vectorizable_reduction): Same.
21190 (vectorizable_induction): Same.
21191 (vectorizable_live_operation): Same.
21192 (loop_niters_no_overflow): Same.
21193 (vect_get_loop_mask): Same.
21194 (vect_transform_loop_stmt): Same.
21195 (vect_transform_loop): Same.
21196 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21197 (vect_determine_precisions): Same.
21198 (vect_pattern_recog_1): Same.
21199 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21200 * tree-vect-stmts.c (stmt_vectype): Same.
21201 (process_use): Same.
21202 (vect_init_vector_1): Same.
21203 (vect_truncate_gather_scatter_offset): Same.
21204 (get_group_load_store_type): Same.
21205 (vect_build_gather_load_calls): Same.
21206 (vect_get_strided_load_store_ops): Same.
21207 (vectorizable_simd_clone_call): Same.
21208 (vectorizable_store): Same.
21209 (permute_vec_elements): Same.
21210 (vectorizable_load): Same.
21211 (vect_transform_stmt): Same.
21212 (supportable_widening_operation): Same.
21213 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21214 (vec_info::free_stmt_vec_info): Same.
21215 (vect_free_loop_info_assumptions): Same.
21216 (vect_loop_vectorized_call): Same.
21217 (set_uid_loop_bbs): Same.
21218 (vectorize_loops): Same.
21219 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21220 * tree.c (add_tree_to_fld_list): Same.
21221 (fld_type_variant_equal_p): Same.
21222 (fld_decl_context): Same.
21223 (fld_incomplete_type_of): Same.
21224 (free_lang_data_in_binfo): Same.
21225 (need_assembler_name_p): Same.
21226 (find_decls_types_r): Same.
21227 (get_eh_types_for_runtime): Same.
21228 (find_decls_types_in_eh_region): Same.
21229 (find_decls_types_in_node): Same.
21230 (assign_assembler_name_if_needed): Same.
21231 * value-prof.c (stream_out_histogram_value): Same.
21232 * value-prof.h: Same.
21233 * var-tracking.c (use_narrower_mode): Same.
21234 (prepare_call_arguments): Same.
21235 (vt_expand_loc_callback): Same.
21236 (resolve_expansions_pending_recursion): Same.
21237 (vt_expand_loc): Same.
21238 * varasm.c (const_hash_1): Same.
21239 (compare_constant): Same.
21240 (tree_output_constant_def): Same.
21241 (simplify_subtraction): Same.
21242 (get_pool_constant): Same.
21243 (output_constant_pool_2): Same.
21244 (output_constant_pool_1): Same.
21245 (mark_constants_in_pattern): Same.
21246 (mark_constant_pool): Same.
21247 (get_section_anchor): Same.
21248 * vr-values.c (compare_range_with_value): Same.
21249 (vr_values::extract_range_from_phi_node): Same.
21250 * vr-values.h: Same.
21251 * web.c (unionfind_union): Same.
21252 * wide-int.h: Same.
21253
21254 2019-07-09 Martin Sebor <msebor@redhat.com>
21255
21256 PR c++/61339
21257 * align.h: Change class-key from class to struct and vice versa
21258 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21259 * alloc-pool.h: Same.
21260 * asan.c (shadow_mem_size): Same.
21261 * auto-profile.c: Same.
21262 * basic-block.h: Same.
21263 * bitmap.h: Same.
21264 * cfgexpand.c (set_rtl): Same.
21265 (expand_one_stack_var_at): Same.
21266 * cfghooks.h: Same.
21267 * cfgloop.h: Same.
21268 * cgraph.h: Same.
21269 * config/i386/i386.h: Same.
21270 * df-problems.c (df_print_bb_index): Same.
21271 * df-scan.c: Same.
21272 * df.h (df_single_use): Same.
21273 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21274 (layout::annotation_line_showed_range_p): Same.
21275 (get_printed_columns): Same.
21276 (correction::ensure_terminated): Same.
21277 (line_corrections::~line_corrections): Same.
21278 * dojump.h: Same.
21279 * dse.c: Same.
21280 * dump-context.h: Same.
21281 * dumpfile.h: Same.
21282 * dwarf2out.c: Same.
21283 * edit-context.c: Same.
21284 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21285 * flags.h: Same.
21286 * function.c (assign_stack_local): Same.
21287 * function.h: Same.
21288 * gcc.c: Same.
21289 * gcov.c (block_info::block_info): Same.
21290 * genattrtab.c: Same.
21291 * genextract.c: Same.
21292 * genmatch.c (comparison_code_p): Same.
21293 (id_base::id_base): Same.
21294 (decision_tree::print): Same.
21295 * genoutput.c: Same.
21296 * genpreds.c (write_one_predicate_function): Same.
21297 * genrecog.c (validate_pattern): Same.
21298 (find_operand_positions): Same.
21299 (optimize_subroutine_group): Same.
21300 (merge_pattern_transition::merge_pattern_transition): Same.
21301 (merge_pattern_info::merge_pattern_info): Same.
21302 (merge_state_result::merge_state_result): Same.
21303 (merge_into_state): Same.
21304 * gensupport.c: Same.
21305 * gensupport.h: Same.
21306 * ggc-common.c (init_ggc_heuristics): Same.
21307 * ggc-tests.c (test_union): Same.
21308 * gimple-loop-interchange.cc (dump_induction): Same.
21309 * gimple-loop-versioning.cc: Same.
21310 * gimple-match.h (gimple_match_cond::any_else): Same.
21311 * gimple-ssa-backprop.c: Same.
21312 * gimple-ssa-sprintf.c: Same.
21313 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21314 Same.
21315 (store_immediate_info::store_immediate_info): Same.
21316 (merged_store_group::apply_stores): Same.
21317 (get_location_for_stmts): Same.
21318 * gimple-ssa-strength-reduction.c: Same.
21319 * gimple-ssa-warn-alloca.c: Same.
21320 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21321 * godump.c (go_type_decl): Same.
21322 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21323 * hash-map.h: Same.
21324 * hash-set-tests.c (test_set_of_strings): Same.
21325 * hsa-brig.c: Same.
21326 * hsa-common.h: Same.
21327 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21328 * input.c (assert_loceq): Same.
21329 * input.h: Same.
21330 * ipa-cp.c: Same.
21331 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21332 * ipa-fnsummary.h: Same.
21333 * ipa-inline.h: Same.
21334 * ipa-prop.h: Same.
21335 * ipa-split.c (visit_bb): Same.
21336 * ira-int.h (minmax_set_iter_next): Same.
21337 * loop-invariant.c: Same.
21338 * loop-iv.c: Same.
21339 * lra-eliminations.c: Same.
21340 * lra-int.h: Same.
21341 * lra-lives.c (mark_regno_dead): Same.
21342 * lra-remat.c: Same.
21343 * lra-spills.c: Same.
21344 * lto-streamer.h: Same.
21345 * mem-stats.h: Same.
21346 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21347 * omp-low.c (omp_clause_aligned_alignment): Same.
21348 * optabs-query.h (get_vcond_eq_icode): Same.
21349 * optabs.h: Same.
21350 * opts.c (wrap_help): Same.
21351 * poly-int.h: Same.
21352 * predict.c (predict_paths_leading_to_edge): Same.
21353 * pretty-print.h: Same.
21354 * profile-count.h: Same.
21355 * read-md.h: Same.
21356 * read-rtl-function.c: Same.
21357 * ree.c: Same.
21358 * reginfo.c: Same.
21359 * regrename.c: Same.
21360 * regrename.h: Same.
21361 * reload.h: Same.
21362 * rtl-iter.h: Same.
21363 * rtl.h (costs_add_n_insns): Same.
21364 * sanopt.c: Same.
21365 * sched-int.h: Same.
21366 * sel-sched-ir.h: Same.
21367 * selftest.h: Same.
21368 * sese.h (vec_find): Same.
21369 * stmt.c: Same.
21370 * target-globals.h: Same.
21371 * tree-affine.c (aff_combination_find_elt): Same.
21372 * tree-affine.h: Same.
21373 * tree-data-ref.h: Same.
21374 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21375 * tree-predcom.c: Same.
21376 * tree-scalar-evolution.c (find_var_scev_info): Same.
21377 * tree-ssa-alias.h: Same.
21378 * tree-ssa-ccp.c: Same.
21379 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21380 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21381 (rewrite_mem_refs): Same.
21382 (execute_sm_if_changed): Same.
21383 (hoist_memory_references): Same.
21384 * tree-ssa-loop-ivopts.c (operator<=): Same.
21385 * tree-ssa-loop.h: Same.
21386 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21387 * tree-ssa-structalias.c: Same.
21388 * tree-switch-conversion.h (cluster::cluster): Same.
21389 (simple_cluster::simple_cluster): Same.
21390 * tree-vect-patterns.c (type_conversion_p): Same.
21391 * tree-vectorizer.c (dump_stmt_cost): Same.
21392 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21393 * tree.c (protected_set_expr_location): Same.
21394 * tree.h (desired_pro_or_demotion_p): Same.
21395 (fndecl_built_in_p): Same.
21396 * unique-ptr-tests.cc: Same.
21397 * var-tracking.c (delete_variable_part): Same.
21398 * varasm.c (assemble_real): Same.
21399 (tree_output_constant_def): Same.
21400 * vec.c: Same.
21401 * wide-int-bitmask.h: Same.
21402 * wide-int.h (decompose): Same.
21403
21404 2019-07-09 Richard Biener <rguenther@suse.de>
21405
21406 PR tree-optimization/91114
21407 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21408 find a vector type isn't fatal.
21409
21410 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21411
21412 * config/aarch64/aarch64-simd.md
21413 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21414 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21415 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21416 (*aarch64_crypto_aese_fused,
21417 *aarch64_crypto_aesd_fused): Update to new definition.
21418 * config/aarch64/aarch64.c
21419 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21420
21421 2019-07-09 Richard Biener <rguenther@suse.de>
21422
21423 * gimple-match.h (gimple_match_op::resimplify): New.
21424 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21425 gimple_resimplify4, gimple_resimplify5): Remove.
21426 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21427 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21428 Make static.
21429 (gimple_match_op::resimplify): New.
21430 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21431 according to availability. Use gimple_match_op::resimplify.
21432
21433 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21434
21435 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21436
21437 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21438
21439 * config/arm/crypto.md:
21440 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21441 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21442 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21443 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21444 * config/arm/arm.c
21445 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21446 * config/arm/aarch-common-protos.h
21447 (aarch_crypto_can_dual_issue): Remove.
21448 * config/arm/aarch-common.c
21449 (aarch_crypto_can_dual_issue): Likewise.
21450 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21451 * config/arm/cortex-a53.md: Likewise.
21452 * config/arm/cortex-a57.md: Likewise.
21453 * config/arm/iterators.md:
21454 (CRYPTO_BINARY): Redefine.
21455 (CRYPTO_UNARY): Removed.
21456 (CRYPTO_AES, CRYPTO_AESMC): New.
21457
21458 2019-07-09 Richard Biener <rguenther@suse.de>
21459
21460 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21461 (vn_reference_lookup_3): If the main ref has no access path recorded
21462 but orig_ref has use it to do access-path based disambiguation.
21463 (vn_reference_lookup_pieces): Adjust.
21464 (vn_reference_lookup): Pass down original ref if we valueized.
21465
21466 2019-07-09 Martin Liska <mliska@suse.cz>
21467
21468 * doc/extend.texi: Document influence on loop
21469 optimizers.
21470
21471 2019-07-09 Martin Liska <mliska@suse.cz>
21472
21473 * lto-compress.c (lto_normalized_zstd_level): Do not use
21474 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21475 of libzstd. One can use 0 as a default compression level.
21476
21477 2019-07-09 Martin Liska <mliska@suse.cz>
21478
21479 * doc/invoke.texi: Add link from -fprofile-dir option.
21480 Use better wording for 'gcno filename'.
21481
21482 2019-07-08 Martin Sebor <msebor@redhat.com>
21483
21484 PR middle-end/71924
21485 PR middle-end/90549
21486 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21487 comment.
21488 (args_loc_t): New type.
21489 (args_loc_t, locmap_t): same.
21490 (diag_returned_locals): New function.
21491 (is_addr_local): Same.
21492 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21493 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21494 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21495
21496 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21497
21498 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21499 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21500 and casts in offset when different, both through gimple stmts
21501 and through trees. Rewritten using loops to minimize code duplication
21502 for each operand.
21503
21504 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21505
21506 * emit-rtl.c (set_insn_locations): New function moved from...
21507 * function.c (set_insn_locations): ...here.
21508 * ira-emit.c (emit_moves): Propagate location of the first instruction
21509 to the inserted move instructions.
21510 * reg-stack.c (compensate_edge): Set the location if the sequence is
21511 inserted on the edge.
21512 * rtl.h (set_insn_locations): Declare.
21513
21514 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21515
21516 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21517 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21518 .machine string.
21519
21520 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21521
21522 PR rtl-optimization/88233
21523 * common.opt (fsplit-wide-types-early): New option.
21524 * common/config/rs6000/rs6000-common.c
21525 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21526 OPT_LEVELS_ALL.
21527 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21528 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21529 flag_split_wide_types_early.
21530 (pass_data_lower_subreg3): New.
21531 (pass_lower_subreg3): New.
21532 (make_pass_lower_subreg3): New.
21533 * passes.def (pass_lower_subreg2): Move after the loop passes.
21534 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21535 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21536 the pass pipeline; its previous place is taken by ...
21537 (make_pass_lower_subreg3): ... this.
21538
21539 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21540
21541 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21542 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21543
21544 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21545
21546 * config/s390/constraints.md: Add new jsc constraint.
21547 * config/s390/predicates.md: New predicates.
21548 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21549 * config/s390/s390.c (s390_valid_shift_count): New function.
21550 (print_shift_count_operand): Use s390_valid_shift_count.
21551 (print_operand): Likewise.
21552 * config/s390/s390.md: Use new predicate.
21553 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21554 * config/s390/vector.md: Use new predicate.
21555
21556 2019-07-08 Andrew Waterman <andrew@sifive.com>
21557 Jim Wilson <jimw@sifive.com>
21558
21559 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21560 bitsize instead of BITS_PER_WORD.
21561
21562 2019-07-08 Martin Liska <mliska@suse.cz>
21563
21564 * collect2.c (defined): Revert to before r254460.
21565 (scan_prog_file): Revert to before r254460.
21566
21567 2019-07-08 Richard Biener <rguenther@suse.de>
21568
21569 PR tree-optimization/83518
21570 * tree-ssa-sccvn.c: Include splay-tree.h.
21571 (struct pd_range, struct pd_data): New.
21572 (struct vn_walk_cb_data): Add data to track partial definitions.
21573 (vn_walk_cb_data::~vn_walk_cb_data): New.
21574 (vn_walk_cb_data::push_partial_def): New.
21575 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21576 (vn_reference_lookup_2): When partial defs are registered give up.
21577 (vn_reference_lookup_3): Track partial defs for memset and
21578 constructor zeroing and for defs from constants.
21579
21580 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21581
21582 * doc/install.texi (bootstrap-Og): Document.
21583
21584 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21585
21586 * config/riscv/pic.md (*local_pic_load_s<mode>)
21587 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21588 referenced by <mode>, giving...
21589 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21590 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21591 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21592 use <X:MODE> for the mode attribute.
21593
21594 2019-07-07 Jeff Law <law@redhat.com>
21595
21596 PR tree-optimization/91090
21597 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21598 in handling of ranges to simplify switch statements.
21599
21600 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21601
21602 * config/darwin.c (darwin_override_options): Make a final check on PIC
21603 options.
21604
21605 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21606
21607 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21608 on for kernel code.
21609
21610 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21611
21612 PR target/91068
21613 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21614 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21615 instead of matching them to "l" output operands.
21616
21617 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21618
21619 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21620 and check whether addr.reg is nonnull before using it.
21621
21622 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21623
21624 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21625 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21626 variable(s). For conditional lastprivate look through outer
21627 GIMPLE_OMP_SCAN context.
21628 (lower_omp_1): For conditional lastprivate look through outer
21629 GIMPLE_OMP_SCAN context.
21630
21631 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21632 member to combined_into_simd_safelen1.
21633 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21634 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21635 clauses if ctx->combined_into_simd_safelen1 put statements after the
21636 predicate conditionalized block rather than into it.
21637
21638 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21639
21640 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21641 operand 1.
21642 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21643 Make the choice of <mode> explicit, giving...
21644 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21645
21646 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21647
21648 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21649 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21650 of .md attributes.
21651 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21652 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21653 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21654 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21655 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21656 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21657 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21658 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21659 (*avx512f_scatterdi<mode>): Likewise.
21660 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21661
21662 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21663
21664 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21665 specify the mode iterator referenced by <mode>, giving...
21666 (*push1_h8300hs_<QHI:mode>): ...this.
21667
21668 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21669
21670 * config/gcn/gcn-valu.md
21671 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21672 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21673 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21674 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21675 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21676 but using the _exec comparison patterns.
21677 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21678 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21679 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21680 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21681 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21682 but using the _exec comparison patterns.
21683
21684 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21685
21686 * config/arm/sync.md
21687 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21688 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21689 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21690 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21691 <SIDI:cas_cmp_str>.
21692
21693 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21694
21695 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21696 (maybe_lookup_ctx): Add forward declaration.
21697 (omp_find_scan): Likewise. Walk into body of simd if composited
21698 with worksharing loop.
21699 (scan_omp_simd_scan): New function.
21700 (scan_omp_1_stmt): Call it.
21701 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21702 ctx->for_simd_scan_phase.
21703 (lower_rec_input_clauses): Do much less work for inscan reductions
21704 in ctx->for_simd_scan_phase is_simd regions.
21705 (lower_omp_scan): Set is_simd also on simd constructs composited
21706 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21707 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21708 emit their body after in simd constructs composited with worksharing
21709 loop.
21710 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21711
21712 * omp-low.c (omp_find_scan): Make static.
21713 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21714 the second loop, var2 represents the first partial sum and so needs
21715 to go before rprivb[ivar].
21716
21717 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21718
21719 * config/rs6000/rs6000-logue.c: Remove unused code.
21720
21721 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21722
21723 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21724
21725 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21726
21727 PR target/90712
21728 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21729 check with a frame laid out check.
21730
21731 2019-07-05 Richard Biener <rguenther@suse.de>
21732
21733 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21734 when comparing against a store with possibly the same value.
21735
21736 2019-07-05 Richard Biener <rguenther@suse.de>
21737
21738 PR tree-optimization/91091
21739 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21740 (walk_non_aliased_vuses): Likewise.
21741 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21742 (get_continuation_for_phi): New tbaa_p parameter and pass
21743 it down.
21744 (walk_non_aliased_vuses): Likewise.
21745 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21746 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21747 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21748 Likewise.
21749 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21750 (adjust_offsets_for_equal_base_address): New function.
21751 (vn_reference_lookup_3): Use it to catch more base equivalences.
21752 Handle and pass down tbaa_p flag.
21753 (vn_reference_lookup_pieces): Adjust.
21754 (vn_reference_lookup): Remove alias-set altering, instead pass
21755 down false as tbaa_p.
21756
21757 2019-07-05 Richard Biener <rguenther@suse.de>
21758
21759 PR tree-optimization/91091
21760 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21761 accesses can happen with -fno-strict-aliasing.
21762
21763 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21764
21765 * tree-ssa-alias.c (alias_stats): Add
21766 nonoverlapping_component_refs_since_match_p_must_overlap.
21767 (dump_alias_stats): Print it.
21768 (nonoverlapping_component_refs_since_match_p): Add early exit.
21769 (nonoverlapping_component_refs_p): Do not account early exit.
21770
21771 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21772
21773 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21774 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21775 (emit_eh_dispatch): Delete.
21776 (lower_catch): Emit the eh_dispatch manually and set the location of
21777 the first catch statement onto it.
21778 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21779 (lower_eh_dispatch): Propagate location.
21780 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21781 (eliminate_build): Likewise.
21782
21783 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21784
21785 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21786 phi nodes if possible.
21787 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21788 location info on the newly created statement.
21789 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21790 newly created increment if needed.
21791
21792 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21793
21794 PR middle-end/78884
21795 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21796 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21797 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21798 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21799 ctx->add_safelen1 is set.
21800
21801 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21802 GOMP_loop_start at the start of second worksharing loop in a scan.
21803 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21804 worksharing loop in a scan even if there are conditional lastprivates,
21805 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21806
21807 2019-07-04 Jan Hubicka <jh@suse.cz>
21808
21809 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21810 Fix check for match in the ref walk.
21811
21812 2019-07-04 Martin Liska <mliska@suse.cz>
21813
21814 * tree-ssa-loop-niter.c
21815 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21816 (estimate_numbers_of_iterations):
21817 Support __builtin_expect_with_probability for analysis
21818 of # of loop iterations.
21819
21820 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21821
21822 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21823 * except.c: Likewise.
21824 * expr.c (expand_expr_real_1): Reject it.
21825 * gimplify.c (gimplify_expr): Gimplify it, within
21826 TRY_FINALLY_EXPR.
21827 * tree-dump.c (dequeue_and_dump): Dump it.
21828 * tree-pretty-print.c (dump_generic_node): Likewise.
21829 * tree.c (block_may_fallthru): Handle it.
21830 * tree.def (EH_ELSE_EXPR): Introduce it.
21831 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21832 with GIMPLE_EH_ELSE as try/finally/else.
21833
21834 2019-07-04 Richard Biener <rguenther@suse.de>
21835
21836 PR ipa/91062
21837 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21838 parameter whether to disable GC collection.
21839 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21840 honor it.
21841 (execute_all_ipa_transforms): Likewise and pass it down.
21842 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21843 collection from applying IPA transforms.
21844 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21845 from applying IPA transforms.
21846
21847 2019-07-04 Richard Biener <rguenther@suse.de>
21848
21849 PR tree-optimization/90911
21850 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21851 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21852 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21853 scalar_loop_scaling.
21854 (vect_transform_loop): Scale scalar loop profile if needed.
21855 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21856 the loop copy from if-conversion adjust edge probabilities
21857 and scale the vectorized loop body profile, queue the scalar
21858 profile for updating after peeling.
21859
21860 2019-07-04 Jan Hubicka <jh@suse.cz>
21861
21862 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21863 parameters; return early for must-alias.
21864 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21865 outer types match, try nonoverlapping_component_refs
21866 if must-alias is not obvious.
21867 (indirect_refs_may_alias_p): Likewise.
21868 (refs_may_alias_p_2): Likewise.
21869
21870 2019-07-04 Richard Biener <rguenther@suse.de>
21871
21872 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21873 argument.
21874 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21875 globals into...
21876 (struct vn_walk_cb_data): New callback data struct.
21877 (vn_reference_lookup_2): Adjust.
21878 (vn_reference_lookup_3): Likewise.
21879 (vn_reference_lookup_pieces): Likewise.
21880 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21881 (visit_reference_op_load): Adjust.
21882
21883 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21884
21885 PR tree-optimization/91063
21886 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21887 stmt from stmts sequence before calling vect_init_vector_1.
21888 Formatting fix.
21889
21890 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21891
21892 PR target/88833
21893 * fwprop.c (reg_single_def_p): New function.
21894 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21895 (forward_propagate_into): New parameter reg_prop_only
21896 with default value false.
21897 Propagate def's src into loop only if SET_SRC and SET_DEST
21898 of def_set have single definitions.
21899 Likewise if reg_prop_only is set to true.
21900 (fwprop): New param fwprop_addr_p.
21901 Integrate fwprop_addr into fwprop.
21902 (fwprop_addr): Remove.
21903 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21904 to true.
21905 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21906 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21907 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21908
21909 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21910
21911 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21912 in worksharing loop scans.
21913
21914 PR tree-optimization/91074
21915 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21916 temporary.
21917
21918 PR rtl-optimization/90756
21919 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21920 for VECTOR_TYPE_P.
21921
21922 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21923
21924 * config/aarch64/aarch64.md: Remove redundant constraints from
21925 define_expand but keep some patterns untouched if they are
21926 specially selected by TARGET_SECONDARY_RELOAD hook.
21927 * config/aarch64/aarch64-sve.md: Likewise.
21928 * config/aarch64/atomics.md: Remove redundant constraints from
21929 define_expand.
21930 * config/aarch64/aarch64-simd.md: Likewise.
21931
21932 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21933
21934 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21935 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21936 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21937 clauses.
21938 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21939 DARWIN_NOPIE_SPEC.
21940
21941 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21942
21943 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21944 (STARTFILE_SPEC): Split crt3 into a separate spec.
21945 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21946 (DARWIN_CRT2_SPEC): New.
21947 (DARWIN_CRT3_SPEC): New.
21948 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21949 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21950 (DARWIN_CRT3_SPEC): New.
21951
21952 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21953
21954 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21955 Change the RTL attribute "length" from "4" to "*" to allow the
21956 length attribute to be adjusted automatically for prefixed load,
21957 store, and add immediate instructions.
21958 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21959 Likewise.
21960 (extendsi<mode>2, EXTSI iterator): Likewise.
21961 (movsi_internal1): Likewise.
21962 (movsi_from_sf): Likewise.
21963 (movdi_from_sf_zero_ext): Likewise.
21964 (mov<mode>_internal): Likewise.
21965 (movcc_internal1, QHI iterator): Likewise.
21966 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21967 (movsf_from_si): Likewise.
21968 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21969 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21970 (mov<mode>, FMOVE128 iterator): Likewise.
21971 (movdi_internal64): Likewise.
21972 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21973 Likewise.
21974 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21975 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21976 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21977 (vsx_splat_v4sf): Likewise.
21978
21979 2019-07-03 Mark Wielaard <mark@klomp.org>
21980
21981 PR debug/90981
21982 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21983 DW_AT_addr_base if there is actually a .debug_addr section with
21984 addresses.
21985 (output_addr_table): Add DWARF5 table header generation here after
21986 checking there are actually any addresses from...
21987 (dwarf2out_finish): ...here.
21988
21989 2019-07-03 Richard Biener <rguenther@suse.de>
21990
21991 PR middle-end/91069
21992 * match.pd (vec_perm -> bit_insert): Fix element read from
21993 first vector.
21994
21995 2019-07-03 Martin Liska <mliska@suse.cz>
21996
21997 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21998 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21999 condition.
22000 * generic-match-head.c: Include dbgcnt.h.
22001 * gimple-match-head.c: Likewise.
22002
22003 2019-07-03 Martin Liska <mliska@suse.cz>
22004
22005 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22006 (GCOV_COUNTER_V_TOPN): New.
22007 (GCOV_COUNTER_V_INDIR): Use _topn.
22008 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22009 (GCOV_TOPN_VALUES): New.
22010 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22011 (GCOV_TOPN_VALUES_COUNTERS): New.
22012 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22013 * tree-profile.c:
22014 (gimple_init_gcov_profiler): Rename variables from one_value
22015 to topn_values.
22016 (gimple_gen_one_value_profiler): Remove.
22017 (gimple_gen_topn_values_profiler): New function.
22018 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22019 names instead of SINGLE_VALUE.
22020 (stream_out_histogram_value): Likewise.
22021 (stream_in_histogram_value): Likewise.
22022 (get_most_common_single_value): Likewise.
22023 (gimple_divmod_fixed_value_transform): Likewise.
22024 (gimple_stringops_transform): Likewise.
22025 (gimple_divmod_values_to_profile): Likewise.
22026 (gimple_stringops_values_to_profile): Likewise.
22027 (gimple_find_values_to_profile): Likewise.
22028 * value-prof.h (enum hist_type): Rename to TOPN.
22029 (gimple_gen_one_value_profiler): Remove.
22030 (gimple_gen_topn_values_profiler): New.
22031
22032 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22033
22034 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22035 if it has the DW_AT_data_member_location attribute.
22036
22037 2019-07-03 Richard Biener <rguenther@suse.de>
22038
22039 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22040 dumping.
22041
22042 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22043
22044 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22045 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22046 (tlsdesc_small_sve_<mode>): Likewise.
22047
22048 2019-07-03 Martin Liska <mliska@suse.cz>
22049
22050 * Makefile.in: Define ZSTD_LIB.
22051 * common.opt: Adjust compression level
22052 to support also zstd levels.
22053 * config.in: Regenerate.
22054 * configure: Likewise.
22055 * configure.ac: Add --with-zstd and --with-zstd-include options
22056 and detect ZSTD.
22057 * doc/install.texi: Mention zstd dependency.
22058 * gcc.c: Print supported LTO compression algorithms.
22059 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22060 (lto_compression_zstd): Likewise.
22061 (lto_uncompression_zstd): Likewise.
22062 (lto_end_compression): Dispatch in between zlib and zstd.
22063 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22064 (lto_uncompression_zlib): Make it static.
22065 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22066 * lto-section-in.c (lto_get_section_data): Pass info
22067 about used compression.
22068 * lto-streamer-out.c: By default use zstd when possible.
22069 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22070 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22071
22072 2019-07-03 Martin Liska <mliska@suse.cz>
22073
22074 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22075 * lto-section-out.c (lto_destroy_simple_output_block): Never
22076 compress LTO_section_lto section.
22077 * lto-streamer-out.c (produce_asm): Do not set major_version
22078 and minor_version.
22079 (lto_output_toplevel_asms): Likewise.
22080 (produce_lto_section): New function.
22081 (lto_output): Call produce_lto_section.
22082 (lto_write_mode_table): Do not set major_version and
22083 minor_version.
22084 (produce_asm_for_decls): Likewise.
22085 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22086 type.
22087 (struct lto_header): Remove.
22088 (struct lto_section): New struct.
22089 (struct lto_simple_header): Do not inherit from lto_header.
22090 (struct lto_file_decl_data): Add lto_section_header field.
22091
22092 2019-07-03 Martin Liska <mliska@suse.cz>
22093
22094 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22095 dead assignemts.
22096 * reg-stack.c (check_asm_stack_operands): Likewise.
22097 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22098 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22099 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22100 force_expand_binop.
22101
22102 2019-07-03 Martin Liska <mliska@suse.cz>
22103
22104 PR tree-optimization/90892
22105 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22106 in string constants.
22107
22108 2019-07-03 Martin Liska <mliska@suse.cz>
22109
22110 PR middle-end/90899
22111 * multiple_target.c (create_dispatcher_calls): Add to comdat
22112 group only if set for ifunc.
22113
22114 2019-07-03 Martin Liska <mliska@suse.cz>
22115
22116 PR target/88056
22117 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22118 Define local_object_name in outer scope in order to handle
22119 use-after-scope issue.
22120
22121 2019-07-03 Martin Liska <mliska@suse.cz>
22122
22123 * common.opt: Add fprofile-note.
22124 * coverage.c (coverage_init): Append the option
22125 to bbg_file_name.
22126 * doc/invoke.texi: Document -fprofile-note.
22127
22128 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22129
22130 PR tree-optimization/91033
22131 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22132 vect_analyze_data_refs): Add bool * arguments.
22133 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22134 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22135 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22136 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22137 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22138 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22139 vect_analyze_data_refs caller.
22140
22141 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22142 clause.
22143 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22144 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22145 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22146 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22147 OMP_CLAUSE__SCANTEMP_ entry.
22148 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22149 * tree-pretty-print.c (dump_omp_clause): Likewise.
22150 * tree-nested.c (convert_nonlocal_omp_clauses,
22151 convert_local_omp_clauses): Likewise.
22152 * omp-general.h (struct omp_for_data): Add have_scantemp and
22153 have_nonctrl_scantemp members.
22154 * omp-general.c (omp_extract_for_data): Initialize them.
22155 * omp-low.c (struct omp_context): Add scan_exclusive member.
22156 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22157 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22158 ctx->scan_exclusive.
22159 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22160 of !ctx->scan_inclusive.
22161 (lower_rec_input_clauses): Simplify gimplification of dtors using
22162 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22163 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22164 loops. Don't add barrier for reduction_omp_orig_ref if
22165 ctx->scan_??xclusive.
22166 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22167 (lower_omp_scan): Use ctx->scan_exclusive instead
22168 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22169 reductions. Use new_vard != new_var instead of repeated
22170 omp_is_reference calls.
22171 (omp_find_scan, lower_omp_for_scan): New functions.
22172 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22173 inscan reductions.
22174 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22175 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22176 and fd->have_scantemp.
22177
22178 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22179 on worksharing loop propagate it as shared clause to containing
22180 combined parallel.
22181
22182 * omp-expand.c (expand_omp_for_static_nochunk,
22183 expand_omp_for_static_chunk): For nowait worksharing loop with
22184 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22185 at the end.
22186
22187 2019-07-02 qing zhao <qing.zhao@oracle.com>
22188
22189 PR preprocessor/90581
22190 * doc/cppopts.texi: Add document for -fmax-include-depth.
22191 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22192
22193 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22194
22195 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22196 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22197 (mmx_packssdw): Ditto.
22198 (mmx_punpckhbw): Ditto.
22199 (mmx_punpcklbw): Ditto.
22200 (mmx_punpckhwd): Ditto.
22201 (mmx_punpcklwd): Ditto.
22202 (mmx_punpckhdq): Ditto.
22203 (mmx_punpckldq): Ditto.
22204 (*vec_dupv4hi): Ditto.
22205 (*vec_dupv2si): Ditto.
22206 (mmx_pmovmskb): Ditto.
22207 * config/i386/sse.md (sse_cvtpi2ps): Use
22208 TARGET_SSE2 && SSE_REG_P in split condition.
22209 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22210 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22211 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22212 (ssse3_pshufbv8qi3): Ditto.
22213 (ssse3_palignrdi): Ditto.
22214
22215 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22216
22217 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22218 with inlined save and restore.
22219
22220 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22221
22222 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22223 to be inserted on single successor edge of the entry block. Then call
22224 commit_edge_insertions instead of inserting the instructions manually.
22225 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22226 RTL expansion and rebuild jump labels chain.
22227
22228 2019-07-02 Richard Biener <rguenther@suse.de>
22229
22230 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22231 TI_CHREC_KNOWN.
22232 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22233 Define here.
22234 * tree.c (build_common_tree_nodes): Initialize them.
22235 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22236 Make declarations comments.
22237 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22238 chrec_known): Remove definitions.
22239 (initialize_scalar_evolutions_analyzer): Remove.
22240 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22241 * tree-streamer.c (preload_common_nodes): Do not preload
22242 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22243
22244 2019-07-02 Jan Hubicka <jh@suse.cz>
22245
22246 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22247 sanity check.
22248
22249 2019-07-02 Jan Hubicka <jh@suse.cz>
22250
22251 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22252 to ..
22253 (nonoverlapping_component_refs_since_match_p): ... this one;
22254 handle also non-decl bases; return -1 if search gave up.
22255 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22256 nonoverlapping_component_refs_of_decl_p_no_alias to
22257 nonoverlapping_component_refs_since_match_p_may_alias,
22258 nonoverlapping_component_refs_since_match_p_no_alias.
22259 (dump_alias_stats): Update dumping.
22260 (aliasing_matching_component_refs_p): Break out from ...;
22261 dispatch to nonoverlapping_component_refs_for_decl_p
22262 and nonoverlapping_component_refs_since_match_p.
22263 (aliasing_component_refs_p): ... here; call
22264 nonoverlapping_component_refs_p in scenarios where we can not
22265 precisely determine base match.
22266 (decl_refs_may_alias_p): Use
22267 nonoverlapping_component_refs_since_match_p.
22268 (indirect_ref_may_alias_decl_p): Do not call
22269 nonoverlapping_component_refs_p.
22270 (indirect_refs_may_alias_p): Likewise.
22271
22272 2019-07-02 Jan Hubicka <jh@suse.cz>
22273
22274 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22275 to clobber of return value.
22276
22277 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22278
22279 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22280 for is_neon_type instructions that have not already been categorized.
22281
22282 2019-07-02 Richard Biener <rguenther@suse.de>
22283
22284 PR tree-optimization/58483
22285 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22286 for MEM_REF base hashing.
22287 (equal_mem_array_ref_p): Likewise for base comparison.
22288
22289 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22290
22291 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22292 parameterized name.
22293 (signbit<mode>2): Use that name. Simplify.
22294
22295 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22296
22297 PR middle-end/66726
22298 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22299 Tune heuristic from PR71016 to allow MIN / MAX.
22300
22301 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22302
22303 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22304 parameterized name.
22305 (abs<mode>2): Use that name. Simplify.
22306
22307 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22308
22309 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22310 parameterized name.
22311 (neg<mode>2): Use that name. Simplify.
22312
22313 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22314
22315 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22316 name.
22317 (abs<mode>2): Use that name. Simplify.
22318
22319 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22320
22321 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22322 name.
22323 (neg<mode>2): Use that name. Simplify.
22324
22325 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22326
22327 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22328 ("enabled" attribute): Handle sse_noavx isa attribute.
22329 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22330 Use TARGET_SSE && SSE_REGNO_P in split condition.
22331 (*vec_dupv2sf): Ditto.
22332
22333 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22334
22335 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22336 name.
22337 (floatsi<mode>2): Use that name. Simplify.
22338
22339 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22340
22341 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22342 parameterized name.
22343 (extenddf<mode>2_vsx): Make this a parameterized name.
22344 (extenddf<mode>2): Use those names. Simplify.
22345
22346 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22347
22348 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22349 name.
22350 (eh_return): Use that name. Simplify.
22351
22352 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22353
22354 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22355 (doloop_end): Use that name. Simplify.
22356
22357 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22358
22359 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22360 parameterized name.
22361 (indirect_jump): Use that name. Simplify.
22362
22363 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22364
22365 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22366 parameterized name.
22367 (abs<mode>2): Use that name. Simplify.
22368
22369 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22370
22371 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22372 parameterized name.
22373 (fix_trunc<mode>si2): Use that name. Simplify.
22374
22375 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22376
22377 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22378 (allocate_stack): Use that name. Simplify.
22379
22380 2019-07-01 Martin Sebor <msebor@redhat.com>
22381
22382 PR middle-end/90923
22383 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22384 (hash_map::get_or_insert): Same. Reformat comment.
22385 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22386 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22387 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22388 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22389 (hash_table::hash_table (const hash_table&)): Use copy ctor
22390 instead of assignment to copy elements.
22391
22392 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22393 John David Anglin <danglin@gcc.gnu.org>
22394
22395 PR target/90963
22396 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22397 using saved frame pointer.
22398
22399 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22400
22401 PR middle-end/64242
22402 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22403 Add frame clobber and schedule blockage.
22404
22405 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22406
22407 * doc/invoke.texi (Link Options): Further editorial changes to
22408 -flinker-output docs.
22409
22410 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22411
22412 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22413 Load both operands of a PLUS into registers separately.
22414
22415 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22416
22417 * config/s390/vector.md: Fix shift count operand printing.
22418
22419 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22420
22421 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22422
22423 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22424
22425 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22426 Use recog_data to test for an output operand.
22427
22428 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22429
22430 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22431 exclude any others that are disparaged or that are bound to need
22432 a reload or spill.
22433 (ira_get_dup_out_num): Expand comment.
22434
22435 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22436
22437 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22438 constraint string for each operand/alternative combo. Only handle
22439 '%' at the start of constraint strings, and look for it outside
22440 the main loop.
22441
22442 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22443
22444 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22445 alternative_mask instead of HARD_REG_SET to represent a
22446 bitmask of alternatives.
22447 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22448 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22449
22450 2019-07-01 Martin Liska <mliska@suse.cz>
22451
22452 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22453 use () for a constructor call.
22454 (test_applying_fixits_line_out_of_range): Likewise.
22455 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22456 argument.
22457 (free_page): Likewise.
22458
22459 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22460
22461 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22462 parameter names to match usage (no functional change).
22463 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22464
22465 2019-07-01 Richard Biener <rguenther@suse.de>
22466
22467 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22468 pass parameter.
22469 (pass_fre::execute): Honor it.
22470 * passes.def: Adjust pass_fre invocations to allow iterating,
22471 add non-iterating pass_fre before late threading/dom.
22472
22473 2019-07-01 Richard Biener <rguenther@suse.de>
22474
22475 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22476 TARGET_MEM_REF handling to also handle address-taken ones.
22477
22478 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22479
22480 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22481 hardware attributes): Document avx512vp2intersect.
22482
22483 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22484
22485 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22486 (abs<mode>2): New expander.
22487 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22488 Use CODE_FOR_ssse3_absv8qi2.
22489 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22490 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22491
22492 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22493
22494 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22495 to sse, sse_noavx and avx. Update all uses.
22496
22497 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22498
22499 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22500 (*mmx_<plusminus_insn><mode>3): Ditto.
22501 (*mmx_mulv4hi3"): Ditto.
22502 (*mmx_smulv4hi3_highpart): Ditto.
22503 (*mmx_umulv4hi3_highpart): Ditto.
22504 (*mmx_pmaddwd): Ditto.
22505 (*sse2_umulv1siv1di3): Ditto.
22506 (*mmx_<code>v4hi3): Ditto.
22507 (*mmx_<code>v8qi3): Ditto.
22508 (mmx_ashr<mode>3): Ditto.
22509 ("mmx_<shift_insn><mode>3): Ditto.
22510 (*mmx_eq<mode>3): Ditto.
22511 (mmx_gt<mode>3): Ditto.
22512 (mmx_andnot<mode>3): Ditto.
22513 (*mmx_<code><mode>3): Ditto.
22514 (*mmx_pinsrw): Ditto.
22515 (*mmx_pextrw): Ditto.
22516 (mmx_pshufw_1): Ditto.
22517 (*mmx_uavgv8qi3): Ditto.
22518 (*mmx_uavgv4hi3): Ditto.
22519 ("mmx_psadbw): Ditto.
22520 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22521 (sse_cvttps2pi): Ditto.
22522 (ssse3_pmaddubsw): Ditto.
22523 (*ssse3_pmulhrswv4hi3): Ditto.
22524 (ssse3_psign<mode>3): Ditto.
22525
22526 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22527
22528 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22529 adjustment for bit-fields to all aggregate types.
22530
22531 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22532
22533 * config/rs6000/predicates.md (pcrel_address): Use
22534 SYMBOL_REF_LOCAL_P to determine if a label is local.
22535 (pcrel_external_address): New predicate.
22536 (non_prefixed_mem_operand): Delete, predicate not used.
22537 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22538 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22539 addressing.
22540 (SYMBOL_REF_PCREL_P): Likewise.
22541
22542 PR target/91009
22543 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22544 alternative.
22545 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22546 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22547 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22548
22549 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22550
22551 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22552 override on extra_headers.
22553
22554 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22555
22556 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22557 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22558 from warning.
22559 (darwin_driver_init): Likewise.
22560
22561 2019-06-28 Jan Beulich <jbeulich@suse.com>
22562
22563 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22564 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22565 Eliminate redundant alternative.
22566
22567 2019-06-28 Jan Beulich <jbeulich@suse.com>
22568
22569 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22570 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22571 Use vector_operand.
22572
22573 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22574
22575 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22576 having a lower cost regardless of the speed option.
22577
22578 2019-06-28 Jan Beulich <jbeulich@suse.com>
22579
22580 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22581 vector_operand plus, on both alternatives, "Bm" constraint.
22582
22583 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22584
22585 * config/arm/arm.md: Remove redundant constraints from
22586 define_expand but leave reload_inm and reload_outm patterns
22587 untouched since they need special constraints to work.
22588 * config/arm/arm-fixed.md: Remove redundant constraints from
22589 define_expand.
22590 * config/arm/iwmmxt.md: Likewise.
22591 * config/arm/neon.md: Likewise.
22592 * config/arm/sync.md: Likewise.
22593 * config/arm/thumb1.md: Likewise.
22594 * config/arm/vec-common.md: Likewise.
22595
22596 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22597
22598 * doc/install.texi: Document --disable-tm-clone-registry.
22599
22600 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22601
22602 PR c++/91024
22603 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22604 statements.
22605
22606 PR tree-optimization/91010
22607 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22608 return true. Otherwise, don't call operand_equal_p if offset1 or
22609 offset2 is NULL and just return false.
22610
22611 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22612
22613 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22614 user-specified float mode choice for kernel mode code.
22615
22616 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22617
22618 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22619 spec.
22620
22621 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22622
22623 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22624 use longcall for 64b code.
22625
22626 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22627
22628 * builtins.c (get_memory_rtx): Fix comment.
22629 * optabs.def (movmem_optab): Change to cpymem_optab.
22630 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22631 (emit_block_move_hints): Change movmem to cpymem.
22632 * defaults.h: Change movmem to cpymem.
22633 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22634 (default_use_by_pieces_infrastructure_p): Ditto.
22635 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22636 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22637 to cpymem.
22638 * config/aarch64/aarch64.h: Change movmem to cpymem.
22639 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22640 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22641 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22642 movmem to cpymem.
22643 * config/arc/arc-protos.h: Change movmem to cpymem.
22644 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22645 * config/arc/arc.h: Change movmem to cpymem in comment.
22646 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22647 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22648 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22649 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22650 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22651 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22652 * config/avr/avr-protos.h: Change movmem to cpymem.
22653 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22654 avr_out_movmem): Change movmem to cpymem.
22655 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22656 Change movmem to cpymem.
22657 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22658 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22659 Change movmem to cpymem.
22660 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22661 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22662 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22663 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22664 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22665 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22666 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22667 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22668 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22669 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22670 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22671 expand_small_cpymem_or_setmem,
22672 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22673 expand_set_or_cpymem_constant_prologue,
22674 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22675 * config/i386/i386-protos.h: Change movmem to cpymem.
22676 * config/i386/i386.h: Change movmem to cpymem in comment.
22677 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22678 (setmem<mode>): Change expansion function name.
22679 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22680 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22681 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22682 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22683 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22684 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22685 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22686 to cpymem.
22687 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22688 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22689 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22690 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22691 Change movmem to cpymem.
22692 * config/mips/mips.h: Change movmem to cpymem.
22693 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22694 * config/nds32/nds32-memory-manipulation.c
22695 (nds32_expand_movmemsi_loop_unknown_size,
22696 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22697 nds32_expand_movmemsi_unroll,
22698 nds32_expand_movmemsi): Change movmem to cpymem.
22699 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22700 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22701 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22702 (pa_adjust_insn_length): Change call to compute_movmem_length.
22703 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22704 movmemdi, movmemdi_prereload,
22705 movmemdi_postreload): Change movmem to cpymem.
22706 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22707 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22708 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22709 * config/riscv/riscv.h: Change movmem to cpymem.
22710 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22711 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22712 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22713 movmem to cpymem.
22714 * config/s390/s390-protos.h: Change movmem to cpymem.
22715 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22716 s390_expand_insv): Change movmem to cpymem.
22717 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22718 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22719 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22720 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22721 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22722 for nonexistent function.
22723 * config/vax/vax.h: Change movmem to cpymem in comment.
22724 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22725 * config/visium/visium.h: Change movmem to cpymem in comment.
22726 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22727 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22728 * doc/md.texi: Change movmem to cpymem and update description to match.
22729 * doc/rtl.texi: Change movmem to cpymem.
22730 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22731 * doc/tm.texi: Regenerate.
22732
22733 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22734
22735 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22736 -fvariable-expansion-in-unroller by default.
22737 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22738 default for Power.
22739
22740 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22741
22742 Revert
22743 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22744 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22745
22746 * config.gcc(rs6000-*-*): Define target_gtfiles.
22747
22748 2019-06-27 Jan Hubicka <jh@suse.cz>
22749
22750 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22751 (add_type_duplicate): When odr hash is not allocated, to nothing.
22752 (odr_based_tbaa_p): New function.
22753 (set_type_canonical_for_odr_type): New function.
22754 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22755 set_type_canonical_for_odr_type): New.
22756 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22757 ODR based TBAA are not equivalent to non-ODR types.
22758
22759 2019-06-27 Martin Liska <mliska@suse.cz>
22760
22761 PR tree-optimization/90974
22762 PR rtl-optimization/90975
22763 PR rtl-optimization/90976
22764 PR target/91016
22765 PR tree-optimization/91017
22766 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22767 unused tmp.
22768 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22769 initial commit of IRA.
22770 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22771 of op0 and op1.
22772 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22773 Remove unused mode1.
22774 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22775 to new_stmt_info.
22776
22777 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22778
22779 PR target/90991
22780 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22781 instead of register_operand for operands[1], add m to its constraints
22782 if operands[2] uses "C" constraint. Ensure in condition that if
22783 operands[2] is not 0, then operands[1] is not a MEM. For last two
22784 alternatives, use unaligned loads instead of aligned if operands[1] is
22785 misaligned_operand.
22786
22787 2019-06-27 Martin Liska <mliska@suse.cz>
22788
22789 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22790 dead assignments.
22791 * bt-load.c (move_btr_def): Likewise.
22792 * builtins.c (expand_builtin_apply_args_1): Likewise.
22793 (expand_builtin_apply): Likewise.
22794 * cfgexpand.c (expand_asm_stmt): Likewise.
22795 (construct_init_block): Likewise.
22796 * cfghooks.c (verify_flow_info): Likewise.
22797 * cfgloopmanip.c (remove_path): Likewise.
22798 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22799 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22800 * combine.c (simplify_if_then_else): Likewise.
22801 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22802 (choose_basereg): Likewise.
22803 (ix86_expand_prologue): Likewise.
22804 (ix86_preferred_output_reload_class): Likewise.
22805 * cselib.c (cselib_record_sets): Likewise.
22806 * df-scan.c (df_scan_alloc): Likewise.
22807 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22808 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22809 * emit-rtl.c (try_split): Likewise.
22810 * graphite-scop-detection.c (assign_parameter_index_in_region):
22811 Likewise.
22812 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22813 * ira-color.c (setup_profitable_hard_regs): Likewise.
22814 * ira.c (rtx_moveable_p): Likewise.
22815 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22816 * read-rtl.c (read_subst_mapping): Likewise.
22817 * regrename.c (scan_rtx): Likewise.
22818 * reorg.c (fill_slots_from_thread): Likewise.
22819 * tree-inline.c (tree_function_versioning): Likewise.
22820 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22821 * tree-ssa-sink.c (statement_sink_location): Likewise.
22822 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22823 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22824 (vect_create_epilog_for_reduction): Likewise.
22825 * tree.c (build_nonstandard_integer_type): Likewise.
22826
22827 2019-06-27 Richard Biener <rguenther@suse.de>
22828
22829 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22830
22831 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22832
22833 PR tree-optimization/89772
22834 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22835 out-of-bound accesses checking.
22836
22837 2019-06-27 Martin Liska <mliska@suse.cz>
22838
22839 PR tree-optimization/91014
22840 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22841 when LHS is NULL_TREE.
22842
22843 2019-06-27 Martin Liska <mliska@suse.cz>
22844
22845 * symbol-summary.h (traverse): Pass
22846 argument a to the call of callback.
22847 (gt_ggc_mx): Mark arguments as unused.
22848 (gt_pch_nx): Likewise.
22849
22850 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22851
22852 PR target/62147
22853 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22854 finiteness.
22855
22856 2019-06-26 Jeff Law <law@redhat.com>
22857
22858 PR tree-optimization/90883
22859 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22860 (delete_dead_or_redundant_assignment): Likewise.
22861
22862 PR tree-optimization/90883
22863 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22864 * tree-ssa-dse.c: Update various comments to distinguish between
22865 dead and redundant stores.
22866 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22867 (dse_optimize_redundant_stores): New function.
22868 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22869 Distinguish between dead and redundant calls in dump output. All
22870 callers updated.
22871 (delete_dead_or_redundant_assignment): Similarly for assignments.
22872 (dse_optimize_stmt): Handle _CHK variants. For statements which
22873 store 0 into multiple memory locations, try to prove a subsequent
22874 store is redundant.
22875
22876 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22877
22878 PR target/89021
22879 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22880 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22881
22882 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22883
22884 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22885 (branch_islands): New extern.
22886 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22887 * config/rs6000/rs6000.c: .. here.
22888
22889 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22890
22891 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22892 (powerpc*-*-*) ... to here.
22893
22894 2019-06-26 Jeff Law <law@redhat.com>
22895
22896 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22897 memcpy, memmove and memset builtins.
22898 (maybe_trim_memstar_call): Likewise.
22899
22900 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22901
22902 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22903
22904 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22905
22906 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22907
22908 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22909
22910 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22911 declaration.
22912 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22913 "static".
22914 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22915 declaration.
22916
22917 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22918
22919 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22920
22921 2019-06-26 Richard Biener <rguenther@suse.de>
22922
22923 PR ipa/90982
22924 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22925
22926 2019-06-26 Richard Biener <rguenther@suse.de>
22927
22928 * lto-streamer.h (lto_bitmap_alloc): Remove.
22929 (lto_bitmap_free): Likewise.
22930 * lto-streamer.c (lto_bitmap_alloc): Remove.
22931 (lto_bitmap_free): Likewise.
22932 (lto_obstack): Likewise.
22933 (lto_obstack_initialized): Likewise.
22934 * lto-streamer-out.c (lto_output): Use own obstack for local
22935 bitmap, free it consistently.
22936
22937 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22938
22939 PR target/90991
22940 * config/i386/sse.md
22941 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22942 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22943 insns if operands[2] is misaligned_operand.
22944
22945 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22946
22947 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22948 TARGET_POWERPC64.
22949 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22950 to GPR.
22951
22952 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22953
22954 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22955
22956 2019-06-26 Martin Liska <mliska@suse.cz>
22957
22958 PR tree-optimization/90973
22959 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22960 epilogue_cost_vec instead of prologue_cost_vec for
22961 a epilogue cost.
22962
22963 2019-06-26 Martin Liska <mliska@suse.cz>
22964
22965 * bb-reorder.c (connect_better_edge_p): Add missing else
22966 statement in the middle of if-else statements.
22967
22968 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22969 H.J. Lu <hongjiu.lu@intel.com>
22970 Olga Makhotina <olga.makhotina@intel.com>
22971
22972 * common/config/i386/i386-common.c
22973 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22974 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22975 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22976 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22977 (ix86_handle_option): Handle -mavx512vp2intersect.
22978 * config/i386/avx512vp2intersectintrin.h: New.
22979 * config/i386/avx512vp2intersectvlintrin.h: New.
22980 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22981 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22982 AVX512VP2INTERSECT.
22983 * config/i386/i386-builtin-types.def: Add new types.
22984 * config/i386/i386-builtin.def: Add new builtins.
22985 * config/i386/i386-builtins.c: (enum processor_features): Add
22986 F_AVX512VP2INTERSECT.
22987 (static const _isa_names_table isa_names_table): Ditto.
22988 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22989 __AVX512VP2INTERSECT__.
22990 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22991 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22992 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22993 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22994 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22995 * config/i386/i386-options.c (ix86_target_string): Add
22996 -mavx512vp2intersect.
22997 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22998 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22999 P2HImode and P2QImode.
23000 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23001 number for P2QImode and P2HImode.
23002 (ix86_regmode_natural_size): New function.
23003 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23004 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23005 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23006 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23007 * config/i386/i386.opt: Add -mavx512vp2intersect.
23008 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23009 avx512vp2intersectvlintrin.h.
23010 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23011 (define_mode_iterator VI48_AVX512VP2VL): New.
23012 (avx512vp2intersect_2intersect<mode>,
23013 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23014 * config.gcc: Add avx512vp2intersectvlintrin.h and
23015 avx512vp2intersectintrin.h to extra_headers.
23016 * doc/invoke.texi: Document -mavx512vp2intersect.
23017
23018 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23019
23020 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23021
23022 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23023
23024 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23025 savres_routine_syms, savres_routine_name, morestack_ref,
23026 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23027 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23028 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23029 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23030 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23031 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23032 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23033 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23034 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23035 get_stack_clash_protection_probe_interval,
23036 get_stack_clash_protection_guard_size,
23037 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23038 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23039 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23040 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23041 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23042 gen_frame_mem_offset, rs6000_savres_routine_name,
23043 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23044 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23045 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23046 rs6000_global_entry_point_prologue_needed_p,
23047 rs6000_get_separate_components, rs6000_components_for_bb,
23048 rs6000_disqualify_components, rs6000_emit_prologue_components,
23049 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23050 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23051 rs6000_output_savres_externs, rs6000_output_function_prologue,
23052 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23053 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23054 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23055 rs6000_output_function_epilogue, gen_add3_const,
23056 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23057 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23058 to rs6000-logue.c.
23059 (machine_function): Moved to rs6000.h.
23060 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23061 rs6000-internal.h.
23062 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23063 savres_routine_syms, savres_routine_name, morestack_ref,
23064 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23065 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23066 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23067 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23068 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23069 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23070 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23071 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23072 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23073 get_stack_clash_protection_probe_interval,
23074 get_stack_clash_protection_guard_size,
23075 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23076 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23077 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23078 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23079 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23080 gen_frame_mem_offset, rs6000_savres_routine_name,
23081 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23082 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23083 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23084 rs6000_global_entry_point_prologue_needed_p,
23085 rs6000_get_separate_components, rs6000_components_for_bb,
23086 rs6000_disqualify_components, rs6000_emit_prologue_components,
23087 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23088 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23089 rs6000_output_savres_externs, rs6000_output_function_prologue,
23090 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23091 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23092 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23093 rs6000_output_function_epilogue, gen_add3_const,
23094 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23095 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23096 to here from rs6000.c.
23097 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23098 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23099 quad_address_offset_p) Moved to here from rs6000.c.
23100 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23101 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23102 collector.
23103
23104 2019-06-25 Martin Liska <mliska@suse.cz>
23105
23106 * hash-table.c (hashtab_chk_error): Move here from ...
23107 * hash-table.h (hashtab_chk_error): ... here.
23108
23109 2019-06-25 Martin Liska <mliska@suse.cz>
23110
23111 PR tree-optimization/90978
23112 * df-scan.c (df_update_entry_block_defs): Remove dead else
23113 branch.
23114 (df_update_exit_block_uses): Likewise.
23115
23116 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23117 Andrew Stubbs <ams@codesourcery.com>
23118
23119 * config.gcc (thread_file): Set to gcn for AMD GCN.
23120 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23121 (TARGET_EMUTLS_VAR_INIT): New hook.
23122
23123 2019-06-25 Martin Jambor <mjambor@suse.cz>
23124
23125 PR ipa/90939
23126 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23127
23128 2019-06-25 Richard Biener <rguenther@suse.de>
23129
23130 PR tree-optimization/90930
23131 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23132 into parallel form in the last pass instance.
23133
23134 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23135
23136 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23137 (arc_legitimize_pic_address): Simplify and cleanup the function.
23138 (SYMBOLIC_CONST): Remove.
23139 (prepare_pic_move): Likewise.
23140 (prepare_move_operands): Handle complex mov cases here.
23141 (arc_legitimize_address_0): Remove call to
23142 arc_legitimize_pic_address.
23143 (arc_legitimize_address): Remove call to
23144 arc_legitimize_tls_address.
23145 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23146 (movhi_insn): Likewise.
23147
23148 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23149
23150 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23151 PTRDIFF_TYPE.
23152 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23153 format of "__intN" types for UINTMAX_TYPE.
23154 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23155 format of "__intN" types for SIZETYPE.
23156 * tree.c (build_common_tree_nodes): Accept "__intN__"
23157 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23158 * doc/invoke.texi: Document that __intN__ disables pedantic
23159 warnings.
23160
23161 2019-06-25 Jan Hubicka <jh@suse.cz>
23162
23163 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23164 base2_alias_set is non-zero before doing TBAA based disambiguation.
23165
23166 2019-06-25 Martin Liska <mliska@suse.cz>
23167
23168 PR tree-optimization/90973
23169 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23170 of prologue and epilogue.
23171
23172 2019-06-24 Jan Hubicka <jh@suse.cz>
23173
23174 * ipa-utils.h (type_with_linkage_p): Verify that type is
23175 CXX_ODR_P.
23176 (odr_type_p): Remove extra return.
23177 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23178 hash STRING_FLAG only for arrays and integers.
23179 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23180 Update analogously.
23181 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23182 Likewise.
23183 * print-tree.c (print_node): Print cxx-odr-p
23184 and string-flag.
23185 * tree.c (need_assembler_name_p): Also check that type
23186 is CXX_ODR_TYPE_P
23187 (verify_type_variant): Update verification of SRING_FLAG;
23188 also check CXX_ODR_P.
23189 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23190 (TYPE_STRING_FLAG): Use it.
23191 (TYPE_CXX_ODR_P): New macro.
23192 * dwarf2out.c (gen_array_type_die): First check that type
23193 is an array and then test string flag.
23194
23195 2019-06-24 Richard Biener <rguenther@suse.de>
23196
23197 PR tree-optimization/90972
23198 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23199 in common code, dealing with STRING_CST properly.
23200
23201 2019-06-24 Richard Biener <rguenther@suse.de>
23202
23203 PR tree-optimization/90930
23204 PR tree-optimization/90316
23205 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23206 decrement of limit.
23207
23208 2019-06-24 Martin Sebor <msebor@redhat.com>
23209
23210 * tree-pretty-print.h: Remove unnecessary punctuation characters
23211 from a diagnostic.
23212 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23213
23214 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23215
23216 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23217 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23218 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23219
23220 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23221
23222 * config/rs6000/darwin.h: Handle GCC target pragma.
23223
23224 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23225
23226 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23227
23228 2019-06-22 Jeff Law <law@redhat.com>
23229
23230 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23231
23232 2019-06-22 Jan Hubicka <jh@suse.cz>
23233
23234 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23235 give up on bitfields; continue searching for different refs
23236 appearing later.
23237
23238 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23239
23240 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23241 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23242 containing the offset as possible simd lane access. Look through
23243 widening conversion. Move the
23244 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23245
23246 2019-06-21 Richard Biener <rguenther@suse.de>
23247
23248 PR tree-optimization/90930
23249 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23250 flag on new stmts to avoid re-processing them.
23251
23252 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23253
23254 PR c++/90875 - added -Wswitch-outside-range option
23255 * doc/invoke.texi (Wswitch-outside-range): Document.
23256
23257 2019-06-21 Jeff Law <law@redhat.com>
23258
23259 PR tree-optimization/90949
23260 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23261 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23262
23263 2019-06-21 Richard Biener <rguenther@suse.de>
23264
23265 PR debug/90914
23266 * dwarf2out.c (prune_unused_types_walk): Always consider
23267 function-local extern declarations as used.
23268
23269 2019-06-21 Richard Biener <rguenther@suse.de>
23270
23271 PR tree-optimization/90913
23272 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23273 the scalar variant of if-conversion versioning.
23274
23275 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23276
23277 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23278 create another "omp scan inscan exclusive" array if
23279 !ctx->scan_inclusive.
23280 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23281 (lower_omp_scan): Likewise.
23282 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23283 2-bit bitfield for simd_lane_access_p member.
23284 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23285 aux == (void *)-4 as simd lane access.
23286 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23287 comment with permutations to show the canonical permutation order.
23288 (vectorizable_scan_store): Handle exclusive scan.
23289 (vectorizable_store): Call vectorizable_scan_store even for
23290 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23291
23292 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23293 "omp simd array" arrays with one byte elements.
23294
23295 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23296
23297 * config/alpha/alpha.md (@unaligned_store<mode>):
23298 Rename from unaligned_store<mode>.
23299 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23300 * config/alpha/sync.md (@load_locked_<mode>): Rename
23301 from load_locked_<mode>.
23302 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23303 (@atomic_compare_and_swap<mode>_1): Rename
23304 from atomic_compare_and_swap<mode>_1.
23305 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23306 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23307 Use gen_reload_in_aligned and gen_unaligned_store.
23308 (emit_load_locked): Remove.
23309 (emit_store_conditional): Ditto.
23310 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23311 (alpha_split_compare_and_swap): Ditto.
23312 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23313 (alpha_split_compare_and_swap_12): Use gen_load_locked
23314 and gen_store_conditional.
23315 (alpha_split_atomic_exchange): Ditto.
23316 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23317 (alpha_split_atomic_exchange_12): Use gen_load_locked
23318 and gen_store_conditional.
23319
23320 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23321
23322 * config/aarch64/aarch64-errata.h: New file.
23323 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23324 (CA53_ERR_843419_SPEC): Delete.
23325 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23326 * config/aarch64/aarch64-linux.h: Likewise.
23327 * config/aarch64/aarch64-netbsd.h: Likewise.
23328 * config/aarch64/aarch64-freebsd.h: Likewise.
23329
23330 2019-06-20 Marek Polacek <polacek@redhat.com>
23331
23332 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23333
23334 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23335
23336 * config/rs6000/rs6000.md (isa attribute): Add support for
23337 for a future processor.
23338
23339 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23340
23341 PR target/54855
23342 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23343 standard scalar operation pattern for V2DF.
23344 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23345 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23346 (*ieee_<ieee_maxmin><mode>3): Likewise.
23347 (vec_setv2df_0): Likewise.
23348
23349 2019-06-20 Jan Hubicka <jh@suse.cz>
23350
23351 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23352 parameter; it has no use in gimple memory model.
23353 (indirect_ref_may_alias_decl_p): Update.
23354
23355 2019-06-20 Martin Liska <mliska@suse.cz>
23356
23357 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23358 to 10.
23359
23360 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23361
23362 * tree-vect-stmts.c (enum scan_store_kind): New type.
23363 (scan_store_can_perm_p): Change last argument from int * to
23364 vec<enum scan_store_kind> *, record precisely which permutations
23365 need whole vector left shift or that plus VEC_COND_EXPR.
23366 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23367 and additional VEC_COND_EXPR only for those iterations that need it.
23368
23369 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23370
23371 * config.gcc: Fix ARM --with-fpu checking and error message.
23372
23373 2019-06-19 Marek Polacek <polacek@redhat.com>
23374
23375 PR c++/60364 - noreturn after first decl not diagnosed.
23376 * attribs.c (get_attribute_namespace): No longer static.
23377 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23378 attributes.
23379 (attr_noreturn_exclusions): Make it extern.
23380 * attribs.h (get_attribute_namespace): Declare.
23381 * tree-inline.c (function_attribute_inlinable_p): Use
23382 get_attribute_name.
23383
23384 2019-06-19 Martin Sebor <msebor@redhat.com>
23385
23386 PR tree-optimization/90626
23387 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23388
23389 PR tree-optimization/90626
23390 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23391 (handle_builtin_string_cmp): Call it.
23392
23393 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23394
23395 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23396 and DARWIN_NOPIE_SPEC.
23397 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23398 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23399 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23400 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23401 (DARWIN_EXPORT_DYNAMIC): Delete.
23402 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23403 and pie options processing to darwin.h.
23404 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23405
23406 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23407
23408 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23409 in computing the number of options to be moved.
23410
23411 2019-06-19 Maya Rashish <coypu@sdf.org>
23412
23413 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23414 (CLEAR_INSN_CACHE) Use it.
23415
23416 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23417
23418 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23419
23420 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23421
23422 PR middle-end/84521
23423 * builtins.c (expand_builtin_setjmp_setup): Save
23424 hard_frame_pointer_rtx.
23425 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23426 restore fp.
23427 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23428 non-local goto.
23429 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23430 elimination code.
23431 (remove_reg_equal_offset_note): Remove unused function.
23432 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23433 code.
23434 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23435 (arc_builtin_setjmp_frame_value): Remove function.
23436 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23437 (avr_builtin_setjmp_frame_value): Remove function.
23438 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23439 (ix86_builtin_setjmp_frame_value): Remove function.
23440 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23441 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23442 (sparc_builtin_setjmp_frame_value): Remove function.
23443 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23444 (vax_builtin_setjmp_frame_value): Remove function.
23445 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23446 pointer if has_nonlocal_label.
23447
23448 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23449
23450 * doc/md.texi: Document vec_shl_<mode> pattern.
23451 * optabs.def (vec_shl_optab): New optab.
23452 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23453 argument, if == vec_shl_optab, check for left whole vector shift
23454 pattern rather than right shift.
23455 (expand_vec_perm_const): Add vec_shl_optab support.
23456 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23457 in the comment.
23458 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23459 can be handled by vec_shl_optab.
23460 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23461 (check_scan_store): Use it.
23462 (vectorizable_scan_store): If target can't do normal permutations,
23463 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23464 after it.
23465 * config/i386/sse.md (vec_shl_<mode>): New expander.
23466
23467 * omp-low.c (lower_rec_input_clauses): Handle references properly
23468 in inscan clauses.
23469 (lower_omp_scan): Likewise.
23470
23471 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23472
23473 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23474 mem_mode is BLKmode.
23475
23476 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23477
23478 PR target/90922
23479 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23480 pointer adjustment for the case of no callee-saved registers and
23481 stack frame bigger than 128 bytes.
23482
23483 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23484
23485 PR middle-end/90862
23486 * omp-low.c (check_omp_nesting_restrictions): Handle
23487 GF_OMP_TARGET_KIND_OACC_DECLARE.
23488
23489 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23490
23491 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23492 (@add<mode>3_carry): Rename from add<mode>3_carry.
23493 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23494 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23495 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23496 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23497 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23498 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23499 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23500 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23501 (cmpstrnsi): Use gen_cmp_1.
23502 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23503 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23504 (@umonitor_<mode>): Rename from umonitor_<mode>.
23505 * config/i386/i386-expand.c (ix86_expand_copysign):
23506 Use gen_copysign3_const and gen_copysign3_var.
23507 (ix86_expand_xorsign): Use gen_xorsign3_1.
23508 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23509 gen_sub3_carry_ccgz and gen_cmp1.
23510 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23511 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23512 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23513 (ix86_split_lshr): Ditto.
23514 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23515
23516 2019-06-18 Jason Merrill <jason@redhat.com>
23517
23518 * tree.c (build_constructor): Add MEM_STAT_DECL.
23519
23520 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23521
23522 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23523 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23524 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23525 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23526 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23527 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23528 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23529 Use CC_NZC instead of CC.
23530 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23531 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23532 (aarch64_print_operand): Handle E_CC_NZCmode.
23533 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23534 of gen_set_clobber_cc.
23535
23536 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23537
23538 * config/aarch64/aarch64-sve.md: Tabify file.
23539
23540 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23541
23542 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23543 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23544 * config/aarch64/aarch64-sve.md: Use it.
23545
23546 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23547
23548 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23549 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23550 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23551 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23552 (aarch64_expand_sve_vec_cmp_int): Use it.
23553 (aarch64_expand_sve_vec_cmp_float): Likewise.
23554 * config/aarch64/aarch64-sve.md: Likewise throughout.
23555
23556 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23557 Kugan Vivekanandarajah <kuganv@linaro.org>
23558
23559 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23560 (*cond_<optab><mode>_z): Fold into...
23561 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23562 operand 4 can be tied to operand 0 (either inherently or via RA).
23563
23564 2019-06-18 Richard Biener <rguenther@suse.de>
23565
23566 PR debug/90900
23567 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23568 as if optimized away.
23569
23570 2019-06-18 Tom de Vries <tdevries@suse.de>
23571
23572 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23573 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23574 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23575 Rename to ...
23576 (define_insn "@set_softstack_<mode>"): ... this.
23577 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23578 (define_insn "@omp_simt_enter_<mode>"): ... this.
23579 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23580 (define_insn "@omp_simt_exit_<mode>"): ... this.
23581
23582 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23583
23584 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23585 vf parameter. Restore the previous iv step of nscalars_step,
23586 but give it iv_type rather than compare_type. Tweak code order
23587 to match the comments.
23588 (vect_set_loop_condition_masked): Update accordingly.
23589 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23590 for iv_precision. Tweak comment formatting.
23591
23592 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23593
23594 * config/darwin.c: Strip trailing whitespace.
23595
23596 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23597
23598 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23599 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23600
23601 2019-06-18 Martin Jambor <mjambor@suse.cz>
23602
23603 PR ipa/90889
23604 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23605 caller does not have flag_ipa_cp set.
23606
23607 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23608
23609 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23610 from "*fold_left_plus_<mode>", updated operands order.
23611 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23612 * internal-fn.c (mask_fold_left_direct): New define.
23613 (expand_mask_fold_left_optab_fn): Likewise.
23614 (direct_mask_fold_left_optab_supported_p): Likewise.
23615 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23616 * optabs.def (mask_fold_left_plus_optab): New optab.
23617 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23618 masked internal_fn for a reduction ifn.
23619 (vectorize_fold_left_reduction): Add support for masking reductions.
23620
23621 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23622
23623 PR middle-end/80791
23624 * target.def (predict_doloop_p): New hook.
23625 * targhooks.h (default_predict_doloop_p): New declaration.
23626 * targhooks.c (default_predict_doloop_p): New function.
23627 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23628 * doc/tm.texi: Regenerate.
23629 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23630 (TARGET_PREDICT_DOLOOP_P): New macro.
23631 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23632
23633 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23634
23635 * omp-low.c (struct omp_context): Add scan_inclusive field.
23636 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23637 if inclusive scan.
23638 (struct omplow_simd_context): Add lastlane member.
23639 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23640 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23641 1 or 2 argument.
23642 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23643 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23644 (lower_omp_scan): New function.
23645 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23646 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23647 check 3rd argument if present rather than 2nd.
23648 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23649 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23650 2-bit bitfield.
23651 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23652 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23653 than 2nd.
23654 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23655 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23656 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23657 init.
23658 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23659 IFN_GOMP_SIMD_LANE argument.
23660 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23661 encoded ->aux value.
23662 * tree-vect-stmts.c: Include attribs.h.
23663 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23664 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23665 functions.
23666 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23667 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23668
23669 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23670
23671 PR target/62055
23672 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23673 (*nabs<mode>2_1): Ditto.
23674 (nabs sse-reg splitter): New splitter.
23675 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23676
23677 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23678
23679 PR bootstrap/90873.
23680 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23681 TMR index check.
23682
23683 2019-06-17 Tom de Vries <tdevries@suse.de>
23684
23685 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23686 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23687 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23688 ...
23689 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23690 match_operand 0.
23691 (define_insn "omp_simt_enter_insn"): Rename to ...
23692 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23693 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23694 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23695 gen_omp_simt_enter_si.
23696 (define_expand "omp_simt_exit"): New.
23697 (define_insn "omp_simt_exit"): Rename to ...
23698 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23699 match_operand 0.
23700
23701 2019-06-17 Matthew Green <mrg@eterna.com.au>
23702 Maya Rashish <coypu@sdf.org>
23703
23704 * config.gcc (aarch64*-*-netbsd*): New target.
23705 * config/aarch64/aarch64-netbsd.h: New file.
23706 * config/aarch64/t-aarch64-netbsd: Likewise.
23707
23708 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23709
23710 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23711 the access path from base to first VIEW_CONVERT_EXPR or
23712 BIT_FIELD_REF.
23713
23714 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23715
23716 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23717 access path on BIT_FIELD_REFs.
23718
23719 2019-06-17 Martin Liska <mliska@suse.cz>
23720
23721 PR ipa/90874
23722 * ipa-utils.h (odr_type_p): Remove dead code.
23723
23724 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23725
23726 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23727 alternative Solaris 11.4 format.
23728 * configure: Regenerate.
23729
23730 2019-06-17 Tom de Vries <tdevries@suse.de>
23731
23732 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23733 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23734 match_operand 0.
23735 (define_insn "call_value_insn"): Rename to ...
23736 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23737 match_operand 0.
23738 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23739 DI.
23740
23741 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23742
23743 PR middle-end/64242
23744 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23745 frame clobbers and schedule block.
23746 (builtin_longjmp): Likewise.
23747
23748 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23749
23750 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23751 describe how to perform MSPABI compliant 64-bit shift.
23752 * config/msp430/msp430.md (ashldi3): New define_expand.
23753 (ashrdi3): New define_expand.
23754 (lshrdi3): New define_expand.
23755
23756 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23757
23758 * doc/sourcebuild.texi: Document new effective target keyword
23759 longlong64.
23760
23761 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23762
23763 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23764 indirect_refs_may_alias_p): Revert accidental commits.
23765
23766 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23767 at the end of structures.
23768
23769 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23770
23771 * config/darwin.c (machopic_indirect_call_target): Use renamed
23772 darwin_picsymbol_stubs to decide on output.
23773 (darwin_override_options): Handle darwin_picsymbol_stubs.
23774 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23775 (LD64_VERSION): Revise default.
23776 * config/darwin.opt: (mpic-symbol-stubs): New option.
23777 (darwin_picsymbol_stubs): New variable.
23778 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23779 rename to TARGET_MACHO_PICSYM_STUBS.
23780 * config/i386/i386.c (output_pic_addr_const): Likewise.
23781 * config/i386/i386.h Likewise.
23782 * config/rs6000/darwin.h: Likewise.
23783 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23784 darwin_picsymbol_stubs.
23785
23786 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23787
23788 * config/darwin.opt (prebind, noprebind, seglinkedit,
23789 noseglinkedit): Add RejectNegative.
23790
23791 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23792
23793 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23794 in my previous patch.
23795
23796 2019-06-16 Tom de Vries <tdevries@suse.de>
23797
23798 PR tree-optimization/89376
23799 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23800
23801 2019-06-15 Maya Rashish <coypu@sdf.org>
23802
23803 * doc/invoke.texi (Spec Files): Update location of the
23804 Fortran spec file.
23805
23806 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23807
23808 * doc/extend.texi (Common Function Attributes): Clarify
23809 no_sanitize. Fix grammar.
23810
23811 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23812
23813 * tree-ssa-alias.c (alias_stats): Add
23814 nonoverlapping_component_refs_p_may_alias,
23815 nonoverlapping_component_refs_p_no_alias,
23816 nonoverlapping_component_refs_of_decl_p_may_alias,
23817 nonoverlapping_component_refs_of_decl_p_no_alias.
23818 (dump_alias_stats): Dump them.
23819 (nonoverlapping_component_refs_of_decl_p): Add stats.
23820 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23821 ARRAY_REF.
23822
23823 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23824
23825 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23826 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23827 only.
23828 (*anddi3_doubleword): Split before reload. Merge with
23829 anddi->zext pre-reload splitter.
23830 (*andndi3_doubleword): Split before reload.
23831 (*<code>di3_doubleword): Ditto.
23832 (*one_cmpldi2_doubleword): Ditto.
23833
23834 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23835
23836 PR middle-end/90779
23837 * gimplify.c: Include omp-offload.h and context.h.
23838 (gimplify_bind_expr): Add "omp declare target" attributes
23839 to static block scope variables inside of target region or target
23840 functions.
23841
23842 2019-06-15 Tom de Vries <tdevries@suse.de>
23843
23844 PR tree-optimization/90009
23845 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23846 Return NULL if bb contains IFN_UNIQUE.
23847
23848 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23849
23850 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23851 (un): New define_mode_attr.
23852 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23853 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23854 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23855 merge into ...
23856 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23857
23858 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23859
23860 * config/darwin.opt: Add RejectNegative where needed, reorder
23861 and add minimal functional descriptions.
23862
23863 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23864
23865 PR rtl-optimization/90765
23866 * calls.c (update_stack_alignment_for_call): New function.
23867 (expand_call): Call update_stack_alignment_for_call when
23868 outgoing parameter is passed in the stack.
23869 (emit_library_call_value_1): Likewise.
23870 * function.c (locate_and_pad_parm): Don't update
23871 stack_alignment_needed and preferred_stack_boundary.
23872
23873 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23874
23875 PR target/90877
23876 * config/i386/i386-features.c
23877 (dimode_scalar_chain::compute_convert_gain): Replace
23878 mmxsse_to_integer with sse_to_integer.
23879 * config/i386/i386.c (ix86_register_move_cost): Verify that
23880 moves between MMX and non-MMX units require secondary memory.
23881 Correct costs of moves between SSE and integer units.
23882 * config/i386/i386.h (processor_costs): Rename cost of moving
23883 SSE register to integer to sse_to_integer. Rename cost of
23884
23885 2019-06-14 Matt Thomas <matt@3am-software.com>
23886 Matthew Green <mrg@eterna.com.au>
23887 Nick Hudson <skrll@netbsd.org>
23888 Maya Rashish <coypu@sdf.org>
23889 Richard Earnshaw <rearnsha@arm.com>
23890
23891 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23892 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23893 * config/arm/netbsd-eabi.h: New file.
23894 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23895 redefining.
23896 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23897 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23898 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23899 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23900
23901 2019-06-14 Richard Biener <rguenther@suse.de>
23902
23903 * tree-loop-distribution.c (classify_partition): Return
23904 whether a reduction appeared in all partitions and do not
23905 stop builtin detection because of this.
23906 (distribute_loop): Sort a non-builtin partition last if
23907 there's a reduction in all partitions and make sure the
23908 partition prevailing as last is not a builtin.
23909
23910 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23911
23912 PR ipa/90401
23913 * ipa-prop.c (add_to_agg_contents_list): New function.
23914 (clobber_by_agg_contents_list_p): Likewise.
23915 (extract_mem_content): Likewise.
23916 (get_place_in_agg_contents_list): Delete.
23917 (determine_known_aggregate_parts): Renamed from
23918 determine_locally_known_aggregate_parts. New parameter
23919 aa_walk_budget_p.
23920
23921 2019-06-13 Martin Sebor <msebor@redhat.com>
23922
23923 PR tree-optimization/90662
23924 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23925 to the same type.
23926
23927 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23928
23929 PR bootstrap/90873
23930 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23931 dbase is not TARGET_MEM_REF.
23932
23933 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23934
23935 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23936 Update all uses.
23937 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23938 Do not generate DImode extends for 32bit targets.
23939 (and->zext post-reload splitter): Use gen_extend_insn
23940 instead of indirect functions.
23941 (anddi->zext pre-reload splitter): New.
23942 (*zext<mode>_doubleword_and): Remove.
23943 (*zext<mode>_doubleword): Ditto.
23944 (*zextsi_doubleword): Dittto.
23945
23946 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23947
23948 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23949 Use gen_sub3_insn instead of indirect function.
23950 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23951 indirect function.
23952 (ix86_adjust_counter): Ditto.
23953
23954 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23955 Lijia He <helijia@linux.ibm.com>
23956
23957 PR tree-optimization/77820
23958 * tree-ssa-threadedge.c
23959 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23960 function.
23961 (thread_across_edge): Add call to
23962 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23963
23964 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23965
23966 * config/darwin-driver.c (validate_macosx_version_min): New.
23967 (darwin_default_min_version): Cleanup and validate supplied version.
23968 (darwin_driver_init): Likewise and push cleaned version into opts.
23969
23970 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23971
23972 PR tree-optimization/90869
23973 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23974 converts in MEM_REF referencing decl rather than view converts
23975 from decl type to MEM_REF type.
23976
23977 2019-06-13 Richard Biener <rguenther@suse.de>
23978
23979 PR tree-optimization/90856
23980 * tree-sra.c (build_ref_for_model): Only use
23981 build_reconstructed_reference when address-spaces are the same.
23982
23983 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23984
23985 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23986 wrap ei variable name in the declaration in ()s.
23987 (nvptx_single): Actually use mode_label variable. Formatting fix.
23988
23989 2019-06-13 Richard Biener <rguenther@suse.de>
23990
23991 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23992 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23993 also return the condition stmt.
23994 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23995 loop we can version and version that, reusing the loop version
23996 created by if-conversion instead of versioning again.
23997
23998 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23999
24000 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24001 may_contain_p.
24002 * tree-vrp (value_range_base::may_contain_p): Call into
24003 value_inside_range.
24004 (value_inside_range): Make private inside value_range_base class.
24005 Take min/max from *this.
24006 (range_includes_p): Remove.
24007 * tree-vrp.h (value_range_base): Add value_inside_range.
24008 (range_includes_p): Remove.
24009 (range_includes_zero_p): Call may_contain_p.
24010 * vr-values.c (compare_range_with_value): Same.
24011
24012 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24013
24014 * doc/extend.texi (ARC Function Attributes): Update info.
24015
24016 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24017
24018 PR tree-optimization/89713
24019 * doc/invoke.texi (-ffinite-loops): Document new option.
24020 * common.opt (-ffinite-loops): New option.
24021 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24022 IFN_GOACC_LOOP calls as necessary.
24023 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24024 is finite.
24025 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24026 IFN_GOACC_LOOP call is not used.
24027 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24028
24029 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24030
24031 PR target/88838
24032 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24033 compare_type is not with Pmode size, we will create an IV with
24034 Pmode size with truncated use (i.e. converted to the correct type).
24035 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24036 (vect_iv_limit_for_full_masking): New. Factored out of
24037 vect_set_loop_condition_masked.
24038 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24039 (vect_iv_limit_for_full_masking): Declare.
24040
24041 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24042
24043 PR target/88834
24044 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24045 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24046 (get_alias_ptr_type_for_ptr_address): Likewise.
24047 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24048 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24049 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24050 allow_reg_index_p.
24051
24052 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24053
24054 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24055
24056 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24057
24058 * common/config/pru/pru-common.c: New file.
24059 * config.gcc: Add PRU target.
24060 * config/pru/alu-zext.md: New file.
24061 * config/pru/constraints.md: New file.
24062 * config/pru/predicates.md: New file.
24063 * config/pru/pru-opts.h: New file.
24064 * config/pru/pru-passes.c: New file.
24065 * config/pru/pru-pragma.c: New file.
24066 * config/pru/pru-protos.h: New file.
24067 * config/pru/pru.c: New file.
24068 * config/pru/pru.h: New file.
24069 * config/pru/pru.md: New file.
24070 * config/pru/pru.opt: New file.
24071 * config/pru/t-pru: New file.
24072 * doc/extend.texi: Document PRU pragmas.
24073 * doc/invoke.texi: Document PRU-specific options.
24074 * doc/md.texi: Document PRU asm constraints.
24075
24076 2019-06-12 Martin Sebor <msebor@redhat.com>
24077
24078 PR middle-end/90676
24079 * tree-pretty-print.c (dump_mem_ref): New function. Include
24080 MEM_REF type in output when different size than operand.
24081 (dump_generic_node): Move code to dump_mem_ref and call it.
24082
24083 2019-06-12 Martin Sebor <msebor@redhat.com>
24084
24085 PR tree-optimization/90662
24086 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24087 to arrays.
24088
24089 2019-06-12 Tom de Vries <tdevries@suse.de>
24090
24091 PR tree-optimization/90009
24092 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24093
24094 2019-06-12 Martin Liska <mliska@suse.cz>
24095
24096 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24097 the created map.
24098 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24099 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24100 Do not sanitize created maps.
24101
24102 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24103
24104 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24105 value_range::singleton_p.
24106 * tree-vrp.c (value_range_constant_singleton): Remove.
24107 * tree-vrp.h (value_range_constant_singleton): Remove.
24108 * vr-values.c (vr_values::singleton): Use
24109 value_range::singleton_p.
24110
24111 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24112
24113 PR target/90811
24114 * cfgexpand.c (align_local_variable): Add really_expand argument,
24115 don't SET_DECL_ALIGN if it is false.
24116 (add_stack_var): Add really_expand argument, pass it through to
24117 align_local_variable.
24118 (expand_one_stack_var_1): Pass true as really_expand to
24119 align_local_variable.
24120 (expand_one_ssa_partition): Pass true as really_expand to
24121 add_stack_var.
24122 (expand_one_var): Pass really_expand through to add_stack_var.
24123
24124 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24125
24126 * config/arm/iterators.md (VABAL): New int iterator.
24127 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24128 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24129 UNSPEC_VABAL_U values.
24130
24131 2019-06-12 Martin Liska <mliska@suse.cz>
24132
24133 * value-prof.c (stream_out_histogram_value): Only first value
24134 can't be negative.
24135
24136 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24137
24138 PR c/90760
24139 * symtab.c (symtab_node::set_section): Allow being called on aliases
24140 as long as they aren't analyzed yet.
24141
24142 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24143
24144 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24145 to `mips_set_text_contents_type' to indicate whether a
24146 non-debug insn follows.
24147
24148 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24149
24150 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24151 enabling -mpcrel by default.
24152 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24153 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24154 that the test against -mcpu=future is done first. Then test if
24155 -mprefixed-addr is on for -mpcrel.
24156 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24157
24158 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24159
24160 PR target/90811
24161 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24162 instead of and.u%d.
24163
24164 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24165
24166 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24167
24168 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24169
24170 PR c++/90449 - add -Winaccessible-base option.
24171 * doc/invoke.texi (Winaccessible-base): Document.
24172
24173 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24174
24175 PR tree-optimization/62041
24176 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24177
24178 2019-06-11 Jason Merrill <jason@redhat.com>
24179
24180 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24181 * tree.c (get_tree_code_name): Likewise.
24182 * print-tree.c (print_node): Only briefly print a node with an
24183 invalid code.
24184
24185 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24186
24187 PR bootstrap/90819
24188 * trans-mem.c (tm_memopt_compute_available): Add assertion
24189 that blocks is not empty. Formatting fix.
24190
24191 2019-06-11 Martin Liska <mliska@suse.cz>
24192
24193 PR c++/87847
24194 * hash-table.h: Extend create_gcc, add one parameter
24195 that is passed into hash_table::hash_table.
24196
24197 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24198
24199 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24200 New prototype.
24201 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24202 Emit clobber also for non-sse operations.
24203 (ix86_split_fp_absneg_operator): New function.
24204 * config/i386/i386.md (SSEMODEF): New mode iterator.
24205 (ssevecmodef): New mode attribute.
24206 (<code>tf2): Use absneg code iterator.
24207 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24208 Add three-operand AVX alternatives.
24209 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24210 Use absneg code iterator and X87MODEF mode iterator.
24211 (absneg fp_reg non-sse splitter): Call absneg code iterator
24212 and X87MODEF mode iterator.
24213 (absneg general_reg non-sse splitter): Use absneg code iterator
24214 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24215 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24216 code iterator. Add three-operand AVX alternative.
24217 (absneg sse_reg splitter): Use absneg code iterator
24218 and SSEMODEF mode iterator. Handle AVX operands.
24219 (absneg fp_reg splitter): Use absneg code iterator
24220 and MODEF mode iterator.
24221 (absneg general_reg splitter): Merge splitters using MODEF mode
24222 iterator. Use absneg code iterator. Call
24223 ix86_split_fp_absneg_operator.
24224 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24225 Do not enable for non-sse modes before reload.
24226 (CSGNMODE): Remove.
24227 (CSGNVMODE): Ditto.
24228 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24229 ssevecmodef mode attribute instaed of CSGNVMODE.
24230 (copysign<mode>3_const): Ditto.
24231 (copysign<mode>3_var): Ditto.
24232 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24233 Use absneg code iterator. Simplify code using std::swap.
24234 * config/i386/predicates.md (absneg_operator): Remove.
24235
24236 2019-06-10 Martin Sebor <msebor@redhat.com>
24237
24238 * gimple-fold.c (get_range_strlen): Update comment that didn't
24239 make it into r267503 or related commits.
24240
24241 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24242
24243 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24244 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24245
24246 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24247
24248 * tree.def (OMP_SCAN): New tree code.
24249 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24250 OMP_CLAUSE_EXCLUSIVE.
24251 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24252 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24253 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24254 OMP_CLAUSE_{IN,EX}CLUSIVE.
24255 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24256 * tree-nested.c (convert_nonlocal_reference_stmt,
24257 convert_local_reference_stmt, convert_gimple_call): Handle
24258 GIMPLE_OMP_SCAN.
24259 * tree-pretty-print.c (dump_omp_clause): Handle
24260 OMP_CLAUSE_{IN,EX}CLUSIVE.
24261 (dump_generic_node): Handle OMP_SCAN.
24262 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24263 * gimple.h (gomp_scan): New type.
24264 (is_a_helper <gomp_scan *>::test,
24265 is_a_helper <const gomp_scan *>::test): New templates.
24266 (gimple_build_omp_scan): Declare.
24267 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24268 gimple_omp_scan_set_clauses): New inline functions.
24269 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24270 * gimple.c (gimple_build_omp_scan): New function.
24271 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24272 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24273 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24274 GIMPLE_OMP_TASKGROUP.
24275 (dump_gimple_omp_scan): New function.
24276 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24277 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24278 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24279 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24280 (is_gimple_stmt): Handle OMP_SCAN.
24281 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24282 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24283 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24284 mentioned in nested #pragma omp scan. Handle
24285 OMP_CLAUSE_{IN,EX}CLUSIVE.
24286 (gimplify_expr): Handle OMP_SCAN.
24287 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24288 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24289 simd constructs.
24290 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24291 GIMPLE_OMP_SCAN.
24292
24293 2019-06-10 Martin Liska <mliska@suse.cz>
24294
24295 * ipa-cp.c (ignore_edge_p): New function.
24296 (build_toporder_info): Use it.
24297 * ipa-inline.c (ignore_edge_p): New function.
24298 (inline_small_functions): Use it.
24299 * ipa-pure-const.c (ignore_edge_for_nothrow):
24300 Verify opt_for_fn for caller and callee.
24301 (ignore_edge_for_pure_const): Likewise.
24302 * ipa-reference.c (ignore_edge_p): Extend to check
24303 for opt_for_fn.
24304 * ipa-utils.c (searchc): Refactor.
24305 * ipa-utils.h: Fix coding style.
24306
24307 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24308
24309 * config/arc/arc.c (arc_rtx_costs): Update costs.
24310
24311 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24312
24313 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24314 (arc_split_ior): Likewise.
24315 (arc_check_mov_const): Likewise.
24316 (arc_split_mov_const): Likewise.
24317 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24318 (arc_rtx_costs): Replace check Crr with Cax constraint.
24319 (prepare_move_operands): Cleanup, remove unused code.
24320 (arc_split_ior): New function.
24321 (arc_check_ior_const): Likewise.
24322 (arc_split_mov_const): Likewise.
24323 (arc_check_mov_const): Likewise.
24324 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24325 in define_insn_and_split pattern.
24326 (iorsi3): Likewise.
24327 (mulsi3_v2): Add new matching variant.
24328 (andsi3_i): Cleanup pattern.
24329 (rotrsi3_cnt1): Update pattern.
24330 (rotrsi3_cnt8): New pattern.
24331 (ashlsi2_cnt8): Likewise.
24332 (ashlsi2_cnt16): Likewise.
24333 * config/arc/constraints.md (C0p): Update constraint.
24334 (Crr): Remove it.
24335 (C0x): New pattern.
24336 (Cax): New pattern.
24337
24338 2019-06-10 Martin Liska <mliska@suse.cz>
24339
24340 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24341 Update coding style.
24342 (sem_item_optimizer::dump_cong_classes):
24343 Print how many items are in a non-singular class. Improve
24344 coding style.
24345
24346 2019-06-10 Martin Liska <mliska@suse.cz>
24347
24348 * value-prof.c (dump_histogram_value): Change dump format.
24349 (gimple_mod_subtract_transform): Remove legacy comment.
24350
24351 2019-06-10 Martin Liska <mliska@suse.cz>
24352
24353 * value-prof.c (dump_histogram_value): Print histogram values
24354 only if present.
24355
24356 2019-06-10 Martin Liska <mliska@suse.cz>
24357
24358 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24359 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24360 * ipa-profile.c (ipa_profile_generate_summary):
24361 Use get_most_common_single_value.
24362 * tree-profile.c (gimple_init_gcov_profiler):
24363 Instrument with __gcov_one_value_profiler_v2
24364 and __gcov_indirect_call_profiler_v4.
24365 * value-prof.c (dump_histogram_value):
24366 Print all values for HIST_TYPE_SINGLE_VALUE.
24367 (stream_out_histogram_value): Update assert for
24368 N values.
24369 (stream_in_histogram_value): Set number of
24370 counters for HIST_TYPE_SINGLE_VALUE.
24371 (get_most_common_single_value): New.
24372 (gimple_divmod_fixed_value_transform):
24373 Use get_most_common_single_value.
24374 (gimple_ic_transform): Likewise.
24375 (gimple_stringops_transform): Likewise.
24376 (gimple_find_values_to_profile): Set number
24377 of counters for HIST_TYPE_SINGLE_VALUE.
24378 * value-prof.h (get_most_common_single_value): New.
24379
24380 2019-06-10 Martin Liska <mliska@suse.cz>
24381
24382 * hash-map.h: Pass default value to hash_table ctor.
24383 * hash-table.h: Add default value to call of a ctor.
24384
24385 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24386
24387 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24388 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24389
24390 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24391
24392 PR target/90751
24393 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24394 Call pa_output_function_label.
24395 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24396 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24397 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24398 to declaration.
24399 (pa_linux_output_function_prologue): Declare.
24400 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24401 (pa_output_function_label): New.
24402 (pa_output_function_prologue): Revise to use pa_output_function_label.
24403 (pa_linux_output_function_prologue): New.
24404 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24405
24406 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24407
24408 * tree-vrp.h (value_range_base::intersect): New.
24409 (value_range::intersect_helper): Move from here...
24410 (value_range_base::intersect_helper): ...to here.
24411 * tree-vrp.c (value_range::intersect_helper): Rename to...
24412 (value_range_base::intersect_helper): ...this, and rewrite to
24413 return a value instead of modifying THIS in place.
24414 Also, move equivalence handling...
24415 (value_range::intersect): ...here, while calling intersect_helper.
24416 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24417 calling intersect.
24418 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24419 Same.
24420 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24421
24422 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24423
24424 * Makefile.in (genprogerr): Add condmd.
24425 (genprog): Remove it here.
24426
24427 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24428
24429 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24430
24431 2019-06-07 Richard Biener <rguenther@suse.de>
24432
24433 PR debug/90574
24434 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24435 that appear after user labels.
24436
24437 2019-06-07 Martin Liska <mliska@suse.cz>
24438
24439 * cselib.c (cselib_init): Disable hash table
24440 sanitization.
24441 * hash-set.h: Pass new default argument to m_table.
24442 * hash-table.c: Add global variable with hash table
24443 sanitization limit.
24444 * hash-table.h (Allocator>::hash_table): Add new argument
24445 to ctor.
24446 (hashtab_chk_error): New.
24447 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24448 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24449 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24450
24451 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24452
24453 * common.opt (flto-odr-type-merging): Ignore.
24454 * invoke.texi (-flto-odr-type-merging): Remove.
24455 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24456 (can_be_vtable_hashed_p): Remove.
24457 (hash_odr_vtable): Remove.
24458 (odr_vtable_hasher::hash): Remove.
24459 (types_same_for_odr): Remove.
24460 (types_odr_comparable): Remove.
24461 (odr_vtable_hasher::equal): Remove.
24462 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24463 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24464 (get_odr_type): Do not use vtable hash.
24465 (dump_odr_type): Remove commented out code.
24466 (build_type_inheritance_graph): Do not allocate vtable hash.
24467 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24468 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24469 (odr_type_p): Likewise.
24470 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24471 test.
24472
24473 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24474
24475 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24476 immediately after same_types_for_tbaa_p returns -1 and continue
24477 looking for possible exact match; if matching types are arrays
24478 watch for partial overlaps.
24479 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24480 (indirect_refs_may_alias_p): Do type based disambiguation first;
24481 update comment.
24482
24483 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24484
24485 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24486
24487 2019-06-07 Martin Liska <mliska@suse.cz>
24488
24489 * doc/invoke.texi: Remove param.
24490 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24491 Remove.
24492 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24493 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24494 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24495 * profile.c (instrument_values): Remove
24496 HIST_TYPE_INDIR_CALL_TOPN.
24497 * tree-profile.c (init_ic_make_global_vars):
24498 Always build __gcov_indirect_call only.
24499 (gimple_init_gcov_profiler): Remove usage
24500 of PARAM_INDIR_CALL_TOPN_PROFILE.
24501 (gimple_gen_ic_profiler): Likewise.
24502 * value-prof.c (dump_histogram_value): Likewise.
24503 (stream_in_histogram_value): Likewise.
24504 (gimple_indirect_call_to_profile): Likewise.
24505 (gimple_find_values_to_profile): Likewise.
24506 * value-prof.h (enum hist_type): Likewise.
24507
24508 2019-06-07 Martin Liska <mliska@suse.cz>
24509
24510 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24511 function.
24512
24513 2019-06-07 Martin Liska <mliska@suse.cz>
24514
24515 PR tree-optimization/78902
24516 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24517 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24518 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24519 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24520 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24521 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24522 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24523 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24524 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24525 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24526 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24527 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24528 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24529 New.
24530 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24531 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24532 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24533 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24534 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24535 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24536 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24537 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24538 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24539 warn_unused_result attribute.
24540 (BUILT_IN_STRDUP): Likewise.
24541 (BUILT_IN_STRNDUP): Likewise.
24542 (BUILT_IN_ALLOCA): Likewise.
24543 (BUILT_IN_CALLOC): Likewise.
24544 (BUILT_IN_MALLOC): Likewise.
24545 (BUILT_IN_REALLOC): Likewise.
24546
24547 2019-06-06 Jim Wilson <jimw@sifive.com>
24548
24549 PR target/89955
24550 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24551 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24552 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24553
24554 2019-06-06 Martin Sebor <msebor@redhat.com>
24555
24556 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24557 (handle_builtin_malloc): Remove trailing spaces.
24558 (handle_builtin_memset): Same.
24559 (handle_builtin_memcmp): Same.
24560 (compute_string_length): Same.
24561 (determine_min_objsize): Same.
24562 (handle_builtin_string_cmp): Same.
24563 (handle_char_store): Same. Break up excessively long line.
24564
24565 2019-06-06 Martin Jambor <mjambor@suse.cz>
24566
24567 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24568 check.
24569
24570 2019-06-06 Martin Jambor <mjambor@suse.cz>
24571
24572 * tree-sra.c (struct access): New field grp_same_access_path.
24573 (dump_access): Dump it.
24574 (build_reconstructed_reference): New function.
24575 (build_ref_for_model): Use it if possible.
24576 (path_comparable_for_same_access): New function.
24577 (same_access_path_p): Likewise.
24578 (sort_and_splice_var_accesses): Set the new flag.
24579 (analyze_access_subtree): Likewise.
24580 (propagate_subaccesses_across_link): Propagate zero value of the new
24581 flag down the access tree.
24582
24583 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24584
24585 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24586 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24587 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24588 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24589 Add gfx906.
24590
24591 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24592
24593 PR tree-optimization/90332
24594 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24595 Handle VALS containing two vectors.
24596 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24597 to...
24598 (@aarch64_combinez<mode>): ... This.
24599 (*aarch64_combinez_be<mode>): Rename to...
24600 (@aarch64_combinez_be<mode>): ... This.
24601 (vec_init<mode><Vhalf>): New define_expand.
24602 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24603
24604 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24605
24606 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24607 library functions only when not optimizing for size.
24608 (ashlsi3): Likewise.
24609 (ashrhi3): Likewise.
24610 (ashrsi3): Likewise.
24611 (lshrhi3): Likewise.
24612 (lshrsi3): Likewise.
24613
24614 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24615
24616 PR rtl-optimization/88751
24617 * ira.c (ira): Use the number of the actually referenced registers
24618 when calculating the threshold.
24619
24620 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24621
24622 * configure: Regenerate.
24623
24624 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24625
24626 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24627 register if it is in memory, so the shift can be emulated with a rotate
24628 instruction.
24629 (ashrhi3): Likewise.
24630 (lshrhi3): Likewise.
24631
24632 2019-06-06 Martin Liska <mliska@suse.cz>
24633
24634 PR tree-optimization/87954
24635 * match.pd: Simplify mult where both arguments are 0 or 1.
24636
24637 2019-06-06 Richard Biener <rguenther@suse.de>
24638
24639 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24640 put equivalences on UNDEFINED ranges.
24641 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24642 Make sure to drop defs of stmts added during simplification
24643 to VARYING.
24644
24645 2019-06-06 Richard Biener <rguenther@suse.de>
24646
24647 * tree-ssa-structalias.c: Include tree-cfg.h.
24648 (make_heapvar): Do not make heap vars artificial.
24649 (find_func_aliases_for_builtin_call): Handle stack allocation
24650 functions.
24651 (find_func_aliases): Delay processing of simple enough returns
24652 in non-IPA mode.
24653 (set_uids_in_ptset): Adjust.
24654 (find_what_var_points_to): Likewise.
24655 (solve_constraints): Do not dump points-to sets here.
24656 (compute_points_to_sets): Post-process return statements,
24657 amending the escaped solution. Dump points-to sets afterwards.
24658 (ipa_pta_execute): Dump points-to sets.
24659
24660 2019-06-06 Martin Liska <mliska@suse.cz>
24661
24662 PR web/87933
24663 * doc/install.texi: Fix HTML headers and
24664 titles for 'Installing GCC' pages.
24665
24666 2019-06-06 Martin Liska <mliska@suse.cz>
24667
24668 * ipa-icf-gimple.h (dump_message_1): Remove.
24669 (dump_message): Likewise.
24670 (return_false_with_message_1): Print also file.
24671 (return_false_with_msg): Likewise.
24672 (return_with_result): Likewise.
24673 (return_with_debug): Likewise.
24674 * ipa-icf.c (sem_function::equals_private): Remove call
24675 to dump_message.
24676
24677 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24678
24679 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24680 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24681 memory operand for it.
24682 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24683
24684 2019-06-05 Martin Sebor <msebor@redhat.com>
24685
24686 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24687 Adjust quoting and hyphenation.
24688 * convert.c (convert_to_real_1): Same.
24689 * gcc.c (driver_wrong_lang_callback): Same.
24690 (driver::handle_unrecognized_options): Same.
24691 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24692 * opts-common.c (cmdline_handle_error): Same.
24693 (read_cmdline_option): Same.
24694 * opts-global.c (complain_wrong_lang): Same.
24695 (print_ignored_options): Same.
24696 (handle_common_deferred_options): Same.
24697 * pretty-print.h: Same.
24698 * print-rtl.c (debug_bb_n_slim): Same.
24699 * sched-rgn.c (make_pass_sched_fusion): Same.
24700 * tree-cfg.c (verify_gimple_assign_unary): Same.
24701 (verify_gimple_label): Same.
24702 * tree-ssa-operands.c (verify_ssa_operands): Same.
24703 * varasm.c (do_assemble_alias): Same.
24704 (assemble_alias): Same.
24705
24706 2019-06-05 Richard Henderson <rth@twiddle.net>
24707
24708 * config/alpha/alpha.c (direct_return): Move down after
24709 struct machine_function definition; use saved frame_size;
24710 return bool.
24711 (struct machine_function): Add sa_mask, sa_size, frame_size.
24712 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24713 (alpha_compute_frame_layout): ... new function.
24714 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24715 (alpha_initial_elimination_offset): Use saved sa_size.
24716 (alpha_vms_initial_elimination_offset): Likewise.
24717 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24718 (alpha_expand_prologue): Use saved frame data. Merge integer
24719 and fp register save loops.
24720 (alpha_expand_epilogue): Likewise.
24721 (alpha_start_function): Use saved frame data.
24722 * config/alpha/alpha-protos.h (direct_return): Update.
24723 (alpha_sa_size): Remove.
24724
24725 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24726
24727 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24728 multiplication by a power-of-two value.
24729 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24730 and turn the modulo operation into a masking operation.
24731
24732 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24733
24734 PR debug/90733
24735 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24736 with VOIDmode inner operands.
24737
24738 2019-06-05 Richard Biener <rguenther@suse.de>
24739
24740 PR middle-end/90726
24741 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24742 turn an expression graph into a tree.
24743
24744 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24745
24746 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24747 member.
24748 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24749 treat it like explicit monotonic schedule modifier.
24750 (expand_omp_for): Initialize has_lastprivate_conditional.
24751 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24752 schedule modifier.
24753
24754 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24755 references, lookup in in hash map MEM_REF operand instead of the
24756 MEM_REF itself.
24757 (lower_omp_1): When looking for lastprivate conditional assignments,
24758 handle MEM_REFs with REFERENCE_TYPE operands.
24759
24760 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24761 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24762 and references a VLA. Handle references to non-VLAs if is_simd
24763 all privatization clauses like reductions.
24764 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24765 If omp_is_reference, use always omp simd arrays and set
24766 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24767 fails, emit reference initialization.
24768
24769 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24770
24771 PR target/89803
24772 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24773 _mm_mask_fpclass_sd_mask): New intrinsics.
24774 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24775 * config/i386/i386-builtin.def
24776 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24777 New builtins.
24778 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24779 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24780 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24781 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24782 case QI_FTYPE_V2SF_INT): Ditto.
24783 * config/i386/sse.md
24784 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24785 Extended to insnstructions with mask operands.
24786
24787 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24788
24789 * config/rs6000/constraints.md (define_register_constraint "wp"):
24790 Delete.
24791 (define_register_constraint "wq"): Delete.
24792 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24793 (rs6000_init_hard_regno_mode_ok): Adjust.
24794 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24795 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24796 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24797 (define_mode_attr VSa): Delete.
24798 (define_mode_attr VSisa): New.
24799 (rest of file): Adjust.
24800 * doc/md.texi (Machine Constraints): Adjust.
24801
24802 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24803
24804 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24805 (define_attr "enabled"): Handle those new isa values.
24806
24807 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24808
24809 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24810 (define_mode_attr VSr5): Delete.
24811 (define_mode_attr VStype_sqrt): Delete.
24812 (define_mode_iterator VSX_SPDP): Delete.
24813 (define_mode_attr VS_spdp_res): Delete.
24814 (define_mode_attr VS_spdp_insn): Delete.
24815 (define_mode_attr VS_spdp_type): Delete.
24816 (*vsx_sqrt<mode>2): Adjust.
24817 (vsx_<VS_spdp_insn>): Delete, split to...
24818 (vsx_xscvdpsp): ... this. New. And...
24819 (vsx_xvcvspdp): ... this. New. And...
24820 (vsx_xvcvdpsp): ... this. New.
24821
24822 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24823
24824 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24825 and V2DF.
24826 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24827 (rest of file): Adjust.
24828
24829 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24830
24831 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24832 (vsx_extract_<mode>_var): Ditto.
24833
24834 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24835
24836 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24837 with just "wa".
24838
24839 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24840
24841 * config/rs6000/constraints.md (define_register_constraint "ww"):
24842 Delete.
24843 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24844 (rs6000_init_hard_regno_mode_ok): Adjust.
24845 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24846 RS6000_CONSTRAINT_ww.
24847 * config/rs6000/rs6000.md: Adjust.
24848 * config/rs6000/vsx.md: Adjust.
24849 * doc/md.texi (Machine Constraints): Adjust.
24850
24851 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24852
24853 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24854 (define_mode_attr sd): New.
24855 (define_mode_attr s): New.
24856 (define_mode_attr Ftrad): Delete.
24857 (define_mode_attr Fvsx): Delete.
24858 (define_mode_attr Fs): Delete.
24859 (rest of file): Use the new mode attributes.
24860 * config.rs6000/vsx.md: Use the new mode attributes.
24861
24862 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24863
24864 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24865 with just "wa".
24866
24867 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24868
24869 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24870 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24871 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24872
24873 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24874
24875 PR target/78263
24876 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24877 C++ with strict ANSI requirements.
24878
24879 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24880
24881 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24882 computations when step is 1.
24883
24884 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24885
24886 * config/rs6000/constraints.md (define_register_constraint "wf"):
24887 Delete.
24888 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24889 (rs6000_init_hard_regno_mode_ok): Adjust.
24890 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24891 RS6000_CONSTRAINT_wf.
24892 * config/rs6000/rs6000.md: Adjust.
24893 * config/rs6000/vsx.md: Adjust.
24894 * doc/md.texi (Machine Constraints): Adjust.
24895
24896 2019-06-04 Andrew Pinski <apinski@marvell.com>
24897
24898 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24899 Fix ILP32 value.
24900
24901 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24902
24903 * config/rs6000/constraints.md (define_register_constraint "wd"):
24904 Delete.
24905 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24906 (rs6000_init_hard_regno_mode_ok): Adjust.
24907 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24908 RS6000_CONSTRAINT_wd.
24909 * config/rs6000/rs6000.md: Adjust.
24910 * config/rs6000/vsx.md: Adjust.
24911 * doc/md.texi (Machine Constraints): Adjust.
24912
24913 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24914
24915 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24916 (rest of file): Adjust.
24917
24918 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24919
24920 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24921 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24922 (vsx_splat_<mode>_reg): Adjust.
24923
24924 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24925
24926 * config/rs6000/constraints.md (define_register_constraint "ws"):
24927 Delete.
24928 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24929 (rs6000_init_hard_regno_mode_ok): Adjust.
24930 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24931 RS6000_CONSTRAINT_ws.
24932 * config/rs6000/rs6000.md: Adjust.
24933 * config/rs6000/vsx.md: Adjust.
24934 * doc/md.texi (Machine Constraints): Adjust.
24935
24936 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24937
24938 * config/rs6000/constraints.md (define_register_constraint "wv"):
24939 Delete.
24940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24941 (rs6000_init_hard_regno_mode_ok): Adjust.
24942 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24943 RS6000_CONSTRAINT_wv.
24944 * config/rs6000/rs6000.md: Adjust.
24945 * config/rs6000/vsx.md: Adjust.
24946 * doc/md.texi (Machine Constraints): Adjust.
24947
24948 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24949
24950 * config/rs6000/constraints.md (define_register_constraint "wi"):
24951 Delete.
24952 (define_register_constraint "wt"): Delete.
24953 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24954 (rs6000_init_hard_regno_mode_ok): Adjust.
24955 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24956 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24957 * config/rs6000/rs6000.md: Adjust.
24958 * config/rs6000/vsx.md: Adjust.
24959 * doc/md.texi (Machine Constraints): Adjust.
24960
24961 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24962
24963 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24964 const.
24965 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24966 default_elf_asm_output_external.
24967
24968 2019-06-04 Martin Liska <mliska@suse.cz>
24969
24970 * ipa-icf.c (INCLUDE_LIST): Remove.
24971 (sem_item_optimizer::execute): Remove call to init_wpa.
24972 * ipa-icf.h (init_wpa): Remove.
24973
24974 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24975
24976 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24977 conditional on combined for simd.
24978 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24979 member.
24980 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24981 constructs, don't remove lastprivate_conditional_map, but instead set
24982 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24983 to parent construct temporaries.
24984 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24985 like !ctx->lastprivate_conditional_map.
24986 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24987 use up->outer context instead of up.
24988 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24989 gimple_omp_for_combined_p.
24990 (expand_omp_for_static_nochunk): Likewise.
24991 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24992 probably moved over into expand_omp_for_generic rather than being copied
24993 there.
24994
24995 2019-06-04 Martin Liska <mliska@suse.cz>
24996
24997 * value-prof.c (dump_histogram_value): Fix typo.
24998 (gimple_mod_subtract_transform): Likewise.
24999
25000 2019-06-04 Richard Biener <rguenther@suse.de>
25001
25002 PR middle-end/90726
25003 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25004 (tree_contains_chrecs): Likewise.
25005 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25006 exponential behaivor from ...
25007 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25008 ... here.
25009 (expression_expensive_p): Avoid exponential behavior and compute
25010 expanded size, rejecting any expansion.
25011 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25012 (idx_contains_abnormal_ssa_name_p): Likewise.
25013 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25014 (contains_abnormal_ssa_name_p): Simplify and use
25015 walk_tree_without_duplicates.
25016
25017 2019-06-04 Richard Biener <rguenther@suse.de>
25018
25019 PR tree-optimization/90738
25020 Revert
25021 2019-06-03 Richard Biener <rguenther@suse.de>
25022
25023 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25024 full reference tree and record in ref->ref.
25025 (vn_reference_lookup_3): Pass in original ref to
25026 ao_ref_init_from_vn_reference.
25027 (vn_reference_lookup): Likewise.
25028 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25029 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25030 Handle non-decl bases in the original reference.
25031
25032 2019-06-04 Martin Liska <mliska@suse.cz>
25033
25034 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25035 number of references.
25036 (sem_item_optimizer::do_congruence_step):
25037 (sem_item_optimizer::worklist_push): Dump how references
25038 a class has.
25039 (sem_item_optimizer::worklist_pop): Use heap.
25040 (sem_item_optimizer::process_cong_reduction): Likewise.
25041 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25042
25043 2019-06-04 Martin Liska <mliska@suse.cz>
25044
25045 * ipa-icf.h (struct sem_usage_pair_hash): New.
25046 (sem_usage_pair_hash::hash): Likewise.
25047 (sem_usage_pair_hash::equal): Likewise.
25048 (struct sem_usage_hash): Likewise.
25049 * ipa-icf.c (sem_item::sem_item): Initialize
25050 referenced_by_count.
25051 (sem_item::add_reference): Register a reference
25052 in ref_map and not in target->usages.
25053 (sem_item::setup): Remove initialization of
25054 dead vectors.
25055 (sem_item::~sem_item): Remove usage of dead vectors.
25056 (sem_item::dump): Remove dump of references.
25057 (sem_item_optimizer::sem_item_optimizer): Initialize
25058 m_references.
25059 (sem_item_optimizer::read_section): Remove useless
25060 dump.
25061 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25062 (sem_item_optimizer::build_graph): Pass m_references
25063 to ::add_reference.
25064 (sem_item_optimizer::verify_classes): Remove usage of dead
25065 vectors.
25066 (sem_item_optimizer::traverse_congruence_split): Return true
25067 when a class is split.
25068 (sem_item_optimizer::do_congruence_step_for_index): Use
25069 hash_map for look up of (sem_item *, index). That brings
25070 significant speed up.
25071 (sem_item_optimizer::do_congruence_step): Return true
25072 when a split is done.
25073 (congruence_class::is_class_used): Use referenced_by_count.
25074
25075 2019-06-04 Alan Modra <amodra@gmail.com>
25076
25077 PR target/90689
25078 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25079 error.
25080
25081 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25082
25083 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25084 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25085 (rs6000_secondary_reload_simple_move): Adjust.
25086 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25087 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25088 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25089 comment.
25090 (power6x): Adjust.
25091 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25092 (floatunssi<mode>2_lfiwzx): Adjust.
25093 (fix_trunc<mode>si2_stfiwx): Adjust.
25094 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25095 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25096 (mfpgpr): Mark as deprecated.
25097 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25098 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25099 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25100
25101 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25102
25103 * config/rs6000/constraints.md (define_register_constraint "wg"):
25104 Delete.
25105 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25106 RS6000_CONSTRAINT_wg.
25107 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25108 (rs6000_init_hard_regno_mode_ok): Adjust.
25109 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25110 Delete "wg" alternatives.
25111 * doc/md.texi (Machine Constraints): Adjust.
25112
25113 2019-06-03 Alan Modra <amodra@gmail.com>
25114
25115 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25116 (get_uncond_jump_length): Assert length less than INT_MAX and
25117 non-negative.
25118
25119 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25120
25121 PR middle-end/64242
25122 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25123 block.
25124 (expand_builtin_nonlocal_goto): Likewise.
25125
25126 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25127
25128 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25129 (aarch64_asm_output_external): Declare.
25130 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25131 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25132 (aarch64_asm_output_alias): New.
25133 (aarch64_asm_output_external): New.
25134 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25135 (ASM_OUTPUT_EXTERNAL): Define.
25136
25137 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25138 * tree-vrp.h (value_range_base::nonzero_p): New.
25139 (value_range_base::set_nonnull): Rename to...
25140 (value_range_base::set_nonzero): ...this.
25141 (value_range_base::set_null): Rename to...
25142 (value_range_base::set_zero): ...this.
25143 (value_range::set_nonnull): Remove.
25144 (value_range::set_null): Remove.
25145 * tree-vrp.c (range_is_null): Remove.
25146 (range_is_nonnull): Remove.
25147 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25148 instead of range_is_*null.
25149 (extract_range_from_unary_expr): Same.
25150 (value_range_base::set_nonnull): Rename to...
25151 (value_range_base::set_nonzero): ...this.
25152 (value_range::set_nonnull): Remove.
25153 (value_range_base::set_null): Rename to...
25154 (value_range_base::set_zero): ...this.
25155 (value_range::set_null): Remove.
25156 (extract_range_from_binary_expr): Rename set_*null uses to
25157 set_*zero.
25158 (extract_range_from_unary_expr): Same.
25159 (union_helper): Same.
25160 * vr-values.c (get_value_range): Use set_*zero instead of
25161 set_*null.
25162 (vr_values::extract_range_from_binary_expr): Same.
25163 (vr_values::extract_range_basic): Same.
25164
25165 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25166
25167 PR driver/90684
25168 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25169
25170 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25171
25172 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25173 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25174 Rename to...
25175 (aarch64_<su>abd<mode>_3): ... This.
25176 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25177
25178 2019-06-03 Richard Biener <rguenther@suse.de>
25179
25180 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25181 full reference tree and record in ref->ref.
25182 (vn_reference_lookup_3): Pass in original ref to
25183 ao_ref_init_from_vn_reference.
25184 (vn_reference_lookup): Likewise.
25185 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25186 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25187 Handle non-decl bases in the original reference.
25188
25189 2019-06-03 Martin Liska <mliska@suse.cz>
25190
25191 * doc/generic.texi: Remove Java Trees.
25192
25193 2019-06-03 Martin Liska <mliska@suse.cz>
25194
25195 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25196 returns 0 when operands are equal.
25197
25198 2019-06-03 Richard Biener <rguenther@suse.de>
25199
25200 PR tree-optimization/90716
25201 * tree-loop-distribution.c (destroy_loop): Process blocks in
25202 correct order.
25203
25204 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25205
25206 PR target/88837
25207 * vector-builder.h (vector_builder::count_dups): New method.
25208 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25209 Declare prototype.
25210 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25211 (vec_init<mode><Vel>): New pattern.
25212 * config/aarch64/aarch64.c (emit_insr): New function.
25213 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25214 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25215 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25216 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25217
25218 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25219
25220 PR tree-optimization/90681
25221 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25222 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25223 special case for SLP, but fail on non-groupped loads.
25224
25225 2019-06-03 Martin Liska <mliska@suse.cz>
25226
25227 * cfg.c (debug): Use TDF_DETAILS for debug and
25228 print edge info only once.
25229
25230 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25231
25232 PR fortran/90539
25233 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25234
25235 2019-06-01 Martin Sebor <msebor@redhat.com>
25236
25237 PR middle-end/90694
25238 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25239
25240 2019-05-31 Jan Hubicka <jh@suse.cz>
25241
25242 * alias.c: Include ipa-utils.h.
25243 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25244 * ipa-devirt.c (prevailing_odr_type): New.
25245 * ipa-utils.h (previaling_odr_type): Declare.
25246
25247 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25248 Hongtao Liu <hongtao.liu@intel.com>
25249
25250 PR target/89355
25251 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25252 NOTE_INSN_DELETED_LABEL check.
25253
25254 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25255 Robert Suchanek <robert.suchanek@mips.com>
25256
25257 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25258 and 3rd operands of the fmadd/fmsub/maddv builtin.
25259
25260 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25261
25262 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25263 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25264 on OMP_SIMD if not nested inside of worksharing loop that also has
25265 lastprivate conditional clause for the same decl.
25266 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25267 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25268 on simd.
25269 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25270 on simd construct.
25271 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25272 on simd construct.
25273 (lower_lastprivate_clauses): Likewise.
25274 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25275 calling lower_rec_input_clauses.
25276 (lower_omp_for): Likewise.
25277 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25278 clause on simd construct.
25279 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25280 OMP_CLAUSE__CONDTEMP_ clause is present.
25281
25282 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25283 ivar and lvar.
25284
25285 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25286
25287 PR c/43673
25288 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25289 TEX_D32, TEX_D64 or TEX_D128.
25290
25291 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25292
25293 * match.pd (~(vec?cst1:cst2)): New transformation.
25294
25295 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25296
25297 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25298 ((size_t)(A /[ex] B) CMP C): New transformation.
25299
25300 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25301
25302 * doc/md.texi: Document define_insn_and_rewrite.
25303 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25304 * gensupport.c (queue_elem): Update comment.
25305 (replace_operands_with_dups): New function.
25306 (gen_rewrite_sequence): Likewise.
25307 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25308 * read-rtl.c (apply_subst_iterator): Likewise.
25309 (add_condition_to_rtx, named_rtx_p): Likewise.
25310 (rtx_reader::read_rtx_operand): Likewise.
25311 * config/aarch64/aarch64-sve.md
25312 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25313 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25314 define_insn_and_rewrite.
25315 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25316 Remove separate define_split.
25317
25318 2019-05-31 Jan Hubicka <jh@suse.cz>
25319
25320 * tree-ssa-alias.c (type_has_components_p): New function.
25321 (aliasing_component_refs_p): Use it.
25322
25323 2019-05-31 Martin Liska <mliska@suse.cz>
25324
25325 * gdbhooks.py: Add const_tree to TreePrinter.
25326
25327 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25328
25329 PR debug/86964
25330 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25331 * doc/invoke.texi (Debugging Options): Document new default of
25332 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25333
25334 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25335
25336 PR tree-optimization/90671
25337 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25338 template_block used to be empty on the first call, don't use
25339 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25340 seq with bb_seq and set it with set_bb_seq.
25341
25342 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25343
25344 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25345
25346 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25347 Michael Meissner <meissner@linux.ibm.com>
25348
25349 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25350 (prefixed_mem_operand): Likewise.
25351 (non_prefixed_mem_operand): Likewise.
25352 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25353 prototype.
25354 * config/rs6000/rs6000.c (print_operand_address): Handle
25355 PC-relative addresses.
25356 (mode_supports_prefixed_address_p): New function.
25357 (rs6000_prefixed_address): New function.
25358 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25359 (SYMBOL_REF_PCREL_P): Likewise.
25360
25361 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25362
25363 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25364 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25365 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25366 is nested inside of parallel region, add _condtemp_ clause to both.
25367 * tree-nested.c (convert_nonlocal_omp_clauses,
25368 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25369 assertion failure.
25370 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25371 member.
25372 * omp-general.c (omp_extract_for_data): Compute it.
25373 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25374 (lower_rec_input_clauses): Likewise.
25375 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25376 clause is already present, just add one further one after it.
25377 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25378 (lower_send_shared_vars): Clear _condtemp_ vars.
25379 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25380 or section or taskgroup.
25381 * omp-expand.c (determine_parallel_type): Disallow combining only if
25382 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25383 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25384 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25385 expand_omp_for_static_chunk, expand_omp_for): Use
25386 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25387 determine if a special set of API routines are needed and if condtemp
25388 needs to be initialized, while always initialize cond_var if
25389 fd->lastprivate_conditional is non-zero.
25390
25391 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25392 Michael Meissner <meissner@linux.ibm.com>
25393
25394 * config/rs6000/constraints.md (eI): New constraint.
25395 * config/rs6000/predicates.md (cint34_operand): New predicate.
25396 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25397 (SIGNED_34BIT_OFFSET_P): Likewise.
25398 * doc/md.texi (eI): Document constraint.
25399
25400 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25401
25402 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25403
25404 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25405 Michael Meissner <meissner@linux.ibm.com>
25406
25407 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25408 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25409 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25410 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25411 (OTHER_FUTURE_MASKS): Likewise.
25412 (POWERPC_MASKS): Likewise.
25413 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25414 specified without -mprefixed-addr or -mcpu=future. Error if
25415 -mprefixed-addr is specified without -mcpu=future.
25416 (rs6000_opt_masks): Add entry for prefixed-addr.
25417 * rs6000.opt (mprefixed-addr): New option.
25418
25419 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25420
25421 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25422 cfun->is_thunk check.
25423
25424 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25425
25426 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25427 to length.
25428
25429 2019-05-30 Martin Liska <mliska@suse.cz>
25430
25431 * gdbinit.in: Fix 'ptc' command. Add trt
25432 that prints TREE_TYPE($).
25433
25434 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25435 Alan Modra <amodra@gmail.com>
25436
25437 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25438 calls here...
25439 (rs6000_indirect_call_template_1): ...and here.
25440 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25441 plt16_ha, plt16_lo, mtctr indirect calls. Use
25442 rs6000_pltseq_enum.
25443 (rs6000_decl_ok_for_sibcall): New function.
25444 (rs6000_function_ok_for_sibcall): Refactor.
25445 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25446 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25447 when pcrel. Reorganize.
25448 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25449 * rs6000.h (rs6000_pltseq_enum): New enum.
25450 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25451 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25452 (*pltseq_plt16_ha): Likewise.
25453 (*pltseq_plt16_lo): Likewise.
25454 (*pltseq_mtctr): Likewise.
25455 (*pltseq_plt_pcrel): New insn.
25456 (*call_local_aix): Handle @notoc calls.
25457 (*call_value_local_aix): Likewise.
25458 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25459 (*call_value_nonlocal_aix): Likewise.
25460 (*call_indirect_pcrel): New insn.
25461 (*call_value_indirect_pcrel): Likewise.
25462
25463 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25464
25465 * config/i386/sse.md (*save_multiple<mode>): Rename from
25466 save_multiple<mode>.
25467 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25468 (*restore_multiple_and_return<mode>): Rename from
25469 restore_multiple_and_return<mode>.
25470 (*restore_multiple_leave_return<mode>): Rename from
25471 restore_multiple_leave_return<mode>.
25472
25473 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25474
25475 * config.gcc (rx-*-linux*): New target.
25476 * config/rx/elf.opt: New file.
25477 * config/rx/linux.h: Likewise.
25478 * config/rx/t-linux: Likewise.
25479 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25480 make it zero.
25481 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25482 (ASM_APP_OFF): Likewise.
25483 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25484 moved elsewhere.
25485
25486 2019-05-29 Jan Hubicka <jh@suse.cz>
25487
25488 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25489 variants are pointer equivalent.
25490
25491 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25492
25493 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25494 * config/aarch64/aarch64-sve2.md: New file.
25495 (<u>avg<mode>3_floor): New pattern.
25496 (<u>avg<mode>3_ceil): Likewise.
25497 (*<sur>h<addsub><mode>): Likewise.
25498 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25499 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25500
25501 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25502
25503 PR bootstrap/90543
25504 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25505 for var_opt_string printing. In cl_optimization_print_diff, print
25506 (null) instead of invoking undefined behavior if one of the
25507 var_opt_string pointers is NULL and use && instead of first || in the
25508 guarding condition. For var_target_other options, handle const char *
25509 target variables similarly to const char * optimize node variables.
25510
25511 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25512
25513 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25514 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25515 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25516 Add autib1716 and pacib1716 initialisation.
25517 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25518 for autib1716 and pacib1716.
25519 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25520 aarch64_post_cfi_startproc): Define.
25521 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25522 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25523 aarch64_handle_pac_ret_protection): Set default sign key to A.
25524 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25525 aarch64_expand_prologue): Add check for b-key.
25526 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25527 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25528 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25529 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25530 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25531 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25532 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25533 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25534 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25535 pauth_hint_num_a with pauth_hint_num.
25536 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25537 pauth_hint_num_a with pauth_hint_num.
25538 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25539 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25540 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25541 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25542 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25543 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25544 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25545 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25546 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25547 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25548 UNSPEC_AUTIA1716 respectively.
25549 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25550 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25551 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25552 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25553 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25554 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25555
25556 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25557
25558 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25559 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25560 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25561 explicit clause on combined parallel into implicit shared clause.
25562 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25563 and firstprivate if the decl has one too from combined parallel to
25564 the worksharing construct.
25565
25566 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25567 Michael Meissner <meissner@linux.ibm.com>
25568
25569 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25570
25571 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25572
25573 * rtl.h (LABEL_REF_P): New #define.
25574
25575 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25576
25577 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25578
25579 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25580
25581 * internal-fn.c: Marked mask_load_direct as vectorizable.
25582 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25583 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25584 combined even if masks different with allow_slp_p param.
25585 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25586 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25587 dissolve SLP-only vectorizable groups when SLP has been discarded.
25588 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25589 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25590 masks.
25591 (vect_build_slp_tree_1): Fixed comment typo.
25592 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25593 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25594 loads for SLP only.
25595 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25596 vectorizable.
25597 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25598
25599 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25600
25601 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25602 Remove obsolete use_thunk reference.
25603 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25604 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25605 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25606 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25607 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25608 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25609 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25610 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25611 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25612
25613 2019-05-28 Nathan Sidwell <nathan@acm.org>
25614
25615 * tree.h (IDENTIFIER_ANON_P): New.
25616 (anon_aggrname_format, anon_aggname_p): Don't declare.
25617 (make_anon_name): Declare.
25618 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25619 (hash_tree): Likewise.
25620 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25621 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25622 (anon_cnt, make_anon_name): New.
25623
25624 2019-05-28 Martin Liska <mliska@suse.cz>
25625
25626 PR other/90315
25627 * opts-global.c (decode_options): Print help for all
25628 help_option_arguments.
25629 * opts.c (print_help): Add new argument.
25630 (common_handle_option): Remember all values into
25631 help_option_arguments.
25632 * opts.h (print_help): Add new argument.
25633
25634 2019-05-28 Martin Liska <mliska@suse.cz>
25635
25636 PR ipa/90555
25637 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25638 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25639 (func_checker::compare_bb): Call compare_loops.
25640
25641 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25642
25643 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25644 on sections construct.
25645 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25646 construct.
25647 (lower_omp_sections): Handle lastprivate conditional.
25648 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25649 lastprivate_conditional_map.
25650 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25651
25652 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25653 critical, taskgroup and section regions when looking for a region
25654 with non-NULL lastprivate_conditional_map.
25655
25656 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25657
25658 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25659 (*ix86_gen_sub3): Ditto.
25660 (*ix86_gen_sub3_carry): Ditto.
25661 (*ix86_gen_one_cmpl2): Ditto.
25662 (*ix86_gen_andsp): Ditto.
25663 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25664 (gen_and2_insn): New static function.
25665 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25666 Use gen_add3_insn instead of ix86_gen_add3.
25667 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25668 instead of ix86_gen_add3.
25669 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25670 Use gen_sub3_insn instead of ix86_gen_sub3.
25671 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25672 instead of ix86_gen_add3.
25673 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25674 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25675 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25676 * config/i386/i386-options.c (ix86_option_override_internal):
25677 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25678 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25679
25680 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25681
25682 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25683 and DW_OP_GNU_const_index opcodes.
25684
25685 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25686
25687 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25688
25689 2019-05-27 Richard Biener <rguenther@suse.de>
25690
25691 PR tree-optimization/90637
25692 * tree-ssa-sink.c (statement_sink_location): Honor the
25693 computed sink location for single-uses.
25694
25695 2019-05-27 Richard Biener <rguenther@suse.de>
25696
25697 PR middle-end/90610
25698 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25699 a bit-insert.
25700
25701 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25702
25703 * config/i386/i386.md (@sub<mode>3_carry): Rename
25704 from sub<mode>3_carry.
25705 (@leave_<mode>): New expander.
25706 (*leave): Rename from leave.
25707 (*leave_rex64): Rename from leave_rex64.
25708 (@monitorx_<mode>): Rename from monitorx_<mode>.
25709 (@clzero_<mode>): Rename from clzero_<mode>.
25710 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25711 from sse3_monitor_<mode>.
25712 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25713 (*ix86_gen_leave): Ditto.
25714 (*ix86_gen_monitor): Ditto.
25715 (*ix86_gen_monitorx): Ditto.
25716 (*ix86_gen_clzero): Ditto.
25717 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25718 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25719 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25720 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25721 Use gen_sse3_monitor instead of ix86_gen_monitor.
25722 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25723 instead of ix86_gen_monitorx.
25724 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25725 instead of ix86_gen_clzero.
25726 * config/i386/i386-options.c (ix86_option_override_internal):
25727 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25728 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25729
25730 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25731
25732 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25733 Rename from tls_global_dynamic_64_<mode>.
25734 (@tls_local_dynamic_base_64_<mode>): Rename from
25735 tls_local_dynamic_base_64_<mode>.
25736 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25737 Remove indirect function.
25738 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25739 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25740 instead of ix86_gen_tls_global_dynamic_64.
25741 Use gen_tls_local_dynamic_base_64 instead of
25742 ix86_gen_tls_local_dynamic_base_64.
25743 * config/i386/i386-options.c (ix86_option_override_internal):
25744 Do not initialize ix86_gen_tls_global_dynamic_64 and
25745 ix86_gen_tls_local_dynamic_base_64.
25746
25747 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25748
25749 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25750 Rename from pro_epilogue_adjust_stack_<mode>_add.
25751 (@pro_epilogue_adjust_stack_sub_<mode>)
25752 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25753 (@allocate_stack_worker_probe_<mode>):
25754 Rename from allocate_stack_worker_probe_<mode>.
25755 (allocate_stack): Use gen_allocate_stack_worker_probe.
25756 (probe_stack): Use gen_probe_stack_1.
25757 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25758 (@adjust_stack_and_probe_<mode>): Rename from
25759 adjust_stack_and_probe<mode>.
25760 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25761 (stack_protect_set): Use gen_stack_protect_set_1.
25762 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25763 (stack_protect_test): Use gen_stack_protect_test_1.
25764 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25765 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25766 Remove indirect function.
25767 (*ix86_gen_adjust_stack_and_probe): Ditto.
25768 (*ix86_gen_probe_stack_range): Ditto.
25769 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25770 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25771 (ix86_adjust_stack_and_probe_stack_clash): Use
25772 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25773 (ix86_adjust_stack_and_probe): Ditto.
25774 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25775 of ix86_gen_probe_stack_range.
25776 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25777 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25778 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25779 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25780 CODE_FOR_stack_protect_test_{si,di}.
25781 * config/i386/i386-options.c (ix86_option_override_internal):
25782 Do not initialize ix86_gen_allocate_stack_worker,
25783 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25784
25785 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25786
25787 * doc/invoke.texi (Link Options): Many editorial changes around
25788 -flinker-output.
25789
25790 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25791
25792 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25793 pre-Solaris 11 referene and most Studio compiler details.
25794
25795 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25796
25797 PR target/90530
25798 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25799 DImode to SImode in floating-point registers on 64-bit target.
25800 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25801 register_operand in xmpyu patterns.
25802
25803 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25804
25805 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25806 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25807 OMP_CLAUSE__REDUCTEMP_.
25808 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25809 OMP_CLAUSE__CONDTEMP_.
25810 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25811 * tree-pretty-print.c (dump_omp_clause): Likewise.
25812 * tree-nested.c (convert_nonlocal_omp_clauses,
25813 convert_local_omp_clauses): Likewise.
25814 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25815 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25816 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25817 on OMP_FOR.
25818 (gimplify_omp_for): Warn and disable conditional modifier from
25819 lastprivate on loop iterators.
25820 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25821 member.
25822 * omp-general.c (omp_extract_for_data): Initialize it.
25823 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25824 member.
25825 (delete_omp_context): Delete it.
25826 (lower_lastprivate_conditional_clauses): New function.
25827 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25828 handle lastprivate conditional clauses.
25829 (lower_reduction_clauses): Add CLIST argument, emit it into
25830 the critical section if any.
25831 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25832 lower_reduction_clauses callers.
25833 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25834 to lower_lastprivate_clauses.
25835 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25836 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25837 clist into a critical section if not emitted there already by
25838 lower_reduction_clauses.
25839 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25840 callers.
25841 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25842 conditional variables.
25843 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25844 clause is present.
25845 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25846 expand_omp_for_static_chunk): Handle lastprivate conditional.
25847 (expand_omp_for): Handle fd.lastprivate_conditional like
25848 fd.have_reductemp.
25849
25850 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25851
25852 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25853 kernel does not exit cleanly.
25854 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25855
25856 2019-05-24 Jason Merrill <jason@redhat.com>
25857
25858 Revert:
25859 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25860
25861 2019-05-24 Richard Biener <rguenther@suse.de>
25862
25863 PR testsuite/90607
25864 * tree-loop-distribution.c (struct partition): Add location
25865 member.
25866 (partition_alloc): Initialize all fields.
25867 (generate_memset_builtin): Use the location recorded in the
25868 partition for the generated call.
25869 (generate_memcpy_builtin): Likewise.
25870 (classify_partition): Record the location of a single store
25871 as location for the partition.
25872
25873 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25874
25875 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25876 for lo-part.
25877
25878 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25879
25880 PR target/90588
25881 * common/config/aarch64/aarch64-common.c
25882 (aarch64_rewrite_selected_cpu): Change local temporary variable
25883 type from unsigned long to uint64_t.
25884 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25885 aarch64_get_extension_string_for_isa_flags): Change declaration to
25886 match new definition by replacing unsigned long with uint64_t.
25887
25888 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25889
25890 PR target/90568
25891 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25892 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25893 Handle stack_protect_test_<mode> codegen similarly to corresponding
25894 sub instruction.
25895
25896 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25897
25898 * config/i386/darwin.h: Reject -mfentry*.
25899 * doc/sourcebuild.texi: Document mfentry target support.
25900
25901 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25902
25903 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25904 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25905 false for PC-relative functions.
25906 (rs6000_output_function_prologue): Change called function name to
25907 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25908 name,1" for PC-relative functions.
25909 (rs6000_elf_declare_function_name): Change called function name to
25910 rs6000_global_entry_point_prologue_needed_p.
25911
25912 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25913
25914 PR target/90552
25915 * config/i386/i386.c (gen_rtx_cost):
25916 Use ix86_tune_cost instead of ix86_cost.
25917
25918 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25919 Michael Meissner <meissner@linux.ibm.com>
25920 Segher Boessenkool <segher@kernel.crashing.org>
25921
25922 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25923 OPTION_MASK_PCREL.
25924 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25925 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25926 (rs6000_fndecl_pcrel_p): Likewise.
25927 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25928 error if -mpcrel is requested without -mcpu=future.
25929 (rs6000_opt_masks): Add entry for pcrel.
25930 (rs6000_fndecl_pcrel_p): New function.
25931 (rs6000_pcrel_p): Likewise.
25932 * config/rs6000/rs6000.opt (mpcrel): New option.
25933 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25934
25935 2019-05-23 Jan Hubicka <jh@suse.cz>
25936 Martin Liska <mliska@suse.cz>
25937
25938 PR tree-optimization/90576
25939 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25940 poly_int_tree_p.
25941 (aliasing_component_refs_p): Fix three way size compare conditional;
25942 give up earlier in case we can not decide on equivalence.
25943
25944 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25945 Michael Meissner <meissner@linux.ibm.com>
25946 Segher Boessenkool <segher@kernel.crashing.org>
25947
25948 * config.gcc: Add future cpu.
25949 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25950 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25951 #define.
25952 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25953 (RS6000_CPU): New instantiation for future cpu.
25954 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25955 PROCESSOR_FUTURE.
25956 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25957 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25958 * config/rs6000/rs6000-tables.opt: Regenerate.
25959 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25960 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25961 (rs6000_machine_from_flags): Handle future cpu.
25962 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25963 PROCESSOR_POWER9 for now.
25964 (rs6000_adjust_cost): Likewise.
25965 (rs6000_issue_rate): Likewise.
25966 (rs6000_register_move_cost): Likewise.
25967 (rs6000_opt_masks): Add entry for future.
25968 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25969 (MASK_FUTURE): New #define.
25970 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25971 * config/rs6000/rs6000.opt (mfuture): New target option.
25972 * doc/invoke.texi (mcpu): Add future cpu.
25973
25974 2019-05-23 Martin Liska <mliska@suse.cz>
25975
25976 PR c++/90587
25977 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25978 operation points to a temporary (pointed via tree_to_wide_ref)
25979 that is out of scope after the &.
25980
25981 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25982
25983 PR c++/90592
25984 * doc/extend.texi (Function Names): Add missing word.
25985
25986 2019-05-23 Richard Biener <rguenther@suse.de>
25987
25988 PR tree-optimization/88440
25989 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25990 at -O[2s]+.
25991 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25992 generated call.
25993 (generate_memcpy_builtin): Likewise.
25994 (distribute_loop): Pass in whether to only distribute patterns.
25995 (prepare_perfect_loop_nest): Also allow size optimization.
25996 (pass_loop_distribution::execute): When optimizing a loop
25997 nest for size allow pattern replacement.
25998
25999 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26000
26001 PR target/90568
26002 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26003 of xor.
26004
26005 2019-05-23 Martin Liska <mliska@suse.cz>
26006
26007 PR sanitizer/90570
26008 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26009 expression similarly to gimplify_decl_expr.
26010
26011 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26012
26013 * cse.c (cse_dump_path): s/dump_file/f.
26014
26015 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26016
26017 PR c++/90462
26018 * diagnostic-format-json.cc: Include "selftest.h".
26019 (json_from_expanded_location): Only add "file" key for non-NULL
26020 file strings.
26021 (json_from_location_range): Don't add "start" and "finish"
26022 children if they are UNKNOWN_LOCATION.
26023 (selftest::test_unknown_location): New selftest.
26024 (selftest::test_bad_endpoints): New selftest.
26025 (selftest::diagnostic_format_json_cc_tests): New function.
26026 * json.cc (json::object::get): New function.
26027 (selftest::test_object_get): New selftest.
26028 (selftest::json_cc_tests): Call it.
26029 * json.h (json::object::get): New decl.
26030 * selftest-run-tests.c (selftest::run_tests): Call
26031 selftest::diagnostic_format_json_cc_tests.
26032 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26033 decl.
26034
26035 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26036 Andrew Stubbs <amd@codesourcery.com>
26037
26038 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26039 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26040 (kernel): Rename to...
26041 (main_kernel): ... this.
26042 (load_image): Load _init_array and _fini_array kernels.
26043 (run): Add argument for kernel to run.
26044 (main): Run init_array_kernel before main_kernel, and
26045 fini_array_kernel after.
26046 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26047 amdgpu_hsa_kernel attribute on functions.
26048 (gcn_disable_constructors): Delete.
26049 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26050 * config/gcn/crt0.c (size_t): Define.
26051 (_init_array, _fini_array): New.
26052 (__preinit_array_start, __preinit_array_end,
26053 __init_array_start, __init_array_end,
26054 __fini_array_start, __fini_array_end): Declare weak references.
26055
26056 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26057
26058 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26059
26060 2019-05-22 Jason Merrill <jason@redhat.com>
26061
26062 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26063
26064 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26065
26066 PR target/88483
26067 * config/i386/i386-options.c (ix86_init_machine_status): Set
26068 stack_frame_required to true.
26069 * config/i386/i386.c (ix86_get_frame_size): New function.
26070 (ix86_frame_pointer_required): Replace get_frame_size with
26071 ix86_get_frame_size.
26072 (ix86_compute_frame_layout): Likewise.
26073 (ix86_find_max_used_stack_alignment): Changed to void. Set
26074 stack_frame_required.
26075 (ix86_finalize_stack_frame_flags): Always call
26076 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26077 ix86_get_frame_size.
26078 * config/i386/i386.h (machine_function): Add stack_frame_required.
26079
26080 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26081
26082 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26083
26084 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26085
26086 * common/config/aarch64/aarch64-common.c
26087 (struct aarch64_option_extension, struct processor_name_to_arch,
26088 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26089 aarch64_contains_opt,
26090 aarch64_get_extension_string_for_isa_flags): Change type of
26091 variables storing flags to uint64_t.
26092 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26093 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26094 * config/aarch64/aarch64.c (struct processor,
26095 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26096 aarch64_validate_march, aarch64_override_options,
26097 aarch64_option_print, aarch64_handle_attr_isa_flags,
26098 aarch64_declare_function_name, aarch64_start_file): Make flag
26099 variables uint64_t.
26100 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26101 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26102 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26103 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26104 * config/aarch64/driver-aarch64.c
26105 (struct aarch64_arch_extension, struct aarch64_core_data,
26106 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26107 flag variables uint64_t.
26108 * doc/invoke.texi: Add documentation for new arguments.
26109
26110 2019-05-22 Richard Biener <rguenther@suse.de>
26111
26112 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26113 rewrite ...
26114 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26115
26116 2019-05-22 Martin Liska <mliska@suse.cz>
26117
26118 PR lto/90500
26119 * doc/extend.texi: Document the change.
26120
26121 2019-05-22 Richard Biener <rguenther@suse.de>
26122
26123 PR tree-optimization/90450
26124 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26125 (mem_ref_hasher::equal): Check it.
26126 (mem_ref_alloc): Initialize it.
26127 (gather_mem_refs_stmt): Set it.
26128
26129 2019-05-22 Richard Biener <rguenther@suse.de>
26130
26131 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26132 Add ABS_EXPR.
26133 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26134 as ABSU_EXPR.
26135
26136 2019-05-22 Alan Modra <amodra@gmail.com>
26137
26138 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26139 (ASM_CPU_SPEC): Conditionally add -many.
26140 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26141 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26142 (rs6000_file_start): ..extracted from here, and modified to
26143 test all ISA bits.
26144 (rs6000_output_function_prologue): Emit .machine as necessary.
26145
26146 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26147
26148 PR middle-end/90553
26149 * ira-lives.c (process_bb_node_lives): Consider defs
26150 for a call insn to be die before the call, not after.
26151
26152 * function.c (assign_parm_setup_block): Raise alignment of
26153 stacked parameter only for STRICT_ALIGNMENT targets.
26154
26155 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26156
26157 * config/rs6000/constraints.md (define_register_constraint "wz"):
26158 Delete.
26159 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26160 RS6000_CONSTRAINT_wz.
26161 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26162 (rs6000_init_hard_regno_mode_ok): Adjust.
26163 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26164 * doc/md.texi (Machine Constraints): Adjust.
26165
26166 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26167
26168 * config/rs6000/constraints.md (define_register_constraint "wl"):
26169 Delete.
26170 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26171 RS6000_CONSTRAINT_wl.
26172 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26173 (rs6000_init_hard_regno_mode_ok): Adjust.
26174 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26175 * doc/md.texi (Machine Constraints): Adjust.
26176
26177 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26178
26179 * config/rs6000/constraints.md (define_register_constraint "wm"):
26180 Delete.
26181 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26182 RS6000_CONSTRAINT_wm.
26183 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26184 (rs6000_init_hard_regno_mode_ok): Adjust.
26185 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26186 * doc/md.texi (Machine Constraints): Adjust.
26187
26188 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26189
26190 * config/rs6000/constraints.md (define_register_constraint "wk"):
26191 Delete.
26192 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26193 RS6000_CONSTRAINT_wk.
26194 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26195 (rs6000_init_hard_regno_mode_ok): Adjust.
26196 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26197 * doc/md.texi (Machine Constraints): Adjust.
26198
26199 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26200
26201 * config/rs6000/constraints.md (define_register_constraint "wj"):
26202 Delete.
26203 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26204 RS6000_CONSTRAINT_wj.
26205 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26206 (rs6000_init_hard_regno_mode_ok): Adjust.
26207 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26208 (VS_64dm): Delete.
26209 * config/rs6000/vsx.md: Ditto.
26210 * doc/md.texi (Machine Constraints): Adjust.
26211
26212 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26213
26214 * config/rs6000/constraints.md (define_register_constraint "wh"):
26215 Delete.
26216 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26217 RS6000_CONSTRAINT_wh.
26218 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26219 (rs6000_init_hard_regno_mode_ok): Adjust.
26220 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26221 * doc/md.texi (Machine Constraints): Adjust.
26222
26223 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26224
26225 PR target/90547
26226 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26227 Avoid calling gen_lowpart with CONST operand.
26228
26229 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26230
26231 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26232 field template_last_to_copy.
26233 (ssa_create_duplicates): Set it, and use it. Attempt to
26234 preserve more debug stmts.
26235
26236 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26237
26238 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26239 (signbit<mode>2): New expander
26240
26241 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26242
26243 PR bootstrap/87338
26244 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26245 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26246
26247 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26248
26249 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26250 %ebx and %ecx bafore calling cpuid with leaf 1 or
26251 non-constant leaf argument.
26252
26253 2019-05-21 Alan Modra <amodra@gmail.com>
26254
26255 PR target/90545
26256 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26257 power9 direct move cost.
26258
26259 2019-05-21 Richard Biener <rguenther@suse.de>
26260
26261 PR middle-end/90510
26262 * fold-const.c (fold_read_from_vector): New function.
26263 * fold-const.h (fold_read_from_vector): Declare.
26264 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26265 single-element insert permutations. Canonicalize selector
26266 further and fix issue with last commit.
26267
26268 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26269
26270 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26271 parameter with default value false to declaration.
26272 (split_edges_for_insertion): New inline function. Wrapper for
26273 split_critical_edges with for_edge_insertion_p = true.
26274 * tree-cfg.c (split_critical_edges): Don't split non-critical
26275 edges if for_edge_insertion_p is false. Fix whitespace.
26276 * tree-ssa-pre.c (pass_pre::execute): Call
26277 split_edges_for_insertion instead of split_critical_edges.
26278 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26279 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26280 (pass_data_sink_code): Update function name in the comment.
26281
26282 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26283
26284 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26285 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26286 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26287 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26288 positives.
26289
26290 2019-05-21 Martin Liska <mliska@suse.cz>
26291
26292 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26293 an extra newline.
26294 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26295 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26296 vec_lvsr.
26297 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26298 Quote a C type.
26299 (rs6000_function_arg): Likewise.
26300 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26301 (rs6000_expand_ternop_builtin): Use interval syntax.
26302 (get_element_number): Likewise.
26303 (altivec_expand_builtin): Likewise.
26304 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26305
26306 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26307
26308 PR c++/59813
26309 PR target/90418
26310 * function.h (struct function): Add calls_eh_return member.
26311 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26312 gimplifying __builtin_eh_return call.
26313 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26314 to cfun.
26315 (expand_call_inline): Or in src_cfun->calls_eh_return into
26316 dst_cfun->calls_eh_return.
26317 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26318 cfun->calls_eh_return.
26319 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26320 * lto-streamer-out.c (output_struct_function_base): Write
26321 calls_eh_return.
26322
26323 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26324
26325 PR rtl-optimization/43147
26326 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26327 IX86_BUILTIN_SHUFPD.
26328
26329 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26330
26331 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26332 (refs_may_alias_p_1): ... here; update stats.
26333 (refs_may_alias_p): Do not update stats here.
26334
26335 2019-05-20 Richard Biener <rguenther@suse.de>
26336
26337 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26338 doesn't produce pointers.
26339 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26340 the first operand points to.
26341
26342 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26343
26344 * tree-ssa-alias.c (compare_sizes): New function.
26345 (sompare_type_sizes): New function
26346 (aliasing_component_refs_p): Use it.
26347 (indirect_ref_may_alias_decl_p): Likewise.
26348
26349 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26350
26351 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26352
26353 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26354
26355 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26356 (LIBLSAN_EARLY_SPEC): Likewise.
26357 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26358
26359 2019-05-20 Martin Liska <mliska@suse.cz>
26360
26361 * config/i386/i386.c (ix86_libc_has_fast_function):
26362 Add ATTRIBUTE_UNUSED for the argument.
26363
26364 2019-05-20 Richard Biener <rguenther@suse.de>
26365
26366 * gimple-match-head.c: Include vec-perm-indices.h.
26367 * generic-match-head.c: Likewise.
26368 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26369 is included.
26370 * fold-const.c (fold_vec_perm): Export.
26371 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26372 (match.pd): ...here.
26373
26374 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26375
26376 * cfgloop.h (struct loop): Add simdlen member.
26377 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26378 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26379 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26380 as new argument to autovectorize_vector_sizes target hook. If
26381 loop->simdlen, pick up vector size where the vectorization factor
26382 is equal to loop->simd, and if there is none, fall back to the first
26383 successful one.
26384 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26385 caller.
26386 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26387 * omp-general.c (omp_max_vf): Likewise.
26388 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26389 * tree-vect-slp.c (vect_slp_bb): Likewise.
26390 * target.def (autovectorize_vector_sizes): Add ALL argument and
26391 document it.
26392 * doc/tm.texi: Adjust documentation.
26393 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26394 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26395 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26396 bool argument.
26397 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26398 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26399 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26400 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26401 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26402 preferred vector size is not 512-bit or 256-bit, just put those
26403 unpreferred ones last.
26404
26405 2019-05-20 Martin Liska <mliska@suse.cz>
26406
26407 * targhooks.c (default_libc_has_fast_function): New function.
26408 * targhooks.h (default_libc_has_fast_function): Likewise.
26409
26410 2019-05-20 Martin Liska <mliska@suse.cz>
26411
26412 PR middle-end/90263
26413 * builtins.c (expand_builtin_memory_copy_args): When having a
26414 target with fast mempcpy implementation do now use memcpy.
26415 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26416 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26417 * doc/tm.texi: Likewise.
26418 * doc/tm.texi.in: Likewise.
26419 * target.def:
26420 * expr.c (emit_block_move_hints): Add 2 new arguments.
26421 * expr.h (emit_block_move_hints): Bail out when libcall
26422 to memcpy would be used.
26423
26424 2019-05-20 Martin Liska <mliska@suse.cz>
26425
26426 * profile-count.c: Add vertical spacing in order
26427 to separate functions.
26428 * profile-count.h: Likewise.
26429
26430 2019-05-20 Martin Liska <mliska@suse.cz>
26431
26432 * profile-count.h: Do not use full qualified
26433 names if possible.
26434 * profile-count.c (profile_count::to_frequency): Likewise.
26435
26436 2019-05-20 Martin Liska <mliska@suse.cz>
26437
26438 * profile-count.h (enum profile_quality): Use capital letters
26439 for enum value names. Use the adjusted names.
26440 * profile-count.c: Use the adjusted names.
26441
26442 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26443
26444 * config/rs6000/constraints.md (define_register_constraint "wH"):
26445 Delete.
26446 (define_register_constraint "wI"): Delete.
26447 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26448 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26449 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26450 (rs6000_init_hard_regno_mode_ok): Adjust.
26451 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26452 resp. "d", or with "wa" as appropriate, all with "p8v".
26453 * config/rs6000/vsx.md: Ditto.
26454 * doc/md.texi (Machine Constraints): Adjust.
26455
26456 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26457
26458 * config/rs6000/constraints.md (define_register_constraint "wy"):
26459 Delete.
26460 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26461 RS6000_CONSTRAINT_wy.
26462 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26463 (rs6000_init_hard_regno_mode_ok): Adjust.
26464 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26465 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26466 (define_mode_attr Fisa): New.
26467 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26468 * doc/md.texi (Machine Constraints): Adjust.
26469
26470 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26471
26472 * config/rs6000/constraints.md (define_register_constraint "wu"):
26473 Delete.
26474 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26475 RS6000_CONSTRAINT_wu.
26476 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26477 (rs6000_init_hard_regno_mode_ok): Adjust.
26478 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26479 both with "p8v".
26480 (define_mode_attr Fa): Delete.
26481 * config/rs6000/vsx.md: Ditto.
26482 * doc/md.texi (Machine Constraints): Adjust.
26483
26484 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26485
26486 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26487 Delete.
26488 (define_register_constraint "wK"): Delete.
26489 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26490 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26491 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26492 (rs6000_init_hard_regno_mode_ok): Adjust.
26493 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26494 Replace "wK" constraint by "wH" with "p9v".
26495 * config/rs6000/vsx.md: Ditto.
26496 * doc/md.texi (Machine Constraints): Adjust.
26497
26498 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26499
26500 * config/rs6000/constraints.md (define_register_constraint "wb"):
26501 Delete.
26502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26503 RS6000_CONSTRAINT_wb.
26504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26505 (rs6000_init_hard_regno_mode_ok): Adjust.
26506 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26507 * config/rs6000/vsx.md: Ditto.
26508 * doc/md.texi (Machine Constraints): Adjust.
26509
26510 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26511
26512 * config/rs6000/constraints.md (define_register_constraint "wo"):
26513 Delete.
26514 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26515 RS6000_CONSTRAINT_wo.
26516 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26517 (rs6000_init_hard_regno_mode_ok): Adjust.
26518 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26519 * config/rs6000/altivec.md: Ditto.
26520 * doc/md.texi (Machine Constraints): Adjust.
26521
26522 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26523
26524 * config/darwin-c.c (darwin_register_objc_includes): Do not
26525 prepend the sysroot when building gnu-runtime header search
26526 paths.
26527
26528 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26529
26530 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26531 instead of direct output of the asm.
26532
26533 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26534
26535 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26536 argument to be type bool (was int before).
26537 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26538 at first use. Use type bool for some variables. Fix a theoretical
26539 eh_return bug for svr4.
26540
26541 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26542
26543 * config/rs6000/rs6000.md (isa): New attribute.
26544 (enabled): New attribute.
26545
26546 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26547
26548 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26549 assemble_start_function and assemble_end_function.
26550
26551 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26552
26553 PR middle-end/89433
26554 * omp-general.c (oacc_verify_routine_clauses): Change formal
26555 parameters. Add checking if already marked with an OpenACC
26556 'routine' directive. Adjust all users.
26557
26558 PR middle-end/89433
26559 * omp-general.c (oacc_build_routine_dims): Move some of its
26560 processing into...
26561 (oacc_verify_routine_clauses): ... this new function.
26562 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26563
26564 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26565
26566 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26567 formating of picbase labels to match other ports.
26568
26569 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26570
26571 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26572 in the generated code.
26573
26574 2019-05-16 Martin Sebor <msebor@redhat.com>
26575
26576 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26577 identifiers, keywords, operators, and types in diagnostics. Correct
26578 quoting, spelling, and sentence capitalization issues.
26579 (expand_builtin_atomic_is_lock_free): Same.
26580 (fold_builtin_next_arg): Same.
26581 * cfgexpand.c (expand_one_var): Same.
26582 (tree_conflicts_with_clobbers_p): Same.
26583 (expand_asm_stmt): Same.
26584 (verify_loop_structure): Same.
26585 * cgraphunit.c (process_function_and_variable_attributes): Same.
26586 * collect-utils.c (collect_execute): Same.
26587 * collect2.c (maybe_run_lto_and_relink): Same.
26588 (is_lto_object_file): Same.
26589 (scan_prog_file): Same.
26590 * convert.c (convert_to_real_1): Same.
26591 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26592 * except.c (verify_eh_tree): Same.
26593 * gcc.c (execute): Same.
26594 (eval_spec_function): Same.
26595 (run_attempt): Same.
26596 (driver::set_up_specs): Same.
26597 (compare_debug_auxbase_opt_spec_function): Same.
26598 * gcov-tool.c (unlink_gcda_file): Same.
26599 (do_merge): Same.
26600 (do_rewrite): Same.
26601 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26602 * gimplify.c (gimplify_asm_expr): Same.
26603 (gimplify_adjust_omp_clauses): Same.
26604 * hsa-gen.c (gen_hsa_addr_insns): Same.
26605 (gen_hsa_insns_for_load): Same.
26606 (gen_hsa_cmp_insn_from_gimple): Same.
26607 (gen_hsa_insns_for_operation_assignment): Same.
26608 (gen_get_level): Same.
26609 (gen_hsa_alloca): Same.
26610 (omp_simple_builtin::generate): Same.
26611 (gen_hsa_atomic_for_builtin): Same.
26612 (gen_hsa_insns_for_call): Same.
26613 * input.c (dump_location_info): Same.
26614 * ipa-devirt.c (compare_virtual_tables): Same.
26615 * ira.c (ira_setup_eliminable_regset): Same.
26616 * lra-assigns.c (lra_assign): Same.
26617 * lra-constraints.c (lra_constraints): Same.
26618 * lto-streamer-in.c (lto_input_mode_table): Same.
26619 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26620 (merge_and_complain): Same.
26621 (compile_offload_image): Same.
26622 (compile_images_for_offload_targets): Same.
26623 (debug_objcopy): Same.
26624 (run_gcc): Same.
26625 (main): Same.
26626 * opts.c (print_specific_help): Same.
26627 (parse_no_sanitize_attribute): Same.
26628 (print_help): Same.
26629 (handle_param): Same.
26630 * plugin.c (add_new_plugin): Same.
26631 (parse_plugin_arg_opt): Same.
26632 (try_init_one_plugin): Same.
26633 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26634 operators, and types in diagnostics. Correct quoting and spelling
26635 issues.
26636 * read-rtl-function.c (parse_edge_flag_token): Same.
26637 (function_reader::parse_enum_value): Same.
26638 * reg-stack.c (check_asm_stack_operands): Same.
26639 * regcprop.c (validate_value_data): Same.
26640 * sched-rgn.c (make_pass_sched_fusion): Same.
26641 * stmt.c (check_unique_operand_names): Same.
26642 * targhooks.c (default_target_option_pragma_parse): Same.
26643 * tlink.c (recompile_files): Same.
26644 * toplev.c (process_options): Same.
26645 (do_compile): Same.
26646 * trans-mem.c (diagnose_tm_1): Same.
26647 (ipa_tm_scan_irr_block): Same.
26648 (ipa_tm_diagnose_transaction): Same.
26649 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26650 format a tree code name in a diagnostic.
26651 (verify_types_in_gimple_min_lval): Same.
26652 (verify_types_in_gimple_reference): Same.
26653 (verify_gimple_call): Same.
26654 (verify_gimple_assign_unary): Same.
26655 (verify_gimple_assign_binary): Same.
26656 (verify_gimple_assign_ternary): Same.
26657 (verify_gimple_assign_single): Same.
26658 (verify_gimple_switch): Same.
26659 (verify_gimple_label): Same.
26660 (verify_gimple_phi): Same.
26661 (verify_gimple_in_seq): Same.
26662 (verify_eh_throw_stmt_node): Same.
26663 (collect_subblocks): Same.
26664 (gimple_verify_flow_info): Same.
26665 (do_warn_unused_result): Same.
26666 * tree-inline.c (expand_call_inline): Same.
26667 * tree-into-ssa.c (update_ssa): Same.
26668 * tree.c (tree_int_cst_elt_check_failed): Same.
26669 (tree_vec_elt_check_failed): Same.
26670 (omp_clause_operand_check_failed): Same.
26671 (verify_type_variant): Same.
26672 (verify_type): Same.
26673 * value-prof.c (verify_histograms): Same.
26674 * varasm.c (assemble_start_function): Same.
26675
26676 2019-05-16 Martin Sebor <msebor@redhat.com>
26677
26678 * config/i386/i386-expand.c (get_element_number): Quote keywords
26679 and other internal names in diagnostics. Adjust other diagnostic
26680 formatting issues noted by -Wformat-diag.
26681 * config/i386/i386-features.c
26682 (ix86_mangle_function_version_assembler_name): Same.
26683 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26684 * config/i386/i386.c (ix86_function_type_abi): Same.
26685 (ix86_function_ms_hook_prologue): Same.
26686 (classify_argument): Same.
26687 (ix86_expand_prologue): Same.
26688 (ix86_md_asm_adjust): Same.
26689 (ix86_memmodel_check): Same.
26690
26691 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26692
26693 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26694 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26695 and fpxx modes.
26696
26697 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26698
26699 PR target/90497
26700 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26701 intrinsics without SSE/SSE2/SSSE3.
26702 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26703 check.
26704 (*mmx_uavgv8qi3): Likewise.
26705
26706 2019-05-17 Richard Biener <rguenther@suse.de>
26707
26708 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26709 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26710
26711 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26712
26713 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26714 vec_sldw insn pattern.
26715
26716 2019-05-17 Richard Biener <rguenther@suse.de>
26717
26718 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26719
26720 2019-05-17 Martin Liska <mliska@suse.cz>
26721
26722 PR driver/90496
26723 * toplev.c (output_stack_usage): With LTO and sanitizer it
26724 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26725 has no file location.
26726
26727 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26728
26729 PR c++/90484
26730 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26731 sz0 is equal to sz1, instead return false in that case.
26732
26733 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26734 has non-constant expression, force sctx.lane and use two
26735 argument IFN_GOMP_SIMD_LANE instead of single argument.
26736 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26737 two argument IFN_GOMP_SIMD_LANE without lhs.
26738 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26739 member.
26740 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26741 Define.
26742 (LOOP_REQUIRES_VERSIONING): Or in
26743 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26744 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26745 simd_if_cond.
26746 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26747 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26748 from simd if clause if needed.
26749
26750 2019-05-16 Richard Biener <rguenther@suse.de>
26751
26752 * tree-affine.c (expr_to_aff_combination): New function split
26753 out from...
26754 (tree_to_aff_combination): ... here.
26755 (aff_combination_expand): Avoid building a GENERIC tree.
26756
26757 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26758
26759 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26760 assemble_start_function and assemble_end_function calls.
26761 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26762 assemble_start_function and assemble_end_function.
26763 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26764 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26765 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26766 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26767 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26768 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26769 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26770 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26771 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26772 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26773 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26774 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26775 Likewise.
26776 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26777 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26778 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26779 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26780 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26781 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26782 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26783 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26784 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26785 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26786 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26787 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26788 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26789 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26790 Likewise.
26791 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26792 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26793 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26794
26795 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26796
26797 * tree-ssa-alias.c (alias_stats): Add
26798 aliasing_component_refs_p_may_alias and
26799 aliasing_component_refs_p_no_alias.
26800 (dump_alias_stats): Print aliasing_component_refs_p stats.
26801 (aliasing_component_refs_p): Update stats.
26802
26803 2019-05-16 Martin Liska <mliska@suse.cz>
26804
26805 PR lto/90500
26806 * multiple_target.c (expand_target_clones): Do not allow
26807 target_clones being used with a symbol that is an alias.
26808
26809 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26810
26811 PR tree-optimization/90394
26812 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26813 positives rather than ICE for cases where (code2 == NE_EXPR
26814 && code1 == BIT_AND_EXPR).
26815
26816 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26817
26818 PR fortran/90329
26819 * tree-core.h (struct tree_decl_common): Document
26820 decl_nonshareable_flag for PARM_DECLs.
26821 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26822 * calls.c (expand_call): Don't try tail call if caller
26823 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26824 passed on the stack and callee needs to pass any arguments on the
26825 stack.
26826 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26827 else if instead of series of mutually exclusive ifs. Handle
26828 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26829 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26830
26831 * lto-streamer.h (LTO_major_version): Bump to 9.
26832
26833 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26834
26835 PR tree-optimization/90106
26836 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26837 new parameter as new internal function call, also move it to new
26838 basic block.
26839 (use_internal_fn): Pass internal function call to
26840 shrink_wrap_one_built_in_call_with_conds.
26841
26842 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26843
26844 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26845 max_vf to 1.
26846 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26847 safelen_int and set loop->dont_vectorize.
26848
26849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26850
26851 PR target/89021
26852 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26853 SSE/SSE2/SSSE3.
26854 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26855 Likewise.
26856 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26857 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26858 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26859 is defined.
26860
26861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26862
26863 PR target/89021
26864 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26865 define_insn_and_split to support SSE emulation.
26866 (*vec_extractv2sf_0): Likewise.
26867 (*vec_extractv2sf_1): Likewise.
26868 (*vec_extractv2si_0): Likewise.
26869 (*vec_extractv2si_1): Likewise.
26870 (*vec_extractv2si_zext_mem): Likewise.
26871 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26872 (vec_extractv2sf_1 splitter): Likewise.
26873 (vec_extractv2sfsf): Likewise.
26874 (vec_setv2si): Likewise.
26875 (vec_extractv2si_1 splitter): Likewise.
26876 (vec_extractv2sisi): Likewise.
26877 (vec_setv4hi): Likewise.
26878 (vec_extractv4hihi): Likewise.
26879 (vec_setv8qi): Likewise.
26880 (vec_extractv8qiqi): Likewise.
26881 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26882 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26883 (vec_extractv2sisi): Likewise.
26884 (vec_extractv4hihi): Likewise.
26885 (vec_extractv8qiqi): Likewise.
26886 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26887 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26888 (vec_initv2sisi): Likewise.
26889 (vec_initv4hihi): Likewise.
26890 (vec_initv8qiqi): Likewise.
26891 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26892 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26893 (vec_setv4hi): Likewise.
26894 (vec_setv8qi): Likewise.
26895
26896 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26897
26898 PR target/89021
26899 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26900 TARGET_MMX_WITH_SSE.
26901 (MMXMODE:*mov<mode>_internal): Likewise.
26902 (MMXMODE:movmisalign<mode>): Likewise.
26903
26904 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26905
26906 PR target/89021
26907 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26908 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26909 (sse2_cvtpd2pi): Ditto.
26910 (sse2_cvttpd2pi): Ditto.
26911 (*vec_concatv2sf_sse4_1): Ditto.
26912 (*vec_concatv2sf_sse): Ditto.
26913 (*vec_concatv2si_sse4_1): Ditto.
26914 (*vec_concatv2si): Ditto.
26915 (*vec_concatv4si_0): Ditto.
26916 (*vec_concatv2di_0): Ditto.
26917
26918 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26919
26920 PR target/89021
26921 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26922
26923 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26924
26925 PR target/89021
26926 * config/i386/sse.md (ssse3_palignrdi): Changed to
26927 define_insn_and_split to support SSE emulation.
26928
26929 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26930
26931 PR target/89021
26932 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26933
26934 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26935
26936 PR target/89021
26937 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26938 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26939 SSE emulation.
26940
26941 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26942
26943 PR target/89021
26944 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26945 or TARGET_MMX_WITH_SSE.
26946 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26947
26948 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26949
26950 PR target/89021
26951 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26952
26953 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26954
26955 PR target/89021
26956 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26957 Changed to define_insn_and_split to support SSE emulation.
26958
26959 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26960
26961 PR target/89021
26962 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26963 Changed to define_insn_and_split to support SSE emulation.
26964
26965 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26966
26967 PR target/89021
26968 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26969 (*mmx_<emms>): This.
26970 (mmx_<emms>): New expander.
26971
26972 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26973
26974 PR target/89021
26975 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26976 support.
26977 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26978
26979 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26980
26981 PR target/89021
26982 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26983
26984 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26985
26986 PR target/89021
26987 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26988
26989 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26990
26991 PR target/89021
26992 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26993 TARGET_MMX_WITH_SSE.
26994 (*mmx_uavgv4hi3): Add SSE emulation.
26995
26996 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26997
26998 PR target/89021
26999 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27000 and TARGET_MMX_WITH_SSE.
27001 (*mmx_uavgv8qi3): Add SSE emulation.
27002
27003 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27004
27005 PR target/89021
27006 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27007 maskmovdqu for __MMX_WITH_SSE__.
27008
27009 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27010
27011 PR target/89021
27012 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27013 TARGET_MMX and TARGET_MMX_WITH_SSE.
27014 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27015
27016 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27017
27018 PR target/89021
27019 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27020 define_insn_and_split to support SSE emulation.
27021
27022 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27023
27024 PR target/89021
27025 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27026 and TARGET_MMX_WITH_SSE.
27027 (mmx_<code>v8qi3): Likewise.
27028 (smaxmin:<code>v4hi3): New.
27029 (umaxmin:<code>v8qi3): Likewise.
27030 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27031 (umaxmin:*mmx_<code>v8qi3): Likewise.
27032
27033 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27034
27035 PR target/89021
27036 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27037 TARGET_MMX_WITH_SSE.
27038 (*mmx_pinsrw): Add SSE emulation.
27039
27040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27041
27042 PR target/89021
27043 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27044
27045 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27046
27047 PR target/89021
27048 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27049 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27050 SSE emulation.
27051
27052 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27053
27054 PR target/89021
27055 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27056 (sse_cvttps2pi): Likewise.
27057
27058 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27059
27060 PR target/89021
27061 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27062 TARGET_MMX_WITH_SSE.
27063 (mmx_pshufw_1): Add SSE emulation.
27064 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27065 TARGET_MMX_WITH_SSE to support SSE emulation.
27066
27067 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27068
27069 PR target/89021
27070 * config/i386/constraints.md (Yw): New constraint.
27071 * config/i386/mmx.md (*vec_dupv2si): Changed to
27072 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27073 support SSE emulation.
27074
27075 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27076
27077 PR target/89021
27078 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27079 TARGET_MMX_WITH_SSE.
27080 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27081 support.
27082 (mmx_gt<mode>3): Likewise.
27083
27084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27085
27086 PR target/89021
27087 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27088 TARGET_MMX_WITH_SSE. Add SSE support.
27089
27090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27091
27092 PR target/89021
27093 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27094 TARGET_MMX_WITH_SSE.
27095 (any_logic:<code><mode>3): New.
27096 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27097 Add SSE support.
27098
27099 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27100
27101 PR target/89021
27102 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27103 TARGET_MMX_WITH_SSE. Add SSE emulation.
27104 (mmx_<shift_insn><mode>3): Likewise.
27105 (ashr<mode>3): New.
27106 (<shift_insn><mode>3): Likewise.
27107
27108 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27109
27110 PR target/89021
27111 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27112 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27113
27114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27115
27116 PR target/89021
27117 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27118 TARGET_MMX_WITH_SSE.
27119 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27120 SSE support.
27121
27122 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27123
27124 PR target/89021
27125 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27126 TARGET_MMX_WITH_SSE.
27127 (mulv4hi3): New.
27128 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27129 support.
27130
27131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27132
27133 PR target/89021
27134 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27135 (plusminus:mmx_<plusminus_insn><mode>3): Check
27136 TARGET_MMX_WITH_SSE.
27137 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27138 (<plusminus_insn><mode>3): New.
27139 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27140 (*mmx_<plusminus_insn><mode>3): Likewise.
27141
27142 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27143
27144 PR target/89021
27145 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27146 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27147 prototype.
27148 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27149 define_insn_and_split to support SSE emulation.
27150 (mmx_punpcklbw): Likewise.
27151 (mmx_punpckhwd): Likewise.
27152 (mmx_punpcklwd): Likewise.
27153 (mmx_punpckhdq): Likewise.
27154 (mmx_punpckldq): Likewise.
27155
27156 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27157 Uros Bizjak <ubizjak@gmail.com>
27158
27159 PR target/89021
27160 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27161 New function.
27162 (ix86_split_mmx_pack): Likewise.
27163 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27164 New prototype.
27165 (ix86_split_mmx_pack): Likewise.
27166 * config/i386/i386.md (mmx_isa): New.
27167 (enabled): Also check mmx_isa.
27168 * config/i386/mmx.md (any_s_truncate): New code iterator.
27169 (s_trunsuffix): New code attr.
27170 (mmx_packsswb): Removed.
27171 (mmx_packssdw): Likewise.
27172 (mmx_packuswb): Likewise.
27173 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27174 MMX packsswb/packuswb with SSE2.
27175 (mmx_packssdw): Likewise.
27176 * config/i386/predicates.md (register_mmxmem_operand): New.
27177
27178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27179
27180 PR target/89021
27181 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27182 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27183 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27184 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27185 (ix86_vector_mode_supported_p): Likewise.
27186 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27187
27188 2019-05-15 Martin Liska <mliska@suse.cz>
27189
27190 PR middle-end/90478
27191 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27192 Check for overflow.
27193
27194 2019-05-15 Richard Biener <rguenther@suse.de>
27195
27196 * tree-into-ssa.c (pass_build_ssa::execute): Run
27197 update_address_taken before going into SSA.
27198
27199 2019-05-15 Richard Biener <rguenther@suse.de>
27200
27201 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27202 as __BIT_FIELD_REF with type with -gimple.
27203
27204 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27205
27206 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27207 semantically equivalent branches (left over after prior refactorings).
27208
27209 2019-05-15 Richard Biener <rguenther@suse.de>
27210
27211 PR tree-optimization/88828
27212 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27213 bogus check.
27214
27215 2019-05-14 Richard Biener <rguenther@suse.de>
27216
27217 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27218 as __VIEW_CONVERT with -gimple.
27219
27220 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27221
27222 PR target/82920
27223 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27224 Darwin.
27225
27226 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27227
27228 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27229 define_split to become a define_insn_and_split.
27230
27231 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27232
27233 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27234 arguments.
27235 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27236 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27237 (sibcall_epilogue): Adjust.
27238 (epilogue): Adjust.
27239
27240 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27241
27242 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27243 to unsupported ones.
27244 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27245 * config.host: Likewise.
27246 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27247 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27248 __svr4__]: Remove "brand" fallback.
27249 [!KSTAT_DATA_STRING]: Remove.
27250 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27251 to *-*-solaris2*.
27252 (comdat_group): Likewise.
27253 (set_have_as_tls): Likewise.
27254 (gcc_cv_target_dl_iterate_phdr): Likewise.
27255 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27256 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27257 * configure: Regenerate.
27258 * doc/install.texi: Simplify Solaris target triplets.
27259 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27260 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27261 Remove Solaris 10 references.
27262 Remove obsolete Solaris bug reference.
27263 (Specific, sparc-sun-solaris2.10): Remove.
27264
27265 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27266
27267 * config/i386/i386.md (any_div): New code iterator.
27268 (paired_mod): New code attribute.
27269 (sgnprefix): Handle DIV and UDIV RTXes.
27270 (u): Ditto.
27271 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27272 and udivmod<mode>4 patterns using any_div code iterator.
27273 (divmod splitters): Macroize splitters using any_div code iterator.
27274 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27275 (*udivmodsi4_pow2_zext_2): Ditto.
27276 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27277 and *udivmod<mode>4_noext patterns using any_div code iterator.
27278 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27279 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27280 patterns using any_div code iterator.
27281 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27282 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27283 patterns using any_div code iterator.
27284 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27285 udivmodhiqi3 patterns using any_extend code iterator.
27286
27287 2019-05-14 Richard Biener <rguenther@suse.de>
27288 H.J. Lu <hongjiu.lu@intel.com>
27289
27290 PR tree-optimization/88828
27291 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27292 permuting in a single non-constant element not extracted
27293 from a vector.
27294
27295 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27296
27297 * internal-fn.def (SIGNBIT): New.
27298 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27299 defined.
27300 (signbitv4sf2): Likewise.
27301
27302 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27303
27304 PR target/90357
27305 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27306 next insn when the SRC reg is dead.
27307
27308 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27309
27310 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27311 (alloc_cand_and_find_basis): Ditto.
27312 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27313 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27314 (create_add_imm_cand, slsr_process_cast): Ditto.
27315 (slsr_process_copy, replace_mult_candidate): Ditto.
27316 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27317 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27318 (pass_strength_reduction::execute): Init the first NULL element.
27319
27320 2019-05-13 Nathan Sidwell <nathan@acm.org>
27321
27322 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27323 (run_attempt): Reformat line break.
27324
27325 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27326
27327 PR target/90418
27328 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27329 data registers in sibcall epilogues.
27330 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27331
27332 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27333
27334 PR target/89221
27335 * configure.ac (--enable-frame-pointer):
27336 Disable by default for cygwin and mingw.
27337 * configure: Regenerate.
27338
27339 2019-05-13 Nathan Sidwell <nathan@acm.org>
27340
27341 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27342 piece of code.
27343 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27344 (gen_member_die): Move abstract origin check earlier. Only VARs
27345 can be static_inline_p. Simplify splicing control flow.
27346
27347 2019-05-13 Richard Biener <rguenther@suse.de>
27348
27349 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27350 VIEW_CONVERT_EXPR.
27351 (vect_build_slp_tree_1): Likewise.
27352
27353 2019-05-13 Richard Biener <rguenther@suse.de>
27354
27355 PR tree-optimization/90402
27356 * tree-if-conv.c (tree_if_conversion): Value number only
27357 the loop body by making the latch an exit of the region
27358 as well.
27359 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27360 processing PHIs.
27361 (do_rpo_vn): Deal with multiple edges into the entry block
27362 that are not backedges inside the region by skipping PHIs
27363 of the entry block.
27364
27365 2019-05-13 Richard Biener <rguenther@suse.de>
27366
27367 PR tree-optimization/90316
27368 * tree-ssa-pre.c (insert_aux): Fold into ...
27369 (insert): ... this function. Use a RPO walk to reduce the
27370 number of required iterations.
27371
27372 2019-05-13 Martin Liska <mliska@suse.cz>
27373
27374 PR tree-optimization/90416
27375 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27376 string instead of passing the second part as va_arg argument.
27377
27378 2019-05-13 Martin Liska <mliska@suse.cz>
27379
27380 PR gcov-profile/90380
27381 * gcov.c (handle_cycle): Do not support zero cycle count,
27382 it should not be possible.
27383 (path_contains_zero_cycle_arc): New function.
27384 (circuit): Ignore zero cycle arc counts.
27385
27386 2019-05-13 Martin Liska <mliska@suse.cz>
27387
27388 PR gcov-profile/90380
27389 * gcov.c (enum loop_type): Remove the enum and
27390 the operator.
27391 (handle_cycle): Assert that we should not reach
27392 a negative count.
27393 (circuit): Use loop_found instead of a tri-state loop_type.
27394 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27395 happen.
27396
27397 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27398
27399 PR target/82920
27400 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27401 (ix86_output_indirect_branch_via_reg): Use output mechanism
27402 accounting for __USER_LABEL_PREFIX__.
27403 (ix86_output_indirect_branch_via_push): Likewise.
27404 (ix86_output_function_return): Likewise.
27405 (ix86_output_indirect_function_return): Likewise.
27406
27407 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27408
27409 * doc/md.texi: Document use of code attributes in rtx patterns.
27410 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27411 * read-rtl.c (find_code): Split out search loops into...
27412 (maybe_find_code): ...this new function.
27413 (check_code_iterator): Make the error message more informative.
27414 (check_code_attribute): New function.
27415 (rtx_reader::rtx_alloc_for_name): Likewise.
27416 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27417 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27418 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27419 <max_opp> directly as an rtx code instead of via a match_operator.
27420 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27421 (<su>abd<mode>_3): Update accordingly.
27422
27423 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27424
27425 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27426 is given, print the state of the EH "save world" computation for
27427 Darwin.
27428
27429 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27430
27431 PR c++/59813
27432 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27433 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27434
27435 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27436
27437 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27438 Use pinsrd for TARGET_SSE4_1.
27439 * config/i386/sse.md (movdi_to_sse): Ditto.
27440
27441 2019-05-10 Richard Biener <rguenther@suse.de>
27442
27443 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27444 (do_rpo_vn): Initialize next_value_id.
27445
27446 2019-05-10 Martin Liska <mliska@suse.cz>
27447
27448 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27449 Fix plural form.
27450
27451 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27452
27453 PR tree-optimization/90385
27454 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27455 arguments of the exit phis.
27456
27457 PR c++/90383
27458 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27459 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27460 id->do_not_fold.
27461 (copy_tree_body_r): Likewise.
27462 (copy_fn): Set id.do_not_fold to true.
27463
27464 2019-05-10 Martin Liska <mliska@suse.cz>
27465
27466 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27467 Reapply changes from r269790.
27468
27469 2019-05-10 Martin Liska <mliska@suse.cz>
27470
27471 PR middle-end/90340
27472 * doc/invoke.texi: New params.
27473 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27474 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27475 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27476 Use it.
27477 * tree-switch-conversion.h (struct jump_table_cluster):
27478 Likewise.
27479
27480 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27481
27482 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27483
27484 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27485
27486 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27487
27488 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27489
27490 PR rtl-optimization/88879
27491 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27492
27493 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27494
27495 PR target/90405
27496 * config/arm/arm.c (callee_saved_reg_p): Move before
27497 thumb_find_work_register.
27498 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27499 thumb_find_work_register. Only call df_get_live_out once.
27500 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27501 (thumb_find_work_register): Use
27502 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27503 algorithms to locate a spare call clobbered reg.
27504
27505 2019-05-09 Martin Liska <mliska@suse.cz>
27506
27507 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27508 and MAX_EXPR in GIMPLE FE format.
27509
27510 2019-05-09 Martin Liska <mliska@suse.cz>
27511
27512 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27513 * gimple-pretty-print.c (dump_gimple_bb_header):
27514 Dump BB count.
27515 (pp_cfg_jump): Dump edge probability.
27516 * profile-count.c (profile_quality_as_string): Simplify
27517 with a static array.
27518 (parse_profile_quality): New function.
27519 (profile_count::dump): Simplify with a static array.
27520 (profile_count::from_gcov_type): Add new argument.
27521 * profile-count.h (parse_profile_quality): Likewise.
27522 * predict.h (set_hot_bb_threshold): New.
27523 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27524 New param.
27525 * predict.c (get_hot_bb_threshold): Set from the new param.
27526 (set_hot_bb_threshold): New.
27527
27528 2019-05-09 Richard Biener <rguenther@suse.de>
27529
27530 PR tree-optimization/90395
27531 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27532 rewrite vector stores that throw internally.
27533
27534 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27535
27536 * cif-code.def (CHKP): Remove.
27537
27538 PR target/89221
27539 * configure.ac (--enable-frame-pointer): Disable by default for
27540 GNU systems.
27541 * configure: Regenerate.
27542
27543 2019-05-09 Alan Modra <amodra@gmail.com>
27544
27545 PR target/89271
27546 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27547 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27548 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27549 cost for general <-> vsx when direct moves are available.
27550 Cost union classes at minimal cost for any reg in the class.
27551 Correct calculation for moves between vsx, float, and altivec.
27552 Don't return a low cost for moves between special regs. Don't
27553 use hard coded register numbers.
27554 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27555 (rs6000_ira_change_pseudo_allocno_class): New function.
27556 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27557 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27558 alternatives.
27559 (movsi_internal1): Don't disparage vector alternatives.
27560 (mov<mode>_internal): Likewise, excepting alternative that
27561 will be split.
27562 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27563 we <- b alternative.
27564
27565 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27566
27567 PR c++/59813
27568 PR tree-optimization/89060
27569 * tree-ssa-live.h (live_vars_map): New typedef.
27570 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27571 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27572 (struct compute_live_vars_data): New type.
27573 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27574 live_vars_at_stmt, destroy_live_vars): New functions.
27575 * tree-tailcall.c: Include tree-ssa-live.h.
27576 (live_vars, live_vars_vec): New global variables.
27577 (find_tail_calls): Perform variable life analysis before punting.
27578 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27579 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27580 member.
27581 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27582 Perform variable life analysis to select variables that really need
27583 clobbers added.
27584 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27585 instead set id->eh_landing_pad_dest and assert it is the same.
27586 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27587
27588 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27589 Richard Earnshaw <rearnsha@arm.com>
27590
27591 PR target/88167
27592 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27593 function.
27594 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27595 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27596 register if both the epilogue and prologue can use call-clobbered
27597 regs.
27598 (thumb1_unexpanded_epilogue): Use
27599 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27600 picking temporaries for restoring high regs to match that of the
27601 prologue where possible.
27602 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27603 the list of work registers. Detect if the return address is still live
27604 at the end of the prologue and avoid using it for a work register if so.
27605 If the return address is not live, add LR to the list of pushable regs
27606 after the first pass.
27607
27608 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27609
27610 PR tree-optimization/90078
27611 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27612 (INFTY): Increase the value for infinite cost.
27613 (struct comp_cost): Promote type of members to int64_t.
27614 (infinite_cost): Don't set complexity in initialization.
27615 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27616 overflows to infinite_cost.
27617 (adjust_setup_cost): Promote type of parameter and cost computation
27618 to int64_t.
27619 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27620 int64_t.
27621 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27622 cost computation to int64_t.
27623 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27624 int64_t's format specifier in dump.
27625
27626 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27627
27628 PR tree-optimization/90240
27629 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27630 with respect to scaling factor pre-computed for each basic block.
27631 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27632 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27633 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27634 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27635 live range for array of loop's basic blocks. Cleanup aux field of
27636 loop's basic blocks.
27637
27638 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27639
27640 PR tree-optimization/90356
27641 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27642
27643 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27644
27645 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27646 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27647 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27648 (ix86_handle_option): Handle -mavx512bf16.
27649 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27650 to extra_headers.
27651 * config/i386/avx512bf16vlintrin.h: New.
27652 * config/i386/avx512bf16intrin.h: New.
27653 * config/i386/cpuid.h (bit_AVX512BF16): New.
27654 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27655 * config/i386/i386-builtin-types.def: Add new types.
27656 * config/i386/i386-builtin.def: Add new builtins.
27657 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27658 __AVX512BF16__.
27659 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27660 (ix86_option_override_internal): Handle BF16.
27661 (ix86_valid_target_attribute_inner_p): Ditto.
27662 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27663 * config/i386/i386-builtin.c (enum processor_features): Add
27664 F_AVX512BF16.
27665 (static const _isa_names_table isa_names_table): Ditto.
27666 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27667 (PTA_AVX512BF16): Ditto.
27668 * config/i386/i386.opt: Add -mavx512bf16.
27669 * config/i386/immintrin.h: Include avx512bf16intrin.h
27670 and avx512bf16vlintrin.h.
27671 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27672 avx512f_cvtneps2bf16_<mode><mask_name>,
27673 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27674 * config/i386/subst.md (mask_half): Add new subst.
27675 * doc/invoke.texi: Document -mavx512bf16.
27676
27677 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27678
27679 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27680 Delete declaration.
27681 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27682 (rs6000_debug_legitimize_reload_address): Delete.
27683 (rs6000_legitimize_reload_address_ptr): Delete.
27684 (rs6000_option_override_internal): Adjust.
27685 (mem_operand_gpr): Adjust comment.
27686 (legitimate_lo_sum_address_p): Ditto.
27687 (rs6000_legitimize_reload_address): Delete.
27688 (rs6000_debug_legitimize_reload_address): Delete.
27689 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27690
27691 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27692
27693 PR target/89765
27694 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27695 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27696 to compute vector element selector for both constant and variable
27697 operands.
27698
27699 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27700
27701 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27702 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27703 ashrdi3_cvt using SWI48 mode iterator.
27704
27705 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27706
27707 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27708 (aarch64_<su>abd<mode>_3): Likewise.
27709 (*aarch64_<su>abd<mode>_3): New define_insn.
27710 (<sur>sad<vsi2qi>): New define_expand.
27711 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27712 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27713 (build_vect_cond_expr): Likewise.
27714
27715 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27716
27717 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27718 clobbers outside of accessible_reg_set.
27719 * config/i386/i386.c (ix86_conditional_register_usage):
27720 Disable register sets by clearing corresponding bits in
27721 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27722 call_used_regs and don't clear corresponding reg_names array members.
27723
27724 2019-05-07 Richard Biener <rguenther@suse.de>
27725
27726 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27727 not specified still compute a comp_vectype for invariant
27728 compares.
27729
27730 2019-05-07 Richard Biener <rguenther@suse.de>
27731
27732 PR tree-optimization/90316
27733 * tree-ssa-pre.c (translate_vuse_through_block): When
27734 same_valid is NULL do not bother to search for a virtual
27735 PHI continuation.
27736 (phi_translate_1): When operands changed we cannot keep
27737 the same value-number so do not bother to ask whether
27738 that's possible from translate_vuse_through_block.
27739
27740 2019-05-07 Martin Liska <mliska@suse.cz>
27741
27742 * bitmap.c (bitmap_register): Come up with
27743 alloc_descriptor_max_uid and assign it for
27744 a new bitmap.
27745 (register_overhead): Use get_descriptor as
27746 a descriptor.
27747 (release_overhead): New.
27748 (bitmap_elem_to_freelist): Call it.
27749 (bitmap_elt_clear_from): Likewise.
27750 (bitmap_obstack_free): Likewise.
27751 (bitmap_move): Sensitively release memory.
27752 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27753 (bitmap_initialize): Initialize alloc_descriptor to zero.
27754 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27755
27756 2019-05-07 Richard Biener <rguenther@suse.de>
27757
27758 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27759 we build a SLP node. Remove max_size and limiting.
27760 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27761
27762 2019-05-07 Richard Biener <rguenther@suse.de>
27763
27764 PR tree-optimization/90316
27765 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27766 limit by reference.
27767 (walk_non_aliased_vuses): Take walking limit argument.
27768 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27769 walking if it is reached instead of just counting.
27770 (get_continuation_for_phi): Likewise.
27771 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27772 limiting to the callback.
27773 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27774 (vn_reference_lookup_3): Likewise.
27775 (vn_reference_lookup_pieces): Likewise.
27776 (vn_reference_lookup): Likewise.
27777 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27778 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27779 (avail_exprs_stack::lookup_avail_expr): Likewise.
27780
27781 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27782
27783 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27784 for comparaible types in the second direction even if first one
27785 hits incomparable type.
27786
27787 2019-05-07 Richard Biener <rguenther@suse.de>
27788
27789 PR lto/90369
27790 * lto-wrapper.c (debug_objcopy): Use the original filename
27791 including archive offset for the filename used for -save-temps.
27792
27793 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27794
27795 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27796 detection.
27797
27798 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27799 Hongtao Liu <hongtao.liu@intel.com>
27800
27801 PR target/89750
27802 PR target/86444
27803 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27804 Modified, original implementation isn't correct.
27805
27806 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27807
27808 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27809 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27810 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27811 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27812 (FRAME_POINTER_REGNUM): Change numbering.
27813 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27814 (alt_reg_names): Adjust.
27815 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27816 fixed.
27817 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27818 (DWARF_FRAME_REGISTERS): Delete.
27819 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27820 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27821 Adjust.
27822 (REG_ALLOC_ORDER): Adjust.
27823 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27824 (REG_CLASS_CONTENTS): Adjust.
27825 (RETURN_ADDR_RTX): Change comment.
27826 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27827 instead of 67.
27828 (REGISTER_NAMES): Adjust.
27829 (ADDITIONAL_REGISTER_NAMES): Adjust.
27830 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27831
27832 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27833
27834 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27835 Delete.
27836 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27837 (DWARF_FRAME_REGISTERS): Adjust.
27838 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27839 Adjust.
27840 (REG_ALLOC_ORDER): Adjust.
27841 (enum reg_class): Delete SPR_REGS.
27842 (REG_CLASS_NAMES): Delete SPR_REGS.
27843 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27844 (REGISTER_NAMES): Adjust.
27845 (ADDITIONAL_REGISTER_NAMES): Adjust.
27846 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27847 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27848 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27849 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27850 (htm_spr_regno): Delete.
27851 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27852 argument.
27853 (rs6000_dbx_register_number): Adjust.
27854
27855 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27856
27857 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27858
27859 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27860
27861 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27862 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27863
27864 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27865
27866 PR tree-optimization/88709
27867 PR tree-optimization/90271
27868 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27869 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27870 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27871 variable.
27872 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27873 of the store merging group is larger than
27874 PARAM_STORE_MERGING_MAX_SIZE parameter.
27875 (split_group): Add bzero_first argument. If set, always emit first
27876 the first store which must be = {} of the whole area and then for the
27877 rest of the stores consider all zero bytes as paddings.
27878 (imm_store_chain_info::output_merged_store): Check if first store
27879 is = {} of the whole area and if yes, determine which setting of
27880 bzero_first for split_group gives smaller number of stores. Adjust
27881 split_group callers.
27882 (lhs_valid_for_store_merging_p): Allow decls.
27883 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27884 no elts.
27885 (pass_store_merging::process_store): Likewise.
27886
27887 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27888
27889 PR target/89424
27890 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27891 handling of V1TImode.
27892
27893 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27894
27895 PR target/89221
27896 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27897 and enable_frame_pointer ...
27898 * configure.ac: ... here. Update help strings for
27899 --enable-frame-pointer.
27900 * configure: Regenerate.
27901 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27902 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27903 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27904 (USE_X86_64_FRAME_POINTER): Ditto.
27905
27906 2019-05-06 Martin Liska <mliska@suse.cz>
27907
27908 * config.gcc: Append to target_gtfiles and fix indentation.
27909
27910 2019-05-06 Richard Biener <rguenther@suse.de>
27911
27912 PR tree-optimization/90358
27913 * tree-vect-stmts.c (get_group_load_store_type): Properly
27914 detect unused upper half of load.
27915 (vectorizable_load): Likewise.
27916
27917 2019-05-06 Richard Biener <rguenther@suse.de>
27918
27919 PR tree-optimization/88828
27920 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27921 (simplify_vector_constructor): ...here. Handle constants in
27922 the constructor.
27923
27924 2019-05-06 Richard Biener <rguenther@suse.de>
27925
27926 PR tree-optimization/90328
27927 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27928 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27929 is valid in the loop nest before using it.
27930 (initialize_data_dependence_relation): Adjust.
27931 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27932 loop as loop-nest to dr_may_alias_p.
27933
27934 2019-05-06 Richard Biener <rguenther@suse.de>
27935
27936 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27937
27938 2019-05-06 Richard Biener <rguenther@suse.de>
27939
27940 PR tree-optimization/90316
27941 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27942 compute target on demand.
27943 (get_continuation_for_phi): Remove code walking stmts to
27944 get to a target virtual operand which could end up being
27945 quadratic.
27946
27947 2019-05-06 Martin Liska <mliska@suse.cz>
27948
27949 PR sanitizer/90312
27950 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27951 when -mabi is selected to a non-default version.
27952
27953 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27954 Martin Liska <mliska@suse.cz>
27955
27956 * Makefile.in: Add lto-dump.texi.
27957 * cgraph.h: Add new functions get_visibility_string and
27958 get_symtab_type_string.
27959 * doc/gcc.texi: Include lto-dump section.
27960 * doc/lto-dump.texi: New file.
27961 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27962 (parse_dump_option): Factor out this function.
27963 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27964 (parse_dump_option): Export the function.
27965 * symtab.c (symtab_node::get_visibility_string): New function.
27966 (symtab_node::get_symtab_type_string): Likewise.
27967
27968 2019-05-06 Martin Liska <mliska@suse.cz>
27969
27970 * config/i386/i386-builtins.c: New file.
27971 * config/i386/i386-builtins.h: New file.
27972 * config/i386/i386-expand.c: New file.
27973 * config/i386/i386-expand.h: New file.
27974 * config/i386/i386-features.c: New file.
27975 * config/i386/i386-features.h: New file.
27976 * config/i386/i386-options.c: New file.
27977 * config/i386/i386-options.h: New file.
27978 * config.gcc: Add new files into extra_objs and
27979 target_gtfiles.
27980 * config/i386/i386.c: Split content of the file
27981 into newly introduced files.
27982 * config/i386/i386.h: Declare common variables
27983 and macros.
27984 * config/i386/t-i386: Define dependencies for new files.
27985
27986 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27987
27988 PR target/89400
27989 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27990 Restrict 'all' variant to 32-bit configurations.
27991 (unaligned_loadhiu): Likewise.
27992 (unaligned_storehi): Likewise.
27993 (unaligned_storesi): Likewise.
27994 (unaligned_loadhis): Disable when compiling for thumb1.
27995
27996 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27997
27998 PR tree-optimization/90269
27999 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28000 Ignore clobbers.
28001
28002 2019-05-03 Martin Liska <mliska@suse.cz>
28003
28004 * hash-map.h: Add is_empty function.
28005 * hash-set.h: Likewise.
28006 * hash-table.h: Likewise.
28007 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28008 elements () == 0 (and similar usages).
28009 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28010 * gimplify.c (gimplify_bind_expr): Likewise.
28011 (gimplify_switch_expr): Likewise.
28012 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28013 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28014 * postreload-gcse.c (dump_hash_table): Likewise.
28015 (gcse_after_reload_main): Likewise.
28016 * predict.c (combine_predictions_for_bb): Likewise.
28017 * tree-parloops.c (reduction_phi): Likewise.
28018 (separate_decls_in_region): Likewise.
28019 (transform_to_exit_first_loop): Likewise.
28020 (gen_parallel_loop): Likewise.
28021 (gather_scalar_reductions): Likewise.
28022 (try_create_reduction_list): Likewise.
28023 * var-tracking.c (dump_vars): Likewise.
28024 (emit_notes_for_changes): Likewise.
28025 (vt_emit_notes): Likewise.
28026
28027 2019-05-03 Richard Biener <rguenther@suse.de>
28028
28029 PR tree-optimization/90316
28030 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28031 before running VN.
28032
28033 2019-05-03 Richard Biener <rguenther@suse.de>
28034
28035 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28036 peeling for gaps by loading only lower halves of vectors
28037 if possible.
28038 (vectorizable_load): Likewise.
28039
28040 2019-05-03 Richard Biener <rguenther@suse.de>
28041
28042 PR middle-end/89518
28043 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28044
28045 2019-05-03 Richard Biener <rguenther@suse.de>
28046
28047 PR middle-end/87314
28048 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28049 Handle STRING_CST vs DECL or STRING_CST.
28050
28051 2019-05-03 Richard Biener <rguenther@suse.de>
28052
28053 PR tree-optimization/88963
28054 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28055 vector loads feeding only BIT_FIELD_REFs to component
28056 loads. Rewrite stores fed by CONSTRUCTORs to component
28057 stores.
28058
28059 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28060
28061 * opts.h (finish_options): Remove lang_mask argument.
28062 (print_help, help_option_argument): Declare.
28063 * opts.c (print_help): Remove forward declaration, no longer static.
28064 (finish_options): Remove lang_mask argument, don't call print_help
28065 here.
28066 * opts-global.c (decode_options): Adjust finish_option caller, call
28067 print_help here.
28068
28069 PR tree-optimization/90303
28070 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28071 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28072
28073 2019-05-03 Richard Biener <rguenther@suse.de>
28074
28075 PR tree-optimization/89698
28076 * gimple-fold.c (canonicalize_constructor_val): Early out
28077 for constants, handle unfolded INTEGER_CSTs as they appear in
28078 C++ virtual table ctors.
28079
28080 2019-05-03 Richard Biener <rguenther@suse.de>
28081
28082 * passes.c (execute_function_todo): Remove dead code.
28083
28084 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28085
28086 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28087 the internal register number, for any "real" register.
28088
28089 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28090
28091 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28092 correct numbers for TFHAR, TFIAR, TEXASR.
28093
28094 2019-05-02 Richard Biener <rguenther@suse.de>
28095
28096 PR tree-optimization/89653
28097 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28098 update-address-taken before the pass.
28099 * passes.def (pass_tree_loop_init): Put comment before it.
28100
28101 2019-05-02 Richard Biener <rguenther@suse.de>
28102
28103 PR tree-optimization/89509
28104 * tree-ssa-structalias.c (compute_dependence_clique): Look
28105 at the first subvar when determining whether it is restrict.
28106
28107 2019-05-02 Richard Biener <rguenther@suse.de>
28108
28109 PR tree-optimization/90273
28110 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28111 useless debug stmts.
28112
28113 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28114
28115 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28116 ACLE branch.
28117 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28118 SVE ACLE branch.
28119 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28120 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28121 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28122 (vectorizable_reduction): Use the functions above to vectorize in a
28123 fully masked loop codes that don't have a conditional internal
28124 function.
28125
28126 2019-05-02 Martin Liska <mliska@suse.cz>
28127
28128 * cgraphclones.c: Call valid_attribute_p with 1 for
28129 target_clone.
28130 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28131 it's for target attribute.
28132 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28133 Add new boolean argument.
28134 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28135 Likewise.
28136 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28137 to ix86_valid_target_attribute_inner_p.
28138 (ix86_valid_target_attribute_p): Pass flags argument to
28139 ix86_valid_target_attribute_inner_p.
28140 (get_builtin_code_for_version): Use 0 as it's target attribute.
28141
28142 2019-05-02 Martin Liska <mliska@suse.cz>
28143
28144 * gcc.c (process_command): Add dummy file only
28145 if n_infiles == 0.
28146 * opts-global.c (decode_options): Pass lang_mask.
28147 * opts.c (print_help): New function.
28148 (finish_options): Print --help if help_option_argument
28149 is set.
28150 (common_handle_option): Factor out content of OPT__help_
28151 into print_help.
28152 * opts.h (finish_options): Add new argument.
28153
28154 2019-05-02 Martin Liska <mliska@suse.cz>
28155
28156 PR target/88809
28157 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28158 With -minline-all-stringops use inline expansion using 4B loop.
28159 * doc/invoke.texi: Document the change of
28160 -minline-all-stringops.
28161
28162 2019-05-01 Jeff Law <law@redhat.com>
28163
28164 PR tree-optimization/88797
28165 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28166 PHI feeds a conditional on the RHS of an assignment.
28167
28168 2019-04-30 Andrew Waterman <andrew@sifive.com>
28169 Jim Wilson <jimw@sifive.com>
28170
28171 * config/riscv/constraints.md (L): New.
28172 * config/riscv/predicates.md (lui_operand): New.
28173 (sfb_alu_operand): New.
28174 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28175 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28176 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28177 * config/riscv/risc.md (type): Add sfb_alu.
28178 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28179 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28180 (branch_zero<mode>): Delete.
28181 (mov<mode>cc): New.
28182 (mov<GPR:mode><X:mode>cc): Likewise.
28183 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28184
28185 2019-04-30 Nathan Sidwell <nathan@acm.org>
28186
28187 * tree.h (MARK_TS_EXP): New.
28188
28189 2019-04-30 Martin Liska <mliska@suse.cz>
28190
28191 * opts.c (enable_warning_as_error): Provide hints
28192 for unknown options.
28193
28194 2019-04-30 Martin Liska <mliska@suse.cz>
28195
28196 PR debug/90288
28197 * doc/invoke.texi: Add missing dash for gas-locview-support
28198 and gno-as-locview-support.
28199
28200 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28201
28202 PR target/89093
28203 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28204 whitespace at the start of target attribute string.
28205
28206 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28207
28208 PR target/86538
28209 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28210 Define __ARM_FEATURE_ATOMICS.
28211
28212 2019-04-30 Martin Liska <mliska@suse.cz>
28213
28214 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28215 into built_in_function enum. Remove code for endp == 2 and
28216 use BUILT_IN_* constants.
28217 (gimple_fold_builtin): Call the function with fcode.
28218
28219 2019-04-30 Martin Liska <mliska@suse.cz>
28220
28221 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28222 DECL_FUNCTION_CODE into ix86_builtins enum before
28223 the switch statement.
28224
28225 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28226
28227 PR tree-optimization/89475
28228 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28229 calls.
28230
28231 2019-04-30 Martin Liska <mliska@suse.cz>
28232
28233 PR translation/90274
28234 * opts.c (print_filtered_help): Wrap string in _(...).
28235
28236 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28237
28238 PR tree-optimization/90240
28239 Revert:
28240 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28241
28242 PR tree-optimization/90078
28243 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28244 checks for infinite_cost overflow.
28245
28246 2019-04-29 Jeff Law <law@redhat.com>
28247
28248 * passes.def: Move -Wrestrict pass after copy propagation.
28249
28250 2019-04-29 Maya Rashish <coypu@sdf.org>
28251
28252 * config.gcc (default_gnu_indirect_function): Default to yes
28253 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28254 sparc*-*-netbsd*, x86_64-*-netbsd*.
28255
28256 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28257
28258 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28259 where cond2 is NE_EXPR.
28260 (is_value_included_in): Update comment.
28261
28262 2019-04-29 Richard Biener <rguenther@suse.de>
28263
28264 PR tree-optimization/90278
28265 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28266 EH on comparison simplification.
28267
28268 2019-04-29 Jason Merrill <jason@redhat.com>
28269
28270 PR c++/82081 - tail call optimization breaks noexcept
28271 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28272 nothrow function to a might-throw function into a tail call.
28273
28274 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28275
28276 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28277 (DDR_INNER_LOOP): Likewise.
28278 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28279 (initialize_data_dependence_relation): Likewise.
28280 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28281
28282 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28283
28284 PR rtl-optimization/90257
28285 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28286 return value.
28287
28288 Revert the revert:
28289 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28290
28291 PR target/90178
28292 Revert:
28293 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28294
28295 Revert the revert:
28296 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28297
28298 Revert:
28299 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28300
28301 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28302
28303 2019-04-29 Richard Biener <rguenther@suse.de>
28304
28305 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28306 rhs issue a reset.
28307
28308 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28309
28310 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28311 varasm.h, and netbsd-protos.h.
28312
28313 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28314
28315 PR target/89261
28316 * config/i386/i386-protos.h (ix86_data_alignment): Change
28317 the second argument type to unsigned int.
28318 * config/i386/i386.c (ix86_data_alignment): Change "align"
28319 argument type to unsigned int.
28320
28321 2019-04-27 Martin Liska <mliska@suse.cz>
28322
28323 PR middle-end/90258
28324 * opt-suggestions.c (option_proposer::build_option_suggestions):
28325 When get_valid_option_values returns empty values, add the
28326 misspelling candidate.
28327
28328 2019-04-26 Jim Wilson <jimw@sifive.com>
28329
28330 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28331 parameter.
28332 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28333 Pass orig_mode to riscv_build_integer.
28334 (riscv_split_integer): Pass mode to riscv_move_integer.
28335 (riscv_legitimize_const_move): Likewise.
28336 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28337 promoted_mode. Replace force_reg call with code to load constant into
28338 promoted reg and then subreg it for the store.
28339 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28340 riscv_move_integer.
28341
28342 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28343
28344 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28345 corrupt codes.
28346
28347 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28348
28349 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28350 commentary about the encoding of precision.
28351
28352 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28353
28354 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28355 * config/i386/t-freebsd64: New file.
28356 * config.gcc: Add the t-freebsd64 for multilib support.
28357
28358 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28359
28360 * doc/extend.texi (vector_size): Add missing comma after @xref.
28361
28362 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28363
28364 * BASE-VER: Set to 10.0.0.
28365
28366 2019-04-25 Richard Biener <rguenther@suse.de>
28367
28368 PR middle-end/89765
28369 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28370 VIEW_CONVERT_EXPR into one operating on an rvalue.
28371
28372 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28373
28374 PR target/89929
28375 * config/i386/i386.c (feature_priority): Moved to file scope.
28376 (processor_features): Likewise.
28377 (processor_model): Likewise.
28378 (_arch_names_table): Likewise.
28379 (arch_names_table): Likewise.
28380 (_feature_list): Removed.
28381 (feature_list): Likewise.
28382 (_isa_names_table): Moved to file scope. Add priority.
28383 (isa_names_table): Likewise.
28384 (get_builtin_code_for_version): Replace feature_list with
28385 isa_names_table. Update error message for P_ZERO priority.
28386
28387 2019-04-25 Richard Biener <rguenther@suse.de>
28388
28389 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28390 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28391
28392 2019-04-24 Jeff Law <law@redhat.com>
28393
28394 PR tree-optimization/90037
28395 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28396 * passes.def: Replace all instance of phi-only cprop with the
28397 lattice propagator. Move propagation pass from after erroneous
28398 path isolation to before erroneous path isolation.
28399 * tree-ssa-phionlycprop.c: Remove.
28400
28401 2019-04-24 Richard Biener <rguenther@suse.de>
28402
28403 PR middle-end/90213
28404 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28405 by size and BITS_PER_UNIT on poly-wide-ints.
28406
28407 2019-04-25 Richard Biener <rguenther@suse.de>
28408
28409 PR middle-end/90194
28410 * match.pd: Add pattern to simplify view-conversion of an
28411 empty constructor.
28412
28413 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28414
28415 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28416 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28417 for Go on 32 bit AIX.
28418 * config/rs6000/aix72.h: Likewise.
28419
28420 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28421
28422 PR target/90193
28423 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28424 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28425
28426 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28427
28428 PR target/89952
28429 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28430 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28431 for restored hard frame pointer.
28432 (s390_sched_dependencies_evaluation): Implement new target hook.
28433 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28434
28435 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28436
28437 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28438 * config/arc/arc.c (arc_init): Cleanup warning message.
28439 (arc_override_options): Likewise.
28440
28441 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28442
28443 PR target/90187
28444 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28445 a register if both if_true and if_false are MEMs.
28446
28447 PR tree-optimization/90208
28448 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28449 after labels of new_bb, not before them.
28450
28451 PR tree-optimization/90211
28452 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28453 which are not SSA_NAMEs.
28454
28455 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28456
28457 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28458 AArch64.
28459 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28460
28461 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28462
28463 PR rtl-optimization/87979
28464 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28465 not equal zero.
28466
28467 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28468
28469 PR rtl-optimization/84032
28470 * modulo-sched.c (ps_insn_find_column): Change condition so that
28471 branch will always be the last insn in a row inside partial
28472 schedule.
28473
28474 2019-04-23 Richard Biener <rguenther@suse.de>
28475
28476 PR debug/90131
28477 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28478 dest_single_pred_p argument.
28479 (remove_forwarder_block): Adjust.
28480 (remove_forwarder_block_with_phi): Likewise.
28481
28482 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28483 Bernd Edlinger <bernd.edlinger@hotmail.de>
28484 Jakub Jelinek <jakub@redhat.com>
28485
28486 PR target/89093
28487 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28488 if used with general-regs-only.
28489 (arm_conditional_register_usage): Don't add non-general regs if
28490 general-regs-only.
28491 (arm_valid_target_attribute_rec): Handle general-regs-only.
28492 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28493 general-regs-only.
28494 (TARGET_HARD_FLOAT_SUB): Define.
28495 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28496 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28497 (TARGET_REALLY_IWMMXT2): Likewise.
28498 * config/arm/arm.opt: Add -mgeneral-regs-only.
28499 * doc/extend.texi: Document ARM general-regs-only target.
28500 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28501
28502 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28503
28504 PR tree-optimization/90078
28505 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28506 checks for infinite_cost overflow.
28507
28508 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28509
28510 PR tree-optimization/90021
28511 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28512 and check univariate against it.
28513 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28514 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28515
28516 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28517
28518 PR target/90178
28519 Revert:
28520 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28521
28522 Revert the revert:
28523 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28524
28525 Revert:
28526 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28527
28528 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28529
28530 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28531
28532 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28533 names using operand format, rather than hard-wired.
28534 (speculation_barrier): Likewise.
28535
28536 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28537
28538 PR tree-optimization/88055
28539 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28540 (gen_one_condition): Use it if !HONOR_NANS.
28541
28542 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28543
28544 PR middle-end/90139
28545 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28546 assign_temp instead of gen_reg_rtx.
28547
28548 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28549
28550 PR translation/90118
28551 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28552 Add missing space before %<.
28553
28554 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28555
28556 PR rtl-optimization/87871
28557 * ira-lives.c (make_object_dead): Don't add conflicts to
28558 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28559
28560 2019-04-18 Martin Sebor <msebor@redhat.com>
28561
28562 PR middle-end/89797
28563 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28564 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28565 assuming type size fits in SHWI.
28566
28567 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28568
28569 PR ipa/85051
28570 * ipa-inline.c (flatten_function): New parameter UPDATE.
28571 (ipa_inline, early_inliner): Use it.
28572
28573 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28574
28575 * fold-const.c (int_const_binop): Return early on failure.
28576
28577 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28578
28579 PR middle-end/85164
28580 * combine.c (force_int_to_mode): Cast the argument rather than
28581 the result of known_alignment.
28582 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28583
28584 2019-04-18 Richard Biener <rguenther@suse.de>
28585
28586 PR debug/90131
28587 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28588 out from ...
28589 (remove_forwarder_block): ... here.
28590 (remove_forwarder_block_with_phi): Also move debug stmts here.
28591
28592 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28593
28594 PR translation/79183
28595 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28596 inform where appropriate.
28597
28598 2019-04-18 Richard Biener <rguenther@suse.de>
28599
28600 * tree.c (get_qualified_type): Put found type variants at the
28601 head of the variant list.
28602
28603 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28604
28605 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28606
28607 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28608
28609 PR target/90125
28610 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28611 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28612 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28613 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28614 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28615
28616 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28617
28618 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28619 even for allocno's with no conflicts.
28620 (print_conflicts): Print an extra newline.
28621
28622 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28623
28624 * auto-inc-dec.c (attempt_change): Set the alignment of the
28625 temporary memory to that of the original.
28626
28627 2019-04-17 Joao Moreira <jmoreira@suse.de>
28628
28629 * targhooks.c (default_print_patchable_function_entry): Emit
28630 __patchable_function_entries section with writable flags to allow
28631 relocation resolution.
28632
28633 2019-04-17 Jonny Grant <jg@jguk.org>
28634
28635 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28636
28637 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28638
28639 PR middle-end/90095
28640 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28641 on lowpart SUBREGs.
28642
28643 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28644
28645 * config/arc/arc.c (arc_init): Format diagnostic string.
28646 (arc_override_options): Likewise.
28647 (check_if_valid_regno_const): Likewise.
28648 (arc_reorg): Likewise.
28649
28650 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28651
28652 PR target/17108
28653 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28654 name.
28655 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28656 name.
28657 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28658 (*movdi_update1): Use Pmode.
28659 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28660 (movdi_<mode>_update_stack): Rename to ...
28661 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28662 use Pmode.
28663 (*movsi_update1): Use Pmode.
28664 (*movsi_update2): Use Pmode.
28665 (movsi_update): Rename to ...
28666 (movsi_<mode>_update): ... this. Use Pmode.
28667 (movsi_update_stack): Fix condition.
28668 (*movhi_update1): Use Pmode. Fix argument to
28669 avoiding_indexed_address_p.
28670 (*movhi_update2): Ditto.
28671 (*movhi_update3): Ditto.
28672 (*movhi_update4): Ditto.
28673 (*movqi_update1): Ditto.
28674 (*movqi_update2): Ditto.
28675 (*movqi_update3): Ditto.
28676 (*movsf_update1, *movdf_update1): Merge, rename to...
28677 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28678 avoiding_indexed_address_p. Add "size" attribute.
28679 (*movsf_update2, *movdf_update2): Merge, rename to...
28680 (*mov<mode>_update2): This. Ditto.
28681 (*movsf_update3): Use Pmode. Fix argument to
28682 avoiding_indexed_address_p.
28683 (*movsf_update4): Ditto.
28684 (allocate_stack): Simplify condition. Adjust pattern names.
28685
28686 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28687
28688 PR target/89093
28689 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28690 whitespace at the start of target attribute string.
28691
28692 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28693
28694 PR target/84369
28695 * config/rs6000/power9.md: Add store forwarding bypass.
28696
28697 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28698
28699 PR debug/89528
28700 * valtrack.c (dead_debug_insert_temp): Reset debug references
28701 to the return value of a call being removed.
28702
28703 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28704
28705 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28706 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28707 implement target hook.
28708 (arc_memory_move_cost): New function.
28709 (TARGET_REGISTER_MOVE_COST): Define.
28710 (TARGET_MEMORY_MOVE_COST): Likewise.
28711 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28712 (MEMORY_MOVE_COST): Likewise.
28713
28714 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28715
28716 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28717 (sibcall_value_insn): Likewise.
28718 * config/arc/constraints.md (Rs5): Remove.
28719
28720 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28721
28722 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28723 for last two fake registers.
28724 (arc_conditional_register_usage): Make sure fake frame and arg
28725 pointer regs are in general regs class.
28726 (FRAME_POINTER_MASK): Remove.
28727 (RETURN_ADDR_MASK): Remove.
28728 (arc_must_save_register): Use hard frame regnum.
28729 (frame_restore_reg): Use hard_frame_pointer_rtx.
28730 (arc_save_callee_saves): Likewise.
28731 (arc_restore_callee_saves): Likewise.
28732 (arc_save_callee_enter): Likewise.
28733 (arc_restore_callee_leave): Likewise.
28734 (arc_save_callee_milli): Likewise.
28735 (arc_eh_return_address_location): Likewise.
28736 (arc_check_multi): Use hard frame regnum.
28737 (arc_can_eliminate): Likewise.
28738 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28739 for register allocator.
28740 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28741 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28742 (FRAME_POINTER_REGNUM): Change it to a fake register.
28743 (HARD_FRAME_POINTER_REGNUM): Defined.
28744 (ARG_POINTER_REGNUM): Change it to a new fake register.
28745 (ELIMINABLE_REGS): Update.
28746 (REGISTER_NAMES): Update names.
28747 * config/arc/arc.md (LP_START): Remove.
28748 (LP_END): Likewise.
28749 (shift_si3_loop): Update pattern.
28750
28751 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28752
28753 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28754 to avoid delay slot scheduling.
28755 (arc_must_save_register): Don't save SP.
28756 * config/arc/arc.md (stack_tie): Remove.
28757 (UNSPEC_ARC_STKTIE): Likewise.
28758
28759 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28760 Shiva Chen <shiva0217@gmail.com>
28761
28762 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28763 code gen with large shift amount.
28764
28765 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28766
28767 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28768 subreg.
28769
28770 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28771
28772 PR target/90096
28773 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28774 print -m64/-mx32/-m32 if it is true.
28775 (ix86_debug_options, ix86_function_specific_print): Pass true as
28776 ADD_ABI_P to ix86_target_string.
28777 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28778 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28779 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28780
28781 PR rtl-optimization/90082
28782 * dce.c (can_delete_call): New function.
28783 (deletable_insn_p, mark_insn): Use it.
28784
28785 PR tree-optimization/90090
28786 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28787 throw internally.
28788 (is_division_by_square): Likewise. Formatting fix.
28789
28790 2019-04-16 Richard Biener <rguenther@suse.de>
28791
28792 PR tree-optimization/56049
28793 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28794 equality check if alias-set zero will prevail.
28795
28796 2019-04-15 Jeff Law <law@redhat.com>
28797
28798 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28799 size and alignment as unsigned.
28800
28801 2019-04-15 Richard Biener <rguenther@suse.de>
28802
28803 PR debug/90074
28804 * tree-loop-distribution.c (destroy_loop): Preserve correct
28805 debug info.
28806
28807 2019-04-15 Richard Biener <rguenther@suse.de>
28808
28809 PR tree-optimization/90071
28810 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28811 abnormal operands from def stmts.
28812
28813 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28814
28815 PR rtl-optimization/89794
28816 * combine.c (count_auto_inc): New function.
28817 (try_combine): Count how many auto_inc expressions there were in the
28818 original instructions. Ensure we have the same number in the new
28819 instructions. Remove the code that tried to ensure auto_inc side
28820 effects on i1 and i0 are not lost.
28821
28822 2019-04-15 Richard Biener <rguenther@suse.de>
28823
28824 PR ipa/88936
28825 * tree.h (auto_var_p): Declare.
28826 * tree.c (auto_var_p): New function, split out from ...
28827 (auto_var_in_fn_p): ... here.
28828 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28829 member.
28830 (new_var_info): Initialize it.
28831 (set_uids_in_ptset): Also set the shadow variable uid if required.
28832 (ipa_pta_execute): Postprocess points-to solutions assigning
28833 shadow variable uids for locals that may reach their containing
28834 function recursively.
28835 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28836 assert but instead check whether the points-to solution is
28837 a singleton.
28838
28839 2019-04-15 Martin Jambor <mjambor@suse.cz>
28840
28841 PR ipa/pr89693
28842 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28843 the thunk chain.
28844
28845 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28846
28847 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28848
28849 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28850 Kito Cheng <kito.cheng@gmail.com>
28851 Shiva Chen <shiva0217@gmail.com>
28852
28853 * config/nds32/nds32-md-auxiliary.c
28854 (nds32_legitimize_pic_address): Use new PIC pattern.
28855 (nds32_legitimize_tls_address): Use new TLS pattern.
28856 (nds32_output_symrel): New.
28857 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28858 (nds32_alloc_relax_group_id): Ditto.
28859 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28860 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28861 relax_group_id.
28862 (nds32_group_tls_insn): Ditto.
28863 (nds32_group_float_insns): Ditto.
28864 * config/nds32/nds32.md (tls_le): New.
28865 (sym_got): Ditto.
28866
28867 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28868
28869 * configure: Add nds32 target for dwarf2 debug_line checking.
28870 * configure.ac: Regenerated.
28871
28872 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28873
28874 PR lto/89358
28875 * ipa-devirt.c (skip_in_fields_list_p): New.
28876 (odr_types_equivalent_p): Use it.
28877
28878 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28879
28880 PR target/89093
28881 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28882 instead of strncmp when checking for thumb and arm. Formatting fixes.
28883
28884 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28885
28886 * doc/install.texi: Document --with-target-system-zlib.
28887
28888 2019-04-12 Martin Sebor <msebor@redhat.com>
28889
28890 PR c/88383
28891 PR c/89288
28892 PR c/89798
28893 PR c/89797
28894 * targhooks.c (default_vector_alignment): Avoid assuming
28895 argument fits in SHWI.
28896 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28897 a shift expression.
28898 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28899
28900 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28901
28902 PR rtl-optimization/89965
28903 * dce.c: Include rtl-iter.h.
28904 (struct check_argument_load_data): New type.
28905 (check_argument_load): New function.
28906 (find_call_stack_args): Check for loads from stack slots still tracked
28907 in sp_bytes and punt if any is found.
28908
28909 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28910
28911 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28912
28913 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28914 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28915
28916 2019-04-12 Martin Liska <mliska@suse.cz>
28917
28918 PR middle-end/89970
28919 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28920 in error message.
28921 (separate_attrs): Handle multiple 'default's.
28922 (expand_target_clones): Rework error handling code.
28923
28924 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28925
28926 PR target/87532
28927 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28928 mode of vector rather than mode of destination for move instruction.
28929 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28930 Use QI inner mode with V16QI vector mode.
28931
28932 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28933
28934 PR target/52726
28935 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28936 "invalid %%t operand" in output_operand_lossage message.
28937
28938 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28939
28940 * config/s390/predicates.md (permute_pattern_operand): New
28941 predicate.
28942 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28943 operand for the permute pattern.
28944 ("*vec_perm<mode>"): New insn definition.
28945 ("bswap<mode>"): Generate the permute pattern operand in the
28946 expander and perform the operand reloads for pre arch13 level
28947 already.
28948 ("*bswap<mode>_emu"): Rename to ...
28949 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28950 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28951 Add the USE operand for the permute pattern.
28952 ("*vec_set_bswap_vec<mode>"): Likewise.
28953
28954 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28955
28956 PR c/89946
28957 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28958 and gcc_unreachable if it fails, just call tree_to_uhwi which
28959 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28960 Start warning message with a lower-case letter. Formatting fixes.
28961
28962 PR rtl-optimization/90026
28963 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28964 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28965 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28966 in cfglayout mode, use emit_barrier_after_bb.
28967
28968 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28969
28970 PR rtl-optimization/87763
28971 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28972 New Instruction.
28973
28974 2019-04-11 Tom de Vries <tdevries@suse.de>
28975
28976 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28977 max macro using statement expression.
28978
28979 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28980
28981 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28982 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28983 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28984 read_only_private_data_section using xcoff_private_rodata_section_name.
28985 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28986
28987 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28988
28989 PR target/90016
28990 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28991
28992 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28993
28994 PR rtl-optimization/89965
28995 * dce.c (sp_based_mem_offset): New function.
28996 (find_call_stack_args): Use sp_based_mem_offset.
28997
28998 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28999
29000 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29001
29002 2019-04-11 Richard Biener <rguenther@suse.de>
29003
29004 PR tree-optimization/90020
29005 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29006 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29007 * tree-ssa-pre.c (compute_avail): Use it to not put
29008 possibly trapping references after a call that might not
29009 return into EXP_GEN.
29010 * gcse.c (compute_hash_table_work): Do not elide
29011 marking a block containing a call if the call might not
29012 return.
29013
29014 2019-04-11 Richard Biener <rguenther@suse.de>
29015
29016 PR tree-optimization/90018
29017 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29018 Test both SLP and interleaving variants.
29019
29020 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29021
29022 * config/s390/8561.md: New file.
29023 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29024 Add arch13 cpu model.
29025 * config/s390/s390-opts.h (enum processor_type): Likewise.
29026 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29027 (s390_get_unit_mask): Likewise.
29028 (s390_is_fpd): Likewise.
29029 (s390_is_fxd): Likewise.
29030 * config/s390/s390.h (s390_tune_attr): Likewise.
29031 * config/s390/s390.md: Include arch13 pipeline description.
29032 * config/s390/s390.opt: Add arch13.
29033
29034 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29035
29036 PR rtl-optimization/87763
29037 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29038 New prototype.
29039 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29040 New function.
29041 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29042 New instruction.
29043 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29044 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29045 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29046 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29047
29048 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29049
29050 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29051 "Although" in -fipa-icf documentation.
29052
29053 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29054 of using multiple -g options.
29055
29056 2019-04-10 Martin Liska <mliska@suse.cz>
29057
29058 PR gcov-profile/89959
29059 * doc/gcov.texi: Make documentation of -x option
29060 more precise.
29061
29062 2019-04-10 Richard Biener <rguenther@suse.de>
29063
29064 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29065 member.
29066 (DR_GROUP_SAME_DR_STMT): Remove.
29067 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29068 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29069 replace with assert.
29070 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29071 (vect_record_grouped_load_vectors): Remove unreachable code.
29072
29073 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29074
29075 PR target/90016
29076 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29077 obsolete reference to N.
29078
29079 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29080
29081 PR middle-end/90025
29082 * expr.c (store_expr): Set properly size on the MEM passed to
29083 clear_storage.
29084
29085 PR c++/90010
29086 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29087 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29088 translation is needed, and when translation is needed, only append
29089 ... if the string length is hostsz or more bytes long. Avoid using
29090 strncpy or strcat.
29091
29092 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29093
29094 PR target/90024
29095 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29096 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29097 into three.
29098 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29099 differences directly.
29100 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29101
29102 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29103
29104 PR translation/90011
29105 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29106 from diagnostics.
29107 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29108 diagnostics.
29109 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29110 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29111 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29112 trailing space from -gsplit-dwarf diagnostics.
29113
29114 PR tree-optimization/89998
29115 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29116 instead of integer_type_node if possible, don't add ranges if return
29117 type is not compatible with int.
29118 * gimple-fold.c (gimple_fold_builtin_sprintf,
29119 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29120 integer_type_node.
29121
29122 2019-04-09 Martin Liska <mliska@suse.cz>
29123
29124 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29125 * doc/install.texi: Document the new config.
29126
29127 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29128
29129 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29130 use gimple_expr_type for load and store calls. Skip over the
29131 condition argument in a conditional internal function.
29132 Protect use of TREE_INT_CST_LOW.
29133
29134 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29135
29136 PR target/90015
29137 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29138 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29139 trailing period from it too.
29140
29141 2019-04-08 wu yuan <wuyuan5@huawei.com>
29142
29143 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29144 * config/aarch64/aarch64.md: Add "tsv110.md".
29145 * config/aarch64/tsv110.md: New file.
29146
29147 2019-04-08 Richard Biener <rguenther@suse.de>
29148
29149 PR tree-optimization/90006
29150 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29151 calls like lrint.
29152
29153 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29154
29155 PR target/83033
29156 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29157 construction.
29158 (fma_root_node): Likewise.
29159 (func_fma_steering): Likewise.
29160
29161 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29162
29163 PR rtl-optimization/89865
29164 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29165
29166 PR rtl-optimization/89865
29167 * config/i386/i386.md
29168 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29169 numbers not to clash with the additional operands[4].
29170 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29171 with extra register copy in the middle.
29172
29173 2019-04-08 Martin Liska <mliska@suse.cz>
29174
29175 PR gcov-profile/89961
29176 * doc/gcov.texi: Document data_file.
29177 * gcov.c (generate_results): Add data_info into JSON output.
29178
29179 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29180
29181 PR tree-optimization/89725
29182 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29183 loop's chrec as invariant symbol.
29184 * tree-chrec.h (chrec_contains_symbols): New parameter.
29185 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29186 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29187 function of loops not in DDR's loop_nest.
29188 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29189
29190 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29191
29192 PR target/89623
29193 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29194 Mask.
29195
29196 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29197
29198 PR target/89945
29199 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29200 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29201
29202 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29203
29204 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29205 targetm.fixed_condition_code_regs.
29206
29207 2019-04-05 Richard Biener <rguenther@suse.de>
29208
29209 PR debug/89892
29210 PR debug/89905
29211 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29212 debug bind stmts but reset them if they are not valid at the
29213 destination.
29214
29215 2019-04-05 Martin Liska <mliska@suse.cz>
29216
29217 PR translation/89936
29218 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29219 order to wrap keywords or arguments.
29220 * collect2.c (main): Likewise.
29221 (scan_prog_file): Likewise.
29222 (scan_libraries): Likewise.
29223 * common/config/riscv/riscv-common.c
29224 (riscv_subset_list::parsing_subset_version): Likewise.
29225 (riscv_subset_list::parse_std_ext): Likewise.
29226 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29227 Likewise.
29228 * config/arm/arm.c (arm_option_override): Likewise.
29229 * config/cris/cris.c (cris_print_operand): Likewise.
29230 * config/darwin-c.c (darwin_pragma_options): Likewise.
29231 (darwin_pragma_unused): Likewise.
29232 (darwin_pragma_ms_struct): Likewise.
29233 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29234 * config/i386/i386.c (print_reg): Likewise.
29235 (ix86_print_operand): Likewise.
29236 * config/i386/xm-djgpp.h: Likewise.
29237 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29238 * config/m32c/m32c.c (m32c_option_override): Likewise.
29239 * config/msp430/msp430.c (msp430_option_override): Likewise.
29240 * config/nds32/nds32.c (nds32_option_override): Likewise.
29241 * config/nvptx/mkoffload.c (main): Likewise.
29242 * config/rx/rx.c (rx_print_operand): Likewise.
29243 (valid_psw_flag): Likewise.
29244 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29245 (vms_pragma_nomember_alignment): Likewise.
29246 (vms_pragma_extern_model): Likewise.
29247 * lto-wrapper.c (compile_offload_image): Likewise.
29248 * omp-offload.c (oacc_parse_default_dims): Likewise.
29249 * symtab.c (symtab_node::verify_base): Likewise.
29250 * tlink.c (recompile_files): Likewise.
29251 (start_tweaking): Likewise.
29252 * tree-profile.c (parse_profile_filter): Likewise.
29253
29254 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29255
29256 PR tree-optimization/89956
29257 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29258 multiple negates of the same value.
29259
29260 2019-04-04 Martin Sebor <msebor@redhat.com>
29261
29262 PR middle-end/89957
29263 PR middle-end/89911
29264 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29265 have the same precision since the function crashes otherwise.
29266 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29267 has non-zero arguments.
29268
29269 2019-04-04 Martin Sebor <msebor@redhat.com>
29270
29271 PR middle-end/89934
29272 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29273 out if the number of arguments is less than expected.
29274
29275 2019-04-04 Jeff Law <law@redhat.com>
29276
29277 PR rtl-optimization/89399
29278 * ree.c (combine_set_extension): Use single_set rather than
29279 digging into PATTERN for items on the candidate list.
29280 (combine_reaching_defs): Likewise.
29281
29282 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29283
29284 PR rtl-optimization/46590
29285 * loop-invariant.c (find_defs): Move df_remove_problem and
29286 df_process_deferred_rescans to move_invariants.
29287 Move df_live_add_problem and df_live_set_all_dirty calls
29288 to move_invariants.
29289 (move_invariants): Likewise.
29290 (move_loop_invariants): Likewise, making the df_live calls
29291 conditional on -O. Remove the problem again if we added it
29292 locally.
29293
29294 2019-04-03 qing zhao <qing.zhao@oracle.com>
29295
29296 PR tree-optimization/89730
29297 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29298 -flive-patching=inline-only-static.
29299 (can_inline_edge_by_limits_p): Add the checking for
29300 -flive-patching=inline-only-static and grant always_inline
29301 even when -flive-patching=inline-only-static is specified.
29302
29303 2019-04-03 Jeff Law <law@redhat.com>
29304
29305 PR rtl-optimization/81025
29306 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29307
29308 2019-04-03 Richard Biener <rguenther@suse.de>
29309
29310 PR tree-optimization/84101
29311 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29312 regs.h for hard_regno_nregs.
29313 (cfun_returns): New helper.
29314 (vect_model_store_cost): When vectorizing a store to a decl
29315 we return and the function ABI returns in a multi-reg location
29316 account for the possible spilling that will happen.
29317
29318 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29319
29320 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29321 displacement addresses for vector mode operands.
29322
29323 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29324
29325 * config/arc/arc.c (GMASK_LEN): Define.
29326 (arc_restore_callee_saves): Restore first blink when
29327 !optimize_size.
29328
29329 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29330
29331 * doc/extend.texi: Add deprecated comment on sign-return-address
29332 function attribute and add mbranch-protection.
29333 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29334
29335 2019-04-03 Richard Biener <rguenther@suse.de>
29336
29337 PR lto/89896
29338 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29339 the all target phony.
29340
29341 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29342
29343 PR target/89902
29344 PR target/89903
29345 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29346 Return false for variable DImode shifts.
29347 (dimode_scalar_chain::compute_convert_gain): Do not handle
29348 register count operand in variable DImode shifts.
29349 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29350 count argument of a variable shift instruction to a vector register.
29351 (dimode_scalar_chain::convert_reg): Remove support to convert
29352 count argument of a variable shift instruction.
29353
29354 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29355
29356 PR rtl-optimization/84206
29357 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29358 iterating over loop headers.
29359
29360 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29361
29362 PR rtl-optimization/85876
29363 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29364 beyond the original fence.
29365
29366 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29367
29368 * config.gcc: Mark spu* targets as deprecated/obsolete.
29369
29370 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29371
29372 * config/s390/s390-builtin-types.def: New builtin function type
29373 definitions. Remove unused types.
29374 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29375 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29376 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29377 overloaded builtins.
29378 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29379 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29380 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29381 (vec_double, vec_signed, vec_unsigned): Define to use the new
29382 overloaded builtins.
29383 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29384 Remove expanders.
29385
29386 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29387
29388 * config/s390/s390-builtin-types.def: New builtin function type
29389 definitions.
29390 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29391 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29392 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29393 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29394 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29395 constant definitions.
29396 * config/s390/vecintrin.h (vec_search_string_cc)
29397 (vec_search_string_until_zero_cc): New builtin name definitions.
29398 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29399 expanders.
29400 ("vec_vstrs<mode>"): New insn definition.
29401
29402 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29403
29404 * config/s390/s390-builtin-types.def: Add new builtin function
29405 types.
29406 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29407 New overloaded builtins.
29408 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29409 s390_vsrd.
29410 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29411 (UNSPEC_VEC_SLDBYTE): ... this.
29412 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29413 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29414 definitions.
29415 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29416 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29417 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29418
29419 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29420
29421 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29422 New insn definition.
29423 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29424 * config/s390/vector.md (V_HW_HSD): ... here.
29425
29426 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29427
29428 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29429 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29430 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29431 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29432 New insn definitions.
29433
29434 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29435
29436 * config/s390/s390-builtin-types.def: Add new builtin function type.
29437 * config/s390/s390-builtins.def: Add overloaded builtin
29438 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29439 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29440 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29441 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29442 ("eltswap<mode>"): New expander.
29443 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29444 insn definitions.
29445
29446 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29447
29448 * config/s390/s390-builtin-types.def: Add new builtin function types.
29449 * config/s390/s390-builtins.def: Add overloaded builtin
29450 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29451 instructions.
29452 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29453 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29454 ("bswap<mode>"): New expander.
29455 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29456
29457 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29458
29459 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29460 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29461 vector builtin version number in __VEC__.
29462
29463 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29464
29465 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29466 iterators.
29467 (SFSI): New mode attribute.
29468 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29469 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29470 rename to ...
29471 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29472 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29473 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29474 ("floatsi<mode>2"): Add wcefb instruction.
29475
29476 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29477
29478 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29479 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29480 mode iterators.
29481 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29482 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29483 support 32 bit fp-int conversions. Rename to ...
29484 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29485 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29486 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29487 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29488 ... to these.
29489
29490 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29491
29492 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29493 if-then-else constructs if we can use the select instruction.
29494 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29495
29496 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29497
29498 * config/s390/s390.md ("*popcountdi_arch13_cc")
29499 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29500 definition.
29501 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29502 Append _z196 to make it ...
29503 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29504 ("popcounthi2_z196"): ... this.
29505 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29506 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29507
29508 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29509
29510 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29511 certain compares for arch13 in order to make use of the condition
29512 code result produced by the new instructions.
29513 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29514 nxrk, and nxgrk instruction patterns.
29515 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29516 (inv_no): Add new code iterator together with some attributes.
29517 ("*andc_split_<mode>"): Disable splitter for arch13.
29518 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29519 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29520 ("*<ANDOR:bitops_name>c<GPR:mode>")
29521 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29522 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29523 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29524 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29525
29526 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29527
29528 * common/config/s390/s390-common.c (processor_flags_table): New
29529 entry for arch13.
29530 * config.gcc: Support arch13 with the --with-arch= configure flag.
29531 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29532 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29533 * config/s390/s390.c (s390_get_sched_attrmask)
29534 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29535 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29536 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29537 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29538 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29539 definitions.
29540 * config/s390/s390.opt: Support arch13 as processor type in
29541 command line options.
29542
29543 2019-04-02 Martin Liska <mliska@suse.cz>
29544
29545 PR translation/89912
29546 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29547 Fix param description of graphite-max-arrays-per-scop.
29548
29549 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29550
29551 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29552 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29553 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29554
29555 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29556
29557 PR rtl-optimization/85412
29558 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29559 sel_sched_region_1, not after.
29560
29561 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29562
29563 PR rtl-optimization/86928
29564 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29565 compute_live if necessary.
29566 (sel_redirect_edge_and_branch): Likewise.
29567
29568 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29569
29570 PR rtl-optimization/89865
29571 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29572 register if it is a part of small class.
29573
29574 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29575
29576 PR rtl-optimization/87273
29577 * sel-sched-ir.c (merge_fences): Remove assert.
29578
29579 2019-04-01 Richard Biener <rguenther@suse.de>
29580
29581 PR tree-optimization/46590
29582 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29583 (dom_walker::m_reachability): Add in place of...
29584 (dom_walker::m_skip_unreachable_blocks): ...this.
29585 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29586 Move complex initialization ...
29587 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29588 lazily and initialize edge flags on each invocation.
29589 (dom_walker::bb_reachable): Use m_reachability.
29590
29591 2019-04-01 Martin Liska <mliska@suse.cz>
29592
29593 PR driver/89861
29594 * opt-suggestions.c (option_proposer::build_option_suggestions):
29595 Add variant without any argument in order to provide better
29596 hints.
29597
29598 2019-04-01 Richard Biener <rguenther@suse.de>
29599
29600 PR c/71598
29601 * gimple.c: Include langhooks.h.
29602 (gimple_get_alias_set): Treat enumeral types as the underlying
29603 integer type.
29604
29605 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29606 Eric Botcazou <ebotcazou@adacore.com>
29607
29608 PR rtl-optimization/89862
29609 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29610 that operates on the full registers for WORD_REGISTER_OPERATIONS
29611 architectures.
29612
29613 2019-03-29 Jim Wilson <jimw@sifive.com>
29614
29615 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29616 Clear MASK_RVC and then set if C subset supported.
29617
29618 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29619
29620 PR c/89872
29621 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29622 non-addressable complit into its initializer if it is volatile.
29623
29624 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29625
29626 * opts-common.c (integral_argument): Set errno properly in one case.
29627
29628 2019-03-29 Martin Liska <mliska@suse.cz>
29629
29630 * doc/invoke.texi: Remove -Wchkp from documentation.
29631
29632 2019-03-29 Martin Liska <mliska@suse.cz>
29633
29634 * dbgcnt.c (print_limit_reach): New function.
29635 (dbg_cnt): Use it.
29636
29637 2019-03-29 Martin Liska <mliska@suse.cz>
29638
29639 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29640 (dbg_cnt_process_opt): Parse first tokens aas
29641 dbg_cnt_process_single_pair is also using strtok.
29642
29643 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29644
29645 PR rtl-optimization/87485
29646 * function.c (expand_function_end): Move stack_protect_epilogue
29647 before loading of return value into hard register(s).
29648
29649 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29650
29651 PR middle-end/89621
29652 * tree-inline.h (struct copy_body_data): Add
29653 dont_remap_vla_if_no_change flag.
29654 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29655 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29656 and remap_type_2 returns false.
29657 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29658 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29659 only from where it is copied to nested contexts.
29660
29661 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29662
29663 PR target/89865
29664 * config/i386/i386.md (RMW operation with LEA peephole):
29665 Use LEAMODE mode attribute instead of SWI mode iterator for
29666 LEA pattern.
29667
29668 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29669
29670 PR target/89848
29671 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29672 Also process XEXP (src, 0) of a shift insn.
29673
29674 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29675
29676 PR middle-end/89725
29677 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29678 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29679
29680 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29681
29682 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29683 test.
29684 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29685 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29686 immediately after first one with df_analyze in between, but rather
29687 process all bbs, queueing ones that need second pass in a worklist,
29688 df_analyze, process queued debug insn changes and if second pass is
29689 needed, process bbs from worklist, df_analyze, process queued debug
29690 insns again.
29691
29692 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29693 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29694 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29695
29696 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29697
29698 PR c/79022
29699 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29700 definition.
29701
29702 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29703
29704 PR target/85667
29705 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29706 function for 32-bit MS_ABI.
29707 (function_value_ms_32): New function.
29708
29709 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29710
29711 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29712 (movdi): Call gen_movdi_symbol_save_scc.
29713 (gen_movdi_symbol_save_scc): New insn and split.
29714
29715 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29716
29717 PR rtl-optimization/89313
29718 * function.c (matching_constraint_num): New static function.
29719 (match_asm_constraints_1): Use it. Fixup white space and comment.
29720 Don't replace inputs with non-matching constraints which conflict
29721 with early clobber outputs.
29722
29723 2019-03-27 Jeff Law <law@redhat.com>
29724
29725 PR rtl-optimization/87761
29726 PR rtl-optimization/89826
29727 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29728 slightly later.
29729 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29730 note problem to get REG_DEAD/REG_UNUSED notes updated.
29731
29732 2019-03-27 Richard Biener <rguenther@suse.de>
29733
29734 PR tree-optimization/89463
29735 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29736 queue edges to remove.
29737 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29738 dead stmts. Delay edge removal until PHIs are removed to
29739 make debug-stmt creation not confused by seemingly degenerate
29740 PHIs.
29741
29742 2019-03-27 Alan Modra <amodra@gmail.com>
29743
29744 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29745 throughout file.
29746 * config/rs6000/darwin.h: Likewise.
29747 * config/rs6000/rs6000.c: Likewise.
29748
29749 2019-03-27 Alan Modra <amodra@gmail.com>
29750
29751 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29752 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29753
29754 2019-03-26 Andrew Waterman <andrew@sifive.com>
29755 Jim Wilson <jimw@sifive.com>
29756
29757 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29758 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29759 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29760 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29761 (generic_alu): Add auipc to type list.
29762 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29763 (riscv_microarchitecture): Declare.
29764 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29765 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29766 field.
29767 (riscv_microarchitecture): New.
29768 (sifive_7_tune_info): New.
29769 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29770 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29771 entries.
29772 (riscv_store_data_bypass_p): New.
29773 (riscv_option_override): Set riscv_microarchitecture from
29774 cpu->microarchitecture.
29775 * config/riscv/riscv.md: Include sifive-7.md.
29776 (type): Add auipc.
29777 (tune): New.
29778 (auipc<mode>): Change type to auipc.
29779 (restore_stack_nonlocal): New.
29780 * config/riscv/sifive-7.md: New.
29781 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29782
29783 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29784
29785 PR target/89827
29786 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29787 Also process XEXP (src, 0) of a shift insn.
29788
29789 2019-03-26 Richard Biener <rguenther@suse.de>
29790
29791 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29792 (copy_debug_stmt): Likewise.
29793 (expand_call_inline): Likewise.
29794 (copy_bb): Avoid redundant lookup & set of gimple_block.
29795 * gimple-low.c (lower_gimple_return): Likewise.
29796 (lower_builtin_setjmp): Likewise.
29797
29798 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29799
29800 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29801 is constant 0, turn into static const data member initialized to false.
29802 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29803 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29804
29805 2019-03-26 Jason Merrill <jason@redhat.com>
29806 Jakub Jelinek <jakub@redhat.com>
29807
29808 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29809 method.
29810 (mem_alloc_description::release_object_overhead): Fix comment typos.
29811 * hash-table.h (hash_table::~hash_table): Call
29812 release_instance_overhead only if m_entries is non-NULL, otherwise
29813 call unregister_descriptor.
29814
29815 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29816
29817 PR tree-optimization/81740
29818 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29819 In case of outer loop vectorization, check for backward dependence
29820 at the inner loop if outer loop dependence is reversed.
29821
29822 2019-03-26 Alan Modra <amodra@gmail.com>
29823
29824 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29825 rs6000_vector_mem init. Correct wI and wJ comment.
29826
29827 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29828
29829 PR rtl-optimization/88347
29830 PR rtl-optimization/88423
29831 * sched-deps.c (sched_analyze_insn): Take into account that for
29832 tablejumps the barrier appears after a label and a jump_table_data.
29833
29834 2019-03-25 Martin Sebor <msebor@redhat.com>
29835
29836 PR c/89812
29837 * c-common.c (check_user_alignment): Rename local. Correct maximum
29838 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29839 convert it to UHWI when it fits.
29840
29841 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29842
29843 PR debug/86964
29844 * dwarf2out.c (premark_used_variables): New function.
29845 (prune_unused_types_walk): Do not mark not premarked external
29846 variables.
29847 (prune_unused_types): Call premark_used_variables.
29848
29849 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29850
29851 PR rtl-optimization/89676
29852 * lra-constraints.c (curr_insn_transform): Do match reload for
29853 early clobbers when the match was successful only for different
29854 registers.
29855
29856 2019-03-25 Martin Sebor <msebor@redhat.com>
29857
29858 * doc/extend.texi (Common Type Attributes): Document vector_size.
29859 (Common Variable Attributes): Mention size constraint. Correct
29860 quoting and typos.
29861 (Vector Extensions): Use @dfn when defining bas type. Clarify
29862 base type and size constraints.
29863
29864 2019-03-25 Richard Biener <rguenther@suse.de>
29865
29866 PR tree-optimization/89789
29867 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29868 changes from non-undefined back to undefined.
29869
29870 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29871
29872 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29873 heap string and a gc string, but since this variable is unknown to
29874 ggc the gc string might get reused and corrupted. Fixed by always
29875 using a heap string.
29876
29877 2019-03-25 Richard Biener <rguenther@suse.de>
29878
29879 PR tree-optimization/89779
29880 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29881 to remove IV defs, delay actual removal.
29882 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29883 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29884 very end, properly also reset loop control IV information.
29885
29886 2019-03-25 Richard Biener <rguenther@suse.de>
29887
29888 PR tree-optimization/89802
29889 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29890 move EH data to folded stmt.
29891
29892 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29893
29894 * config/s390/s390-builtin-types.def: Remove few unused types and
29895 fix sort order for others.
29896
29897 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29898
29899 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29900 expected and found types with -mdebug during builtin matching.
29901
29902 2019-03-25 Richard Biener <rguenther@suse.de>
29903
29904 PR middle-end/89790
29905 * fold-const.c (operand_equal_p): Revert last change with
29906 updated comment.
29907
29908 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29909
29910 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29911 notes for the result of the __tls_get_addr calls.
29912 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29913
29914 2019-03-24 Jeff Law <law@redhat.com>
29915
29916 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29917
29918 PR rtl-optimization/87761
29919 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29920 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29921 as needed.
29922 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29923 rescans. Reprocess blocks as needed, calling df_analyze before
29924 reprocessing. Always call df_analyze before fixing up debug bind
29925 insns.
29926
29927 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29928
29929 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29930 big endian.
29931
29932 2019-03-22 Andrew Pinski <apinski@marvell.com>
29933
29934 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29935 attrribute for uxtw.
29936
29937 2019-03-26 Jeff Law <law@redhat.com>
29938
29939 PR rtl-optimization/87761
29940 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29941 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29942 (mips_split_move): Accept new INSN argument. Try to forward SRC
29943 into the next instruction.
29944 (mips_split_move_insn): Pass INSN through to mips_split_move.
29945
29946 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29947
29948 PR rtl-optimization/89676
29949 * lra-constraints.c (curr_insn_transform): Do match reload for
29950 early clobbers even if the match was successful.
29951
29952 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29953
29954 PR c++/87481
29955 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29956
29957 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29958
29959 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29960
29961 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29962
29963 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29964 <avx512>_fmsub_<mode>_mask3<round_name>,
29965 <avx512>_fnmadd_<mode>_mask3<round_name>,
29966 <avx512>_fnmsub_<mode>_mask3<round_name>,
29967 avx512f_vmfmadd_<mode>_mask3<round_name>,
29968 avx512f_vmfmsub_<mode>_mask3<round_name>,
29969 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29970 instead of register_operand and %v instead of v for match_operand 1.
29971 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29972 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29973 <round_nimm_predicate> instead of register_operand and %v instead of v
29974 for match_operand 1.
29975
29976 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29977 <avx512>_fmadd_<mode>_mask3<round_name>,
29978 <avx512>_fmsub_<mode>_mask<round_name>,
29979 <avx512>_fmsub_<mode>_mask3<round_name>,
29980 <avx512>_fnmadd_<mode>_mask<round_name>,
29981 <avx512>_fnmadd_<mode>_mask3<round_name>,
29982 <avx512>_fnmsub_<mode>_mask<round_name>,
29983 <avx512>_fnmsub_<mode>_mask3<round_name>,
29984 <avx512>_fmaddsub_<mode>_mask<round_name>,
29985 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29986 <avx512>_fmsubadd_<mode>_mask<round_name>,
29987 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29988 <round_nimm_predicate> instead of nonimmediate_operand.
29989 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29990 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29991 Use register_operand instead of <round_nimm_predicate> for the
29992 operand that needs to match output.
29993 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29994 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29995 Likewise. Formatting fixes.
29996
29997 PR target/89784
29998 * config/i386/i386.c (enum ix86_builtins): Remove
29999 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30000 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30001 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30002 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30003 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30004 __builtin_ia32_vfmsubss3_mask3): New builtins.
30005 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30006 avx512f_vmfmadd_<mode>_mask3<round_name>,
30007 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30008 *avx512f_vmfmsub_<mode>_mask<round_name>,
30009 avx512f_vmfmsub_<mode>_mask3<round_name>,
30010 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30011 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30012 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30013 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30014 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30015 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30016 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30017 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30018 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30019 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30020 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30021 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30022 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30023 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30024 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30025 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30026 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30027 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30028 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30029 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30030 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30031 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30032 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30033 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30034 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30035 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30036 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30037 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30038
30039 2019-03-21 Martin Sebor <msebor@redhat.com>
30040
30041 PR tree-optimization/89350
30042 * builtins.c (compute_objsize): Also ignore offsets whose upper
30043 bound is negative.
30044 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30045 (builtin_memref::builtin_memref): Initialize new member.
30046 Allow EXPR to be null.
30047 (builtin_memref::extend_offset_range): Replace local with a member.
30048 Avoid assuming pointer offsets are unsigned.
30049 (builtin_memref::set_base_and_offset): Determine base object
30050 before computing offset range.
30051 (builtin_access::builtin_access): Handle memset.
30052 (builtin_access::generic_overlap): Replace local with a member.
30053 (builtin_access::strcat_overlap): Same.
30054 (builtin_access::overlap): Same.
30055 (maybe_diag_overlap): Same.
30056 (maybe_diag_access_bounds): Same.
30057 (wrestrict_dom_walker::check_call): Handle memset.
30058 (check_bounds_or_overlap): Same.
30059
30060 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30061 Jakub Jelinek <jakub@redhat.com>
30062
30063 PR lto/89692
30064 * tree.c (fld_type_variant, fld_incomplete_type_of,
30065 fld_process_array_type): Call fld->pset.add and don't call
30066 add_tree_to_fld_list if it returns true.
30067 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30068 non-marked types from TYPE_NEXT_VARIANT list.
30069 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30070
30071 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30072
30073 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30074 to false, if true, don't alloc_entries during construction, but defer
30075 it to the first method that needs m_entries allocated.
30076 (hash_table::hash_table, hash_table::~hash_table,
30077 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30078 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30079 hash_table::clear_slot, hash_table::traverse_noresize,
30080 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30081 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30082 false.
30083 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30084 NO_INSERT instead of find_with_hash.
30085 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30086 hash_set::m_table): Add Lazy to template params of hash_table.
30087 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30088 * attribs.c (test_attribute_exclusions): Likewise.
30089 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30090 hash_set. Add tests for hash_set with Lazy = true.
30091
30092 2019-03-21 Richard Biener <rguenther@suse.de>
30093
30094 PR tree-optimization/89779
30095 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30096 checks with respect to released SSA names now having error_mark_node
30097 type.
30098 * fold-const.c (operand_equal_p): Likewise.
30099
30100 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30101
30102 PR target/89775
30103 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30104 available to ...
30105 (s390_optimize_register_info): Use global_not_special_regno_p to
30106 check for global regs.
30107
30108 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30109
30110 PR target/89752
30111 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30112 update this_alternative nor this_alternative_set.
30113
30114 2019-03-19 Jim Wilson <jimw@sifive.com>
30115
30116 PR target/89411
30117 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30118 align, size, offset. Use them to handle a BLKmode reference. Update
30119 comment.
30120 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30121
30122 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30123
30124 PR rtl-optimization/89768
30125 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30126 instead of GEN_INT.
30127 (unroll_loop_runtime_iterations): Likewise.
30128
30129 2019-03-19 Martin Sebor <msebor@redhat.com>
30130
30131 PR tree-optimization/89644
30132 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30133 rather than endptr as an indicator of nul-termination.
30134
30135 PR tree-optimization/89644
30136 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30137 arrays in determining sequence sizes in strncpy and stpncpy.
30138
30139 2019-03-19 Martin Liska <mliska@suse.cz>
30140
30141 PR middle-end/89737
30142 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30143 unlikely_edges if there's an edge that belongs to both these sets.
30144
30145 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30146
30147 PR target/89746
30148 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30149 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30150 go via a stack temporary.
30151
30152 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30153
30154 PR target/89378
30155 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30156 instead of gen_rtx_SUBREG.
30157 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30158
30159 2019-03-19 Richard Biener <rguenther@suse.de>
30160
30161 PR debug/88389
30162 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30163
30164 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30165
30166 PR lto/87809
30167 PR lto/89335
30168 * tree.c (free_lang_data_in_decl): Do not free context of C++
30169 destrutors.
30170
30171 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30172
30173 PR target/89506
30174 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30175 subs for the first alternative except when operands[3] is 1.
30176
30177 PR target/89752
30178 * gimplify.c (gimplify_asm_expr): For output argument with
30179 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30180 diagnose error.
30181
30182 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30183
30184 PR rtl-optimization/89753
30185 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30186 explicit unrolling factor even more robust.
30187
30188 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30189
30190 PR target/89726
30191 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30192 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30193 signed zeros, do another copysign after the compensation.
30194
30195 2019-03-18 Martin Sebor <msebor@redhat.com>
30196
30197 PR tree-optimization/89720
30198 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30199 more conservatively, the same as anti-range.
30200
30201 2019-03-18 Richard Biener <rguenther@suse.de>
30202
30203 PR middle-end/88945
30204 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30205 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30206 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30207 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30208
30209 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30210
30211 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30212 Extend queue to 1024 entries.
30213 Add "consumed" field.
30214 (gomp_print_output): Remove print_index parameter.
30215 Add final parameter.
30216 Change limit to unsigned.
30217 Use consumed field to implement circular buffer.
30218 Detect interrupted print in final pass.
30219 Flush output at the end.
30220 (run): Update gomp_print_output usage.
30221 (main): Initialize kernargs->output_data.consumed.
30222
30223 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30224
30225 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30226 calculation of the minimum number of scalar iterations for
30227 fully-predicated loops.
30228
30229 2019-03-18 Martin Jambor <mjambor@suse.cz>
30230
30231 PR tree-optimization/89546
30232 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30233 any propagation to its children took place.
30234
30235 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30236
30237 PR target/89627
30238 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30239 parameter, and make use of it.
30240 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30241
30242 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30243
30244 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30245 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30246 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30247 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30248 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30249 match what the ops is doing.
30250 (push_multi_fp_blink): Likewise.
30251 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30252 compiling for size and elf target.
30253 (arc_save_callee_enter): Adjust note to match what enter/leave
30254 operation does.
30255
30256 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30257
30258 * config/arc/arc.md (tst_movb): Fix constraint.
30259
30260 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30261
30262 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30263
30264 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30265
30266 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30267 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30268 reg_alloc_order references.
30269 (size_alloc_order): Define.
30270 (arc_adjust_reg_alloc_order): New function.
30271 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30272 order.
30273 (ADJUST_REG_ALLOC_ORDER): Define.
30274 (HONOR_REG_ALLOC_ORDER): Likewise.
30275
30276 2019-03-18 Richard Biener <rguenther@suse.de>
30277
30278 PR target/87561
30279 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30280 loads and stores a bit more.
30281
30282 2019-03-18 Richard Biener <rguenther@suse.de>
30283
30284 PR target/87561
30285 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30286 load pessimization to stores as well.
30287
30288 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30289
30290 PR middle-end/86979
30291 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30292 successor, use NULL as its av set.
30293
30294 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30295
30296 PR rtl-optimization/89721
30297 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30298
30299 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30300
30301 PR target/87532
30302 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30303 When handling vec_extract, use modular arithmetic to allow
30304 constant selectors greater than vector length.
30305 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30306 V1TImode vectors to have constant selector values greater than 0.
30307 Use modular arithmetic to compute vector index.
30308 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30309 index for in-memory vectors. Correct code generation for
30310 in-register vectors.
30311 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30312 compute index.
30313
30314 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30315
30316 PR c++/88534
30317 PR c++/88537
30318 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30319 VAR_DECL args.
30320
30321 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30322
30323 PR c++/89709
30324 * tree.c (inchash::add_expr): Strip any location wrappers.
30325 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30326 after hash verification.
30327
30328 PR debug/89704
30329 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30330 SIGN_EXTEND and ZERO_EXTEND.
30331
30332 2019-03-14 Jason Merrill <jason@redhat.com>
30333 Jakub Jelinek <jakub@redhat.com>
30334
30335 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30336 than if is_empty (*slot).
30337 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30338 existing elt and for elt removal.
30339 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30340 of already removed elt.
30341
30342 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30343
30344 PR target/89650
30345 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30346 REG_EH_REGION note.
30347
30348 2019-03-14 Martin Liska <mliska@suse.cz>
30349
30350 PR other/89712
30351 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30352
30353 2019-03-14 Richard Biener <rguenther@suse.de>
30354
30355 PR target/89711
30356 * config/i386/i386.c (make_resolver_func): Properly set
30357 DECL_CONTEXT on the RESULT_DECL.
30358 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30359
30360 2019-03-14 Richard Biener <rguenther@suse.de>
30361
30362 * gimple-pretty-print.c: Include cfgloop.h.
30363 (dump_gimple_phi): Adjust.
30364 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30365 (pp_cfg_jump): Adjust.
30366 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30367 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30368 (lower_phi_internal_fn): Remove.
30369 (verify_gimple_call): Remove IFN_PHI special-casing.
30370 (dump_function_to_file): Dump IL state.
30371 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30372 done to deal with PHI nodes being present in non-SSA state.
30373
30374 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30375
30376 PR ipa/89684
30377 * multiple_target.c (create_dispatcher_calls): Change
30378 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30379 In the node->iterate_referring loop, push *ref rather than ref, call
30380 ref->remove_reference () and always pass 0 to iterate_referring.
30381
30382 PR rtl-optimization/89679
30383 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30384 would contain a paradoxical SUBREG.
30385
30386 2019-03-14 Richard Biener <rguenther@suse.de>
30387
30388 PR tree-optimization/89710
30389 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30390 safe_dyn_cast.
30391
30392 2019-03-14 Martin Liska <mliska@suse.cz>
30393
30394 * coverage.c (coverage_begin_function): Stream also
30395 end_column.
30396 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30397 documentation about function declaration location.
30398 * gcov-dump.c (tag_function): Print whole range
30399 of function declaration.
30400 * gcov.c (struct function_info): Add end_column field.
30401 (function_info::function_info): Initialize it.
30402 (output_json_intermediate_file): Output {start,end}_column
30403 fields.
30404 (read_graph_file): Read end_column.
30405
30406 2019-03-14 Richard Biener <rguenther@suse.de>
30407
30408 PR middle-end/89698
30409 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30410 that the access types are similar.
30411
30412 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30413
30414 PR tree-optimization/89703
30415 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30416 aren't compatible also with builtin_decl_explicit. Check pure
30417 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30418 and BUILT_IN_STPNCPY{,_CHK}.
30419
30420 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30421
30422 PR target/89523
30423 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30424 addr32 prefix to VSIB address for X32.
30425 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30426 "%M2" to opcode.
30427 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30428 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30429 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30430 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30431 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30432 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30433 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30434 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30435 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30436 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30437 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30438 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30439 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30440 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30441 (*avx512f_scatterdi<mode>): Likewise.
30442
30443 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30444
30445 PR target/85860
30446 * lra-constraints.c (inherit_in_ebb): Update
30447 potential_reload_hard_regs along with live_hard_regs.
30448
30449 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30450
30451 PR debug/89498
30452 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30453 DWARF_OFFSET_SIZE.
30454 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30455
30456 2019-03-13 Martin Sebor <msebor@redhat.com>
30457
30458 PR tree-optimization/89662
30459 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30460 has a size.
30461
30462 2019-03-13 Richard Biener <rguenther@suse.de>
30463
30464 PR middle-end/89677
30465 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30466 throw FP expressions at tree-affine.
30467
30468 2019-03-14 Richard Biener <rguenther@suse.de>
30469
30470 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30471 dump negative integer constants using _Literal (type) -num.
30472
30473 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30474
30475 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30476 nonlocal_value member.
30477
30478 PR middle-end/88588
30479 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30480 (ipa_simd_modify_function_body): Handle PHIs.
30481
30482 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30483
30484 * config/s390/s390.c (s390_option_override_internal): Use more
30485 aggressive inlining parameters.
30486
30487 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30488
30489 * config/s390/3906.md: New file.
30490 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30491 (LONGRUNNING_THRESHOLD): Remove.
30492 (MAX_SCHED_MIX_SCORE): Decrease.
30493 (MAX_SCHED_MIX_DISTANCE): Decrease.
30494 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30495 (struct s390_sched_state): New struct to hold scheduling state.
30496 (S390_SCHED_STATE_NORMAL): Remove.
30497 (S390_SCHED_STATE_CRACKED): Remove.
30498 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30499 (s390_get_sched_attrmask): Use new attribute.
30500 (s390_get_unit_mask): Use new units.
30501 (s390_is_fpd): New function.
30502 (s390_is_fxd): New function.
30503 (s390_is_longrunning): New function.
30504 (s390_sched_score): Use new functions.
30505 (s390_sched_reorder): Likewise.
30506 (s390_sched_variable_issue): Rework and use new functions.
30507 (s390_sched_init): Use new functions.
30508 * config/s390/s390.h (s390_tune_attr): Add z14.
30509 * config/s390/s390.md: Add z14.
30510
30511 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30512
30513 * config/s390/2964.md: Update pipeline description.
30514 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30515 (LONGRUNNING_THRESHOLD): Remove.
30516 (LATENCY_FACTOR): Remove.
30517 (s390_get_unit_mask): Add unit.
30518 (s390_sched_score): Use fxd/fpd.
30519 (s390_sched_variable_issue): Use fxd/fpd.
30520
30521 2019-03-12 Martin Liska <mliska@suse.cz>
30522
30523 * config/i386/i386.c: Reword an error message.
30524
30525 2019-03-12 Martin Jambor <mjambor@suse.cz>
30526
30527 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30528 terminate with newline.
30529
30530 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30531
30532 PR target/52726
30533 * config/s390/s390.md (tabort): Use %wd instead of
30534 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30535 letters and periods.
30536 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30537 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30538 's with %< and %>.
30539
30540 PR middle-end/89663
30541 * builtins.c (expand_builtin_int_roundingfn,
30542 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30543 gcc_unreachable if validate_arglist fails.
30544
30545 2019-03-12 Richard Biener <rguenther@suse.de>
30546
30547 PR tree-optimization/89664
30548 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30549 free the occurance tree after the early out.
30550
30551 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30552
30553 PR middle-end/89655
30554 PR bootstrap/89656
30555 * vr-values.c (vr_values::update_value_range): If
30556 old_vr->varying_p (), don't update it, make new_vr also VARYING
30557 and return false.
30558
30559 2019-03-11 Martin Liska <mliska@suse.cz>
30560
30561 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30562 Fix double string quoting.
30563
30564 2019-03-11 Martin Liska <mliska@suse.cz>
30565
30566 * collect-utils.c (collect_wait): Wrap apostrophes
30567 in gcc internal format with %'.
30568 * collect2.c (main): Likewise.
30569 (scan_prog_file): Likewise.
30570 (scan_libraries): Likewise.
30571 * config/i386/i386.c (ix86_expand_call): Likewise.
30572 (ix86_handle_interrupt_attribute): Likewise.
30573 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30574 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30575 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30576 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30577 * symtab.c (symtab_node::verify_base): Likewise.
30578 * tree-cfg.c (verify_gimple_label): Likewise.
30579 * tree.c (verify_type_variant): Likewise.
30580
30581 2019-03-11 Martin Liska <mliska@suse.cz>
30582
30583 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30584 in a string format message and fix GNU coding style.
30585 (expand_builtin_set_thread_pointer): Likewise.
30586 * common/config/aarch64/aarch64-common.c
30587 (aarch64_rewrite_selected_cpu): Likewise.
30588 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30589 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30590 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30591 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30592 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30593 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30594 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30595 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30596 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30597 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30598 Likewise.
30599 * common/config/riscv/riscv-common.c
30600 (riscv_subset_list::parsing_subset_version): Likewise.
30601 (riscv_subset_list::parse_std_ext): Likewise.
30602 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30603 (riscv_subset_list::parse): Likewise.
30604 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30605 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30606 (aarch64_override_options_internal): Likewise.
30607 (aarch64_validate_mcpu): Likewise.
30608 (aarch64_validate_march): Likewise.
30609 (aarch64_validate_mtune): Likewise.
30610 (aarch64_override_options): Likewise.
30611 * config/alpha/alpha.c (alpha_option_override): Likewise.
30612 * config/arc/arc.c (arc_init): Likewise.
30613 (parse_mrgf_banked_regs_option): Likewise.
30614 (arc_override_options): Likewise.
30615 (arc_expand_builtin_aligned): Likewise.
30616 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30617 (arm_expand_builtin): Likewise.
30618 * config/arm/arm.c (arm_option_check_internal): Likewise.
30619 (arm_configure_build_target): Likewise.
30620 (arm_option_override): Likewise.
30621 (arm_options_perform_arch_sanity_checks): Likewise.
30622 (arm_handle_cmse_nonsecure_entry): Likewise.
30623 (arm_handle_cmse_nonsecure_call): Likewise.
30624 (arm_tls_referenced_p): Likewise.
30625 (thumb1_expand_prologue): Likewise.
30626 * config/avr/avr.c (avr_option_override): Likewise.
30627 * config/bfin/bfin.c (bfin_option_override): Likewise.
30628 * config/c6x/c6x.c (c6x_option_override): Likewise.
30629 * config/cr16/cr16.c (cr16_override_options): Likewise.
30630 * config/cris/cris.c (cris_option_override): Likewise.
30631 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30632 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30633 * config/darwin.c (darwin_override_options): Likewise.
30634 * config/frv/frv.c (frv_expand_builtin): Likewise.
30635 * config/h8300/h8300.c (h8300_option_override): Likewise.
30636 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30637 (ix86_option_override_internal): Likewise.
30638 (warn_once_call_ms2sysv_xlogues): Likewise.
30639 (ix86_expand_prologue): Likewise.
30640 (split_stack_prologue_scratch_regno): Likewise.
30641 (ix86_warn_parameter_passing_abi): Likewise.
30642 * config/ia64/ia64.c (fix_range): Likewise.
30643 * config/m68k/m68k.c (m68k_option_override): Likewise.
30644 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30645 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30646 (mips_set_compression_mode): Likewise.
30647 * config/mmix/mmix.c (mmix_option_override): Likewise.
30648 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30649 * config/msp430/msp430.c (msp430_option_override): Likewise.
30650 * config/nds32/nds32.c (nds32_option_override): Likewise.
30651 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30652 (nios2_option_override): Likewise.
30653 (nios2_expand_custom_builtin): Likewise.
30654 * config/nvptx/mkoffload.c (main): Likewise.
30655 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30656 * config/pa/pa.c (fix_range): Likewise.
30657 (pa_option_override): Likewise.
30658 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30659 (riscv_option_override): Likewise.
30660 * config/rl78/rl78.c (rl78_option_override): Likewise.
30661 * config/rs6000/aix61.h: Likewise.
30662 * config/rs6000/aix71.h: Likewise.
30663 * config/rs6000/aix72.h: Likewise.
30664 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30665 * config/rs6000/freebsd64.h: Likewise.
30666 * config/rs6000/linux64.h: Likewise.
30667 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30668 (rs6000_expand_zeroop_builtin): Likewise.
30669 (rs6000_expand_mtfsb_builtin): Likewise.
30670 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30671 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30672 (rs6000_invalid_builtin): Likewise.
30673 (rs6000_expand_split_stack_prologue): Likewise.
30674 * config/rs6000/rtems.h: Likewise.
30675 * config/rx/rx.c (valid_psw_flag): Likewise.
30676 (rx_expand_builtin): Likewise.
30677 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30678 * config/s390/s390.c (s390_expand_builtin): Likewise.
30679 (s390_function_profiler): Likewise.
30680 (s390_option_override_internal): Likewise.
30681 (s390_option_override): Likewise.
30682 * config/sh/sh.c (sh_option_override): Likewise.
30683 (sh_builtin_saveregs): Likewise.
30684 (sh_fix_range): Likewise.
30685 * config/sh/vxworks.h: Likewise.
30686 * config/sparc/sparc.c (sparc_option_override): Likewise.
30687 * config/spu/spu.c (spu_option_override): Likewise.
30688 (fix_range): Likewise.
30689 * config/visium/visium.c (visium_option_override): Likewise.
30690 (visium_handle_interrupt_attr): Likewise.
30691 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30692 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30693 (dbg_cnt_process_opt): Likewise.
30694 * dwarf2out.c (output_dwarf_version): Likewise.
30695 * except.c (expand_eh_return): Likewise.
30696 * gcc.c (defined): Likewise.
30697 (driver_handle_option): Likewise.
30698 (process_command): Likewise.
30699 (compare_files): Likewise.
30700 (driver::prepare_infiles): Likewise.
30701 (driver::do_spec_on_infiles): Likewise.
30702 (driver::maybe_run_linker): Likewise.
30703 * omp-offload.c (oacc_parse_default_dims): Likewise.
30704 * opts-global.c (handle_common_deferred_options): Likewise.
30705 * opts.c (parse_sanitizer_options): Likewise.
30706 (common_handle_option): Likewise.
30707 (enable_warning_as_error): Likewise.
30708 * passes.c (enable_disable_pass): Likewise.
30709 * plugin.c (parse_plugin_arg_opt): Likewise.
30710 (default_plugin_dir_name): Likewise.
30711 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30712 (default_pch_valid_p): Likewise.
30713 * toplev.c (init_asm_output): Likewise.
30714 (process_options): Likewise.
30715 (toplev::run_self_tests): Likewise.
30716 * tree-cfg.c (verify_gimple_call): Likewise.
30717 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30718 (tree_inlinable_function_p): Likewise.
30719 * var-tracking.c (vt_find_locations): Likewise.
30720
30721 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30722
30723 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30724 only on the else branch.
30725
30726 2019-03-11 Martin Liska <mliska@suse.cz>
30727
30728 * gcov.c (output_intermediate_json_line): Print function
30729 name of each line.
30730 (output_json_intermediate_file): Add new argument.
30731 * doc/gcov.texi: Document the change.
30732
30733 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30734
30735 PR rtl-optimization/89588
30736 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30737 explicit unrolling factor more robust.
30738
30739 2019-03-11 Richard Biener <rguenther@suse.de>
30740
30741 PR tree-optimization/89649
30742 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30743 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30744 on the prolog and epilog loops.
30745 (vect_loop_versioning): Return copy of loop.
30746 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30747 on the non-vectorized version of the loop.
30748
30749 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30750
30751 PR target/68924
30752 * config/i386/sse.md (*vec_extractv2di_0_sse):
30753 Add (=r,x) alternative and corresponding splitter.
30754
30755 2019-03-10 Martin Jambor <mjambor@suse.cz>
30756
30757 PR tree-optimization/85762
30758 PR tree-optimization/87008
30759 PR tree-optimization/85459
30760 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30761 it points to if there is a type changing MEM_REF. Adjust all callers.
30762 (build_accesses_from_assign): Disable total scalarization if
30763 contains_vce_or_bfcref_p returns true through the new parameter, for
30764 both rhs and lhs.
30765
30766 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30767
30768 PR c/88568
30769 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30770 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30771
30772 PR target/79645
30773 * common.opt (fdiagnostics-show-labels,
30774 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30775 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30776 gas-locview-support, ginline-points, ginternal-reset-location-views):
30777 Terminate description text with a dot.
30778 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30779 * config/mcore/mcore.opt (m210, m340): Likewise.
30780 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30781 mnops=): Start description text with a capital letter.
30782 * config/arc/arc.opt (msize-level=): Likewise.
30783 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30784 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30785 mnewlib): Likewise.
30786 * config/ft32/ft32.opt (msim): Likewise.
30787 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30788 (mnodiv, mnopm): Terminate description text with a dot.
30789 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30790 a colon.
30791 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30792 Likewise.
30793 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30794 text.
30795
30796 PR rtl-optimization/89634
30797 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30798 are modified in BB_END (e->src) instruction.
30799
30800 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30801
30802 PR target/79926
30803 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30804 messages more amenable to translation, and improve wording.
30805
30806 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30807
30808 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30809 ud- and du-chains between phases.
30810
30811 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30812
30813 PR debug/89631
30814 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30815 instead of POLY_INT_CST.
30816
30817 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30818
30819 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30820 requirement.
30821
30822 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30823
30824 PR target/68924
30825 PR target/78782
30826 PR target/87558
30827 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30828 (_mm_storeu_si64): Ditto.
30829
30830 2019-03-08 Martin Liska <mliska@suse.cz>
30831
30832 PR target/86952
30833 * config/i386/i386.c (ix86_option_override_internal): Disable
30834 jump tables when retpolines are used.
30835
30836 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30837
30838 PR go/63560
30839 * ipa-split.c (execute_split_functions): Do not split
30840 'noinline' or 'section' function.
30841
30842 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30843
30844 PR target/79846
30845 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30846 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30847 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30848
30849 PR ipa/80000
30850 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30851 from diagnostics. Formatting fixes.
30852
30853 PR target/85665
30854 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30855 warn_odr diagnostics.
30856
30857 PR other/80058
30858 * lra-constraints.c (process_alt_operands): Avoid one space before
30859 " at the end of line and another after " on another line in a string
30860 literal.
30861 * attribs.c (handle_dll_attribute): Likewise.
30862 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30863
30864 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30865 warning_at or inform messages in G_() if there is no ?:.
30866
30867 PR tree-optimization/89550
30868 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30869 returned true. Formatting fixes.
30870 (expand_builtin_strnlen): Formatting fixes.
30871 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30872 if warning_at returned true.
30873 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30874
30875 2019-03-08 Richard Biener <rguenther@suse.de>
30876
30877 PR middle-end/89578
30878 * cfgloop.h (struct loop): Add owned_clique field.
30879 * cfgloopmanip.c (copy_loop_info): Copy it.
30880 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30881 cliques.
30882 * tree-inline.c (copy_loops): Remap owned_clique.
30883 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30884 * lto-streamer-out.c (output_cfg): Likewise.
30885
30886 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30887
30888 PR target/80190
30889 * config/darwin.c: Include intl.h.
30890 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30891 composing the message out of two separate parts.
30892
30893 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30894
30895 PR target/80003
30896 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30897 doesn't start with a capital letter and doesn't end with a dot.
30898 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30899 with a capital letter.
30900 (ix86_mangle_function_version_assembler_name): Likewise.
30901 (ix86_generate_version_dispatcher_body): Likewise.
30902 (fold_builtin_cpu): Likewise.
30903 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30904 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30905 translators, wrap full type name in %qs.
30906
30907 PR translation/79999
30908 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30909 depend clause with source (or sink) modifier.
30910 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30911
30912 PR target/89602
30913 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30914 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30915 (avx512f_load<mode>_mask): New define_expand.
30916 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30917 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30918 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30919 __builtin_ia32_movess_mask): New builtins.
30920 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30921 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30922 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30923 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30924
30925 2019-03-07 Martin Jambor <mjambor@suse.cz>
30926
30927 PR lto/87525
30928 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30929 for extern inline functions.
30930
30931 2019-03-07 Martin Jambor <mjambor@suse.cz>
30932
30933 PR ipa/88235
30934 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30935 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30936 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30937 have multiple callees. At the end check if declarations match as
30938 opposed to cgraph_nodes.
30939
30940 2019-03-07 Martin Liska <mliska@suse.cz>
30941
30942 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30943 which is equivalent to searching for this in clones chain.
30944 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30945 names with a neighbour and special case first node in a chain.
30946
30947 2019-01-25 Jason Merrill <jason@redhat.com>
30948
30949 PR c++/80916 - spurious "static but not defined" warning.
30950 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30951 for an internal symbol with DECL_EXTERNAL.
30952
30953 2019-04-07 Richard Biener <rguenther@suse.de>
30954
30955 PR middle-end/89618
30956 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30957 * tree-inline.c (copy_loops): Simplify.
30958
30959 2019-03-07 Martin Liska <mliska@suse.cz>
30960
30961 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30962
30963 2019-03-07 Richard Biener <rguenther@suse.de>
30964
30965 PR tree-optimization/89595
30966 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30967 stmt iterator as reference, take boolean output parameter to
30968 indicate whether the stmt was removed and thus the iterator
30969 already advanced.
30970 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30971 stmts created by folding.
30972
30973 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30974
30975 PR c++/89585
30976 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30977 at toplevel.
30978
30979 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30980
30981 PR rtl-optimization/88845
30982 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30983 LRA.
30984 * lra.c (remove_scratches_1): New function.
30985 (remove_scratches): Use it.
30986 (lra_emit_move): Likewise.
30987
30988 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30989
30990 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30991 unaligned_access variable.
30992 * config/arc/arc.c (arc_override_options): Set unaligned access
30993 default on for HS CPUs.
30994 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30995
30996 2019-03-06 Martin Liska <mliska@suse.cz>
30997
30998 PR gcov-profile/89577
30999 * doc/gcov.texi: Prefer to use --coverage.
31000 * doc/sourcebuild.texi: Likewise.
31001
31002 2019-03-02 Jason Merrill <jason@redhat.com>
31003
31004 PR c++/86485 - -Wmaybe-unused with empty class ?:
31005 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31006
31007 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31008
31009 PR target/89587
31010 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31011 if_multiarch.
31012
31013 PR middle-end/89590
31014 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31015 exactly one argument.
31016
31017 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31018 Richard Sandiford <richard.sandiford@arm.com>
31019
31020 PR tree-optimization/89570
31021 * match.pd (vec_cond into cond_op simplification): Don't use
31022 get_conditional_internal_fn, use as_internal_fn (cond_op).
31023
31024 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31025
31026 PR target/89222
31027 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31028 to decide when to split off a non-zero offset from a symbol.
31029 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31030 in function symbols.
31031
31032 2019-03-05 Richard Biener <rguenther@suse.de>
31033
31034 PR tree-optimization/89594
31035 * tree-if-conv.c (pass_if_conversion::execute): Handle
31036 case where .LOOP_VECTORIZED_FUNCTION was removed.
31037
31038 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31039
31040 PR bootstrap/89560
31041 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31042 instead alloca it only when needed with the needed size.
31043
31044 PR tree-optimization/89570
31045 * match.pd (vec_cond into cond_op simplification): Guard with
31046 vectorized_internal_fn_supported_p test and #if GIMPLE.
31047
31048 PR tree-optimization/89566
31049 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31050 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31051 Punt if get_user_idx_format succeeds, but idx_format argument is
31052 not provided or doesn't have pointer type, or if idx_args is above
31053 number of provided arguments.
31054
31055 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31056
31057 PR tree-optimization/89437
31058 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31059
31060 2019-03-04 Richard Biener <rguenther@suse.de>
31061
31062 PR middle-end/89572
31063 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31064 safe_dyn_cast.
31065
31066 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31067
31068 PR tree-optimization/89487
31069 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31070 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31071 (distribute_loop): Don't do runtime alias check if there is non-
31072 addressable data reference.
31073 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31074 is a register variable.
31075
31076 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31077
31078 PR target/89506
31079 * config/arm/arm.md (cmpsi2_addneg): Use
31080 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31081 If operands[2] is 0 or INT_MIN, force use of subs.
31082 (*compare_scc splitter): Use gen_int_mode.
31083 (*negscc): Likewise.
31084 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31085
31086 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31087 Monk Chiang <sh.chiang04@gmail.com>
31088
31089 * common/config/riscv/riscv-common.c: Include sstream.
31090 (riscv_subset_list::to_string): New.
31091 (riscv_arch_str): Likewise.
31092 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31093 * config.in: Regen.
31094 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31095 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31096 (riscv_emit_attribute): New.
31097 (riscv_file_start): Emit attribute if needed.
31098 (riscv_option_override): Init riscv_emit_attribute_p.
31099 * config/riscv/riscv.opt (mriscv-attribute): New option.
31100 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31101 * configure: Regen.
31102 * doc/install.texi: Document --with-riscv-attribute.
31103 * doc/invoke.texi: Document -mriscv-attribute.
31104
31105 * common/config/riscv/riscv-common.c:
31106 Include config/riscv/riscv-protos.h.
31107 (INCLUDE_STRING): Defined.
31108 (RISCV_DONT_CARE_VERSION): Defined.
31109 (riscv_subset_t): Declare.
31110 (riscv_subset_t::riscv_subset_t): New.
31111 (riscv_subset_list): Declare.
31112 (riscv_subset_list::riscv_subset_list): New.
31113 (riscv_subset_list::~riscv_subset_list): Likewise.
31114 (riscv_subset_list::parsing_subset_version): Likewise.
31115 (riscv_subset_list::parse_std_ext): Likewise.
31116 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31117 (riscv_subset_list::add): Likewise.
31118 (riscv_subset_list::lookup): Likewise.
31119 (riscv_subset_list::xlen): Likewise.
31120 (riscv_subset_list::parse): Likewise.
31121 (riscv_supported_std_ext): Likewise.
31122 (current_subset_list): Likewise.
31123 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31124 parse.
31125
31126 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31127
31128 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31129 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31130 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31131
31132 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31133
31134 PR rtl-optimization/85899
31135 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31136 fallthru edges leading to the exit block.
31137
31138 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31139
31140 PR target/89517
31141 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31142 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31143
31144 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31145
31146 PR tree-optimization/89535
31147 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31148 for each operand. Calculate the fallback choice for mask operands
31149 and pass it to vect_get_vec_def_for_operand.
31150
31151 2019-03-01 Richard Biener <rguenther@suse.de>
31152
31153 PR middle-end/89541
31154 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31155 get virtual operands.
31156 (get_expr_operands): Handle CONST_DECL like other decls.
31157
31158 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31159
31160 PR middle-end/89503
31161 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31162 on DECL_P and EXPR_P.
31163
31164 2019-03-01 Richard Biener <rguenther@suse.de>
31165
31166 PR middle-end/89497
31167 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31168 argument, defaulted to zero.
31169 * passes.c (execute_function_todo): Pass down SSA update flags
31170 to cleanup_tree_cfg.
31171 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31172 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31173 form if requested.
31174 (cleanup_tree_cfg): Get and pass down SSA update flags.
31175
31176 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31177
31178 PR bootstrap/89539
31179 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31180 early_lto_debug argument.
31181
31182 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31183
31184 PR tree-optimization/89536
31185 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31186 only whether bit #0 of the value is 0 instead of the entire value.
31187
31188 2019-02-28 Marek Polacek <polacek@redhat.com>
31189
31190 PR c++/87068 - missing diagnostic with fallthrough statement.
31191 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31192 at the end of a seq, save its location to walk_stmt_info.
31193 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31194 a switch.
31195
31196 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31197
31198 PR lto/88585
31199 * tree.c (find_atomic_core_type): Move ahead in file.
31200 (check_base_type): Correctly compare alignments of atomic types.
31201
31202 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31203
31204 PR target/89455
31205 * config/i386/i386.c (get_builtin_code_for_version): Identify
31206 Westmere from PCLMUL, instead of AES.
31207
31208 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31209
31210 PR target/89434
31211 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31212 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31213 -UINTVAL (...).
31214
31215 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31216
31217 PR target/88530
31218 * config/aarch64/aarch64-option-extensions.def: Document it.
31219 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31220 if empty hwcaps.
31221
31222 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31223
31224 PR c/89520
31225 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31226 builtins if they don't have a single scalar floating point argument.
31227 Formatting fixes.
31228
31229 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31230
31231 PR rtl-optimization/89490
31232 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31233 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31234 block section is not mergeable.
31235
31236 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31237
31238 PR target/70341
31239 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31240 old define_insn to ...
31241 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31242 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31243 Rename old define_insn to ...
31244 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31245 (thumb2_casesi_internal_pic): New define_expand. Rename old
31246 define_insn to ...
31247 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31248 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31249 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31250
31251 2019-02-27 Richard Biener <rguenther@suse.de>
31252
31253 PR debug/88878
31254 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31255
31256 2019-02-27 Richard Biener <rguenther@suse.de>
31257
31258 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31259 building.
31260
31261 2019-02-27 Richard Biener <rguenther@suse.de>
31262
31263 PR debug/88878
31264 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31265 parameter, prefix section name with .gnu.debuglto_ if true.
31266 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31267 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31268
31269 2019-02-27 Richard Biener <rguenther@suse.de>
31270
31271 PR debug/89514
31272 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31273 rather than on use_debug_types, doing what output_die does.
31274 (value_format): Likewise.
31275
31276 2019-02-27 Martin Jambor <mjambor@suse.cz>
31277 Martin Sebor <msebor@redhat.com>
31278
31279 * doc/invoke.texi (Warning Options): Reword description of
31280 -Wno-absolute-value.
31281
31282 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31283
31284 PR tree-optimization/89280
31285 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31286 builtin_setjmp_setup_bb): New functions.
31287 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31288 When visiting __builtin_setjmp_setup block, queue in special
31289 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31290 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31291 from visited after the loop if they don't have any visited successor
31292 blocks.
31293
31294 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31295
31296 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31297 New function.
31298 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31299
31300 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31301
31302 PR c++/89507
31303 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31304 with types other than sizetype/ssizetype.
31305
31306 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31307
31308 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31309 (enum sparc_processor_type): ...this.
31310 (enum sparc_code_model_type): New enumeration type.
31311 (enum sparc_memory_model_type): Tweak comments.
31312 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31313 (mtune): Likewise.
31314 (mcmodel): Use sparc_code_model enumeration and variable.
31315 (sparc_code_model): New enumeration.
31316 (mdebug): Add Undocumented marker.
31317 * config/sparc/sparc.h (enum cmodel): Delete.
31318 (sparc_cmodel): Likewise.
31319 (TARGET_CM_MEDLOW): Adjust to above renaming.
31320 (TARGET_CM_MEDMID): Likewise.
31321 (TARGET_CM_MEDANY): Likewise.
31322 (TARGET_CM_EMBMEDANY): Likewise.
31323 * config/sparc/sparc.c (sparc_cmodel): Delete.
31324 (sparc_option_override): Remove string/value mapping support for the
31325 code model. Move code and memory model support to after the handling
31326 of target flags. Do private machine setup last.
31327 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31328 (sparc_legitimize_reload_address): Likewise.
31329 (sparc_output_mi_thunk): Likewise.
31330 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31331
31332 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31333
31334 PR tree-optimization/89500
31335 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31336 (handle_builtin_strlen): Remove noncst_bound variable. Always
31337 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31338 cst if the first cst bytes starting at x are known to be non-zero,
31339 even if the string is not zero terminated. Don't try to modify
31340 *si for strnlen. Update strlen_to_stridx only for strlen or if
31341 we can prove strnlen returns the same value as strlen would.
31342
31343 2019-02-26 Martin Liska <mliska@suse.cz>
31344
31345 * alloc-pool.h (struct pool_usage): Remove extra
31346 print_dash_line.
31347 * bitmap.h (struct bitmap_usage): Likewise.
31348 * ggc-common.c (struct ggc_usage): Likewise.
31349 * mem-stats.h (struct mem_usage): Likewise.
31350 (mem_alloc_description::dump): Print dash lines
31351 here and repeat header at the end of a table report.
31352 It's then more readable.
31353 * tree-phinodes.c (phinodes_print_statistics): Make
31354 horizontal alignment.
31355 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31356 * vec.c (struct vec_usage): Remove extra print_dash_line.
31357 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31358
31359 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31360
31361 * doc/extend.texi (__builtin_object_size):
31362 Use @pxref instead of @xref inside parenthesis.
31363 (__builtin_has_attribute): Add missing comma after @xref.
31364 (__builtin_object_size): Ditto.
31365 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31366
31367 2019-02-26 Jeff Law <law@redhat.com>
31368
31369 PR rtl-optimization/87761
31370 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31371 detect obviously dead insns and delete them.
31372
31373 2019-02-26 Richard Biener <rguenther@suse.de>
31374
31375 PR tree-optimization/89505
31376 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31377 to handle restrict pointed-to vars with multiple subvars
31378 correctly.
31379
31380 2019-02-26 Richard Biener <rguenther@suse.de>
31381
31382 PR tree-optimization/89489
31383 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31384
31385 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31386
31387 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31388 and move around comment.
31389 <BIT_AND_EXPR>: Likewise.
31390 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31391
31392 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31393
31394 PR target/89474
31395 * config/i386/i386.c (remove_partial_avx_dependency): Call
31396 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31397 after changing possibly many instructions to use that pseudo. Fix up
31398 insertion of v4sf_const0 setter at the start of bb.
31399
31400 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31401
31402 PR c/80409
31403 * doc/extend.texi (Variadic Pointer Args): New section.
31404
31405 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31406 Martin Sebor <msebor@gmail.com>
31407
31408 * common.opt (Wattribute-alias): Likewise.
31409 * doc/invoke.texi (Option Summary): List general form of
31410 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31411 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31412 Add cross-references.
31413 (-Wattribute-alias): Rewrite and correct default. Mention
31414 considered attributes (same as for -Wmissing-attributes).
31415
31416 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31417
31418 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31419 (_mm_cvtpd_ps): Likewise.
31420 (_mm_cvttpd_epi32): Likewise.
31421
31422 PR target/89338
31423 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31424 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31425
31426 PR target/89339
31427 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31428
31429 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31430
31431 PR target/88530
31432 * common/config/aarch64/aarch64-common.c
31433 (struct aarch64_option_extension): Add is_synthetic.
31434 (all_extensions): Use it.
31435 (TARGET_OPTION_INIT_STRUCT): Define hook.
31436 (struct gcc_targetm_common): Moved to end.
31437 (all_extensions_by_on): New.
31438 (opt_ext_cmp, typedef opt_ext): New.
31439 (aarch64_option_init_struct): New.
31440 (aarch64_contains_opt): New.
31441 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31442 * config/aarch64/aarch64-option-extensions.def
31443 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31444 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31445 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31446 Set is_synthetic to false.
31447 (crypto): Set is_synthetic to true.
31448 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31449 SYNTHETIC.
31450
31451 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31452
31453 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31454 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31455 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31456 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31457 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31458 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31459 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31460 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31461 Rename ...
31462 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31463 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31464 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31465 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31466 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31467 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31468 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31469 vfmlsl_laneq_high_f16): ... To this.
31470 * config/arm/neon.md: Update comments.
31471
31472 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31473
31474 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31475 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31476 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31477 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31478 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31479 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31480 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31481 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31482 Rename ...
31483 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31484 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31485 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31486 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31487 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31488 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31489 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31490 vfmlslq_laneq_high_f16): ... To this.
31491
31492 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31493
31494 PR rtl-optimization/86096
31495 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31496 comparing mw_order values.
31497
31498 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31499
31500 PR target/89434
31501 * config/arm/arm.md (*subsi3_carryin_const): Use
31502 arm_neg_immediate_operand predicate instead of
31503 arm_not_immediate_operand, "L" constraint instead of "K" and
31504 print it using %n2 instead of %B2.
31505 (*subsi3_carryin_const0): New define_insn.
31506 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31507 instead of arm_not_operand and "I" constraint instead of "K" and
31508 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31509 another match_operand and in the condition check that it is negation
31510 of operands[2].
31511 (*subsi3_carryin_compare_const0): New define_ins.
31512 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31513 *subsi3_carryin_const.
31514 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31515 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31516
31517 PR target/89438
31518 * config/arm.vfp.md (*negdf2_vfp): Use
31519 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31520 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31521
31522 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31523
31524 PR rtl-optimization/89445
31525 * simplify-rtx.c (simplify_ternary_operation): Don't use
31526 simplify_merge_mask on operands that may trap.
31527 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31528 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31529 second operand is CONST_VECTOR, check if any element could be zero.
31530 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31531 their operands can trap.
31532
31533 2019-02-23 Martin Sebor <msebor@redhat.com>
31534
31535 * gimple-ssa-sprintf.c (target_strtol): Rename...
31536 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31537 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31538 check for range error.
31539
31540 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31541
31542 PR driver/69471
31543 * opts-common.c (prune_options): Also prune joined switches
31544 with Negative and RejectNegative.
31545 * config/i386/i386.opt (march=): Add Negative(march=).
31546 (mtune=): Add Negative(mtune=).
31547 * doc/options.texi: Document Negative used together with Joined
31548 and RejectNegative.
31549
31550 2019-02-22 Martin Sebor <msebor@redhat.com>
31551
31552 * doc/extend.texi (Other Builtins): Add
31553 __builtin_is_constant_evaluated.
31554
31555 2019-02-22 Richard Biener <rguenther@suse.de>
31556
31557 PR tree-optimization/87609
31558 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31559
31560 2019-02-22 Jeff Law <law@redhat.com>
31561
31562 PR rtl-optimization/87761
31563 * config/mips/mips.md: Add new combiner pattern to recognize
31564 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31565
31566 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31567
31568 PR target/89324
31569 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31570 destination register in peepholes generating patterns for ADDS/SUBS.
31571 (add<mode>3_compare0,
31572 *addsi3_compare0_uxtw, add<mode>3_compareC,
31573 add<mode>3_compareV_imm, add<mode>3_compareV,
31574 *adds_<optab><ALLX:mode>_<GPI:mode>,
31575 *subs_<optab><ALLX:mode>_<GPI:mode>,
31576 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31577 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31578 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31579 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31580 sub<mode>3_compare1): Allow stack pointer for source register.
31581 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31582
31583 2019-02-22 Martin Sebor <msebor@redhat.com>
31584
31585 PR tree-optimization/88993
31586 PR tree-optimization/88853
31587 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31588 New helper.
31589 (sprintf_dom_walker::call_info::is_string_func): New helper.
31590 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31591 for formatted string functions.
31592 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31593
31594 2019-02-22 Martin Sebor <msebor@redhat.com>
31595
31596 PR c/89425
31597 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31598 unreachable subexpressions.
31599
31600 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31601 Hongtao Liu <hongtao.liu@intel.com>
31602 Sunil K Pandey <sunil.k.pandey@intel.com>
31603
31604 PR target/87007
31605 * config/i386/i386-passes.def: Add
31606 pass_remove_partial_avx_dependency.
31607 * config/i386/i386-protos.h
31608 (make_pass_remove_partial_avx_dependency): New.
31609 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31610 New function.
31611 (pass_data_remove_partial_avx_dependency): New.
31612 (pass_remove_partial_avx_dependency): Likewise.
31613 (make_pass_remove_partial_avx_dependency): Likewise.
31614 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31615 (*extendsfdf2): Add avx_partial_xmm_update.
31616 (truncdfsf2): Likewise.
31617 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31618 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31619
31620 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31621
31622 PR middle-end/85598
31623 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31624 analysis for pass.
31625
31626 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31627
31628 PR target/89444
31629 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31630 (PTA_SKYLAKE): Add PTA_AES.
31631 (PTA_GOLDMONT): Likewise.
31632
31633 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31634
31635 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31636 instruction if enabled.
31637 (aarch64_override_options): Remove reference to return address key.
31638
31639 2019-02-22 Richard Biener <rguenther@suse.de>
31640
31641 PR tree-optimization/89440
31642 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31643 not necessary assert.
31644
31645 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31646
31647 PR fortran/72741
31648 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31649 (oacc_replace_fn_attrib_attr): ... this new function.
31650 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31651 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31652
31653 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31654
31655 * config/arm/arm-cpus.in (ares): Rename to...
31656 (neoverse-n1): ... This. Add ares as alias.
31657 * config/arm/arm-tables.opt: Regenerate.
31658 * config/arm/arm-tune.md: Likewise.
31659 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31660
31661 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31662
31663 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31664 * config/aarch64/aarch64-tune.md: Regenerate.
31665 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31666
31667 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31668
31669 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31670 (neoversen1_tunings): ... This.
31671 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31672 (neoverse-n1): New CPU.
31673 * config/aarch64/aarch64-tune.md: Regenerate.
31674 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31675
31676 2019-02-22 Richard Biener <rguenther@suse.de>
31677
31678 PR middle-end/87609
31679 * cfghooks.h (dependence_hash): New typedef.
31680 (struct copy_bb_data): New type.
31681 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31682 (duplicate_block): Likewise.
31683 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31684 (copy_bbs): Create and pass down copy_bb_data.
31685 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31686 (rtl_duplicate_bb): Likewise.
31687 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31688 remap dependence info.
31689
31690 2019-02-22 Richard Biener <rguenther@suse.de>
31691
31692 PR tree-optimization/87609
31693 * tree-core.h (tree_base): Document special clique values.
31694 * tree-inline.c (remap_dependence_clique): Do not use the
31695 special clique value of one.
31696 (maybe_set_dependence_info): Use clique one.
31697 (clear_dependence_clique): New callback.
31698 (compute_dependence_clique): Clear clique one from all refs
31699 before assigning it (again).
31700
31701 2019-02-21 Martin Sebor <msebor@redhat.com>
31702
31703 * doc/extend.texi (__clear_cache): Correct signature.
31704
31705 2019-02-21 Ian Lance Taylor <iant@golang.org>
31706
31707 PR go/89170
31708 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31709 than output_constant_def.
31710 (add_constant_to_table): New static function.
31711 (output_constant_def): Call add_constant_to_table.
31712 (tree_output_constant_def): Likewise.
31713
31714 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31715
31716 PR c++/89285
31717 * builtins.c (fold_builtin_arith_overflow): If first two args are
31718 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31719 to ifn.
31720
31721 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31722
31723 PR target/87412
31724 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31725 error for -mindirect-branch/-mfunction-return with incompatible
31726 -fcf-protection.
31727
31728 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31729
31730 PR bootstrap/88714
31731 * constraints.md (q): Remove.
31732 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31733 instead of q.
31734
31735 2019-02-21 Martin Jambor <mjambor@suse.cz>
31736
31737 PR hsa/89302
31738 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31739 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31740 (omp_adjust_for_condition): ...here. Added necessary parameters.
31741 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31742 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31743 proper values to new parameters of omp_adjust_for_condition.
31744
31745 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31746
31747 PR middle-end/89412
31748 * expr.c (expand_assignment): If result is a MEM, use change_address
31749 instead of simplify_gen_subreg.
31750
31751 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31752 David Malcolm <dmalcolm@redhat.com>
31753
31754 PR middle-end/89091
31755 * fold-const.c (decode_field_reference): Return NULL_TREE if
31756 lang_hooks.types.type_for_size returns NULL. Check it before
31757 overwriting *exp_. Use return NULL_TREE instead of return 0.
31758
31759 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31760
31761 PR middle-end/88074
31762 PR middle-end/89415
31763 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31764 buggy mpc_norm.
31765
31766 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31767
31768 PR target/89397
31769 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31770 TARGET_SSE in addition to TARGET_SSE_MATH.
31771
31772 (ix86_excess_precision): Ditto.
31773 (ix86_float_exceptions_rounding_supported_p): Ditto.
31774 (use_rsqrt_p): Ditto.
31775 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31776
31777 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31778
31779 PR c/89410
31780 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31781 linenum_arith_t when determining if two adjacent line spans are
31782 close enough to merge.
31783 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31784 lines within each line_span.
31785
31786 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31787
31788 PR target/86487
31789 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31790 paradoxical SUBREGS.
31791
31792 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31793
31794 PR target/88100
31795 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31796 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31797 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31798 range checking it.
31799
31800 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31801
31802 * config/gcn/gcn.c (print_operand): Fix typo.
31803
31804 2019-02-19 Richard Biener <rguenther@suse.de>
31805
31806 PR middle-end/88074
31807 * toplev.c (do_compile): Initialize mpfr's exponent range
31808 based on available float modes.
31809
31810 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31811
31812 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31813 as long as the epilogue isn't completed.
31814
31815 2019-02-18 Martin Sebor <msebor@redhat.com>
31816
31817 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31818 __has_cpp_attribute, and __has_include.
31819
31820 2019-02-18 Martin Sebor <msebor@redhat.com>
31821
31822 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31823
31824 2019-02-18 Martin Sebor <msebor@redhat.com>
31825
31826 PR middle-end/89294
31827 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31828 expression.
31829 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31830
31831 2019-02-18 Richard Biener <rguenther@suse.de>
31832
31833 PR tree-optimization/89296
31834 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31835 of no-warning flag to cases that might emit the bogus warning.
31836
31837 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31838
31839 PR bootstrap/88714
31840 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31841 "q" constraint.
31842 * config/arm/vfp.md (*movdi_vfp): Likewise.
31843 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31844 "q" constraint for operands[0].
31845
31846 PR target/89369
31847 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31848 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31849 pattern in a temporary buffer.
31850 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31851 than 64-operands[2].
31852
31853 PR target/89361
31854 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31855 s390_indirect_branch_settings): Define unconditionally.
31856 (s390_set_current_function): Likewise, but guard the whole body except
31857 the s390_indirect_branch_settings call with
31858 #if S390_USE_TARGET_ATTRIBUTE.
31859 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31860
31861 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31862 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31863 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31864 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31865 HOST_WIDE_INT_1U instead of 1ULL.
31866 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31867 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31868 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31869 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31870 instead of 1UL.
31871 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31872 instead of 1ul.
31873
31874 2019-02-18 Martin Jambor <mjambor@suse.cz>
31875
31876 PR tree-optimization/89209
31877 * tree-sra.c (create_access_replacement): New optional parameter
31878 reg_tree. Use it as a type if non-NULL and access type is not of
31879 a register type.
31880 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31881 to create_access_replacement.
31882 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31883 Check lacc is non-NULL before attempting to re-create it on the RHS.
31884
31885 2019-02-18 Martin Liska <mliska@suse.cz>
31886
31887 PR ipa/89306
31888 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31889 by default.
31890 (symbol_table::free_edge): Recycle m_summary_id.
31891 * cgraph.h (get_summary_id): New.
31892 (symbol_table::release_symbol): Set m_summary_id to -1
31893 by default.
31894 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31895 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31896 function_summary to fast_function_summary.
31897 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31898 * ipa-pure-const.c (class funct_state_summary_t):
31899 Switch from function_summary to fast_function_summary.
31900 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31901 (class ipa_ref_opt_summary_t): Switch from function_summary
31902 to fast_function_summary.
31903 * symbol-summary.h (class function_summary_base): New class
31904 that is created from base of former function_summary.
31905 (function_summary_base::unregister_hooks): New.
31906 (class function_summary): Inherit from function_summary_base.
31907 (class call_summary_base): New class
31908 that is created from base of former call_summary.
31909 (class call_summary): Inherit from call_summary_base.
31910 (struct is_same): New.
31911 (class fast_function_summary): New summary class.
31912 (class fast_call_summary): New summary class.
31913 * vec.h (vec_safe_grow_cleared): New function.
31914
31915 2019-02-18 Martin Liska <mliska@suse.cz>
31916
31917 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31918 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31919 * doc/tm.texi: Document new target hook.
31920 * doc/tm.texi.in: Likewise.
31921 * target.def: Add new target macro.
31922 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31923 suffixes.
31924
31925 2019-02-17 Alan Modra <amodra@gmail.com>
31926
31927 PR target/89271
31928 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31929 output reg on add insn.
31930 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31931
31932 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31933
31934 PR target/89372
31935 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31936 (PMULHRSW): Likewise.
31937 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31938 TARGET_AVX2.
31939 (ssse3_pmulhrswv4hi3): New expander.
31940
31941 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31942
31943 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31944 MMX. Add isa attribute.
31945
31946 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31947
31948 PR rtl-optimization/66152
31949 * builtins.h (c_readstr): Declare.
31950 * builtins.c (c_readstr): Remove forward declaration. Add
31951 null_terminated_p argument, if false, read all bytes from the
31952 string instead of stopping after '\0'.
31953 * expr.c (string_cst_read_str): New function.
31954 (store_expr): Use string_cst_read_str instead of
31955 builtin_strncpy_read_str. Try to store by pieces the whole
31956 exp_len first, and only if that fails, split it up into
31957 store by pieces followed by clear_storage. Formatting fix.
31958
31959 * config/i386/i386.md (*movqi_internal): Remove static from
31960 buf variable. Use output_asm_insn (buf, operands); return "";
31961 instead of return buf;.
31962 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31963 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31964 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31965
31966 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31967
31968 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31969 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31970 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31971 (CC1_SPEC): Likewise.
31972 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31973
31974 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31975
31976 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31977 the base address on 64-bit strict-alignment platforms.
31978
31979 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31980
31981 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31982
31983 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31984
31985 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31986
31987 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31988
31989 PR rtl-optimization/88308
31990 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31991 on copied instruction.
31992
31993 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31994
31995 * final.c (insn_current_reference_address): Replace test on JUMP_P
31996 with test on jump_to_label_p.
31997 * config/visium/visium-passes.def: New file.
31998 * config/visium/t-visium (PASSES_EXTRA): Define.
31999 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32000 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32001 (TRAMPOLINE_ALIGNMENT): Define.
32002 * config/visium/visium.c (visium_option_override): Do not register
32003 the machine-specific reorg pass here.
32004 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32005 for the GR6.
32006 (output_branch): Adjust threshold for long branch instruction.
32007 * config/visium/visium.md (cpu): Move around.
32008 (length): Adjust for the GR6.
32009
32010 2019-02-15 Richard Biener <rguenther@suse.de>
32011 Jakub Jelinek <jakub@redhat.com>
32012
32013 PR tree-optimization/89278
32014 * tree-loop-distribution.c: Include tree-eh.h.
32015 (generate_memset_builtin, generate_memcpy_builtin): Call
32016 rewrite_to_non_trapping_overflow on builtin->size before passing it
32017 to force_gimple_operand_gsi.
32018
32019 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32020
32021 PR other/89342
32022 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32023 optimize_debug.
32024 * opth-gen.awk: Likewise.
32025
32026 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32027
32028 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32029 Enable MMX, SSE and SSE2 by default.
32030 * config/i386/i386.c (ix86_option_override_internal): Do not
32031 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32032
32033 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32034
32035 PR rtl-optimization/89354
32036 * combine.c (make_extraction): Punt if extraction_mode is narrower
32037 than len bits.
32038
32039 2019-02-14 Maya Rashish <coypu@sdf.org>
32040
32041 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32042 * config/netbsd-d.c: New file.
32043 * config/t-netbsd: Add netbsd-d.o
32044
32045 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32046
32047 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32048 affects_type_identity to true for aarch64_vector_pcs.
32049 (aarch64_comp_type_attributes): New function.
32050 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32051
32052 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32053
32054 PR target/88850
32055 * config/arm/iterators.md (ANY64): Add V4HF.
32056
32057 2019-02-14 Martin Liska <mliska@suse.cz>
32058
32059 PR rtl-optimization/89242
32060 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32061 process a transformation.
32062
32063 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32064
32065 PR tree-optimization/89314
32066 * fold-const.c (fold_binary_loc): Cast strlen argument to
32067 const char * before dereferencing it. Formatting fixes.
32068
32069 PR middle-end/89284
32070 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32071
32072 2019-02-13 Ian Lance Taylor <iant@golang.org>
32073
32074 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32075 and set current index for other optimizations.
32076
32077 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32078
32079 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32080 nonimmediate_operand as operand 2 predicate.
32081 (vec_set<VF2_512_256:mode>_0): Ditto.
32082 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32083 (*vec_concatv2si): Remove alternative 2.
32084 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32085 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32086 (vec_concatv2di): Split alternatives 4,5,6 to ...
32087 (*vec_concatv2di_0) ... new pattern.
32088
32089 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32090
32091 PR target/89190
32092 * config/arm/arm.c (ldm_stm_operation_p) Set
32093 addr_reg_in_reglist correctly for first register.
32094 (load_multiple_sequence): Remove dead base check.
32095 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32096
32097 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32098
32099 PR target/88847
32100 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32101 Expose as @aarch64_pred_mov.
32102 * config/aarch64/aarch64.c (aarch64_classify_address):
32103 Use expand_insn which legitimizes operands.
32104
32105 2019-02-13 Martin Liska <mliska@suse.cz>
32106
32107 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32108 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32109 and pointer_offset fields.
32110 (initialize_argument_information): Remove usage of dead
32111 fields.
32112 * cgraph.h (struct cgraph_thunk_info): Remove
32113 add_pointer_bounds_args.
32114 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32115 fields.
32116 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32117 fields.
32118 * config/i386/i386.c (ix86_function_arg_advance): Remove
32119 unrelated comment.
32120 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32121 (def_builtin): Remove usage of dead fields.
32122 (ix86_add_new_builtins): Likewise.
32123 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32124 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32125 (sem_function::init): Likewise.
32126 (sem_variable::merge): Likewise.
32127 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32128 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32129 * lto-cgraph.c (lto_output_node): Likewise.
32130 (lto_output_varpool_node): Likewise.
32131 (input_node): Likewise.
32132 (input_varpool_node): Likewise.
32133 * lto-streamer-out.c (lto_output): Likewise.
32134 * tree-inline.c (expand_call_inline): Remove usage of
32135 assign_stmts.
32136 * tree-inline.h (struct copy_body_data): Likewise.
32137 * varpool.c (varpool_node::dump): Likewise.
32138
32139 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32140
32141 PR middle-end/89303
32142 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32143 into pt->vars_contains_escaped_heap instead of setting
32144 pt->vars_contains_escaped_heap to it.
32145
32146 PR middle-end/89281
32147 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32148 INTVAL (size), compare it to GET_MODE_MASK instead of
32149 1 << GET_MODE_BITSIZE.
32150
32151 PR target/89290
32152 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32153 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32154 -mcmodel=large.
32155
32156 2019-02-13 Martin Liska <mliska@suse.cz>
32157
32158 PR lto/88858
32159 * cfgrtl.c (remove_barriers_from_footer): New function.
32160 (try_redirect_by_replacing_jump): Use it.
32161 (cfg_layout_redirect_edge_and_branch): Likewise.
32162
32163 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32164
32165 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32166 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32167 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32168 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32169 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32170 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32171 New BU_CRYPTO_2.
32172 * config/rs6000/rs6000.c (builtin_function_type)
32173 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32174 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32175 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32176 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32177 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32178
32179 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32180
32181 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32182 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32183
32184 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32185
32186 PR target/89229
32187 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32188 268678 and revision 268657.
32189 (*movti_internal): Likewise.
32190
32191 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32192
32193 PR target/89233
32194 * config/s390/s390.c (s390_decompose_address): Update comment.
32195 (s390_check_qrst_address): Reject invalid address forms after
32196 LRA.
32197
32198 2019-02-12 Martin Liska <mliska@suse.cz>
32199
32200 PR lto/88876
32201 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32202 we need default values of funct_state for a function that
32203 is not optimized.
32204
32205 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32206
32207 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32208 the object to pick the size of stores on strict-alignment platforms.
32209
32210 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32211 (*movdi_insn_sp32): Likewise.
32212 (*movdi_insn_sp64): Likewise.
32213
32214 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32215
32216 PR lto/88677
32217 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32218 types that needs constructiong.
32219 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32220
32221 2019-02-12 Richard Biener <rguenther@suse.de>
32222
32223 PR tree-optimization/89253
32224 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32225 duplicate the loop.
32226
32227 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32228
32229 PR lto/88147
32230 * input.c (selftest::test_line_offset_overflow): New selftest.
32231 (selftest::input_c_tests): Call it.
32232
32233 2019-02-11 Martin Sebor <msebor@redhat.com>
32234
32235 PR tree-optimization/88771
32236 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32237 when -Wstringop-overflow is set.
32238 (builtin_memref::builtin_memref): Adjust excessive upper bound
32239 only when lower bound is not excessive.
32240 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32241 -Wstringop-ovefflow.
32242 (maybe_diag_offset_bounds): Rename...
32243 (maybe_diag_access_bounds): ...to this.
32244 (check_bounds_or_overlap): Adjust for name change above.
32245
32246 2019-02-11 Martin Sebor <msebor@redhat.com>
32247
32248 PR c++/87996
32249 * builtins.c (max_object_size): Move from here...
32250 * builtins.h (max_object_size): ...and here...
32251 * tree.c (max_object_size): ...to here...
32252 * tree.h (max_object_size): ...and here.
32253
32254 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32255
32256 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32257 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32258 for correct semantics.
32259
32260 2019-02-11 Alan Modra <amodra@gmail.com>
32261
32262 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32263 -mlongcall and -mpltseq.
32264 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32265 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32266 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32267 * config/rs6000/sysv4.opt (mpltseq): New option.
32268 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32269 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32270 support is lacking. Don't allow -mpltseq with -mbss-plt.
32271 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32272 -mpltseq given for ELFv1.
32273 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32274 Only use UNSPEC_PLTSEQ for inline PLT calls.
32275 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32276 use UNSPEC_PLTSEQ for inline PLT calls.
32277 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32278 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32279 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32280 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32281 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32282 (pltseq_mtctr_<mode>): Likewise.
32283
32284 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32285
32286 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32287 Solaris ld.
32288 * configure: Regenerate.
32289
32290 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32291
32292 PR bootstrap/88714
32293 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32294 instead of r.
32295
32296 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32297
32298 * function.c (assign_parm_setup_block): Use the stored
32299 size, not the passed size, when allocating stack-space,
32300 also for a parameter with alignment larger than
32301 MAX_SUPPORTED_STACK_ALIGNMENT.
32302
32303 2019-02-11 Martin Liska <mliska@suse.cz>
32304
32305 PR ipa/89009
32306 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32307 * ipa-inline.c (inline_small_functions): Likewise.
32308 * ipa-pure-const.c (propagate_pure_const): Likewise.
32309 (propagate_nothrow): Likewise.
32310 * ipa-reference.c (propagate): Likewise.
32311 * ipa-utils.c (struct searchc_env): Remove unused field.
32312 (searchc): Always search across AVAIL_INTERPOSABLE.
32313 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32314 the only called IPA pure const can properly not propagate
32315 across interposable boundary.
32316 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32317
32318 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32319
32320 * config/nds32/nds32.md (call_internal, call_value_internal,
32321 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32322
32323 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32324
32325 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32326 typo.
32327
32328 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32329
32330 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32331 in comments
32332
32333 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32334
32335 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32336
32337 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32338
32339 PR tree-optimization/89268
32340 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32341 if preds is non-NULL.
32342
32343 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32344
32345 PR lto/89272
32346 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32347 polymorphic types.
32348
32349 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32350
32351 * config/nds32/nds32.md (trap): New pattern.
32352
32353 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32354
32355 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32356 dwarf span.
32357
32358 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32359
32360 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32361 to split POST_INC.
32362
32363 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32364
32365 * ipa-visibility.c (localize_node): Also do not localize
32366 LDPR_PREVAILING_DEF_IRONLY_EXP.
32367
32368 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32369
32370 PR lto/87957
32371 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32372 instead of type_with_linkage.
32373
32374 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32375
32376 PR ipa/88755
32377 * params.def (uninlined-function-insns, uninlined-function-time,
32378 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32379 bound so we don't get overflows.
32380
32381 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32382
32383 * config/rs6000/rs6000-string.c (expand_compare_loop,
32384 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32385 memcmp/strncmp.
32386
32387 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32388
32389 PR middle-end/89246
32390 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32391 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32392 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32393
32394 2019-02-09 Alan Modra <amodra@gmail.com>
32395
32396 PR target/88343
32397 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32398 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32399 setup.
32400
32401 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32402
32403 PR middle-end/88560
32404 * lra-constraints.c (process_alt_operands): Don't increase reject
32405 for memory when offset memory is required.
32406
32407 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32408
32409 * config/s390/vector.md: Implement vector copysign.
32410
32411 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32412
32413 * expr.c (expand_constructor): Correct indentations.
32414
32415 2019-02-08 Richard Biener <rguenther@suse.de>
32416
32417 PR tree-optimization/89247
32418 * tree-if-conv.c: Include tree-cfgcleanup.h.
32419 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32420 (tree_if_conversion): Pass through predicate vector.
32421 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32422 inline, see if any if-converted loops we refrece in
32423 LOOP_VECTORIZED calls vanished and fixup.
32424 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32425
32426 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32427
32428 * config/s390/constraints.md (jdd): New constraint.
32429
32430 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32431
32432 PR target/89229
32433 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32434 upper 16 vector registers without TARGET_AVX512VL.
32435 (*movti_internal): Likewise.
32436
32437 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32438
32439 PR rtl-optimization/89234
32440 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32441 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32442 (copy_reg_eh_region_note_backward): Likewise.
32443
32444 2019-02-08 Richard Biener <rguenther@suse.de>
32445
32446 PR middle-end/89223
32447 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32448 doesn't fit in HWI.
32449 (analyze_subscript_affine_affine): Handle failure from
32450 initialize_matrix_A.
32451
32452 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32453
32454 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32455 cfun everywhere.
32456
32457 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32458
32459 PR tree-optimization/86637
32460 PR tree-optimization/89235
32461 * tree-vect-loop.c (optimize_mask_stores): Add an
32462 auto_purge_vect_location sentinel to ensure that vect_location is
32463 purged on exit.
32464 * tree-vectorizer.c
32465 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32466 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32467 to ensure that vect_location is purged on exit.
32468 (pass_slp_vectorize::execute): Likewise, replacing the manual
32469 reset.
32470 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32471
32472 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32473
32474 * config/aarch64/iterators.md (max_opp): New code_attr.
32475 (USMAX): New code iterator.
32476 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32477 (aarch64_smax): Likewise.
32478 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32479 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32480 MINUS (MAX MIN).
32481
32482 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32483
32484 PR target/89229
32485 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32486 for TARGET_AVX512VL.
32487 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32488
32489 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32490
32491 * config/s390/s390-builtin-types.def: Add new types.
32492 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32493 (s390_vec_xlw4): Make the memory operand into a const pointer.
32494 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32495 float.
32496 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32497 a new vector type with the alignment of the scalar memory operand.
32498
32499 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32500 Jakub Jelinek <jakub@redhat.com>
32501
32502 PR bootstrap/88714
32503 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32504 arm_count_ldrdstrd_insns): New declarations.
32505 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32506 MINUS.
32507 (valid_operands_ldrd_strd): New function.
32508 (arm_count_ldrdstrd_insns): New function.
32509 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32510 sets instead of single DImode set and define new insns to match this.
32511
32512 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32513
32514 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32515 Make it a C initializer.
32516
32517 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32518
32519 PR/target 88850
32520 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32521
32522 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32523
32524 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32525 Use neon_dot<q> for type.
32526 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32527
32528 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32529
32530 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32531 Use neon_dot<q> for type.
32532 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32533 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32534
32535 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32536
32537 PR rtl-optimization/89225
32538 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32539 sizes check.
32540
32541 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32542
32543 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32544 after restoring registers saved to allocate the frame on Windows.
32545
32546 2019-02-06 Richard Biener <rguenther@suse.de>
32547
32548 PR tree-optimization/89182
32549 * graphite.h (cached_scalar_evolution_in_region): Declare.
32550 * graphite.c (struct seir_cache_key): New.
32551 (struct sese_scev_hash): Likewise.
32552 (seir_cache): New global.
32553 (cached_scalar_evolution_in_region): New function.
32554 (graphite_transform_loops): Allocate and release seir_cache.
32555 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32556 cached_scalar_evolution_in_region.
32557 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32558 Simplify.
32559 (scop_detection::graphite_can_represent_expr: Use
32560 cached_scalar_evolution_in_region.
32561 (scop_detection::stmt_simple_for_scop_p): Likewise.
32562 (find_params_in_bb): Likewise.
32563 (gather_bbs::before_dom_children): Likewise.
32564 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32565 (add_loop_constraints): Likewise.
32566
32567 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32568
32569 PR middle-end/89210
32570 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32571 operand to new_unary_operation only if both element types are integral
32572 and it isn't a widening conversion. Return NULL_TREE if
32573 new_unary_operation failed.
32574
32575 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32576
32577 PR target/88856
32578 * config/s390/s390.md: Remove load and test FP splitter.
32579
32580 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32581
32582 PR target/89112
32583 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32584 expand_compare_loop, expand_block_compare_gpr,
32585 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32586 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32587 #include "profile-count.h" and "predict.h" for types and functions
32588 needed to work with REG_BR_PROB notes.
32589
32590 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32591
32592 PR target/89112
32593 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32594 for the long branch case.
32595
32596 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32597
32598 PR target/89188
32599 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32600 can throw, non-call exceptions are enabled and we can't delete
32601 dead exceptions or alter cfg. Set must_clean if
32602 delete_insn_and_edges returns true, don't set it blindly for calls.
32603 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32604
32605 PR rtl-optimization/89195
32606 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32607 of the original MEM.
32608
32609 2019-02-05 Martin Liska <mliska@suse.cz>
32610
32611 PR gcov-profile/89000
32612 * gcov.c (function_summary): Remove argument.
32613 (file_summary): New function.
32614 (print_usage): Replace tabs with spaces.
32615 (generate_results): Use new function file_summary.
32616
32617 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32618
32619 PR target/89186
32620 * optabs.c (prepare_cmp_insn): Pass x and y to
32621 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32622
32623 2019-02-05 Richard Biener <rguenther@suse.de>
32624
32625 PR middle-end/89150
32626 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32627 (struct bitmap_element): Drop chain_prev so we properly recurse on
32628 the prev member, supporting tree views.
32629 (struct bitmap_head): GTY skip the obstack member.
32630
32631 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32632
32633 PR c/88698
32634 * doc/extend.texi (Vector Extensions): Add an example of using vector
32635 types together with x86 intrinsics.
32636
32637 2019-02-04 Alan Modra <amodra@gmail.com>
32638
32639 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32640 str[] size to 160, and comment.
32641
32642 2019-02-04 Alan Modra <amodra@gmail.com>
32643
32644 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32645 (rs6000_pltseq_template): Guard output of TLS markers with
32646 TARGET_TLS_MARKERS.
32647 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32648 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32649 to use inline PLT sequences.
32650 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32651 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32652 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32653
32654 2019-02-04 Martin Liska <mliska@suse.cz>
32655
32656 PR ipa/88985
32657 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32658 out when ipa_fn_summaries does not contain entry for callee.
32659
32660 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32661
32662 * config/sparc/sparc.h: Remove superfluous blank lines.
32663 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32664 (got_register_rtx): ...this.
32665 (sparc_got): Adjust to above renaming.
32666 (sparc_tls_got): Likewise.
32667 (sparc_delegitimize_address): Likewise.
32668 (sparc_output_mi_thunk): Likewise.
32669 (sparc_init_pic_reg): Likewise.
32670 (save_local_or_in_reg_p): Fix test on the GOT register.
32671 (USE_HIDDEN_LINKONCE): Move around.
32672 (get_pc_thunk_name): Likewise.
32673 (gen_load_pcrel_sym): Likewise.
32674 (load_got_register): Likewise.
32675
32676 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32677
32678 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32679 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32680
32681 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32682
32683 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32684 into consideration.
32685
32686 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32687
32688 * config.gcc (with_nds32_lib, glibc):
32689 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32690 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32691 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32692
32693 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32694
32695 PR target/89071
32696 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32697 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32698 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32699 (*rcpsf2_sse): Ditto.
32700 (*rsqrtsf2_sse): Ditto.
32701 (sse4_1_round<mode<2): Ditto.
32702
32703 2019-02-03 Richard Biener <rguenther@suse.de>
32704
32705 PR debug/87295
32706 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32707 orig.
32708
32709 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32710
32711 PR middle-end/87887
32712 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32713 Punt with warning on aggregate return or argument types. Ignore
32714 type/mode checking for uniform arguments.
32715
32716 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32717
32718 * combine.c (try_combine): Do not print "Can't combine" messages unless
32719 printing failed combination attempts.
32720
32721 2019-02-01 Martin Jambor <mjambor@suse.cz>
32722
32723 PR hsa/87863
32724 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32725 segment and global segment variables before making them static.
32726
32727 2019-02-01 Martin Jambor <mjambor@suse.cz>
32728
32729 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32730 missed optimization dump with dump_enabled_p.
32731
32732 2019-02-01 Richard Biener <rguenther@suse.de>
32733
32734 PR middle-end/88597
32735 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32736 the instantiate cache.
32737 (instantiate_scev_binary): Elide second operand procesing
32738 if equal to the first.
32739 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32740 (chrec_contains_undetermined): Likewise.
32741 (tree_contains_chrecs): Likewise.
32742
32743 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32744
32745 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32746
32747 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32748
32749 PR tree-optimization/89143
32750 * wide-int-range.h (wide_int_range_absu): Declare.
32751 * wide-int-range.cc (wide_int_range_absu): New function.
32752 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32753
32754 PR tree-optimization/88107
32755 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32756 instead of assertion that eh_region_outermost is non-NULL, if it
32757 is NULL, set *ALL to true and return NULL.
32758 (move_sese_region_to_fn): Adjust caller, if all is set, call
32759 duplicate_eh_regions with NULL region.
32760
32761 2019-02-01 Richard Biener <rguenth@suse.de>
32762
32763 PR rtl-optimization/88593
32764 * mode-switching.c (optimize_mode_switching): Free dominators before
32765 calling cleanup_cfg.
32766
32767 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32768
32769 PR tree-optimization/88932
32770 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32771
32772 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32773
32774 PR middle-end/89137
32775 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32776 bogus clang warning.
32777
32778 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32779
32780 PR target/89071
32781 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32782 alternative to avoid partial SSE register stall for TARGET_AVX.
32783 (truncdfsf2): Ditto.
32784 (sse4_1_round<mode>2): Ditto.
32785
32786 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32787
32788 PR tree-optimization/89008
32789 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32790 process anything of the form X * 0.
32791
32792 2019-01-31 Richard Biener <rguenther@suse.de>
32793
32794 PR tree-optimization/89135
32795 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32796 with abnormal preds.
32797
32798 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32799
32800 PR sanitizer/89124
32801 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32802 always_inline callees into no_sanitize_address callers.
32803
32804 2019-01-31 Richard Biener <rguenther@suse.de>
32805
32806 PR rtl-optimization/89115
32807 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32808
32809 2019-01-30 Martin Sebor <msebor@redhat.com>
32810
32811 PR other/89106
32812 * doc/extend.texi (cast to a union): Correct and expand.
32813
32814 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32815
32816 PR rtl-optimization/87246
32817 * lra-constraints.c (simplify_operand_subreg): Reload memory
32818 in subreg if the address became invalid.
32819
32820 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32821
32822 PR target/87064
32823 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32824 Disable for little-endian.
32825
32826 2019-01-30 Richard Biener <rguenther@suse.de>
32827
32828 PR rtl-optimization/89115
32829 * opts.c (default_options_optimization): Reduce
32830 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32831 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32832 to the default.
32833
32834 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32835
32836 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32837 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32838 type of vector element when vec_extract is implemented by direct
32839 move.
32840
32841 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32842
32843 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32844
32845 2019-01-30 Richard Biener <rguenther@suse.de>
32846
32847 PR tree-optimization/89111
32848 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32849 canonicalization to appropriately sized access types.
32850
32851 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32852
32853 PR c++/89105
32854 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32855 for arguments to functions that are TU-local and shouldn't be
32856 referenced by assembly.
32857
32858 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32859
32860 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32861 after '='.
32862
32863 2019-01-29 Martin Sebor <msebor@redhat.com>
32864
32865 PR c/88956
32866 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32867
32868 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32869
32870 PR c++/66676
32871 PR ipa/89104
32872 * omp-simd-clone.c (simd_clone_clauses_extract)
32873 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32874 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32875
32876 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32877
32878 * config.gcc: Force .init_array for ARC.
32879
32880 2019-01-29 Richard Biener <rguenther@suse.de>
32881
32882 PR debug/87295
32883 * dwarf2out.c (collect_skeleton_dies): New helper.
32884 (copy_decls_for_unworthy_types): Call it.
32885 (build_abbrev_table): Assert we do not try to replace
32886 DW_AT_signature refs with local refs.
32887
32888 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32889
32890 PR middle-end/89002
32891 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32892 for lastprivate/linear IV, push gimplify context around gimplify_assign
32893 and, if it needed any temporaries, pop it into a gimple bind around the
32894 sequence.
32895
32896 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32897
32898 * common.opt (-Wattribute-alias): Remove "no-" from name.
32899 Make -Wattribute-alias command line option and
32900 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32901
32902 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32903
32904 PR target/89073
32905 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32906 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32907 x86 ISA options.
32908 (bmi2): Add missing @opindex.
32909 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32910 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32911 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32912 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32913 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32914 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32915 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32916 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32917 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32918 xsavec, xsaveopt and xsaves options.
32919
32920 2019-01-28 Richard Biener <rguenther@suse.de>
32921
32922 PR debug/89076
32923 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32924 support removal.
32925
32926 2019-01-28 Richard Biener <rguenther@suse.de>
32927
32928 PR tree-optimization/88739
32929 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32930 BIT_FIELD_REFs only are applied to mode-precision operands
32931 when they are integral.
32932 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32933 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32934 BIT_FIELD_REFs of non-mode-precision integral operands.
32935
32936 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32937
32938 PR target/87214
32939 * config/i386/sse.md
32940 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32941 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32942 first constants in pairs are multiples of 2. Formatting fixes.
32943 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32944 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32945 first constants in each quadruple are multiples of 4. Formatting fixes.
32946
32947 2019-01-26 Martin Jambor <mjambor@suse.cz>
32948
32949 PR ipa/88933
32950 * tree-inline.c: Include tree-cfgcleanup.h.
32951 (delete_unreachable_blocks_update_callgraph): Move...
32952 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32953 ...here, make externally visible, make second argument bool, adjust
32954 all callers.
32955 * tree-cfgcleanup.c: Include cgraph.h.
32956 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32957 Declare.
32958 * ipa-prop.c: Include tree-cfgcleanup.h.
32959 (ipcp_transform_function): Call
32960 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32961
32962 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32963
32964 PR rtl-optimization/88846
32965 * ira.c (process_set_for_memref_referenced_p): New.
32966 (memref_referenced_p): Add new param. Use
32967 process_set_for_memref_referenced_p. Add new switch cases.
32968 (memref_used_between_p): Pass new arg to memref_referenced_p.
32969
32970 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32971
32972 PR target/88469
32973 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32974 argument ABI_BREAK. Set to true if the calculated alignment has
32975 changed in gcc-9. Check bit-fields for their base type alignment.
32976 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32977 (aarch64_function_arg_boundary): Likewise.
32978 (aarch64_gimplify_va_arg_expr): Likewise.
32979
32980 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32981
32982 PR middle-end/89037
32983 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32984 instead of accessing TREE_INT_CST_ELT directly.
32985
32986 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32987
32988 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32989 fenv_exceptions description.
32990
32991 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32992
32993 PR rtl-optimization/87763
32994 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32995 Allow SUBREG when matching CC_NZmode compare.
32996
32997 2019-01-25 Richard Biener <rguenther@suse.de>
32998
32999 PR tree-optimization/89049
33000 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33001 Look at the pattern stmt to determine if the stmt is vectorized.
33002
33003 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33004
33005 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33006 (pred_mov<mode>): Handle all-register forms using both a new
33007 alternative and a split.
33008
33009 2019-01-25 Richard Biener <rguenther@suse.de>
33010
33011 PR tree-optimization/86865
33012 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33013 Reject non-do-while loops.
33014
33015 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33016
33017 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33018 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33019 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33020 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33021 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33022 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33023 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33024 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33025 vlogical_operand, gpc_reg_operand, int_reg_operand,
33026 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33027 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33028 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33029 (save_world_operation, restore_world_operation, lmw_operation,
33030 stmw_operation): Use MEM_P and REG_P.
33031 (tie_operand): Use MEM_P.
33032 (vrsave_operation, crsave_operation): Use REG_P.
33033 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33034 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33035 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33036 (call_operand): Use HARD_REGISTER_P.
33037 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33038 Use CONST_INT_P.
33039 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33040 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33041 quad_aligned_load_p, replace_swapped_aligned_store,
33042 recombine_lvx_pattern, replace_swapped_aligned_load,
33043 recombine_stvx_pattern): Use MEM_P.
33044 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33045 Use MEM_P and SYMBOL_REF_P.
33046 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33047 (insn_is_swappable_p): Use REG_P and MEM_P.
33048 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33049 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33050 Use CONST_INT_P.
33051 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33052 Use CONST_DOUBLE_P.
33053 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33054 CONST_WIDE_INT_P.
33055 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33056 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33057 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33058 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33059 reg_or_subregno:
33060 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33061 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33062 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33063 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33064 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33065 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33066 rs6000_split_logical_di): Use CONST_INT_P.
33067 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33068 REG_P and SYMBOL_REF_P.
33069 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33070 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33071 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33072 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33073 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33074 (small_data_operand, print_operand_address): Use CONST_INT_P and
33075 SYMBOL_REF_P.
33076 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33077 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33078 Use HARD_REGISTER_NUM_P.
33079 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33080 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33081 SUBREG_P and SYMBOL_REF_P.
33082 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33083 and HARD_REGISTER_NUM_P.
33084 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33085 reg_or_subregno.
33086 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33087 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33088 MEM_P and REG_P.
33089 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33090 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33091 find_addr_reg): Use REG_P.
33092 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33093 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33094 (offsettable_ok_by_alignment, constant_pool_expr_p,
33095 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33096 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33097 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33098 rs6000_assemble_integer, create_TOC_reference,
33099 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33100 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33101 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33102 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33103 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33104 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33105 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33106 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33107 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33108 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33109 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33110 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33111 and cbranch<mode>4): Use CONST_INT_P.
33112 (multiple define_splits): Use REG_P and SUBREG_P.
33113 (define_expands call, call_value): Use MEM_P.
33114 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33115 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33116 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33117 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33118 and HARD_REGISTER_NUM_P.
33119 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33120
33121 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33122
33123 PR rtl-optimization/88948
33124 * rtl.h (prepare_copy_insn): New prototype.
33125 * gcse.c (prepare_copy_insn): New function, split out from
33126 process_insert_insn.
33127 (process_insert_insn): Use prepare_copy_insn.
33128 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33129 instead of gen_move_insn.
33130
33131 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33132
33133 PR debug/89006
33134 * config/i386/i386.c (ix86_pic_register_p): Return true for
33135 UNSPEC_SET_GOT too.
33136
33137 PR tree-optimization/88964
33138 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33139 punt if HONOR_SNANS (chrec).
33140
33141 PR middle-end/89015
33142 * tree-nested.c (convert_nonlocal_reference_stmt,
33143 convert_local_reference_stmt, convert_tramp_reference_stmt,
33144 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33145 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33146 or GIMPLE_OMP_TASK.
33147
33148 PR tree-optimization/89027
33149 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33150 for "omp simd array" variables.
33151
33152 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33153
33154 PR target/88469
33155 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33156 force the alignment of m_val.
33157
33158 2019-01-24 Richard Biener <rguenther@suse.de>
33159
33160 PR lto/87187
33161 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33162 When in "legacy" debug mode make sure to reset self-origins.
33163
33164 2019-01-24 Martin Liska <mliska@suse.cz>
33165
33166 PR gcov-profile/88994
33167 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33168 result will be always smaller or equal to the original.
33169 * gcov.c (mangle_name): Fix else branch where we should
33170 also copy to PTR and shift the pointer.
33171
33172 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33173
33174 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33175 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33176
33177 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33178
33179 * common/config/i386/i386-common.c
33180 (OPTION_MASK_ISA_ENQCMD_SET,
33181 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33182 (ix86_handle_option): Handle -menqcmd.
33183 * config.gcc (enqcmdintrin.h): New header file.
33184 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33185 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33186 -menqcmd.
33187 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33188 function type.
33189 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33190 __builtin_ia32_enqcmds): New builtins.
33191 * config/i386/i386-c.c (__ENQCMD__): New macro.
33192 * config/i386/i386-option.c (ix86_target_string): Add
33193 -menqcmd.
33194 (ix86_valid_target_attribute_inner_p): Likewise.
33195 * config/i386/i386-expand.c
33196 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33197 IX86_BUILTIN_ENQCMDS.
33198 * config/i386/i386.h (TARGET_ENQCMD): New.
33199 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33200 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33201 (movdir64b_<mode>): Parameterize to enable share expansion code
33202 with ENQCMD in function ix86_expand_builtin.
33203 * config/i386/i386.opt: Add -menqcmd.
33204 * config/i386/immintrin.h: Include enqcmdintrin.h.
33205 * config/i386/enqcmdintrin.h: New intrinsic file.
33206 * doc/invoke.texi: Add -menqcmd.
33207
33208 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33209 Steve Ellcey <sellcey@marvell.com>
33210
33211 PR target/85711
33212 * recog.c (address_operand): Return false on wrong mode for address.
33213 (constrain_operands): Check for mode with 'p' constraint.
33214
33215 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33216
33217 PR target/88998
33218 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33219 Disparage MMX alternative.
33220 (sse2_cvtpd2pi): Ditto.
33221 (sse2_cvttpd2pi): Ditto.
33222
33223 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33224
33225 PR driver/89014
33226 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33227 use-after-free of the result of
33228 aarch64_get_extension_string_for_isa_flags.
33229
33230 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33231
33232 PR c/44715
33233 * doc/extend.texi: Document break and continue behavior in
33234 statement expressions.
33235
33236 2019-01-23 Richard Biener <rguenther@suse.de>
33237
33238 PR tree-optimization/89008
33239 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33240 not leave another stray operand.
33241
33242 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33243
33244 * BASE-VER: Bump to 9.0.1.
33245
33246 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33247
33248 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33249 thunk that returns by reference, use the type of the return object
33250 of the thunk instead of that of the alias to build the dereference.
33251
33252 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33253
33254 * config/arc/atomic.md: Add operand to DMB instruction.
33255
33256 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33257
33258 PR tree-optimization/88964
33259 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33260 build_zero_cst instead of build_int_cst. Return false for loop
33261 invariants which honor signed zeros.
33262
33263 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33264
33265 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33266
33267 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33268
33269 PR target/88965
33270 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33271 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33272 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33273
33274 PR middle-end/88968
33275 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33276 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33277
33278 PR target/87064
33279 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33280 Disable for little endian.
33281
33282 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33283
33284 PR target/88469
33285 * config/arm/arm.c (arm_needs_double_word_align): Check
33286 DECL_BIT_FIELD_TYPE.
33287
33288 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33289 H.J. Lu <hongjiu.lu@intel.com>
33290
33291 PR target/88909
33292 * config/i386/i386-builtin.def: Add mask2 to all builtin
33293 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33294 SPECIAL_ARGS.
33295 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33296 (BDESC_FIRST): Likewise.
33297 (define_builtin): Add an argument for mask2. Updated to handle
33298 both ix86_isa_flags and ix86_isa_flags2.
33299 (define_builtin_const): Likewise.
33300 (define_builtin_pure): Likewise.
33301 (define_builtin2): Deleted.
33302 (define_builtin_const2): Likewise.
33303 (builtin_description): Add a member, mask2.
33304 (bdesc_*): Add mask2 to builtin initializations.
33305 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33306 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33307 support.
33308 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33309
33310 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33311
33312 PR target/88954
33313 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33314 noplt attribute.
33315
33316 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33317
33318 PR target/88469
33319 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33320 alignment is dominated by a bitfield with 64-bit aligned base type.
33321 (arm_function_arg): Emit a warning if the alignment has changed since
33322 earlier GCC releases.
33323 (arm_function_arg_boundary): Likewise.
33324 (arm_setup_incoming_varargs): Likewise.
33325
33326 2019-01-22 Richard Biener <rguenther@suse.de>
33327
33328 PR tree-optimization/88862
33329 * graphite-scop-detection.c
33330 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33331
33332 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33333
33334 * doc/extend.tex (AMD GCN Function Attributes): New section.
33335 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33336 * doc/invoke.texi (AMD GCN Options): New section.
33337 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33338
33339 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33340
33341 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33342 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33343
33344 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33345
33346 PR tree-optimization/88044
33347 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33348 is false in the first iteration, but !every_iteration, return false
33349 instead of true with niter->niter zero.
33350
33351 PR rtl-optimization/88904
33352 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33353 any nonequal registers before processing BB_END (b).
33354
33355 PR target/88905
33356 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33357 GET_MODE (op0).
33358 (expand_binop_directly, expand_doubleword_clz,
33359 expand_doubleword_popcount, expand_ctz, expand_ffs,
33360 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33361
33362 PR rtl-optimization/49429
33363 PR target/49454
33364 PR rtl-optimization/86334
33365 PR target/88906
33366 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33367 addressable from here...
33368 (emit_block_op_via_libcall): ... to here.
33369
33370 2019-01-22 Richard Biener <rguenther@suse.de>
33371
33372 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33373 auto_vec for cost vector to fix memleak.
33374 (vectorize_fold_left_reduction): Properly gather SLP defs.
33375 (vectorizable_comparison): Do not swap operands to properly
33376 gather SLP defs.
33377
33378 2019-01-22 Alan Modra <amodra@gmail.com>
33379
33380 PR target/88614
33381 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33382 stays a reg. Allow a const_int.
33383 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33384 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33385 (IS_NOMARK_TLSGETADDR): Define.
33386 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33387 (rs6000_output_tlsargs): New function.
33388 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33389 __tls_get_addr call takes an arg.
33390 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33391 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33392 delete split..
33393 (call_value_nonlocal_sysv): ..or here, delete split.
33394 (tls_gdld_nomark): Delete.
33395 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33396 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33397 (call_value_nonlocal_sysv): Likewise.
33398 (call_value_nonlocal_sysv_secure): Likewise.
33399 (call_value_nonlocal_aix): Likewise.
33400 (call_value_indirect_aix): Likewise.
33401 (call_value_indirect_elfv2): Likewise.
33402 (call_value_local32, call_value_local64): Disable for no-mark tls.
33403 (call_value_local_aix): Likewise.
33404
33405 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33406
33407 PR target/88938
33408 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33409 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33410
33411 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33412
33413 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33414 string contents as hash_map keys.
33415
33416 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33417
33418 PR c/88928
33419 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33420 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33421 instead of TYPE_ALIGN.
33422 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33423 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33424 pointer from TYPE_STUB_DECL.
33425
33426 2019-01-21 Richard Biener <rguenther@suse.de>
33427
33428 PR tree-optimization/88934
33429 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33430 at the possibly non-constant operand.
33431 (vect_get_constant_vectors): Adjust.
33432
33433 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33434
33435 PR target/71659
33436 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33437 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33438 instead of _X86INTRIN_H_INCLUDED.
33439 * onfig/i386/clwbintrin.h: Likewise.
33440 * config/i386/pkuintrin.h: Likewise.
33441 * config/i386/prfchwintrin.h: Likewise.
33442 * config/i386/rdseedintrin.h: Likewise.
33443 * config/i386/wbnoinvdintrin.h: Likewise.
33444 * config/i386/xsavecintrin.h: Likewise.
33445 * config/i386/xsavesintrin.h: Likewise.
33446 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33447 * config/i386/xsaveintrin.h: Likewise.
33448 * config/i386/xsaveoptintrin.h: Likewise.
33449 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33450 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33451 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33452 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33453 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33454 * config/i386/immintrin.h: Here.
33455
33456 2019-01-20 Martin Jambor <mjambor@suse.cz>
33457
33458 PR ipa/87615
33459 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33460 with aa_walk_budget.
33461 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33462 aa_walk_budget_p parameter.
33463 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33464 walk. Updated all callers.
33465 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33466 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33467 unmodified_parm.
33468 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33469 parameter info. Extract info from fbi. Pass fbi to recursive calls
33470 and to unmodified_parm.
33471 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33472 info, updated call to will_be_nonconstant_expr_predicate.
33473 (param_change_prob): New parameter fbi, limit AA walking.
33474 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33475 calls to various above functions.
33476 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33477 parameter. Use it to limit AA walking.
33478 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33479 fbi, limit AA walk.
33480 (detect_type_change): New parameter fbi, pass it on to
33481 detect_type_change_from_memory_writes.
33482 (detect_type_change_ssa): Likewise.
33483 (aa_overwalked): Removed.
33484 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33485 accordingly, adjust to the neew AA limiting scheme.
33486 (parm_ref_data_preserved_p): Likewise.
33487 (ipa_compute_jump_functions_for_edge): Adjust call to
33488 get_dynamic_type.
33489 (ipa_analyze_call_uses): Likewise.
33490 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33491 (ipa_analyze_node): Initialize aa_walk_budget.
33492 (ipcp_transform_function): Likewise.
33493 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33494 to get_dynamic_type.
33495
33496 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33497
33498 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33499 outside of #if CHECKING_P code.
33500
33501 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33502
33503 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33504 New function, split out from...
33505 (loop_versioning::analyze_stride): ...here.
33506 (loop_versioning::find_per_loop_multiplication): Use gassign.
33507 (loop_versioning::analyze_term_using_scevs): Return a success code.
33508 (loop_versioning::analyze_arbitrary_term): New function.
33509 (loop_versioning::analyze_address_fragment): Use
33510 analyze_arbitrary_term if all else fails.
33511
33512 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33513
33514 PR target/88892
33515 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33516 operands.
33517
33518 2019-01-18 Richard Biener <rguenther@suse.de>
33519
33520 PR tree-optimization/88903
33521 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33522 scalar stmts a SLP shift amount is composed of when detecting
33523 shifts by scalars.
33524
33525 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33526
33527 PR target/88799
33528 * config/arm/arm-cpus.in (mp): New feature.
33529 (sec): New feature.
33530 (fgroup ARMv7ve): Add mp and sec features.
33531 (arch armv7-a): Add options to allow mp and sec extensions.
33532 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33533 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33534 extenstions to the base architecture.
33535 (cpu cortex-a8): Add sec extension to the base architecture.
33536 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33537 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33538 variants down to the base v7-a varaint.
33539 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33540 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33541 of permitted extensions for -march=armv7-a and for
33542 -mcpu=generic-armv7-a.
33543
33544 2019-01-18 Martin Liska <mliska@suse.cz>
33545
33546 * params.def: Fix comment.
33547 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33548 name.
33549 (gimple_gen_ic_func_profiler): Likewise.
33550
33551 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33552
33553 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33554 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33555 and put in error checks for stack protector guard options.
33556 (aarch64_stack_protect_guard): New.
33557 (TARGET_STACK_PROTECT_GUARD): Define.
33558 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33559 (reg_stack_protect_address<mode>): New.
33560 (stack_protect_set): Adjust for SSP_GLOBAL.
33561 (stack_protect_test): Likewise.
33562 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33563 (-mstack-protector-guard): Likewise.
33564 (-mstack-protector-guard-offset): Likewise.
33565
33566 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33567
33568 PR tree-optimization/86214
33569 * tree-inline.h (struct copy_body_data): Add
33570 add_clobbers_to_eh_landing_pads member.
33571 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33572 (copy_edges_for_bb): Call it if EH edge destination is <
33573 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33574 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33575 if flag_stack_reuse != SR_NONE and clear it afterwards.
33576
33577 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33578
33579 PR target/85596
33580 * doc/install.texi (with-multilib-list): Document for aarch64.
33581
33582 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33583
33584 PR target/88734
33585 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33586 (("..."))) with ("...").
33587
33588 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33589
33590 * doc/extend.texi (Built-in Functions for Memory Model Aware
33591 Atomic Operations): Document atomic fetch and nand.
33592
33593 2019-01-18 Martin Liska <mliska@suse.cz>
33594 Richard Biener <rguenther@suse.de>
33595
33596 PR middle-end/88587
33597 * cgraph.h (create_version_clone_with_body): Add new argument
33598 with attributes.
33599 * cgraphclones.c (cgraph_node::create_version_clone): Add
33600 DECL_ATTRIBUTES to a newly created decl. And call
33601 valid_attribute_p so that proper cl_target_optimization_node
33602 is set for the newly created declaration.
33603 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33604 for declaration.
33605 (expand_target_clones): Do not call valid_attribute_p, it must
33606 be already done.
33607 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33608 vector types.
33609
33610 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33611
33612 PR target/88734
33613 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33614 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33615 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33616
33617 2019-01-17 Martin Sebor <msebor@redhat.com>
33618
33619 PR middle-end/88273
33620 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33621 Handle anti-ranges the same as no range at all.
33622
33623 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33624
33625 * config/aarch64/aarch64.c (cgraph.h): New include.
33626 (intl.h): New include.
33627 (supported_simd_type): New function.
33628 (currently_supported_simd_type): Ditto.
33629 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33630 (aarch64_simd_clone_adjust): Ditto.
33631 (aarch64_simd_clone_usable): Ditto.
33632 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33633 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33634 (TARGET_SIMD_CLONE_USABLE): Ditto.
33635 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33636 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33637 call.
33638
33639 2019-01-17 Martin Sebor <msebor@redhat.com>
33640
33641 PR tree-optimization/88800
33642 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33643 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33644 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33645 redundant argument. Add new argument and issue diagnostics under
33646 its control. Detect out-of-bounds access even with warnings
33647 disabled.
33648 (check_bounds_or_overlap): Change return type. Add argument.
33649 (wrestrict_dom_walker::check_call): Adjust.
33650 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33651 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33652 check_bounds_or_overlap's return value.
33653 (handle_builtin_stxncpy): Same.
33654 (handle_builtin_strcat): Same.
33655
33656 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33657 Kwok Cheung Yeung <kcy@codesourcery.com>
33658 Julian Brown <julian@codesourcery.com>
33659 Tom de Vries <tom@codesourcery.com>
33660
33661 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33662
33663 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33664
33665 * doc/sourcebuild.texi: Document dg-require-effective-target
33666 llvm_binutils and offload_gcn.
33667
33668 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33669 Kwok Cheung Yeung <kcy@codesourcery.com>
33670 Julian Brown <julian@codesourcery.com>
33671 Tom de Vries <tom@codesourcery.com>
33672
33673 * doc/sourcebuild.texi: Document dg-required-effective-target
33674 exceptions.
33675
33676 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33677 Kwok Cheung Yeung <kcy@codesourcery.com>
33678 Julian Brown <julian@codesourcery.com>
33679 Tom de Vries <tom@codesourcery.com>
33680 Jan Hubicka <hubicka@ucw.cz>
33681 Martin Jambor <mjambor@suse.cz>
33682
33683 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33684 * configure.ac: Check for dlopen.
33685 * configure: Regenerate.
33686
33687 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33688 Kwok Cheung Yeung <kcy@codesourcery.com>
33689 Julian Brown <julian@codesourcery.com>
33690 Tom de Vries <tom@codesourcery.com>
33691 Jan Hubicka <hubicka@ucw.cz>
33692 Martin Jambor <mjambor@suse.cz>
33693
33694 * common/config/gcn/gcn-common.c: New file.
33695 * config/gcn/driver-gcn.c: New file.
33696 * config/gcn/gcn-builtins.def: New file.
33697 * config/gcn/gcn-hsa.h: New file.
33698 * config/gcn/gcn-modes.def: New file.
33699 * config/gcn/gcn-opts.h: New file.
33700 * config/gcn/gcn-passes.def: New file.
33701 * config/gcn/gcn-protos.h: New file.
33702 * config/gcn/gcn-run.c: New file.
33703 * config/gcn/gcn-tree.c: New file.
33704 * config/gcn/gcn.c: New file.
33705 * config/gcn/gcn.h: New file.
33706 * config/gcn/gcn.opt: New file.
33707 * config/gcn/t-gcn-hsa: New file.
33708
33709 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33710 Kwok Cheung Yeung <kcy@codesourcery.com>
33711 Julian Brown <julian@codesourcery.com>
33712 Tom de Vries <tom@codesourcery.com>
33713 Jan Hubicka <hubicka@ucw.cz>
33714 Martin Jambor <mjambor@suse.cz>
33715
33716 * config/gcn/constraints.md: New file.
33717 * config/gcn/gcn-valu.md: New file.
33718 * config/gcn/gcn.md: New file.
33719 * config/gcn/predicates.md: New file.
33720
33721 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33722
33723 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33724 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33725 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33726 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33727
33728 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33729
33730 PR target/88851
33731 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33732 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33733 it and document registers.
33734
33735 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33736
33737 * config/aarch64/aarch64.c (ares_tunings): Define.
33738 * config/aarch64/aarch64-cores.def (ares): Use the above.
33739
33740 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33741
33742 PR target/88794
33743 Revert:
33744 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33745
33746 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33747 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33748 (_mm512_maskz_fixupimm_round_pd): Ditto.
33749 (_mm512_fixupimm_round_ps): Ditto.
33750 (_mm512_maskz_fixupimm_round_ps): Ditto.
33751 (_mm_fixupimm_round_sd): Ditto.
33752 (_mm_maskz_fixupimm_round_sd): Ditto.
33753 (_mm_fixupimm_round_ss): Ditto.
33754 (_mm_maskz_fixupimm_round_ss): Ditto.
33755 (_mm512_fixupimm_pd): Ditto.
33756 (_mm512_maskz_fixupimm_pd): Ditto.
33757 (_mm512_fixupimm_ps): Ditto.
33758 (_mm512_maskz_fixupimm_ps): Ditto.
33759 (_mm_fixupimm_sd): Ditto.
33760 (_mm_maskz_fixupimm_sd): Ditto.
33761 (_mm_fixupimm_ss): Ditto.
33762 (_mm_maskz_fixupimm_ss): Ditto.
33763 (_mm512_mask_fixupimm_round_pd): Update builtin.
33764 (_mm512_mask_fixupimm_round_ps): Ditto.
33765 (_mm_mask_fixupimm_round_sd): Ditto.
33766 (_mm_mask_fixupimm_round_ss): Ditto.
33767 (_mm512_mask_fixupimm_pd): Ditto.
33768 (_mm512_mask_fixupimm_ps): Ditto.
33769 (_mm_mask_fixupimm_sd): Ditto.
33770 (_mm_mask_fixupimm_ss): Ditto.
33771 * config/i386/avx512vlintrin.h:
33772 (_mm256_fixupimm_pd): Update parameters and builtin.
33773 (_mm256_maskz_fixupimm_pd): Ditto.
33774 (_mm256_fixupimm_ps): Ditto.
33775 (_mm256_maskz_fixupimm_ps): Ditto.
33776 (_mm_fixupimm_pd): Ditto.
33777 (_mm_maskz_fixupimm_pd): Ditto.
33778 (_mm_fixupimm_ps): Ditto.
33779 (_mm_maskz_fixupimm_ps): Ditto.
33780 (_mm256_mask_fixupimm_pd): Update builtin.
33781 (_mm256_mask_fixupimm_ps): Ditto.
33782 (_mm_mask_fixupimm_pd): Ditto.
33783 (_mm_mask_fixupimm_ps): Ditto.
33784 * config/i386/i386-builtin-types.def: Add new types and remove
33785 useless ones.
33786 * config/i386/i386-builtin.def: Update builtin definitions.
33787 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33788 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33789 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33790 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33791 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33792 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33793 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33794 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33795 * config/i386/subst.md:
33796 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33797 (round_saeonly_sd_mask_op4): Ditto.
33798 (round_saeonly_expand_operand5): Ditto.
33799 (round_saeonly_expand): Update.
33800
33801 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33802
33803 PR target/88794
33804 Revert:
33805 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33806
33807 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33808 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33809 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33810 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33811 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33812 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33813 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33814
33815 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33816
33817 PR target/88794
33818 Revert:
33819 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33820
33821 PR target/88489
33822 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33823 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33824 instead of UNSPEC_FIXUPIMM.
33825
33826 2019-01-17 Richard Biener <rguenther@suse.de>
33827
33828 PR lto/86736
33829 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33830 and friends for the LTO part of debug info.
33831
33832 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33833
33834 PR tree-optimization/86214
33835 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33836 if x == y.
33837
33838 PR rtl-optimization/88870
33839 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33840 throw if we can't alter the cfg or delete dead exceptions.
33841 (mark_insn): Don't call find_call_stack_args for such calls.
33842
33843 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33844
33845 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33846 prototypes for vec_st.
33847 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33848 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33849 mainly on signed/unsigned long long and double.
33850
33851 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33852
33853 PR target/88861
33854 * combine.c (delete_noop_moves): Convert to "bool" return,
33855 returning true if any edges are eliminated.
33856 (combine_instructions): Also return true if delete_noop_moves
33857 returns true.
33858
33859 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33860
33861 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33862 correct max nunits for endian swap.
33863 (aarch64_expand_fcmla_builtin): Correct subreg code.
33864 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33865 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33866 lane endianness.
33867
33868 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33869
33870 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33871 Handle split indirect COMPLEX_TYPE arguments.
33872
33873 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33874
33875 PR target/86891
33876 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33877 bit is set by add and compare.
33878 (CC_ADC): New CC_MODE.
33879 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33880 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33881 comparison. Add detection for CC_ADCmode.
33882 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33883 CC_ADCmode.
33884 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33885 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33886 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33887 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33888 to eliminate the need for zero-extending the operands.
33889 (add<mode>3_compareC_imm): Delete. Merge into ...
33890 (add<mode>3_compareC): ... this. Restructure the comparison to
33891 eliminate the need for zero-extending the operands.
33892 (add<mode>3_carryin): Use LTU for the overflow detection.
33893 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33894 Reexpress comparison for overflow.
33895 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33896 (add<mode>3_carryinC): Likewise.
33897 (add<mode>3_carryinV): Use LTU for carry between partials.
33898 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33899 handling of CC_Cmode and add CC_ADCmode.
33900 (aarch64_borrow_operation): Likewise.
33901
33902 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33903
33904 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33905 Remove patternmode.
33906 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33907 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33908 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33909 Remove endianness conversion.
33910
33911 2019-01-16 Martin Liska <mliska@suse.cz>
33912
33913 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33914 for GCC driver.
33915 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33916 a new argument.
33917 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33918 (path_prefix_reset): Move up in the source file.
33919 (find_fortran_preinclude_file): Make complex search for the
33920 fortran header files.
33921
33922 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33923
33924 * godump.c (go_output_typedef): When outputting a typedef, refer
33925 to the underlying type by its name and not its structure.
33926
33927 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33928
33929 PR c++/88795
33930 * tree.c (build_function_type): Assert that arg_types is not
33931 error_mark_node.
33932
33933 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33934
33935 PR inline-asm/52813
33936 * doc/extend.texi: Document that listing the stack pointer in the
33937 clobber list of an asm is a deprecated feature.
33938 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33939 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33940 warning instead of an error for clobbers of the stack pointer.
33941 Add a note explaining why.
33942
33943 2019-01-15 Richard Biener <rguenther@suse.de>
33944
33945 PR debug/88046
33946 * dwarf2out.c (gen_member_die): Do not generate inheritance
33947 DIEs late.
33948
33949 2019-01-15 Richard Biener <rguenther@suse.de>
33950
33951 PR tree-optimization/88855
33952 * tree-if-conv.c (combine_blocks): Collect
33953 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33954
33955 2019-01-15 Tom de Vries <tdevries@suse.de>
33956
33957 PR target/80547
33958 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33959 lhs == NULL_TREE for gang-level reduction.
33960
33961 2019-01-15 Richard Biener <rguenther@suse.de>
33962 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33963
33964 PR ipa/88788
33965 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33966 return true if SSA_NAME is already marked in visited bitmap.
33967 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33968
33969 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33970
33971 PR tree-optimization/88775
33972 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33973 equal == 0 equality pointer comparisons some more if compared in
33974 integral types and either one points to an automatic var and the
33975 other to a global, or we can prove at least one points to the middle
33976 or both point to start or both point to end.
33977
33978 2019-01-14 Andi Kleen <ak@linux.intel.com>
33979
33980 * Makefile.in: Lower autofdo sampling rate by 10x.
33981 * Makefile.tpl: Dito.
33982
33983 2019-01-14 Tom Honermann <tom@honermann.net>
33984
33985 * defaults.h: Define CHAR8_TYPE.
33986
33987 2019-01-14 Martin Sebor <msebor@redhat.com>
33988
33989 PR target/88638
33990 * doc/extend.texi (Darwin Format Checks): Clarify.
33991
33992 2019-01-14 Richard Biener <rguenther@suse.de>
33993
33994 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33995 whether we are in (simplify ...) or (match ...) context.
33996
33997 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33998
33999 PR rtl-optimization/88796
34000 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34001 * cfgexpand.c (stack_protect_prologue): Initialize
34002 crtl->stack_protect_guard_decl.
34003 * function.c (stack_protect_epilogue): Use it instead of calling
34004 targetm.stack_protect_guard again.
34005 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34006 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34007 crtl->stack_protect_guard_decl.
34008 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34009 on the returned MEM_EXPR.
34010
34011 2019-01-12 Tom de Vries <tdevries@suse.de>
34012
34013 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34014 vector length using -fopenacc-dim.
34015
34016 2019-01-12 Tom de Vries <tdevries@suse.de>
34017
34018 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34019 lengths into account.
34020
34021 2019-01-12 Svante Signell <svante.signell@gmail.com>
34022
34023 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34024 (TARGET_CAN_SPLIT_STACK): Define.
34025 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34026
34027 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34028
34029 * params.def (inline-unit-growth): Set to 40.
34030
34031 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34032
34033 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34034
34035 2019-01-12 Tom de Vries <tdevries@suse.de>
34036
34037 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34038 region calling vector-partitionable routine, set default_vector_length
34039 to WARP_SIZE.
34040
34041 2019-01-12 Tom de Vries <tdevries@suse.de>
34042
34043 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34044 variable default_vector_length.
34045
34046 2019-01-12 Tom de Vries <tdevries@suse.de>
34047
34048 PR middle-end/88703
34049 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34050 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34051 dimensions limits.
34052
34053 2019-01-12 Tom de Vries <tdevries@suse.de>
34054
34055 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34056 (nvptx_goacc_validate_dims): Add used parameter.
34057 * doc/tm.texi: Regenerate.
34058 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34059 argument to call to targetm.goacc.validate_dims.
34060 (default_goacc_validate_dims): Add used
34061 parameter.
34062 * target.def (validate_dims): Add used parameter in DEFHOOK.
34063 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34064
34065 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34066
34067 PR middle-end/85956
34068 PR lto/88733
34069 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34070 field.
34071 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34072 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34073 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34074 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34075
34076 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34077
34078 PR rtl-optimization/87305
34079 * lra-assigns.c
34080 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34081 for little endian pseudos used as paradoxical subreg.
34082
34083 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34084
34085 PR tree-optimization/88693
34086 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34087 for STRING_CSTs that don't contain any NUL characters in the first
34088 TREE_STRING_LENGTH bytes.
34089
34090 2019-01-11 Alan Modra <amodra@gmail.com>
34091
34092 PR 88777
34093 PR 88614
34094 * genattrtab.c (min_fn): Don't translate values.
34095 (min_attr_value): Return INT_MAX when the value can't be calculated.
34096 Return minimum among any values that can be calculated.
34097 (max_attr_value): Adjust.
34098
34099 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34100
34101 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34102
34103 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34104
34105 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34106 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34107 (aarch64_return_call_with_max_clobbers): New function.
34108 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34109 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34110 argument.
34111 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34112 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34113 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34114 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34115 * cselib.c (cselib_process_insn): Add argument to
34116 targetm.hard_regno_call_part_clobbered call.
34117 * ira-conflicts.c (ira_build_conflicts): Ditto.
34118 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34119 * lra-constraints.c (inherit_reload_reg): Ditto.
34120 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34121 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34122 argument. Call targetm.return_call_with_max_clobbers.
34123 Add argument to targetm.hard_regno_call_part_clobbered call.
34124 (calls_have_same_clobbers_p): New function.
34125 (process_bb_lives): Add call_insn and last_call_insn variables.
34126 Pass call_insn to check_pseudos_live_through_calls.
34127 Modify if stmt to check targetm.return_call_with_max_clobbers.
34128 Update setting of flush variable.
34129 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34130 to false.
34131 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34132 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34133 targetm.hard_regno_call_part_clobbered call.
34134 * reginfo.c (choose_hard_reg_mode): Ditto.
34135 * regrename.c (check_new_reg_p): Ditto.
34136 * reload.c (find_equiv_reg): Ditto.
34137 * reload1.c (emit_reload_insns): Ditto.
34138 * sched-deps.c (deps_analyze_insn): Ditto.
34139 * sel-sched.c (init_regs_for_mode): Ditto.
34140 (mark_unavailable_hard_regs): Ditto.
34141 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34142 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34143 (return_call_with_max_clobbers): New target function.
34144 * doc/tm.texi: Regenerate.
34145 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34146 * hooks.c (hook_bool_uint_mode_false): Change to
34147 hook_bool_insn_uint_mode_false.
34148 * hooks.h (hook_bool_uint_mode_false): Ditto.
34149
34150 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34151
34152 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34153 (aarch64_remove_extra_call_preserved_regs): New function.
34154 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34155 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34156 * doc/tm.texi: Regenerate.
34157 * final.c (get_call_reg_set_usage): Call new hook.
34158 * target.def (remove_extra_call_preserved_regs): New hook.
34159 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34160 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34161
34162 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34163
34164 PR bootstrap/88714
34165 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34166 inside of pass_combine_1 dump rather than pass_profile_1.
34167
34168 2019-01-11 Tom de Vries <tdevries@suse.de>
34169
34170 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34171 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34172 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34173 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34174 num_workers 16.
34175
34176 2019-01-11 Tom de Vries <tdevries@suse.de>
34177
34178 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34179
34180 2019-01-11 Jan Beulich <jbeulich@suse.com>
34181
34182 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34183 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34184 sse2_cvtsi2sd): Add {l}.
34185 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34186 syntax.
34187
34188 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34189
34190 PR target/88785
34191 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34192 define_expand.
34193 (*float<floatunssuffix>v2div2sf2): New define_insn.
34194 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34195 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34196 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34197 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34198 match_operands with "const0_operand" "C".
34199
34200 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34201
34202 * config/aarch64/aarch64-builtins.c
34203 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34204 (aarch64_init_simd_builtins): ...Here
34205
34206 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34207
34208 PR rtl-optimization/87305
34209 * lra-assigns.c
34210 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34211 allocation for big endian pseudos used as paradoxical subregs and
34212 spill them if it is wrong.
34213 * lra-constraints.c (lra_constraints): Add a comment.
34214
34215 2019-01-10 Richard Biener <rguenther@suse.de>
34216
34217 PR tree-optimization/88792
34218 * tree-ssa-pre.c (get_representative_for): Do not return a
34219 value-number here.
34220
34221 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34222
34223 PR middle-end/84877
34224 PR bootstrap/88450
34225 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34226 (assign_parm_setup_block): Do the argument slot realignment here
34227 instead.
34228
34229 2019-01-10 Stefan Agner <stefan@agner.ch>
34230
34231 PR target/88648
34232 * config/arm/arm.c (arm_option_override_internal): Force
34233 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34234
34235 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34236
34237 PR c/88568
34238 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34239 DECL_EXTERNAL.
34240
34241 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34242
34243 * config/arm/arm-builtins.c
34244 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34245 (MAC_LANE_PAIR_QUALIFIERS): New.
34246 (arm_expand_builtin_args): Use it.
34247 (arm_expand_builtin_1): Likewise.
34248 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34249 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34250 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34251 * config/arm/arm_neon.h:
34252 (vcadd_rot90_f16): New.
34253 (vcaddq_rot90_f16): New.
34254 (vcadd_rot270_f16): New.
34255 (vcaddq_rot270_f16): New.
34256 (vcmla_f16): New.
34257 (vcmlaq_f16): New.
34258 (vcmla_lane_f16): New.
34259 (vcmla_laneq_f16): New.
34260 (vcmlaq_lane_f16): New.
34261 (vcmlaq_laneq_f16): New.
34262 (vcmla_rot90_f16): New.
34263 (vcmlaq_rot90_f16): New.
34264 (vcmla_rot90_lane_f16): New.
34265 (vcmla_rot90_laneq_f16): New.
34266 (vcmlaq_rot90_lane_f16): New.
34267 (vcmlaq_rot90_laneq_f16): New.
34268 (vcmla_rot180_f16): New.
34269 (vcmlaq_rot180_f16): New.
34270 (vcmla_rot180_lane_f16): New.
34271 (vcmla_rot180_laneq_f16): New.
34272 (vcmlaq_rot180_lane_f16): New.
34273 (vcmlaq_rot180_laneq_f16): New.
34274 (vcmla_rot270_f16): New.
34275 (vcmlaq_rot270_f16): New.
34276 (vcmla_rot270_lane_f16): New.
34277 (vcmla_rot270_laneq_f16): New.
34278 (vcmlaq_rot270_lane_f16): New.
34279 (vcmlaq_rot270_laneq_f16): New.
34280 (vcadd_rot90_f32): New.
34281 (vcaddq_rot90_f32): New.
34282 (vcadd_rot270_f32): New.
34283 (vcaddq_rot270_f32): New.
34284 (vcmla_f32): New.
34285 (vcmlaq_f32): New.
34286 (vcmla_lane_f32): New.
34287 (vcmla_laneq_f32): New.
34288 (vcmlaq_lane_f32): New.
34289 (vcmlaq_laneq_f32): New.
34290 (vcmla_rot90_f32): New.
34291 (vcmlaq_rot90_f32): New.
34292 (vcmla_rot90_lane_f32): New.
34293 (vcmla_rot90_laneq_f32): New.
34294 (vcmlaq_rot90_lane_f32): New.
34295 (vcmlaq_rot90_laneq_f32): New.
34296 (vcmla_rot180_f32): New.
34297 (vcmlaq_rot180_f32): New.
34298 (vcmla_rot180_lane_f32): New.
34299 (vcmla_rot180_laneq_f32): New.
34300 (vcmlaq_rot180_lane_f32): New.
34301 (vcmlaq_rot180_laneq_f32): New.
34302 (vcmla_rot270_f32): New.
34303 (vcmlaq_rot270_f32): New.
34304 (vcmla_rot270_lane_f32): New.
34305 (vcmla_rot270_laneq_f32): New.
34306 (vcmlaq_rot270_lane_f32): New.
34307 (vcmlaq_rot270_laneq_f32): New.
34308 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34309 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34310 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34311 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34312 vcmlaq_lane270): New.
34313 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34314 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34315 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34316 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34317 (arm_option_reconfigure_globals): Use them.
34318 * config/arm/iterators.md (VDF, VQ_HSF): New.
34319 (VCADD, VCMLA): New.
34320 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34321 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34322 New.
34323 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34324 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34325
34326 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34327
34328 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34329 Add qualifier_lane_pair_index.
34330 (emit-rtl.h): Include.
34331 (TYPES_QUADOP_LANE_PAIR): New.
34332 (aarch64_simd_expand_args): Use it.
34333 (aarch64_simd_expand_builtin): Likewise.
34334 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34335 New.
34336 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34337 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34338 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34339 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34340 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34341 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34342 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34343 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34344 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34345 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34346 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34347 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34348 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34349 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34350 Add __ARM_FEATURE_COMPLEX.
34351 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34352 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34353 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34354 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34355 fcmlaq_lane270): New.
34356 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34357 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34358 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34359 * config/aarch64/arm_neon.h:
34360 (vcadd_rot90_f16): New.
34361 (vcaddq_rot90_f16): New.
34362 (vcadd_rot270_f16): New.
34363 (vcaddq_rot270_f16): New.
34364 (vcmla_f16): New.
34365 (vcmlaq_f16): New.
34366 (vcmla_lane_f16): New.
34367 (vcmla_laneq_f16): New.
34368 (vcmlaq_lane_f16): New.
34369 (vcmlaq_rot90_lane_f16): New.
34370 (vcmla_rot90_laneq_f16): New.
34371 (vcmla_rot90_lane_f16): New.
34372 (vcmlaq_rot90_f16): New.
34373 (vcmla_rot90_f16): New.
34374 (vcmlaq_laneq_f16): New.
34375 (vcmla_rot180_laneq_f16): New.
34376 (vcmla_rot180_lane_f16): New.
34377 (vcmlaq_rot180_f16): New.
34378 (vcmla_rot180_f16): New.
34379 (vcmlaq_rot90_laneq_f16): New.
34380 (vcmlaq_rot270_laneq_f16): New.
34381 (vcmlaq_rot270_lane_f16): New.
34382 (vcmla_rot270_laneq_f16): New.
34383 (vcmlaq_rot270_f16): New.
34384 (vcmla_rot270_f16): New.
34385 (vcmlaq_rot180_laneq_f16): New.
34386 (vcmlaq_rot180_lane_f16): New.
34387 (vcmla_rot270_lane_f16): New.
34388 (vcadd_rot90_f32): New.
34389 (vcaddq_rot90_f32): New.
34390 (vcaddq_rot90_f64): New.
34391 (vcadd_rot270_f32): New.
34392 (vcaddq_rot270_f32): New.
34393 (vcaddq_rot270_f64): New.
34394 (vcmla_f32): New.
34395 (vcmlaq_f32): New.
34396 (vcmlaq_f64): New.
34397 (vcmla_lane_f32): New.
34398 (vcmla_laneq_f32): New.
34399 (vcmlaq_lane_f32): New.
34400 (vcmlaq_laneq_f32): New.
34401 (vcmla_rot90_f32): New.
34402 (vcmlaq_rot90_f32): New.
34403 (vcmlaq_rot90_f64): New.
34404 (vcmla_rot90_lane_f32): New.
34405 (vcmla_rot90_laneq_f32): New.
34406 (vcmlaq_rot90_lane_f32): New.
34407 (vcmlaq_rot90_laneq_f32): New.
34408 (vcmla_rot180_f32): New.
34409 (vcmlaq_rot180_f32): New.
34410 (vcmlaq_rot180_f64): New.
34411 (vcmla_rot180_lane_f32): New.
34412 (vcmla_rot180_laneq_f32): New.
34413 (vcmlaq_rot180_lane_f32): New.
34414 (vcmlaq_rot180_laneq_f32): New.
34415 (vcmla_rot270_f32): New.
34416 (vcmlaq_rot270_f32): New.
34417 (vcmlaq_rot270_f64): New.
34418 (vcmla_rot270_lane_f32): New.
34419 (vcmla_rot270_laneq_f32): New.
34420 (vcmlaq_rot270_lane_f32): New.
34421 (vcmlaq_rot270_laneq_f32): New.
34422 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34423 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34424 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34425 (FCADD, FCMLA): New.
34426 (rot): New.
34427 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34428
34429 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34430
34431 PR other/16615
34432
34433 * config/pa/pa.c: Change "can not" to "cannot".
34434 * gimple-ssa-evrp-analyze.c: Likewise.
34435 * ipa-icf.c: Likewise.
34436 * ipa-polymorphic-call.c: Likewise.
34437 * ipa-pure-const.c: Likewise.
34438 * lra-constraints.c: Likewise.
34439 * lra-remat.c: Likewise.
34440 * reload1.c: Likewise.
34441 * reorg.c: Likewise.
34442 * tree-ssa-uninit.c: Likewise.
34443
34444 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34445
34446 PR other/16615
34447
34448 * Makefile.in: Mechanically replace "can not" with "cannot".
34449 * alias.c: Likewise.
34450 * builtins.c: Likewise.
34451 * calls.c: Likewise.
34452 * cgraph.c: Likewise.
34453 * cgraph.h: Likewise.
34454 * cgraphclones.c: Likewise.
34455 * cgraphunit.c: Likewise.
34456 * combine-stack-adj.c: Likewise.
34457 * combine.c: Likewise.
34458 * common/config/i386/i386-common.c: Likewise.
34459 * config/aarch64/aarch64.c: Likewise.
34460 * config/alpha/sync.md: Likewise.
34461 * config/arc/arc.c: Likewise.
34462 * config/arc/predicates.md: Likewise.
34463 * config/arm/arm-c.c: Likewise.
34464 * config/arm/arm.c: Likewise.
34465 * config/arm/arm.h: Likewise.
34466 * config/arm/arm.md: Likewise.
34467 * config/arm/cortex-r4f.md: Likewise.
34468 * config/csky/csky.c: Likewise.
34469 * config/csky/csky.h: Likewise.
34470 * config/darwin-f.c: Likewise.
34471 * config/epiphany/epiphany.md: Likewise.
34472 * config/i386/i386.c: Likewise.
34473 * config/i386/sol2.h: Likewise.
34474 * config/m68k/m68k.c: Likewise.
34475 * config/mcore/mcore.h: Likewise.
34476 * config/microblaze/microblaze.md: Likewise.
34477 * config/mips/20kc.md: Likewise.
34478 * config/mips/sb1.md: Likewise.
34479 * config/nds32/nds32.c: Likewise.
34480 * config/nds32/predicates.md: Likewise.
34481 * config/pa/pa.c: Likewise.
34482 * config/rs6000/e300c2c3.md: Likewise.
34483 * config/rs6000/rs6000.c: Likewise.
34484 * config/s390/s390.h: Likewise.
34485 * config/sh/sh.c: Likewise.
34486 * config/sh/sh.md: Likewise.
34487 * config/spu/vmx2spu.h: Likewise.
34488 * cprop.c: Likewise.
34489 * dbxout.c: Likewise.
34490 * df-scan.c: Likewise.
34491 * doc/cfg.texi: Likewise.
34492 * doc/extend.texi: Likewise.
34493 * doc/fragments.texi: Likewise.
34494 * doc/gty.texi: Likewise.
34495 * doc/invoke.texi: Likewise.
34496 * doc/lto.texi: Likewise.
34497 * doc/md.texi: Likewise.
34498 * doc/objc.texi: Likewise.
34499 * doc/rtl.texi: Likewise.
34500 * doc/tm.texi: Likewise.
34501 * dse.c: Likewise.
34502 * emit-rtl.c: Likewise.
34503 * emit-rtl.h: Likewise.
34504 * except.c: Likewise.
34505 * expmed.c: Likewise.
34506 * expr.c: Likewise.
34507 * fold-const.c: Likewise.
34508 * genautomata.c: Likewise.
34509 * gimple-fold.c: Likewise.
34510 * hard-reg-set.h: Likewise.
34511 * ifcvt.c: Likewise.
34512 * ipa-comdats.c: Likewise.
34513 * ipa-cp.c: Likewise.
34514 * ipa-devirt.c: Likewise.
34515 * ipa-fnsummary.c: Likewise.
34516 * ipa-icf.c: Likewise.
34517 * ipa-inline-transform.c: Likewise.
34518 * ipa-inline.c: Likewise.
34519 * ipa-polymorphic-call.c: Likewise.
34520 * ipa-profile.c: Likewise.
34521 * ipa-prop.c: Likewise.
34522 * ipa-pure-const.c: Likewise.
34523 * ipa-reference.c: Likewise.
34524 * ipa-split.c: Likewise.
34525 * ipa-visibility.c: Likewise.
34526 * ipa.c: Likewise.
34527 * ira-build.c: Likewise.
34528 * ira-color.c: Likewise.
34529 * ira-conflicts.c: Likewise.
34530 * ira-costs.c: Likewise.
34531 * ira-int.h: Likewise.
34532 * ira-lives.c: Likewise.
34533 * ira.c: Likewise.
34534 * ira.h: Likewise.
34535 * loop-invariant.c: Likewise.
34536 * loop-unroll.c: Likewise.
34537 * lower-subreg.c: Likewise.
34538 * lra-assigns.c: Likewise.
34539 * lra-constraints.c: Likewise.
34540 * lra-eliminations.c: Likewise.
34541 * lra-lives.c: Likewise.
34542 * lra-remat.c: Likewise.
34543 * lra-spills.c: Likewise.
34544 * lra.c: Likewise.
34545 * lto-cgraph.c: Likewise.
34546 * lto-streamer-out.c: Likewise.
34547 * postreload-gcse.c: Likewise.
34548 * predict.c: Likewise.
34549 * profile-count.h: Likewise.
34550 * profile.c: Likewise.
34551 * recog.c: Likewise.
34552 * ree.c: Likewise.
34553 * reload.c: Likewise.
34554 * reload1.c: Likewise.
34555 * reorg.c: Likewise.
34556 * resource.c: Likewise.
34557 * rtl.def: Likewise.
34558 * rtl.h: Likewise.
34559 * rtlanal.c: Likewise.
34560 * sched-deps.c: Likewise.
34561 * sched-ebb.c: Likewise.
34562 * sched-rgn.c: Likewise.
34563 * sel-sched-ir.c: Likewise.
34564 * sel-sched.c: Likewise.
34565 * shrink-wrap.c: Likewise.
34566 * simplify-rtx.c: Likewise.
34567 * symtab.c: Likewise.
34568 * target.def: Likewise.
34569 * toplev.c: Likewise.
34570 * tree-call-cdce.c: Likewise.
34571 * tree-cfg.c: Likewise.
34572 * tree-complex.c: Likewise.
34573 * tree-core.h: Likewise.
34574 * tree-eh.c: Likewise.
34575 * tree-inline.c: Likewise.
34576 * tree-loop-distribution.c: Likewise.
34577 * tree-nrv.c: Likewise.
34578 * tree-profile.c: Likewise.
34579 * tree-sra.c: Likewise.
34580 * tree-ssa-alias.c: Likewise.
34581 * tree-ssa-dce.c: Likewise.
34582 * tree-ssa-dom.c: Likewise.
34583 * tree-ssa-forwprop.c: Likewise.
34584 * tree-ssa-loop-im.c: Likewise.
34585 * tree-ssa-loop-ivcanon.c: Likewise.
34586 * tree-ssa-loop-ivopts.c: Likewise.
34587 * tree-ssa-loop-niter.c: Likewise.
34588 * tree-ssa-phionlycprop.c: Likewise.
34589 * tree-ssa-phiopt.c: Likewise.
34590 * tree-ssa-propagate.c: Likewise.
34591 * tree-ssa-threadedge.c: Likewise.
34592 * tree-ssa-threadupdate.c: Likewise.
34593 * tree-ssa-uninit.c: Likewise.
34594 * tree-ssanames.c: Likewise.
34595 * tree-streamer-out.c: Likewise.
34596 * tree.c: Likewise.
34597 * tree.h: Likewise.
34598 * vr-values.c: Likewise.
34599
34600 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34601
34602 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34603 (ix86_split_xorsign): Ditto.
34604 * config/i386/i386.c (ix86_expand_xorsign): New function.
34605 (ix86_split_xorsign): Ditto.
34606 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34607 (xorsign<mode>3): New expander.
34608 (xorsign<mode>3_1): New insn_and_split pattern.
34609 * config/i386/sse.md (xorsign<mode>3): New expander.
34610
34611 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34612
34613 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34614 (*tablejump_sp64): Likewise.
34615 (*tablejump<P:mode>): ...this.
34616 (*call_address_sp32): Merge into...
34617 (*call_address_sp64): Likewise.
34618 (*call_address<P:mode>): ...this.
34619 (*call_symbolic_sp32): Merge into...
34620 (*call_symbolic_sp64): Likewise.
34621 (*call_symbolic<P:mode>): ...this.
34622 (call_value): Remove constraint and add predicate.
34623 (*call_value_address_sp32): Merge into...
34624 (*call_value_address_sp64): Likewise.
34625 (*call_value_address<P:mode>): ...this.
34626 (*call_value_symbolic_sp32): Merge into...
34627 (*call_value_symbolic_sp64): Likewise.
34628 (*call_value_symbolic<P:mode>): ...this.
34629 (*sibcall_symbolic_sp32): Merge into...
34630 (*sibcall_symbolic_sp64): Likewise.
34631 (*sibcall_symbolic<P:mode>): ...this.
34632 (sibcall_value): Remove constraint and add predicate.
34633 (*sibcall_value_symbolic_sp32): Merge into...
34634 (*sibcall_value_symbolic_sp64): Likewise.
34635 (*sibcall_value_symbolic<P:mode>): ...this.
34636 (window_save): Minor tweak.
34637 (*branch_sp32): Merge into...
34638 (*branch_sp64): Likewise.
34639 (*branch<P:mode>): ...this.
34640
34641 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34642 James Clarke <jrtc27@jrtc27.com>
34643
34644 PR target/84010
34645 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34646 consistently in TLS address generation and adjust code to the renaming
34647 of patterns. Mark calls to __tls_get_addr as const.
34648 * config/sparc/sparc.md (tgd_hi22): Turn into...
34649 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34650 (tgd_lo10): Turn into...
34651 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34652 (tgd_add32): Merge into...
34653 (tgd_add64): Likewise.
34654 (tgd_add<P:mode>): ...this and use Pmode throughout.
34655 (tldm_hi22): Turn into...
34656 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34657 (tldm_lo10): Turn into...
34658 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34659 (tldm_add32): Merge into...
34660 (tldm_add64): Likewise.
34661 (tldm_add<P:mode>): ...this and use Pmode throughout.
34662 (tldm_call32): Merge into...
34663 (tldm_call64): Likewise.
34664 (tldm_call<P:mode>): ...this and use Pmode throughout.
34665 (tldo_hix22): Turn into...
34666 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34667 (tldo_lox10): Turn into...
34668 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34669 (tldo_add32): Merge into...
34670 (tldo_add64): Likewise.
34671 (tldo_add<P:mode>): ...this and use Pmode throughout.
34672 (tie_hi22): Turn into...
34673 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34674 (tie_lo10): Turn into...
34675 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34676 (tie_ld64): Use DImode throughout.
34677 (tie_add32): Merge into...
34678 (tie_add64): Likewise.
34679 (tie_add<P:mode>): ...this and use Pmode throughout.
34680 (tle_hix22_sp32): Merge into...
34681 (tle_hix22_sp64): Likewise.
34682 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34683 (tle_lox22_sp32): Merge into...
34684 (tle_lox22_sp64): Likewise.
34685 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34686 (*tldo_ldub_sp32): Merge into...
34687 (*tldo_ldub_sp64): Likewise.
34688 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34689 (*tldo_ldub1_sp32): Merge into...
34690 (*tldo_ldub1_sp64): Likewise.
34691 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34692 (*tldo_ldub2_sp32): Merge into...
34693 (*tldo_ldub2_sp64): Likewise.
34694 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34695 (*tldo_ldsb1_sp32): Merge into...
34696 (*tldo_ldsb1_sp64): Likewise.
34697 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34698 (*tldo_ldsb2_sp32): Merge into...
34699 (*tldo_ldsb2_sp64): Likewise.
34700 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34701 (*tldo_ldub3_sp64): Use DImode throughout.
34702 (*tldo_ldsb3_sp64): Likewise.
34703 (*tldo_lduh_sp32): Merge into...
34704 (*tldo_lduh_sp64): Likewise.
34705 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34706 (*tldo_lduh1_sp32): Merge into...
34707 (*tldo_lduh1_sp64): Likewise.
34708 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34709 (*tldo_ldsh1_sp32): Merge into...
34710 (*tldo_ldsh1_sp64): Likewise.
34711 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34712 (*tldo_lduh2_sp64): Use DImode throughout.
34713 (*tldo_ldsh2_sp64): Likewise.
34714 (*tldo_lduw_sp32): Merge into...
34715 (*tldo_lduw_sp64): Likewise.
34716 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34717 (*tldo_lduw1_sp64): Use DImode throughout.
34718 (*tldo_ldsw1_sp64): Likewise.
34719 (*tldo_ldx_sp64): Likewise.
34720 (*tldo_stb_sp32): Merge into...
34721 (*tldo_stb_sp64): Likewise.
34722 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34723 (*tldo_sth_sp32): Merge into...
34724 (*tldo_sth_sp64): Likewise.
34725 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34726 (*tldo_stw_sp32): Merge into...
34727 (*tldo_stw_sp64): Likewise.
34728 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34729 (*tldo_stx_sp64): Use DImode throughout.
34730
34731 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34732
34733 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34734 check configure option to set BTI and Return Address Signing.
34735 * configure.ac: Add --enable-standard-branch-protection and
34736 --disable-standard-branch-protection.
34737 * configure: Regenerated.
34738 * doc/install.texi: Document the same.
34739
34740 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34741 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34742
34743 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34744 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34745 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34746 if bti is enabled.
34747 * config/aarch64/aarch64-bti-insert.c: New file.
34748 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34749 pass.
34750 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34751 new bti pass.
34752 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34753 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34754 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34755 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34756
34757 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34758
34759 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34760 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34761 Disable bti for -mbranch-protection=none.
34762 (aarch64_handle_standard_branch_protection): Enable bti for
34763 -mbranch-protection=standard.
34764 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34765 -mbranch-protection.
34766 (aarch64_bti_enabled): Check if bti is enabled.
34767 * config/aarch64/aarch64.opt: Declare target variable.
34768 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34769
34770 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34771
34772 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34773 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34774 (aarch64_expand_epilogue): Likewise.
34775 (aarch64_output_mi_thunk): Likewise.
34776 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34777 TAILCALL_ADDR_REGS to x16 and x17.
34778 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34779
34780 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34781
34782 * config/aarch64/aarch64-option-extensions.def: Define
34783 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34784 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34785 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34786 (AARCH64_FL_PREDRES): New.
34787 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34788 AARCH64_FL_PREDRES by default.
34789 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34790
34791 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34792
34793 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34794 ARMv8.5-A.
34795 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34796 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34797 * doc/invoke.texi: Document ARMv8.5-A.
34798
34799 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34800
34801 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34802 (xorsign<mode>3): Likewise.
34803
34804 2019-01-09 Jelinek <jakub@redhat.com>
34805
34806 PR middle-end/88758
34807 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34808 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34809
34810 PR rtl-optimization/88331
34811 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34812 not currently_expanding_to_rtl.
34813
34814 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34815
34816 * doc/invoke.texi (-Os): Remove trailing spaces.
34817 (-finline-functions): Remove reference to -O2.
34818
34819 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34820
34821 PR rtl-optimization/79593
34822 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34823
34824 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34825 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34826
34827 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34828
34829 PR bootstrap/88721
34830 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34831 to -1 on entry.
34832
34833 PR debug/88723
34834 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34835 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34836
34837 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34838
34839 PR target/88717
34840 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34841 ix86_avx_u128_mode_entry.
34842
34843 2019-01-08 Martin Liska <mliska@suse.cz>
34844
34845 PR tree-optimization/88753
34846 * tree-switch-conversion.c (switch_conversion::build_one_array):
34847 Come up with local variable constructor. Convert first to
34848 type of constructor values.
34849
34850 2019-01-08 Richard Biener <rguenther@suse.de>
34851
34852 PR tree-optimization/86554
34853 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34854 rpo_avail): Move earlier.
34855 (visit_nary_op): When value-numbering to expressions
34856 with different overflow behavior make sure there's an
34857 available expression on the path.
34858
34859 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34860
34861 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34862 aarch64_parse_branch_protection,
34863 struct aarch64_branch_protect_type,
34864 aarch64_handle_no_branch_protection,
34865 aarch64_handle_standard_branch_protection,
34866 aarch64_validate_mbranch_protection,
34867 aarch64_handle_pac_ret_protection,
34868 aarch64_handle_attr_branch_protection,
34869 accepted_branch_protection_string,
34870 aarch64_pac_ret_subtypes,
34871 aarch64_branch_protect_types,
34872 aarch64_handle_pac_ret_leaf): Define.
34873 (aarch64_override_options_after_change_1, aarch64_override_options):
34874 Add check for accepted_branch_protection_string.
34875 (aarch64_option_save): Save accepted_branch_protection_string.
34876 (aarch64_option_restore): Save accepted_branch_protection_string.
34877 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34878 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34879 msign-return-address.
34880 * doc/invoke.texi: Add mbranch-protection.
34881
34882 2019-01-08 Alan Modra <amodra@gmail.com>
34883
34884 PR target/88614
34885 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34886 Delete "unknownp" parameter. Adjust callers. Handle
34887 CONST_INT, PLUS, MINUS, and MULT.
34888 (attr_value_aligned): Renamed from or_attr_value.
34889 (min_attr_value): Return INT_MIN for unhandled rtl case..
34890 (min_fn): ..and translate to INT_MAX here.
34891 (write_length_unit_log): Modify to cope without "unknown".
34892 (write_attr_value): Handle IF_THEN_ELSE.
34893
34894 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34895
34896 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34897 optimization for masked stores.
34898
34899 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34900
34901 PR middle-end/88567
34902 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34903 output vector directly to duplicate_and_interleave instead of
34904 going through a temporary. Postpone insertion of ctor_seq to
34905 the end of the loop.
34906
34907 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34908
34909 PR target/86891
34910 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34911 unsigned_p. Handle signed and unsigned overflow correction as
34912 required.
34913 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34914 prototype.
34915 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34916 for operand 2.
34917 (add<mode>3_compareV_imm): Make this callable for expanding.
34918 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34919 aarch64_plus_operand for operand 2.
34920 (subv<GPI:mode>_insn): New insn pattern.
34921 (subv<GPI:mode>_imm): Likewise.
34922 (negv<GPI:mode>3): New expand pattern.
34923 (negv<GPI:mode>_insn): New insn pattern.
34924 (negv<GPI:mode>_cmp_only): Likewise.
34925 (cmpv<GPI:mode>_insn): Likewise.
34926 (subvti4): Use register_operand for operand 1. Update call to
34927 aarch64_expand_subvti.
34928 (usubvti4): Likewise.
34929 (negvti3): New expand pattern.
34930 (negdi_carryout): New insn pattern.
34931 (negvdi_carryinV): New insn pattern.
34932 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34933 version the named version.
34934 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34935 operands.
34936 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34937 patterns.
34938 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34939 patterns.
34940 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34941 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34942 (sub<mode>3_carryinCV): Delete.
34943 (sub<GPI:mode>3_carryinV): New expand pattern.
34944 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34945
34946 2019-01-07 Richard Biener <rguenther@suse.de>
34947
34948 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34949 of tree_operand_hash.
34950
34951 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34952
34953 PR tree-optimization/88598
34954 * tree.h (single_nonzero_element): Declare.
34955 * tree.c (single_nonzero_element): New function.
34956 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34957 if I is the only nonzero element of CST.
34958
34959 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34960
34961 PR tree-optimization/88598
34962 * tree.h (initializer_each_zero_or_onep): Declare.
34963 * tree.c (initializer_each_zero_or_onep): New function.
34964 (signed_or_unsigned_type_for): Handle float types too.
34965 (unsigned_type_for, signed_type_for): Update comments accordingly.
34966 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34967 x & { 0 or -1, 0 or -1, ... }.
34968
34969 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34970
34971 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34972 with x86_64-pc-linux-gnu.
34973
34974 2019-01-07 Tom de Vries <tdevries@suse.de>
34975
34976 PR target/85486
34977 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34978 function.
34979 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34980 routines.
34981
34982 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34983
34984 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34985 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34986 TARGET_AVX512F as condition.
34987
34988 PR debug/88723
34989 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34990 const_not_ok_for_debug_p target hook.
34991 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34992 on UNSPEC and subexpressions thereof if all subexpressions of the
34993 UNSPEC are CONSTANT_P.
34994
34995 PR tree-optimization/88676
34996 * tree-ssa-phiopt.c (two_value_replacement): New function.
34997 (tree_ssa_phiopt_worker): Call it.
34998
34999 PR sanitizer/88619
35000 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35001 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35002
35003 PR c++/85052
35004 * tree-vect-generic.c: Include insn-config.h and recog.h.
35005 (expand_vector_piecewise): Add defaulted ret_type argument,
35006 if non-NULL, use that in preference to type for the result type.
35007 (expand_vector_parallel): Formatting fix.
35008 (do_vec_conversion, do_vec_narrowing_conversion,
35009 expand_vector_conversion): New functions.
35010 (expand_vector_operations_1): Call expand_vector_conversion
35011 for VEC_CONVERT ifn calls.
35012 * internal-fn.def (VEC_CONVERT): New internal function.
35013 * internal-fn.c (expand_VEC_CONVERT): New function.
35014 * fold-const-call.c (fold_const_vec_convert): New function.
35015 (fold_const_call): Use it for CFN_VEC_CONVERT.
35016 * doc/extend.texi (__builtin_convertvector): Document.
35017
35018 2019-01-07 Tom de Vries <tdevries@suse.de>
35019
35020 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35021 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35022 vector_red_partition, vector_red_sym): New global variables.
35023 (nvptx_option_override): Initialize vector_red_sym.
35024 (nvptx_declare_function_name): Restore red_partition register.
35025 (nvptx_file_end): Emit code to declare the vector reduction variables.
35026 (nvptx_output_red_partition): New function.
35027 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35028 large vector reductions.
35029 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35030 (nvptx_init_builtins): Add VECTOR_ADDR.
35031 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35032 Handle nvptx_expand_shared_addr.
35033 (nvptx_get_shared_red_addr): Add vector argument and handle large
35034 vectors.
35035 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35036 large vectors.
35037 (nvptx_goacc_reduction_init): Likewise.
35038 (nvptx_goacc_reduction_fini): Likewise.
35039 (nvptx_goacc_reduction_teardown): Likewise.
35040 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35041 init,fini,teardown}.
35042 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35043 (nvptx_set_current_function): Init vector_red_partition.
35044 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35045 (nvptx_red_partition): New insn.
35046 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35047
35048 2019-01-07 Tom de Vries <tdevries@suse.de>
35049
35050 PR target/85381
35051 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35052 empty loops.
35053
35054 2019-01-07 Tom de Vries <tdevries@suse.de>
35055
35056 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35057 (nvptx_option_override): Init oacc_bcast_partition.
35058 (nvptx_init_oacc_workers): New function.
35059 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35060 (nvptx_needs_shared_bcast): New function.
35061 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35062 to propagate state.
35063 (nvptx_shared_propagate): Initialize vector bcast partition and
35064 synchronization state.
35065 (nvptx_single): Generalize to enable vectors to use shared-memory
35066 to propagate state.
35067 (nvptx_process_pars): Likewise.
35068 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35069 * config/nvptx/nvptx.h (struct machine_function): Add
35070 bcast_partition and sync_bar members.
35071
35072 2019-01-07 Tom de Vries <tdevries@suse.de>
35073
35074 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35075 (nvptx_apply_dim_limits): New function.
35076 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35077 PTX_WARP_SIZE.
35078
35079 2019-01-07 Tom de Vries <tdevries@suse.de>
35080
35081 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35082 as late as possible.
35083
35084 2019-01-07 Tom de Vries <tdevries@suse.de>
35085
35086 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35087 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35088 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35089 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35090 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35091
35092 2019-01-07 Tom de Vries <tdevries@suse.de>
35093
35094 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35095
35096 2019-01-07 Tom de Vries <tdevries@suse.de>
35097
35098 * omp-offload.c (oacc_get_min_dim): New function.
35099 * omp-offload.h (oacc_get_min_dim): Declare.
35100
35101 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35102
35103 PR target/88521
35104 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35105 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35106
35107 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35108
35109 PR tree-opt/86020
35110 Revert:
35111 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35112
35113 * ipa-inline.c (edge_badness): Use inlined_time instead of
35114 inline_summaries->get.
35115
35116 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35117
35118 * opts.c (enable_fdo_optimizations): Enable
35119 version-loops-for-strides, loop-interchange, unrol-and-jam
35120 and tree-loop-distribution.
35121 * invoke.texi: Document newly enabled options.
35122
35123 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35124
35125 * doc/invoke.texi (max-inline-insns-small): New parameters.
35126 * ipa-inline.c (want_early_inline_function_p): simplify.
35127 (want_inline_small_function_p): Fix pasto from previous patch;
35128 use max-inline-insns-small bound.
35129 * params.def (max-inline-insns-small): New param.
35130 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35131 variables correctly.
35132
35133 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35134
35135 * doc/invoke.texi: Document max-inline-insns-size,
35136 uninlined-function-insns, uninlined-function-time,
35137 uninlined-thunk-insns and uninlined-thunk-time.
35138 * params.def: Add max-inline-insns-size,
35139 uninlined-function-insns, uninlined-function-time,
35140 uninlined-thunk-insns and uninlined-thunk-time.
35141 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35142 new parameters.
35143 * ipa-inline.c (can_inline_edge_by_limits_p,
35144 want_inline_small_function_p): Use new parameters.
35145
35146 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35147
35148 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35149
35150 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35151
35152 PR middle-end/82564
35153 PR target/88620
35154 * expr.c (expand_assignment): For calls returning VLA structures
35155 if to_rtx is not a MEM, force it into a stack temporary.
35156
35157 PR debug/88635
35158 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35159 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35160 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35161 subexpressions of both operands.
35162 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35163 subrtxes are CONSTANT_P.
35164 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35165 2018-11-09 changes.
35166
35167 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35168
35169 * params.def (hot-bb-count-ws-permille): Set to 990.
35170
35171 2019-01-04 Martin Sebor <msebor@redhat.com>
35172
35173 PR c/88546
35174 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35175 leaf.
35176
35177 2019-01-04 Martin Sebor <msebor@redhat.com>
35178
35179 PR c/88363
35180 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35181
35182 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35183
35184 * gdbinit.in: Turn off pagination for the skip commands, restore
35185 it to previous state afterwards.
35186
35187 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35188
35189 PR target/88594
35190 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35191 of GET_MODE (opN) as modes of the libcall arguments.
35192
35193 2019-01-04 Jan Beulich <jbeulich@suse.com>
35194
35195 * config/i386/sse.md
35196 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35197 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35198 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35199 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35200 avx512f_vmcmp<mode>3<round_saeonly_name>,
35201 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35202 avx512f_maskcmp<mode>3,
35203 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35204 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35205 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35206 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35207 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35208 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35209 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35210 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35211 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35212 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35213 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35214 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35215 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35216 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35217 avx512cd_maskb_vec_dup<mode>,
35218 avx512cd_maskw_vec_dup<mode>,
35219 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35220 avx512dq_vmfpclass<mode>,
35221 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35222 instead of =Yk.
35223
35224 2019-01-03 Martin Sebor <msebor@redhat.com>
35225
35226 PR tree-optimization/88659
35227 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35228
35229 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35230
35231 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35232 unaligned vsx and avoid lxvd2x/stxvd2x.
35233 (gen_lvx_v4si_move): New function.
35234
35235 2019-01-03 Tom de Vries <tdevries@suse.de>
35236
35237 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35238 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35239 function.
35240 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35241
35242 2019-01-03 Tom de Vries <tdevries@suse.de>
35243
35244 * config/nvptx/nvptx.c (struct offload_attrs): New.
35245 (populate_offload_attrs): New function. Factor mask extraction out of
35246 nvptx_reorg. Add extraction of dimensions.
35247 (nvptx_reorg): Use populate_offload_attrs.
35248
35249 2019-01-03 Tom de Vries <tdevries@suse.de>
35250
35251 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35252 cases for oacc_min_dims_p and routine_p. Add asserts for
35253 oacc_default_dims_p and offload_region_p.
35254
35255 2019-01-03 Tom de Vries <tdevries@suse.de>
35256
35257 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35258 factored out of ...
35259 (nvptx_goacc_validate_dims): ... here.
35260
35261 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35262
35263 PR tree-optimization/85574
35264 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35265 structure.
35266 (struct ssa_equip_hash_traits): Declare.
35267 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35268
35269 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35270
35271 PR debug/88644
35272 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35273 change it to qualified_type.
35274
35275 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35276
35277 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35278 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35279
35280 2019-01-02 Martin Sebor <msebor@redhat.com>
35281 Jeff Law <law@redhat.com>
35282
35283 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35284 (get_range_strlen_tree): Update appropriately.
35285 (get_range_strlen)
35286 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35287
35288 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35289 rather than set_range_info.
35290 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35291 maybe_set_strlen_range. Handle potentially boundary crossing
35292 cases more conservatively.
35293 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35294 Call set_strlen_range.
35295 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35296
35297 PR middle-end/88663
35298 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35299 need the flexp argument.
35300 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35301 from calls to get_range_strlen. Update comments. Just update
35302 VAL for an unterminated const char array and let the reset of the
35303 code handle it normally. No longer try to set *flexp. Adjust
35304 return value.
35305 (get_range_strlen): Update for the new get_range_strlen API.
35306 (get_maxval_strlen): Similarly.
35307 (gimple_fold_builtin_strlen): Handle update meaning of return value
35308 from get_range_strlen.
35309 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35310 get_range_strlen API.
35311
35312 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35313
35314 PR lto/88130
35315 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35316 false at WPA time when body was removed.
35317
35318 2019-01-02 Martin Liska <mliska@suse.cz>
35319
35320 PR tree-optimization/88650
35321 * predict.c (set_even_probabilities): Calculate probability
35322 remainer only when really used.
35323
35324 2019-01-02 Richard Biener <rguenther@suse.de>
35325
35326 PR middle-end/88651
35327 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35328 widest_ints when mangling max_stmt_execution results.
35329
35330 2019-01-02 Richard Biener <rguenther@suse.de>
35331
35332 PR tree-optimization/88621
35333 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35334 bitfields when canoncalizing.
35335
35336 2019-01-02 Richard Biener <rguenther@suse.de>
35337
35338 PR target/87545
35339 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35340 cost of cheap SSE instruction.
35341
35342 2019-01-02 Richard Biener <rguenther@suse.de>
35343
35344 PR ipa/85574
35345 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35346 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35347 function.
35348 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35349 set after UIDs before splitting them.
35350
35351 2019-01-01 Martin Sebor <msebor@redhat.com>
35352 Jeff Law <law@redhat.com>
35353
35354 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35355 length is optimistic. If it is, then arrange to compute the
35356 conservative length as well.
35357
35358 * gimple-fold.h (get_range_strlen): Update prototype.
35359 * builtins.c (check_access): Update call to get_range_strlen to use
35360 c_strlen_data pointer. Change various variable accesses to instead
35361 pull data from the c_strlen_data structure.
35362 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35363 * calls.c (maybe_warn_nonstring_arg): Likewise.
35364 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35365 minimum length if maximum lengh is unknown.
35366 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35367 that used c_strlen, it's no longer needed. Restructure slightly.
35368 (format_string): Set unlikely range appropriately.
35369 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35370 formatting issues.
35371 (get_range_strlen): Accept c_strlen_data pointer for external
35372 call sites as well. Pass through to call to internal get_range_strlen.
35373 Adjust minlen, maxlen and maxbound as needed.
35374 (get_maxval_strlen): Update comments.
35375 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35376 to use c_strlen_data pointer. Change variable accesses to instead
35377 use c_strlen_data data members.
35378
35379 * gimple-fold.c (get_range_strlen): Update prototype.
35380 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35381 local variables. Use pdata to return information to caller.
35382 Update calls to get_range_strlen. Update pdata->maxbound.
35383 (get_range_strlen -- static version): Similarly.
35384 (get_range_strlen -- extern version): Update for internal
35385 get_range_strlen API change. Convert to external data format.
35386 (get_maxval_strlen): Similarly.
35387
35388 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35389
35390 * coverage.c (get_coverage_counts): Use current_function_decl.
35391 * profile.c (read_thunk_profile): New function.
35392 (branch_prob): Add THUNK parameter.
35393 * tree-profile.c (tree_profiling): Handle thunks.
35394 * value-prof.c (init_node_map): Handle thunks.
35395 * value-prof.h (branch_prob): Upate prototype.
35396 (read_thunk_profile): Declare.
35397
35398 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35399
35400 Update copyright years.
35401
35402 * gcc.c (process_command): Update copyright notice dates.
35403 * gcov-dump.c (print_version): Ditto.
35404 * gcov.c (print_version): Ditto.
35405 * gcov-tool.c (print_version): Ditto.
35406 * gengtype.c (create_file): Ditto.
35407 * doc/cpp.texi: Bump @copying's copyright year.
35408 * doc/cppinternals.texi: Ditto.
35409 * doc/gcc.texi: Ditto.
35410 * doc/gccint.texi: Ditto.
35411 * doc/gcov.texi: Ditto.
35412 * doc/install.texi: Ditto.
35413 * doc/invoke.texi: Ditto.
35414 \f
35415 Copyright (C) 2019 Free Software Foundation, Inc.
35416
35417 Copying and distribution of this file, with or without modification,
35418 are permitted in any medium without royalty provided the copyright
35419 notice and this notice are preserved.