Check for bitwise identity when encoding VECTOR_CSTs (PR 92768)
[gcc.git] / gcc / ChangeLog
1 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
2
3 PR middle-end/92768
4 * tree-core.h (OEP_BITWISE): New flag.
5 * fold-const.c (operand_compare::operand_equal_p): Handle it.
6 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
7
8 2019-12-05 Richard Biener <rguenther@suse.de>
9
10 PR middle-end/92818
11 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
12 heuristics on what don't care element to choose.
13 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
14
15 2019-12-05 Martin Liska <mliska@suse.cz>
16
17 PR gcov-profile/92817
18 * coverage.c (build_gcov_exit_decl): Remove superfluous
19 void_type_node.
20
21 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22
23 * config/msp430/msp430.md (cbranch<mode>4): Use
24 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
25 dest operand of CMP instruction.
26 (cbranchpsi4_real): Likewise.
27 (cbranchqi4_real): Likewise.
28 (cbranchhi4_real): Likewise.
29 (cbranchpsi4_reversed): Likewise.
30 (cbranchqi4_reversed): Likewise.
31 (cbranchhi4_reversed): Likewise.
32
33 2019-12-05 Richard Biener <rguenther@suse.de>
34
35 PR tree-optimization/92803
36 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
37 invariant vector construction.
38
39 2019-12-05 Martin Liska <mliska@suse.cz>
40
41 PR gcov-profile/91971
42 * coverage.c (coverage_init): Mangle full path
43 only when -fprofile-dir is used.
44
45 2019-12-05 Jakub Jelinek <jakub@redhat.com>
46
47 PR target/92791
48 * config/i386/i386.md (movstrict<mode>): Move test for
49 TARGET_PARTIAL_REG_STALL and not optimizing for size from
50 expander's condition to the body - FAIL; in that case.
51
52 2019-12-03 Martin Sebor <msebor@redhat.com>
53
54 PR middle-end/91582
55 * builtins.c (gimple_call_alloc_size): New function.
56 (compute_objsize): Add argument. Call gimple_call_alloc_size.
57 Handle variable offsets and indices.
58 * builtins.h (gimple_call_alloc_size): Declare.
59 (compute_objsize): Add argument.
60 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
61 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
62
63 2019-12-04 Julian Brown <julian@codesourcery.com>
64
65 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
66
67 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
68
69 PR bootstrap/92661
70 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
71 rs6000.h.
72 (altivec_overloaded_builtins): Move to rs6000-call.c.
73 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
74 rs6000-c.c.
75 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
76 (altivec_overloaded_builtins): Moved from rs6000-c.c.
77 (rs6000_common_init_builtins): Do no define builtins that overload
78 builtins that have been disabled.
79
80 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
81
82 * config/arm/arm.c (arm_option_override_internal):
83 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
84
85 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
86
87 * config/aarch64/aarch64.c
88 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
89 (thunderx_tunings): Likewise.
90 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
91 (thunderx2t99_tunings): Likewise.
92 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
93 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
94
95 2019-12-04 Richard Biener <rguenther@suse.de>
96
97 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
98 empty CTOR and memset partial-def registering. Take advantage
99 of fancy offset analysis in memset handling.
100
101 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
102
103 * fold-const.c (native_encode_vector_part): Handle
104 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
105 (native_decode_vector_tree): Delete, moving the bulk of the code to...
106 (native_interpret_vector_part): ...this new function. Use a pointer
107 and length instead of a vec<> and start index.
108 (native_interpret_vector): Use native_interpret_vector_part.
109 (fold_view_convert_vector_encoding): Likewise.
110
111 2019-12-04 Richard Biener <rguenther@suse.de>
112
113 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
114 non-constant defs in the most trivial way.
115 (vn_reference_lookup_3): Also push down SSA partial defs.
116
117 2019-12-04 Martin Liska <mliska@suse.cz>
118
119 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
120 Initialize count of newly created BB.
121
122 2019-12-04 Jakub Jelinek <jakub@redhat.com>
123
124 PR tree-optimization/92734
125 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
126 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
127
128 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
129
130 PR target/92760
131 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
132 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
133
134 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
135
136 * ipa-fnsummary.c: Include tree-into-ssa.h.
137 (compute_fn_summary): Call update_ssa.
138
139 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
140
141 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
142 is set only for symbol in comdat group.
143 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
144
145 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
146
147 * cgraph.c: Include tree-into-ssa.h
148 (cgraph_node::get_body): Call update_ssa.
149 * cgraphunit.c (cgraph_node::expand): Likewise.
150 * lto-streamer-in.c (input_function): Do not call update_ssa.
151
152 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
153
154 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
155 an array element size if array_element_size is already an invariant.
156 Similarly don't gimplify and install a field offset if
157 component_ref_field_offset is already an invariant.
158
159 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
160
161 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
162 with POLY_INT_CST size is made to a fixed-size object, force the
163 object to live in memory.
164
165 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
166
167 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
168 for the data mode.
169
170 2019-12-03 Richard Biener <rguenther@suse.de>
171
172 PR tree-optimization/92758
173 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
174 operation on uniform vectors.
175
176 2019-12-03 Richard Biener <rguenther@suse.de>
177
178 PR tree-optimization/92645
179 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
180 from or to a properly aligned register variable.
181
182 2019-12-03 Matthias Klose <doko@ubuntu.com>
183
184 * Makefile.in (SOURCES): Add doc/lto-dump.1.
185 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
186 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
187
188 2019-12-03 Richard Biener <rguenther@suse.de>
189
190 PR tree-optimization/92751
191 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
192 when a clobber ends up in the partial-def vector.
193 (vn_reference_lookup_3): Let clobbers be handled by the
194 assignment from CTOR handling.
195
196 2019-12-03 Jakub Jelinek <jakub@redhat.com>
197
198 PR tree-optimization/92734
199 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
200 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
201 inner subtraction.
202
203 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
204 Jakub Jelinek <jakub@redhat.com>
205
206 PR target/92744
207 * config/i386/i386.md (peephole2 for *swap<mode>): Use
208 general_reg_operand predicates instead of register_operand.
209
210 2019-12-03 Richard Biener <rguenther@suse.de>
211
212 PR tree-optimization/92645
213 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
214 a full def of a vector via a BIT_INSERT_EXPR.
215
216 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
217
218 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
219 static.
220 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
221 decl.
222
223 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
224
225 PR middle-end/92741
226 * fold-const.c (fold_convertible_p): Check vector types more
227 thoroughly.
228
229 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
230
231 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
232 (aarch64_expand_mov_immediate): Use it when attempting to measure
233 the length of an SVE vector.
234 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
235 SVE is enabled.
236
237 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
238
239 * config/aarch64/aarch64-sve-builtins.h
240 (gimple_folder::force_vector): Declare.
241 * config/aarch64/aarch64-sve-builtins.cc
242 (gimple_folder::force_vector): New function.
243 * config/aarch64/aarch64-sve-builtins-base.cc
244 (svcmp_impl::fold): Likewise.
245 (svdup_impl::fold): Handle svdup_z too.
246
247 2019-12-02 Martin Liska <mliska@suse.cz>
248
249 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
250 function.
251 (debug_tree_odr_name): New.
252 * ipa-utils.h (get_odr_name_for_type): New.
253
254 2019-12-02 Richard Biener <rguenther@suse.de>
255
256 PR tree-optimization/92742
257 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
258 touch the def-type but verify it is consistent with the
259 original stmts.
260
261 2019-12-02 Jakub Jelinek <jakub@redhat.com>
262
263 PR tree-optimization/92712
264 * match.pd ((A * B) +- A -> (B +- 1) * A,
265 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
266 even when we don't know anything about range of A, but do know
267 something about range of B and the simplification won't introduce
268 new UB.
269
270 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
271
272 PR ipa/92133
273 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
274 (ipa-cp-min-recursive-probability): Likewise.
275 * params.opt (ipa-cp-max-recursive-depth): New.
276 (ipa-cp-min-recursive-probability): Likewise.
277 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
278 val_p and unlimited.
279 (self_recursively_generated_p): New function.
280 (get_val_across_arith_op): Likewise.
281 (propagate_vals_across_arith_jfunc): Add constant propagation for
282 self-recursive function.
283 (incorporate_penalties): Do not penalize pure self-recursive function.
284 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
285 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
286 (get_info_about_necessary_edges): Relax hotness check for edge to
287 self-recursive function.
288 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
289
290 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
291
292 PR target/92499
293
294 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
295 objects of flexible types to be small if they have internal linkage
296 or are declared extern.
297 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
298 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
299 instead of the size of the object initializer.
300 * tree.c (flexible_array_type_p): Move from C front end, and
301 generalize to handle fields in non-C structures.
302 * tree.h (flexible_array_type_p): Declare.
303
304 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
305
306 * profile-count.h (profile_count::operator<): Use IPA value for
307 comparsion.
308 (profile_count::operator>): Likewise.
309 (profile_count::operator<=): Likewise.
310 (profile_count::operator>=): Likewise.
311 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
312
313 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
314
315 * ipa-inline.c (compute_max_insns): Return int64_t.
316 (inline_small_functions): Simplify.
317
318 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
319
320 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
321 scaling happen.
322
323 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
324
325 * cgraph.h (symtab_node): Add symver flag.
326 * cgraphunit.c (process_symver_attribute): New.
327 (process_common_attributes): Use process_symver_attribute.
328 * lto-cgraph.c (lto_output_node): Stream symver.
329 (lto_output_varpool_node): Stream symver.
330 (input_overwrite_node): Stream symver.
331 (input_varpool_node): Stream symver.
332 * output.h (do_assemble_symver): Decalre.
333 * symtab.c (symtab_node::dump_base): Dump symver.
334 (symtab_node::verify_base): Verify symver.
335 (symtab_node::resolve_alias): Handle symver.
336 * varasm.c (do_assemble_symver): New function.
337 * varpool.c (varpool_node::assemble_aliases): Use it.
338 * doc/extend.texi: (symver attribute): Document.
339 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
340
341 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
342
343 * target.h (type_context_kind): New enum.
344 (verify_type_context): Declare.
345 * target.def (verify_type_context): New target hook.
346 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
347 * doc/tm.texi: Regenerate.
348 * tree.c (verify_type_context): New function.
349 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
350 Declare.
351 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
352 New function.
353 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
354 (TARGET_VERIFY_TYPE_CONTEXT): Define.
355
356 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
357
358 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
359 * cgraph.h (cgraph_node): Add unit_id and
360 merged_extern_inline.
361 (symbol_table): Add max_unit.
362 (symbol_table::symbol_table): Initialize it.
363 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
364 merged_comdat, merged_extern_inline.
365 (cgraph_node::create_clone): Likewise.
366 (cgraph_node::create_version_clone): Likewise.
367 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
368 calls.
369 * ipa-fnsummary.h (cross_module_call_p): New inline function.
370 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
371 * ipa-inline.c (inline_small_functions): Likewise.
372 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
373 copy merged_comdat and merged_extern_inline.
374 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
375 merged_extern_inline and unit_id.
376 (input_overwrite_node): Stream in these.
377 (input_cgraph_1): Set unit_base.
378 * lto-streamer.h (lto_file_decl_data): Add unit_base.
379 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
380
381 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
382
383 * gcc.c (process_command): Only warn about an ineffective `-x'
384 option if any input files have actually been supplied.
385
386 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
387
388 * doc/install.texi (Options specification): Remove the list of
389 target library subdirectories supporting
390 `--enable-version-specific-runtime-libs'. Document defaults for
391 the option.
392
393 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
394
395 PR rtl-optimization/92283
396 * lra.c (lra): Update reg notes after inheritance sub-pass and
397 before constraint sub-pass.
398
399 2019-11-29 Richard Biener <rguenther@suse.de>
400
401 PR tree-optimization/91003
402 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
403 operand number, avoid handling the non-condition operands of
404 COND_EXPRs as comparisons.
405 (vect_get_constant_vectors): Pass down the operand number.
406 (vect_get_slp_defs): Likewise.
407
408 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
409
410 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
411 generic_expr_could_trap_p to check if the condition of COND_EXPR or
412 VEC_COND_EXPR can trap.
413
414 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
415
416 PR tree-optimization/92677
417 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
418 to zero when dissolving a group of strided accesses.
419
420 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
421
422 PR tree-optimization/92596
423 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
424 operations.
425 (vectorizable_operation): Likewise, instead of relying on
426 vect_get_mask_type_for_stmt to do this.
427 (vect_get_vector_types_for_stmt): Always return a vector type
428 immediately, rather than deferring the choice for boolean results.
429 Use a vector mask type instead of a normal vector if
430 vect_use_mask_type_p.
431 (vect_get_mask_type_for_stmt): Delete.
432 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
433 mask_producers argument and special boolean_type_node handling.
434 (vect_determine_vf_for_stmt): Remove mask_producers argument and
435 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
436 (vect_determine_vectorization_factor): Update call accordingly.
437 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
438 boolean_type_node handling.
439 (vect_slp_analyze_node_operations_1): Likewise.
440
441 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
442
443 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
444 (vect_use_mask_type_p): New function.
445 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
446 mask precision to the pattern statement.
447 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
448 and use it to initialize the new stmt's mask precision.
449 (search_type_for_mask_1): Delete.
450 (search_type_for_mask): Replace with...
451 (integer_type_for_mask): ...this new function. Use the information
452 cached in the stmt_vec_info.
453 (vect_recog_bool_pattern): Update accordingly.
454 (build_mask_conversion): Pass the scalar type associated with the
455 mask type to append_pattern_def_seq.
456 (vect_recog_mask_conversion_pattern): Likewise. Call
457 integer_type_for_mask instead of search_type_for_mask.
458 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
459 of search_type_for_mask.
460 (possible_vector_mask_operation_p): New function.
461 (vect_determine_mask_precision): Likewise.
462 (vect_determine_stmt_precisions): Call it.
463
464 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
465
466 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
467 the slp_tree parameter with a group size parameter.
468 (vect_get_mask_type_for_stmt): Likewise.
469 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
470 (vect_get_mask_type_for_stmt): Likewise.
471 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
472 call accordingly.
473
474 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
475
476 * tree-vect-stmts.c (vectorizable_operation): Punt early
477 on codes that are handled elsewhere.
478
479 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
480
481 * doc/sourcebuild.texi (vect_bool_cmp): Document.
482 * tree-vect-patterns.c (search_type_for_mask_1): If neither
483 operand to a boolean comparison is a natural vector mask,
484 handle both operands like normal integers instead.
485
486 2019-11-29 Richard Biener <rguenther@suse.de>
487
488 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
489 out early for too large objects.
490
491 2019-11-29 Martin Jambor <mjambor@suse.cz>
492
493 PR ipa/92476
494 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
495 the summary only if the summary exists.
496 (find_more_scalar_values_for_callers_subset): Check node_dead in
497 the summary only if the summary exists.
498 (ipcp_store_bits_results): Ignore nodes without lattices.
499 (ipcp_store_vr_results): Likewise.
500 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
501 header files required by them.
502 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
503
504 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
505
506 PR tree-optimization/92710
507 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
508 vector mask arguments.
509
510 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
511
512 * profile-count.c (profile_count::to_cgraph_frequency,
513 profile_count::to_sreal_scale): Check for compaibility of counts.
514 * profile-count.h (compatible_p): Make public; add checking for
515 global0 versus global types.
516 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
517
518 2019-11-29 Richard Biener <rguenther@suse.de>
519
520 PR tree-optimization/92715
521 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
522 out for uniform vectors and source vectors with less elements
523 than the destination.
524
525 2019-11-29 Martin Liska <mliska@suse.cz>
526
527 PR lto/91574
528 * ipa-devirt.c (types_same_for_odr): Check for existence
529 of TYPE_NAMEs first.
530
531 2019-11-29 Richard Biener <rguenther@suse.de>
532
533 PR tree-optimization/92704
534 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
535 in loops performing only loads.
536
537 2019-11-29 Julian Brown <julian@codesourcery.com>
538
539 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
540 BT_DFLOAT128_PTR) Remove.
541 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
542 TI_DFLOAT128_PTR_TYPE): Remove.
543 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
544 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
545 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
546 dfloat128_ptr_type_node): Remove macros.
547
548 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
549
550 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
551 formatting.
552 (*movdi_internal64): Ditto.
553
554 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
555
556 PR target/92602
557 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
558 indexed_or_indirect_operand to be memory_operand.
559 (bswap<mode>2_store for HSI): Ditto.
560 (bswapdi2_load): Ditto.
561 (bswapdi2_store): Ditto.
562
563 2019-11-28 Martin Liska <mliska@suse.cz>
564
565 PR debug/46558
566 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
567 headers for translation.
568
569 2019-11-28 Martin Liska <mliska@suse.cz>
570
571 PR lto/92609
572 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
573 consistently.
574
575 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
576
577 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
578 checks.
579
580 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
581
582 * profile-count.c (profile_count::combine_with_ipa_count): Return
583 uninitialized count if called on ininitialized count.
584
585 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
586
587 * ipa-inline-transform.c (inline_transform): Scale profile before
588 redirecting.
589
590 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
591
592 * profile-count.h (profile_count::max): Work on profiles of different
593 type.
594 (profile_count::apply_scale): Be sure that ret is not local or global0
595 type if num is global.
596
597 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
598
599 * profile-count.h (profile_count::max): Work on profiles of different
600 type.
601 (profile_count::apply_scale): Be sure that ret is not local or global0
602 type if num is global.
603
604 2019-11-28 Martin Jambor <mjambor@suse.cz>
605
606 PR ipa/92697
607 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
608 ifunc_resolvers.
609 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
610 Removed trailig whitespace.
611
612 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
613
614 * profile-count.h (profile_count::combine_with_ipa_count_within):
615 Declare.
616 * profile-count.c (profile_count::combine_with_ipa_count_within):
617 New.
618 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
619 it.
620
621 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
622
623 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
624 of counters are done same way.
625
626 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
627
628 * ipa-cp.c (update_profiling_info): Fix scaling.
629
630 2019-11-28 Richard Biener <rguenther@suse.de>
631
632 PR tree-optimization/92645
633 * tree-inline.c (remap_gimple_stmt): When the return value
634 is not wanted, elide GIMPLE_RETURN.
635
636 2019-11-28 Richard Biener <rguenther@suse.de>
637
638 PR tree-optimization/92645
639 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
640 conversions inside a mode class. Remove restriction on
641 preserving the element size.
642 (simplify_vector_constructor): Deal with the above and for
643 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
644 and VEC_PACK_TRUNC_EXPR.
645
646 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
647
648 Must use push insn to pass varargs arguments of DFmode because
649 otherwise the middle-end generates wrong code.
650
651 PR target/92055
652 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
653
654 2019-11-28 Jakub Jelinek <jakub@redhat.com>
655
656 PR tree-optimization/92691
657 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
658 in function comment.
659 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
660 calls, return !handle_printf_call rather than always returning true.
661 (check_and_optimize_stmt): Describe return value meaning in function
662 comment. Formatting fix.
663
664 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
665
666 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
667 combination of globa0 and global counters..
668
669 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
670
671 PR target/92566
672 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
673 by VECTOR_UNIT_NONE_P instead.
674
675 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
676
677 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
678 Refine VF to VF_AVX512VL.
679
680 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
681
682 * config/rs6000/rs6000.md (movsi_internal): Reformat.
683 (movdi_internal64): Reformat.
684
685 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
686
687 PR bootstrap/92661
688 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
689 builtin if we don't have an actual type.
690 (builtin_function_type): If the builtin function uses a DFP type
691 and decimal float has been disabled, then return NULL_TREE.
692
693 2019-11-27 Jakub Jelinek <jakub@redhat.com>
694
695 PR rtl-optimization/92510
696 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
697 of comparison into a comparison with different mode if both imode and
698 omode are scalar integral modes.
699
700 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
701
702 PR rtl-optimization/90007
703 * recog.c (constrain_operands): Permit hard registers too for
704 memory when LRA is used.
705
706 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
707
708 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
709 between Coldfire and regular m68k.
710 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
711
712 2019-11-27 Richard Biener <rguenther@suse.de>
713
714 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
715 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
716 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
717 * optabs-tree.c (supportable_convert_operation): Do not call
718 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
719 * optabs-tree.h (supportable_convert_operation): Adjust.
720 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
721 * doc/tm.texi: Regenerate.
722 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
723 * tree-vect-generic.c (expand_vector_conversion): Likewise.
724 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
725 unused decl parameter and adjust.
726 (vect_create_vectorized_promotion_stmts): Likewise.
727 (vectorizable_conversion): Adjust.
728
729 2019-11-27 Richard Biener <rguenther@suse.de>
730
731 PR tree-optimization/92690
732 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
733 converting elements not originally converted.
734
735 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
736
737 PR middle-end/92463
738 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
739 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
740 mpfr_rnd_t instead of mp_rnd_t.
741 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
742 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
743 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
744 Use mpfr_exp_t instead of mp_exp_t.
745 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
746 MPFR_RNDx instead of GMP_RNDx.
747 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
748 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
749 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
750 of mp_rnd_t and remove MPFR_RNDx poisoning.
751 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
752
753 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
754
755 PR tree-optimization/91790
756 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
757 DR for vect_setup_realignment when first_stmt_info is different
758 from first_stmt_info_for_drptr.
759
760 2019-11-27 Richard Biener <rguenther@suse.de>
761
762 PR tree-optimization/92645
763 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
764 CTORs with just a subset of the original vectors.
765
766 2019-11-27 Richard Biener <rguenther@suse.de>
767
768 PR middle-end/92674
769 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
770 edges and instead record blocks in bitmap.
771 (gimple_expand_calls_inline): Adjust.
772 (fold_marked_statements): Delay EH cleanup until all folding is
773 done.
774 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
775 inlining finished.
776
777 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
778
779 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
780 LRA is enabled.
781 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
782 disabled.
783
784 2019-11-27 Jakub Jelinek <jakub@redhat.com>
785
786 PR debug/92664
787 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
788
789 2019-11-26 Martin Sebor <msebor@redhat.com>
790
791 PR tree-optimization/92683
792 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
793 inadvertently removed in a previous change. Rename local variable
794 for clarity.
795
796 2019-11-26 Richard Biener <rguenther@suse.de>
797
798 PR middle-end/92669
799 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
800 NULL pre_order.
801
802 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
803
804 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
805
806 2019-11-26 Jakub Jelinek <jakub@redhat.com>
807
808 PR tree-optimization/92644
809 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
810 next to INTEGER_CST checks.
811
812 2019-11-26 Richard Biener <rguenther@suse.de>
813
814 PR tree-optimization/92645
815 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
816 do not build the operation from scalars if the operand is.
817
818 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
819
820 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
821 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
822 definitions.
823
824 2019-11-25 Martin Liska <mliska@suse.cz>
825
826 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
827 up used dump message.
828
829 2019-11-25 Martin Liska <mliska@suse.cz>
830
831 PR bootstrap/92653
832 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
833 too strict checking assert.
834
835 2019-11-25 Joseph Myers <joseph@codesourcery.com>
836
837 PR c/91985
838 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
839 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
840 error_mark_node if corresponding global tree node is NULL.
841 * tree.c (build_common_tree_nodes): Do not initialize
842 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
843 decimal floating-point not supported.
844
845 2019-11-25 Joseph Myers <joseph@codesourcery.com>
846
847 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
848 types.
849
850 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
851
852 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
853 Replace code for non-CONST_INT constants with gcc_unreachable.
854 * config/m68k/m68k.md (cbranchdi): Don't generate individual
855 compare and test.
856 (CMPMODE): New mode_iterator.
857 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
858 cbranch<mode>4.
859 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
860 cstore<mode>4.
861 (cmp<mode>_68881): Remove 'F' constraint from first comparison
862 operand.
863 (bit test insns patterns): Use nonimmediate_operand, not
864 register_operand, for source operands that allow memory in
865 their constraints.
866 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
867 Use register_operand, not nonimmediate_operand, for the
868 destinations.
869 (DBCC): New mode_iterator.
870 (dbcc peepholes): Use it to reduce duplication.
871 (trap): Use const_true_rtx, not const1_rtx.
872 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
873 from m68k_subword_comparison_operand and changed to handle
874 SImode.
875
876 PR target/91851
877 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
878 declaration.
879 (m68k_init_cc): New declaration.
880 (m68k_output_compare_di, m68k_output_compare_si)
881 (m68k_output_compare_hi, m68k_output_compare_qi)
882 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
883 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
884 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
885 m68k_output_branch_float, m68k_output_branch_float_rev):
886 Likewise.
887 (valid_dbcc_comparison_p_2, flags_in_68881)
888 (output_btst): Remove declaration.
889 * config/m68k/m68k.c (INCLDUE_STRING): Define.
890 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
891 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
892 (flags_compare_op0, flags_compare_op1, flags_operand1,
893 flags_operand2, flags_valid): New static variables.
894 (m68k_find_flags_value, m68k_init_cc): New functions.
895 (handle_flags_for_move, m68k_asm_final_postscan_insn,
896 remember_compare_flags): New static functions.
897 (output_dbcc_and_branch): New argument CODE. Use it, and add
898 PLUS and MINUS to the possible codes. All callers changed.
899 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
900 and INSN arguments, add CODE arg. Return the comparison code
901 to use. All callers changed. Use CODE instead of
902 next_insn_tests_no_inequality, and replace cc_status management
903 with changing the return code.
904 (m68k_rtx_costs): Instead of testing for COMPARE, test for
905 RTX_COMPARE or RTX_COMM_COMPARE.
906 (output_move_simode, output_move_qimode): Call
907 handle_flags_for_move.
908 (notice_update_cc): Delete function.
909 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
910 m68k_output_compare_hi, m68k_output_compare_qi,
911 m68k_output_compare_fp, m68k_output_branch_integer,
912 m68k_output_branch_integer_rev, m68k_output_scc,
913 m68k_output_branch_float, m68k_output_branch_float_rev,
914 m68k_output_scc_float): New functions.
915 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
916 once at the start, and set flags_valid and flags_operand1 if the
917 flags are usable.
918 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
919 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
920 definitions.
921 (CC_STATUS_INIT): Define.
922 * config/m68k/m68k.md (flags_valid): New define_attr.
923 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
924 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
925 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
926 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
927 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
928 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
929 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
930 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
931 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
932 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
933 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
934 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
935 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
936 ctrapqi4, conditional_trap): Delete patterns.
937 (cbranchdi4_insn): New pattern.
938 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
939 test high part only. When testing EQ or NE, generate beq0_di
940 and bne0_di patterns directly.
941 (cstoredi4): When testing LT or GE, test high part only.
942 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
943 patterns.
944 (scc0_constraints, cmp1_constraints, cmp2_constraints,
945 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
946 cmp2_cf_predicate): New define_mode_attrs.
947 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
948 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
949 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
950 New patterns.
951 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
952 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
953 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
954 New patterns.
955 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
956 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
957 Likewise.
958 (BTST): New define_mode_iterator.
959 (btst_predicate, btst_constraint, btst_range): New
960 define_mode_attrs.
961 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
962 patterns.
963 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
964 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
965 patterns): Set attr "flags_valid".
966 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
967 management. Set attr "flags_valid".
968 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
969 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
970 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
971 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
972 manual CC_STATUS management.
973 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
974 unnamed strict_lowpart subhi and subqi patterns): Set attr
975 "flags_valid".
976 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
977 Remove code to operate on address regs and assert the case
978 does not occur.
979 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
980 manual CC_STATUS_INIT.
981 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
982 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
983 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
984 one_cmplqi2, unnamed strict_lowpart patterns
985 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
986 one_cmplhi and one_cmplqi): Set attr "flags_valid".
987 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
988 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
989 CC_STATUS_INIT.
990 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
991 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
992 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
993 unnamed strict_low_part patterns for HI and
994 QI versions): Set attr "flags_valid".
995 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
996 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
997 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
998 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
999 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1000 (various unnamed peepholes): Adjust compare/branch sequences
1001 for new cbranch patterns.
1002 (dbcc peepholes): Likewise, and output the comparison here
1003 as well.
1004 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1005 (fp_src_operand): Allow constant zero.
1006 (address_reg_operand): New predicate.
1007
1008 * rtl.h (inequality_comparisons_p): Remove declaration.
1009 * recog.h (next_insn_tests_no_inequality): Likewise.
1010 * rtlanal.c (inequality_comparisons_p): Delete function.
1011 * recog.c (next_insn_tests_no_inequality): Likewise.
1012
1013 2019-11-25 Richard Biener <rguenther@suse.de>
1014
1015 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1016 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1017 properly re-building the visited hash-map for each lane.
1018
1019 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1020
1021 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1022 gcn_md_reorg): Remove unused variables.
1023 (gcn_emutls_var_init): Add missing (but unreachable) return
1024 to silence warning.
1025 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1026 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1027 an uninitialized variable.
1028
1029 2019-11-25 Martin Jambor <mjambor@suse.cz>
1030
1031 PR ipa/92109
1032 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1033 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1034 (cgraph_materialize_clone): Move removel from clone tree to the
1035 the new method and use it instead.
1036 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1037 bodies of clones, also remove it from the clone tree.
1038
1039 2019-11-25 Martin Jambor <mjambor@suse.cz>
1040
1041 PR ipa/91956
1042 * ipa-sra.c (process_isra_node_results): Put the new node to the
1043 same comdat group as the original node.
1044
1045 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1046
1047 Build double32 / long-double32 multilibs if needed.
1048
1049 PR target/92055
1050 * config/avr/t-avr:
1051 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1052 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1053 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1054 tm_defines and pass to genmultilib.awk.
1055 * config/avr/genmultilib.awk: Use these variables to add double32
1056 and / or long-double32 multilib(s) as needed.
1057 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1058
1059 2019-11-25 Richard Biener <rguenther@suse.de>
1060
1061 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1062 loop body, defaulted to NULL.
1063 (single_likely_exit): Add exit vector argument
1064 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1065 (number_of_iterations_exit): Likewise.
1066 (number_of_iterations_exit_assumptions): Likewise.
1067 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1068 if not NULL.
1069 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1070 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1071 Compute exit vector around call to single_likely_exit.
1072 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1073 loop body to loop_only_exit_p.
1074 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1075 caller.
1076 (number_of_iterations_exit_assumptions): Get loop body from caller
1077 if not NULL.
1078 (number_of_iterations_exit): Pass through new loop body arg.
1079 (infer_loop_bounds_from_undefined): Get loop body from caller.
1080 (estimate_numbers_of_iterations): Compute loop body once.
1081
1082 2019-11-25 Richard Biener <rguenther@suse.de>
1083
1084 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1085 auto_bb_flag instead of an sbitmap for visited handling.
1086
1087 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1088
1089 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1090 iterator.
1091 (vector_fp_comparison_complex): Likewise.
1092 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1093 define_and_split.
1094 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1095 Likewise.
1096 (vector_lt<mode> for VEC_F): Refactor with
1097 vector_fp_comparison_simple.
1098 (vector_le<mode> for VEC_F): Likewise.
1099 (vector_unge<mode> for VEC_F): Likewise.
1100 (vector_unle<mode> for VEC_F): Likewise.
1101 (vector_ne<mode> for VEC_F): Likewise.
1102 (vector_ungt<mode> for VEC_F): Likewise.
1103 (vector_unlt<mode> for VEC_F): Likewise.
1104 (vector_ltgt<mode> for VEC_F): Refactor with
1105 vector_fp_comparison_complex.
1106 (vector_ordered<mode> for VEC_F): Likewise.
1107 (vector_uneq<mode> for VEC_F): Likewise.
1108 (vector_unordered<mode> for VEC_F): Likewise.
1109
1110 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1111
1112 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1113 COMPARE, representing an overflow detection.
1114
1115 * combine.c (combine_instructions): Record costs for jumps.
1116
1117 * combine.c (can_combine_p): Allow autoinc in jumps.
1118
1119 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1120
1121 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1122 * doc/invoke.texi (max-inline-insns-single-O2,
1123 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1124 early-inlining-insns-O2): Remove documentation.
1125 * ipa-fnsummary.c (analyze_function_body,
1126 compute_fn_summary): Use opt_for_fn when accessing parameters.
1127 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1128 inline_insns_auto, can_inline_edge_by_limits_p,
1129 want_early_inline_function_p, big_speedup_p,
1130 want_inline_small_function_p, want_inline_self_recursive_call_p,
1131 recursive_inlining, compute_max_insns, inline_small_functions):
1132 Likewise.
1133 * opts.c (default_options): Add -O3 defaults for
1134 OPT__param_early_inlining_insns_,
1135 OPT__param_inline_heuristics_hint_percent_,
1136 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1137 * params.opt (-param=early-inlining-insns-O2=,
1138 -param=inline-heuristics-hint-percent-O2=,
1139 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1140 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1141 -param=inline-min-speedup=, -param=inline-unit-growth=,
1142 -param=large-function-growth=, -param=large-stack-frame=,
1143 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1144 -param=max-inline-insns-recursive=,
1145 -param=max-inline-insns-recursive-auto=,
1146 -param=max-inline-insns-single=,
1147 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1148 -param=max-inline-recursive-depth=,
1149 -param=max-inline-recursive-depth-auto=,
1150 -param=min-inline-recursive-probability=,
1151 -param=partial-inlining-entry-probability=,
1152 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1153 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1154 Optimization.
1155
1156 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1157
1158 * ipa-fnsummary.c: Fix comment typos.
1159 * ipa-ref.h: Likewise.
1160 * ipa-predicate.h: Likewise.
1161 * ipa-split.c: Likewise.
1162 * ipa-inline-analysis.c: Likewise.
1163 * ipa-predicate.c: Likewise.
1164 * ipa-devirt.c: Likewise.
1165 * ipa-icf.h: Likewise.
1166 * profile-count.c: Likewise.
1167 * ipa-icf.c: Likewise.
1168 (sem_function::equals_wpa): Fix typos in dump messages.
1169 * ipa-icf-gimple.h: Fix comment typos.
1170 * ipa-inline-transform.c: Likewise.
1171 * ipa-polymorphic-call.c: Likewise.
1172 * ipa-fnsummary.h: Likewise.
1173 * ipa-inline.c: Likewise.
1174 (dump_inline_stats): Fix typo in debug dump message.
1175 * profile-count.h: Fix comment typos.
1176
1177 PR target/92615
1178 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1179 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1180 register_operand, force x into register before storing it into dest.
1181 Formatting fix.
1182
1183 PR middle-end/83859
1184 * doc/extend.texi (attribute access): Fix a typo.
1185
1186 PR rtl-optimization/92610
1187 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1188 cse_cfg_altered is set, even when tem is 0.
1189 (rest_of_handle_cse_after_global_opts): Likewise.
1190
1191 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1192
1193 PR c++/92458
1194 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1195 tree_hash): Move to ...
1196 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1197 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1198 types.
1199 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1200
1201 PR tree-optimization/92618
1202 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1203 containing the auto_vec and a tree.
1204 (undistribute_bitref_for_vector): Handle the case when element type
1205 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1206 fixes.
1207
1208 2019-11-22 Martin Sebor <msebor@redhat.com>
1209
1210 PR middle-end/83859
1211 * attribs.h (struct attr_access): New.
1212 * attribs.c (decl_attributes): Add an informational note.
1213 * builtins.c (check_access): Make extern. Consistently set no-warning
1214 after issuing a warning. Handle calls through function pointers. Set
1215 no-warning.
1216 * builtins.h (check_access): Declare.
1217 * calls.c (rdwr_access_hash): New type.
1218 (rdwr_map): Same.
1219 (init_attr_rdwr_indices): New function.
1220 (maybe_warn_rdwr_sizes): Same.
1221 (initialize_argument_information): Call init_attr_rdwr_indices.
1222 Call maybe_warn_rdwr_sizes.
1223 (get_size_range): Avoid null argument.
1224 * doc/extend.texi (attribute access): Document new attribute.
1225
1226 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1227
1228 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1229 (ACC_LDS_SIZE): Define.
1230 (OTHER_LDS_SIZE): Define.
1231 (LDS_SIZE): Redefine using above.
1232 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1233
1234 2019-11-22 Martin Sebor <msebor@redhat.com>
1235
1236 PR middle-end/88226
1237 * builtins.c (check_nul_terminated_array): New function.
1238 (fold_builtin_0): Remove declaration.
1239 (fold_builtin_1): Same.
1240 (fold_builtin_2): Same.
1241 (fold_builtin_3): Same.
1242 (fold_builtin_strpbrk): Add argument.
1243 (fold_builtin_strspn): Same.
1244 (fold_builtin_strcspn): Same.
1245 (expand_builtin_strcat): Call it. Remove unused argument.
1246 (expand_builtin_stpncpy): Same.
1247 (expand_builtin_strncat): Same.
1248 (expand_builtin_strncpy): Same. Adjust indentation.
1249 (expand_builtin_strcmp): Same.
1250 (expand_builtin_strncmp): Same.
1251 (expand_builtin_fork_or_exec): Same.
1252 (expand_builtin): Handle more built-ins.
1253 (fold_builtin_2): Add argument.
1254 (fold_builtin_n): Make static. Add argument.
1255 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1256 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1257 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1258 (fold_call_stmt): Pass new argument to fold_builtin_n.
1259 * builtins.h: Correct a comment.
1260 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1261 check_nul_terminated_array.
1262 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1263 check_nul_terminated_array.
1264 (handle_builtin_strchr): Same.
1265 (handle_builtin_string_cmp): Same.
1266
1267 2019-11-22 Martin Sebor <msebor@redhat.com>
1268
1269 PR tree-optimization/92501
1270 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1271 handle unterminated arrays. Rename local variables for clarity.
1272
1273 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1274
1275 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1276 granulated_sgprs according to architecture.
1277
1278 2019-11-22 Jan Hubicka <jh@suse.cz>
1279
1280 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1281 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1282 (memory_block_pool::reduce_free_list): ... this one.
1283 (memory_block_pool::trim): New static function.
1284 * memory-block.h (memory_block_pool::freelist_size): New constant
1285 (memory_block_pool::clear_free_list): Rename to ...
1286 (memory_block_pool::reduce_free_list): ... this one.
1287 (memory_block_pool::trim): Declare.
1288
1289 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1290
1291 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1292 vect_cost_for_stmt.
1293 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1294 here rather than...
1295 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1296
1297 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1298
1299 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1300 (bic_cmp0_noout): New pattern.
1301 (bic_cmp0): Likewise.
1302 (neg_scc_insn): Remove pattern.
1303 (not_scc_insn): Likewise.
1304
1305 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1306
1307 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1308
1309 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1310
1311 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1312 pedwarn instead of warning_at for fallthrough not preceding a case
1313 or default label.
1314
1315 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1316
1317 PR tree-optimization/92608
1318 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1319 of dyn_cast.
1320
1321 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1322
1323 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1324 New predicate.
1325 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1326 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1327 special for FP comparisons that need a cror instruction eventually.
1328 (rs6000_emit_fp_cror): New function.
1329 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1330 instruction, for normal FP modes, with HONOR_NANS.
1331 (rs6000_emit_cbranch): Reformat.
1332 * config/rs6000/rs6000.md (fp_rev): New iterator.
1333 (fp_two): New iterator.
1334 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1335 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1336 *cbranch_2insn: New define_insn_and_split.
1337
1338 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1339
1340 PR tree-optimization/92526
1341 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1342 versioning for alignment if the accesses do not have a consistent
1343 mask, rather than asserting that the masks are consistent.
1344
1345 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1346
1347 PR tree-optimization/92595
1348 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1349 check.
1350 (vectorizable_store, vectorizable_load): Likewise.
1351
1352 2019-11-21 Jan Hubicka <jh@suse.cz>
1353
1354 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1355 (resolve_noninline_speculation, inline_small_functions): Avoid
1356 redundant updates.
1357
1358 2019-11-21 Richard Biener <rguenther@suse.de>
1359
1360 * lra.c (lra_insn_recog_data_pool): New.
1361 (free_insn_recog_data): Adjust.
1362 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1363 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1364
1365 2019-11-21 Richard Biener <rguenther@suse.de>
1366
1367 PR tree-optimization/92596
1368 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1369
1370 2019-11-21 Jan Hubicka <jh@suse.cz>
1371
1372 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1373 ready for some vectors to not be allocated.
1374 (evaluate_properties_for_edge): Document better; make
1375 known_vals and known_aggs caller allocated; avoid determining
1376 values of parameters which are not used.
1377 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1378 known_aggs.
1379 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1380 (do_estimate_edge_size): Likewise.
1381 (do_estimate_edge_hints): Likewise.
1382 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1383 values are not known.
1384 (ipa_release_agg_values): Add option to not release vector itself.
1385 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1386
1387 2019-11-21 Richard Biener <rguenther@suse.de>
1388
1389 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1390 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1391 (loop_iterator::loop_iterator): Adjust.
1392 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1393 (compute_dominance_frontiers): ... this. Hoist invariant
1394 get_immediate_dominator call.
1395 (compute_idf): Use a work-set instead of a work-list for more
1396 optimal iteration order and duplicate avoidance.
1397 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1398 the vector all the time, instead pre-allocate the vector only
1399 once.
1400 (delete_update_ssa): Simplify.
1401 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1402
1403 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1404
1405 PR tree-optimization/91355
1406 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1407 for early_bb scaled count with best_bb count comparison.
1408
1409 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1410 preffer -> prefer.
1411 * ipa-inline.c (edge_badness): Likewise.
1412 * lto-streamer.h (class lto_location_cache): Likewise.
1413 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1414 gratutious -> gratuitous.
1415
1416 2019-11-21 Richard Biener <rguenther@suse.de>
1417
1418 Revert
1419 2019-09-17 Richard Biener <rguenther@suse.de>
1420
1421 PR tree-optimization/91790
1422 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1423 use the correct DR for setting up realignment.
1424
1425 2019-11-21 Richard Biener <rguenther@suse.de>
1426
1427 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1428 (equiv_class_obstack): New.
1429 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1430 (perform_var_substitution): Initialize equiv_class_obstack.
1431 (free_var_substitution_info): Free equiv_class_obstack.
1432
1433 2019-11-20 Jan Hubicka <jh@suse.cz>
1434
1435 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1436 edge growth when callee function is very large.
1437 * ipa-inline.h (estimate_min_edge_growth): New.
1438
1439 2019-11-20 Jan Hubicka <jh@suse.cz>
1440
1441 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1442 negative time in calls summary; correct roundoff errors
1443 leading to negative times.
1444 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1445 if present.
1446 (ipa_update_overall_fn_summary): Add RESET parameter.
1447 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1448 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1449
1450 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1451
1452 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1453 def types for two-operation SLP.
1454
1455 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1456
1457 PR testsuite/92366
1458 * doc/sourcebuild.texi (vect_char_add): Document.
1459
1460 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1461
1462 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1463 * function.c (record_final_call): Record even calls that might
1464 have been in the cgraph.
1465 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1466 callees.
1467
1468 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1469
1470 * configure.ac: Use https for gcc.gnu.org
1471 * configure: Regenerated.
1472 * doc/install.texi: Use https for gcc.gnu.org.
1473 * doc/sourcebuild.texi: Likewise.
1474
1475 2019-11-20 Julian Brown <julian@codesourcery.com>
1476
1477 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1478
1479 2019-11-20 Jan Hubicka <jh@suse.cz>
1480
1481 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1482 parameter and update call_size_time_table.
1483 (ipa_fn_summary::max_size_time_table_size): New constant.
1484 (estimate_calls_size_and_time_1): Break out from ...
1485 (estimate_calls_size_and_time): ... here; implement summary production.
1486 (summarize_calls_size_and_time): New function.
1487 (ipa_call_context::estimate_size_and_time): Bypass
1488 estimate_calls_size_and_time for leaf functions.
1489 (ipa_update_overall_fn_summary): Likewise.
1490 * ipa-fnsummary.h (call_size_time_table): New.
1491 (ipa_fn_summary::account_size_time): Update prototype.
1492
1493 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1494
1495 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1496
1497 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1498
1499 PR85678
1500 * common.opt (fcommon): Change init to 1.
1501 * doc/invoke.texi (-fcommon): Update documentation.
1502
1503 2019-11-20 Jan Hubicka <jh@suse.cz>
1504
1505 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1506 to ordinary array.
1507
1508 2019-11-20 Jan Hubicka <jh@suse.cz>
1509
1510 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1511 Add allocator parameter.
1512 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1513 (fibonacci_heap<K,V>::m_allocator): New.
1514 (fibonacci_heap<K,V>::m_own_allocator): New.
1515 (fibonacci_heap<K,V>::insert): Use allocator.
1516 (fibonacci_heap<K,V>::extract_min): Likewise.
1517 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1518 allocator.
1519 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1520 on stack.
1521 * fibonacci_heap.c: Include alloc-pool
1522 (test_empty_heap): Initialize allocator.
1523 (test_union): Likewise.
1524 * bb-reorder.c: Include alloc-pool.h.
1525 * tracer.c: Inlclude alloc-pool.h.
1526
1527 2019-11-20 Jan Hubicka <jh@suse.cz>
1528
1529 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1530 Preallocate for 32 entries.
1531 (DFS::worklist): Likewise.
1532 (DFS::DFS): Do not initialize sccstack and worklist.
1533 (DFS::~DFS): Do not release sccstack.
1534
1535 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1536
1537 PR target/92573
1538 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1539 Handle UNORDERED if !HONOR_NANS.
1540
1541 2019-11-20 Jan Hubicka <jh@suse.cz>
1542
1543 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1544 (edge_badness): ... here.
1545 (inline_small_functions): Use monotonicity of badness calculation
1546 to avoid redundant updates.
1547
1548 2019-11-20 Richard Biener <rguenther@suse.de>
1549
1550 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1551 constructors we are actually analyzing.
1552 (vect_slp_check_for_constructors): Do not vectorize uniform
1553 constuctors, do not dump here.
1554
1555 2019-11-20 Richard Biener <rguenther@suse.de>
1556
1557 PR tree-optimization/92537
1558 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1559 vectorization validity check...
1560 (vect_slp_analyze_operations): ... here.
1561
1562 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1563
1564 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1565 (make_pass_arc_predicate_delay_insns): Likewise.
1566 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1567 method, remove clone.
1568 (class pass_arc_predicate_delay_insns): Likewise.
1569 (arc_init): Remove registering of ARC specific passes.
1570 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1571 * config/arc/arc-passes.def: New file.
1572
1573 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1574
1575 PR middle-end/90840
1576 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1577 and has a mode that doesn't have corresponding integral type.
1578
1579 PR target/90867
1580 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1581 clear opts->x_ix86_isa_flags{,2} here...
1582 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1583 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1584
1585 PR c/90898
1586 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1587 assertion.
1588 (insert_clobbers_for_var): Fix a typo in function comment.
1589
1590 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1591 Jakub Jelinek <jakub@redhat.com>
1592
1593 PR middle-end/91195
1594 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1595 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1596 load.
1597
1598 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1599
1600 Make 0-series device specs work with older versions of avr-gcc.
1601
1602 PR target/92545
1603 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1604 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1605 <*link_pm_base_address>: Don't write spec.
1606 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1607
1608 2019-11-20 Richard Biener <rguenther@suse.de>
1609
1610 PR c/92088
1611 * builtins.c (compute_objsize): Deal with VLAs.
1612
1613 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1614
1615 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1616 from common code.
1617 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1618 call new function.
1619 (power9_sched_reorder2): Call new function.
1620 (rs6000_sched_reorder2): Likewise.
1621
1622 2019-11-18 Jan Hubicka <jh@suse.cz>
1623
1624 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1625 (estimate_calls_size_and_time): Update.
1626
1627 2019-11-18 Jan Hubicka <jh@suse.cz>
1628
1629 * ipa-inline.c (inlining_speedup): New function.
1630 (edge_badness): Use it.
1631
1632 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1633 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1634
1635 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1636 Mark as not having "likely" version.
1637 * config/mips/mips.md (insn_count): The simd_div instruction with
1638 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1639 (can_delay): Exclude simd_branch.
1640 (defile_delay *): Add simd_branch instructions.
1641 They have one regular delay slot.
1642
1643 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1644
1645 Revert:
1646 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1647
1648 * cse.c (cse_insn): Delete no-op register moves too.
1649 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1650 Take a second comparison to control the value for NE.
1651 (mask_to_comparison): Handle unsigned comparisons.
1652 (simplify_logical_relational_operation): Likewise. Update call
1653 to comparison_to_mask. Handle AND if !HONOR_NANs.
1654 (simplify_binary_operation_1): Call the above for AND too.
1655
1656 2019-11-19 Martin Liska <mliska@suse.cz>
1657
1658 * toplev.c (general_init): Move the call...
1659 (toplev::main): ... here as we need init_options_struct
1660 being called.
1661
1662 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1663
1664 PR target/79262
1665 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1666 vec_to_scalar_cost.
1667
1668 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1669
1670 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1671 (armv7-a): Likewise.
1672 (armv7ve): Likewise.
1673
1674 2019-11-19 Richard Biener <rguenther@suse.de>
1675
1676 PR tree-optimization/92581
1677 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1678 condition reduction chains gather all conditions involved
1679 for computing the index reduction vector.
1680
1681 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1682
1683 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1684 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1685 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1686 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1687 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1688 (aarch64_init_memtag_builtins): New.
1689 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1690 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1691 (aarch64_expand_builtin_memtag): New.
1692 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1693 (AARCH64_BUILTIN_SUBCODE): New macro.
1694 (aarch64_resolve_overloaded_memtag): New.
1695 (aarch64_resolve_overloaded_builtin_general): New. Call
1696 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1697 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1698 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1699 (aarch64_resolve_overloaded_builtin): Call
1700 aarch64_resolve_overloaded_builtin_general.
1701 * config/aarch64/aarch64-protos.h
1702 (aarch64_resolve_overloaded_builtin_general): New declaration.
1703 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1704 (TARGET_MEMTAG): Likewise.
1705 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1706 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1707 (irg, gmi, subp, addg, ldg, stg): New instructions.
1708 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1709 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1710 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1711 (__arm_mte_get_tag): Likewise.
1712 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1713 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1714 * config/arm/types.md (memtag): New.
1715 * doc/invoke.texi (-memtag): Update description.
1716
1717 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1718
1719 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1720 to define __GCC_ASM_FLAG_OUTPUTS__.
1721 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1722 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1723 depending on TARGET_THUMB1.
1724 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1725
1726 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1727
1728 PR target/92549
1729 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1730
1731 PR middle-end/91450
1732 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1733 operand is negative and one non-negative, compare the non-negative
1734 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1735 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1736 and s2 == 0, unless one of them is known to be negative. Remove
1737 tem2 variable, use tem where tem2 has been used before.
1738
1739 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1740
1741 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1742
1743 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1744
1745 PR tree-optimization/92557
1746 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1747 vmode rather than asserting it always is.
1748
1749 2019-11-19 Richard Biener <rguenther@suse.de>
1750
1751 PR tree-optimization/92554
1752 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1753 for the actual condition stmt and deal with sign-changes.
1754
1755 2019-11-19 Richard Biener <rguenther@suse.de>
1756
1757 PR tree-optimization/92555
1758 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1759 for non-SLP stmts.
1760
1761 2019-11-19 Martin Liska <mliska@suse.cz>
1762
1763 PR bootstrap/92540
1764 * config/riscv/riscv.c (riscv_address_insns): Initialize
1765 addr in order to remove boostrap -Wmaybe-uninitialized
1766 error.
1767
1768 2019-11-18 Martin Sebor <msebor@redhat.com>
1769
1770 PR tree-optimization/92493
1771 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1772 assignment.
1773
1774 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1775
1776 * cfgloop.c (get_loop_body_in_custom_order): New.
1777 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1778 * tree-loop-distribution.c (class loop_distribution): New.
1779 (bb_top_order_cmp): Remove.
1780 (bb_top_order_cmp_r): New.
1781 (create_rdg_vertices): Move into class loop_distribution.
1782 (stmts_from_loop): Same as above.
1783 (update_for_merge): Same as above.
1784 (partition_merge_into): Same as above.
1785 (get_data_dependence): Same as above.
1786 (data_dep_in_cycle_p): Same as above.
1787 (update_type_for_merge): Same as above.
1788 (build_rdg_partition_for-vertex): Same as above.
1789 (classify_builtin_ldst): Same as above.
1790 (classify_partition): Same as above.
1791 (share_memory_accesses): Same as above.
1792 (rdg_build_partitions): Same as above.
1793 (pg_add_dependence_edges): Same as above.
1794 (build_partition_graph): Same as above.
1795 (merge_dep_scc_partitions): Same as above.
1796 (break_alias_scc_partitions): Same as above.
1797 (finalize_partitions): Same as above.
1798 (distribute_loop): Same as above.
1799 (bb_top_order_init): New method
1800 (bb_top_order_destroy): New method.
1801 (get_bb_top_order_index_size): New method.
1802 (get_bb_top_order_index_index): New method.
1803 (get_bb_top_order_index_index): New method.
1804 (loop_distribution::execute): New method.
1805 (pass_loop_distribution::execute): Instantiate loop_distribution.
1806
1807 2019-11-18 Jan Hubicka <jh@suse.cz>
1808
1809 PR ipa/92508
1810 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1811 caches.
1812 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1813
1814 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1815
1816 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1817 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1818 * doc/md.texi: Document them.
1819 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1820 internal functions.
1821 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1822 * internal-fn.c (check_ptrs_direct): New macro.
1823 (expand_check_ptrs_optab_fn): Likewise.
1824 (direct_check_ptrs_optab_supported_p): Likewise.
1825 (internal_check_ptrs_fn_supported_p): New fuction.
1826 * tree-data-ref.c: Include internal-fn.h.
1827 (create_ifn_alias_checks): New function.
1828 (create_intersect_range_checks): Use it.
1829 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1830 (optab, cmp_op): Handle it.
1831 (raw_war, unspec): New int attributes.
1832 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1833 constants.
1834 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1835 New predicate.
1836 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1837 expander.
1838 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1839 pattern.
1840
1841 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1842
1843 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1844 empty constructors.
1845
1846 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1847
1848 * cse.c (cse_insn): Delete no-op register moves too.
1849 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1850 Take a second comparison to control the value for NE.
1851 (mask_to_comparison): Handle unsigned comparisons.
1852 (simplify_logical_relational_operation): Likewise. Update call
1853 to comparison_to_mask. Handle AND if !HONOR_NANs.
1854 (simplify_binary_operation_1): Call the above for AND too.
1855
1856 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1857
1858 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1859 splitting the main code out into...
1860 (native_encode_vector_part): ...this new function.
1861 (native_decode_vector_tree): New function.
1862 (fold_view_convert_vector_encoding): Likewise.
1863 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1864 to VECTOR_TYPEs.
1865
1866 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1867
1868 * tree-data-ref.c (create_intersect_range_checks_index): If the
1869 alias pair describes simple WAW and WAR dependencies, just check
1870 whether the first B access overlaps later A accesses.
1871 (create_waw_or_war_checks): New function that performs the same
1872 optimization on addresses.
1873 (create_intersect_range_checks): Call it.
1874
1875 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1876
1877 * lra-constraints.c (valid_address_p): Take the operand and a
1878 constraint as argument. If the operand is a MEM and the constraint
1879 is a memory constraint, check whether the eliminated form of the
1880 MEM already satisfies the constraint.
1881 (process_address_1): Update calls accordingly.
1882
1883 2019-11-18 Tom Tromey <tromey@adacore.com>
1884
1885 * doc/tm.texi: Rebuild.
1886 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1887 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1888
1889 2019-11-18 Richard Biener <rguenther@suse.de>
1890
1891 PR tree-optimization/92516
1892 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1893 argument, hoist bst_map creation/destruction to ...
1894 (vect_analyze_slp): ... here, forming a true graph with
1895 SLP instances being the entries.
1896 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1897 (vect_detect_hybrid_slp): Use one visited set for all
1898 graph entries.
1899 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1900 to hash-sets of slp_tree.
1901 (vect_slp_analyze_operations): Likewise.
1902 (vect_bb_slp_scalar_cost): Remove wrapper.
1903 (vect_bb_vectorization_profitable_p): Use one visited set for
1904 all graph entries.
1905 (vect_schedule_slp_instance): Elide bst_map use.
1906 (vect_schedule_slp): Likewise.
1907
1908 2019-11-18 Richard Biener <rguenther@suse.de>
1909
1910 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1911 was vectorized with just external refs fail.
1912
1913 2019-11-18 Martin Liska <mliska@suse.cz>
1914
1915 PR ipa/92525
1916 * ipa-icf.c (sem_function::init): Unset m_checker
1917 at the end of the function.
1918
1919 2019-11-18 Richard Biener <rguenther@suse.de>
1920
1921 PR tree-optimization/92558
1922 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1923 reducting the width of a reduction vector def update new_phis.
1924
1925 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1926
1927 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1928 and s390*-*-linux-musl* targets.
1929 * configure: Regenerate.
1930
1931 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1932
1933 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1934 (MUSL_DYNAMIC_LINKER64): Define.
1935
1936 2019-11-18 Martin Liska <mliska@suse.cz>
1937
1938 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1939 message for an unknown counter.
1940 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1941 (dbg_cnt_process_opt): Remove unreachable code.
1942
1943 2019-11-18 Martin Liska <mliska@suse.cz>
1944
1945 PR ipa/92529
1946 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1947 Compare LHS types of NOP_EXPR.
1948
1949 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1950
1951 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1952 "initial_pass_name" argument -- by running "*clean_state" pass.
1953 Also free the "initial_pass_name" when done.
1954
1955 2019-11-18 Richard Biener <rguenther@suse.de>
1956
1957 PR rtl-optimization/92462
1958 * alias.c (find_base_term): Restrict the look through ANDs.
1959 (find_base_value): Likewise.
1960
1961 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1962
1963 Add support for AVR devices from the 0-series.
1964
1965 PR target/92545
1966 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1967 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1968 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1969 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1970 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1971 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1972 for spec definitions.
1973 * doc/avr-mmcu.texi: Regenerate.
1974
1975 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1976
1977 PR target/92448
1978 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1979 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1980 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1981 (ix86_reassociation_width): Ditto.
1982 * config/i386/i386-options.c (ix86_option_override_internal):
1983 Replace TARGET_AVX128_OPTIAML with
1984 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1985 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1986 (TARGET_AVX128_OPTIMAL): Deleted.
1987 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1988 DEF_TUNE.
1989
1990 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1991
1992 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1993 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1994 just SI.
1995 (cceq_rev_compare): Rename to...
1996 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1997 just SI.
1998 (define_split for <bd>tf_<mode>): Add SImode first argument to
1999 gen_cceq_ior_compare.
2000
2001 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2002
2003 * common/config/powerpcspe: Delete.
2004
2005 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2006
2007 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2008 output in UNSPEC_WRFFR.
2009
2010 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2011
2012 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2013 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2014
2015 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2016
2017 * tree-data-ref.c (create_intersect_range_checks_index)
2018 (create_intersect_range_checks): Print dump messages.
2019
2020 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2021
2022 * tree-data-ref.c (dump_alias_pair): New function.
2023 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2024
2025 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2026
2027 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2028 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2029 merging data references with different steps.
2030 (create_intersect_range_checks_index): Take a
2031 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2032 Bail out if DR_ALIAS_MIXED_STEPS is set.
2033 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2034 instead of two dr_with_seg_lens. Update call to
2035 create_intersect_range_checks_index.
2036 (create_runtime_alias_checks): Update call accordingly.
2037
2038 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2039
2040 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2041 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2042 (dr_with_seg_len_pair_t::sequencing): New enum.
2043 (dr_with_seg_len_pair_t::flags): New member variable.
2044 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2045 parameter and initialize the flags member variable.
2046 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2047 call accordingly.
2048 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2049 Ensure the two data references in an alias pair are in statement
2050 order, if there is a defined order.
2051 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2052 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2053 swapped the references in a dr_with_seg_len_pair_t. OR together
2054 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2055 try to restore the original dr_with_seg_len order, updating the
2056 flags if that fails.
2057
2058 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2059
2060 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2061 swapping the dr_as based on init values until we've decided
2062 whether to merge them.
2063
2064 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2065
2066 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2067 two accesses in each dr_with_seg_len_pair_t before trying to
2068 combine separate dr_with_seg_len_pair_ts.
2069 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2070 that here.
2071 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2072
2073 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2074
2075 * config/aarch64/aarch64-sve.md
2076 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2077 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2078 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2079 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2080 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2081 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2082 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2083 pattern.
2084 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2085 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2086 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2087 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2088
2089 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2090
2091 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2092 (SVE_4HSI): New mode iterators.
2093 (ANY_EXTEND2): New code iterator.
2094 * config/aarch64/aarch64-sve.md
2095 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2096 Extend to...
2097 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2098 ...this, handling extension to partial modes as well as full modes.
2099 Describe the extension as a predicated rather than unpredicated
2100 extension.
2101 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2102 Likewise extend to...
2103 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2104 ...this, making the same adjustments.
2105 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2106 Likewise extend to...
2107 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2108 ...this, making the same adjustments.
2109 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2110 Likewise extend to...
2111 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2112 ...this, making the same adjustments.
2113 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2114 New pattern.
2115 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2116 extension predicate.
2117 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2118 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2119 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2120 Describe the extension as a predicated rather than unpredicated
2121 extension.
2122 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2123 Likewise. Canonicalize to a constant extension predicate.
2124 * config/aarch64/aarch64-sve-builtins-base.cc
2125 (svld1_gather_extend_impl::expand): Add an extra predicate for
2126 the extension.
2127 (svldff1_gather_extend_impl::expand): Likewise.
2128
2129 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2130
2131 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2132 iterators.
2133 * config/aarch64/aarch64-sve.md
2134 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2135 (gather_load<SVE_24:mode><v_int_container>): ...this.
2136 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2137 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2138 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2139 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2140 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2141 New pattern.
2142 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2143 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2144 Allow the nominal extension predicate to be different from the
2145 load predicate.
2146 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2147 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2148
2149 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2150
2151 * config/aarch64/aarch64-sve.md
2152 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2153 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2154 function.
2155 (aarch64_sve_adjust_stmt_cost): Call it.
2156
2157 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2158
2159 * config/aarch64/aarch64-sve.md
2160 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2161 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2162 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2163 Combine into...
2164 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2165 ...this new pattern, handling extension to partial modes as well
2166 as full modes. Describe the extension as a predicated rather than
2167 unpredicated extension.
2168 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2169 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2170 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2171 Combine into...
2172 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2173 ...this new pattern, handling extension to partial modes as well
2174 as full modes. Describe the extension as a predicated rather than
2175 unpredicated extension.
2176 * config/aarch64/aarch64-sve-builtins.cc
2177 (function_expander::use_contiguous_load_insn): Add an extra
2178 predicate for extending loads.
2179 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2180 (aarch64_sve_adjust_stmt_cost): Likewise.
2181 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2182 the cost of SVE vector stmts.
2183
2184 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2185
2186 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2187 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2188 * config/aarch64/aarch64-sve.md
2189 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2190 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2191 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2192 comment. Avoid new narrower_mask ambiguity.
2193 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2194 (*cond_uxt<mode>_2): Update comment.
2195 (*cond_uxt<mode>_any): Likewise.
2196
2197 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2198
2199 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2200 float modes.
2201 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2202 function.
2203 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2204 new vector float modes.
2205 (aarch64_sve_container_bits): New function.
2206 (aarch64_sve_pred_mode): Likewise.
2207 (aarch64_get_mask_mode): Use it.
2208 (aarch64_sve_element_int_mode): Handle structure modes and partial
2209 modes.
2210 (aarch64_sve_container_int_mode): New function.
2211 (aarch64_vectorize_related_mode): Return SVE modes when given
2212 SVE modes. Handle partial modes, taking the preferred number
2213 of units from the size of the given mode.
2214 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2215 in registers.
2216 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2217 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2218 (aarch64_split_sve_subreg_move): Use the mode form of
2219 aarch64_sve_pred_mode.
2220 (aarch64_secondary_reload): Handle partial modes in the same way
2221 as full big-endian vectors.
2222 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2223 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2224 merging with the Advanced SIMD modes. If two modes have the
2225 same size, try the Advanced SIMD mode first.
2226 (aarch64_simd_valid_immediate): Use the container rather than
2227 the element mode for INDEX constants.
2228 (aarch64_simd_vector_alignment): Make the alignment of partial
2229 SVE vector modes the same as their minimum size.
2230 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2231 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2232 (mov<SVE_ALL:mode>): ...this.
2233 (movmisalign<SVE_FULL:mode>): Extend to...
2234 (movmisalign<SVE_ALL:mode>): ...this.
2235 (*aarch64_sve_mov<mode>_le): Rename to...
2236 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2237 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2238 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2239 partial modes regardless of endianness.
2240 (aarch64_sve_reload_be): Rename to...
2241 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2242 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2243 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2244 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2245 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2246 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2247 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2248 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2249 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2250 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2251 (maskload<SVE_FULL:mode><vpred>): Extend to...
2252 (maskload<SVE_ALL:mode><vpred>): ...this.
2253 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2254 (maskstore<SVE_ALL:mode><vpred>): ...this.
2255 (vec_duplicate<SVE_FULL:mode>): Extend to...
2256 (vec_duplicate<SVE_ALL:mode>): ...this.
2257 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2258 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2259 (sve_ld1r<SVE_FULL:mode>): Extend to...
2260 (sve_ld1r<SVE_ALL:mode>): ...this.
2261 (vec_series<SVE_FULL_I:mode>): Extend to...
2262 (vec_series<SVE_I:mode>): ...this.
2263 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2264 (*vec_series<SVE_I:mode>_plus): ...this.
2265 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2266 new VPRED ambiguity.
2267 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2268 (add<SVE_FULL_I:mode>3): Extend to...
2269 (add<SVE_I:mode>3): ...this.
2270 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2271 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2272 (VPRED, vpred): Likewise.
2273 (Vctype): New iterator.
2274 (vw): Remove SVE modes.
2275
2276 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2277
2278 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2279 (SVE_PARTIAL_I): ...this.
2280 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2281
2282 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2283
2284 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2285 (SVE_FULL): ...this.
2286 (SVE_I): Rename to...
2287 (SVE_FULL_I): ...this.
2288 (SVE_F): Rename to...
2289 (SVE_FULL_F): ...this.
2290 (SVE_BHSI): Rename to...
2291 (SVE_FULL_BHSI): ...this.
2292 (SVE_HSD): Rename to...
2293 (SVE_FULL_HSD): ...this.
2294 (SVE_HSDI): Rename to...
2295 (SVE_FULL_HSDI): ...this.
2296 (SVE_HSF): Rename to...
2297 (SVE_FULL_HSF): ...this.
2298 (SVE_SD): Rename to...
2299 (SVE_FULL_SD): ...this.
2300 (SVE_SDI): Rename to...
2301 (SVE_FULL_SDI): ...this.
2302 (SVE_SDF): Rename to...
2303 (SVE_FULL_SDF): ...this.
2304 (SVE_S): Rename to...
2305 (SVE_FULL_S): ...this.
2306 (SVE_D): Rename to...
2307 (SVE_FULL_D): ...this.
2308 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2309 * config/aarch64/aarch64-sve2.md: Likewise.
2310
2311 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2312
2313 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2314 New option.
2315 * doc/invoke.texi: Document it.
2316 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2317 By default, return VECT_COMPARE_COSTS for SVE.
2318
2319 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2320
2321 * target.h (VECT_COMPARE_COSTS): New constant.
2322 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2323 * doc/tm.texi: Regenerate.
2324 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2325 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2326 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2327 Likewise.
2328 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2329 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2330 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2331 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2332 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2333 (_loop_vec_info::vec_inside_cost): New member variables.
2334 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2335 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2336 (vect_analyze_loop): When autovectorize_vector_modes returns
2337 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2338 vector mode and picking the one with the lowest cost.
2339 (vect_estimate_min_profitable_iters): Record the computed costs
2340 in the loop_vec_info.
2341
2342 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2343
2344 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2345 element type rather than an element mode.
2346 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2347 Use get_vectype_for_scalar_type to query the natural types
2348 for a given element type rather than basing everything on
2349 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2350 query to MAX_FIXED_MODE_SIZE.
2351 (duplicate_and_interleave): Update call accordingly.
2352 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2353
2354 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2355
2356 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2357 optional maximum nunits.
2358 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2359 takes an slp_tree.
2360 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2361 (vect_get_mask_type_for_stmt): Likewise.
2362 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2363 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2364 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2365 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2366 to get an assumed vector type for data references.
2367 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2368 (vect_update_all_shared_vectypes): Likewise.
2369 (vect_build_slp_tree_1): Pass the group size to
2370 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2371 for BB vectorization.
2372 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2373 before building the vectof from scalars.
2374 (vect_analyze_slp_instance): Pass the group size to
2375 get_vectype_for_scalar_type.
2376 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2377 types for BB vectorization here; just handle the case in which
2378 we deferred the choice for booleans.
2379 (vect_get_constant_vectors): Pass the slp_tree to
2380 get_vectype_for_scalar_type.
2381 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2382 (vectorizable_call): Likewise.
2383 (vectorizable_simd_clone_call): Likewise.
2384 (vectorizable_conversion): Likewise.
2385 (vectorizable_shift): Likewise.
2386 (vectorizable_operation): Likewise.
2387 (vectorizable_comparison): Likewise.
2388 (vect_is_simple_cond): Take the slp_tree as argument and
2389 pass it to get_vectype_for_scalar_type.
2390 (vectorizable_condition): Update call accordingly.
2391 (get_vectype_for_scalar_type): Take a group_size argument.
2392 For BB vectorization, limit the the vector to that number
2393 of elements. Also define an overload that takes an slp_tree.
2394 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2395 pass it to get_vectype_for_scalar_type.
2396 (vect_get_vector_types_for_stmt): Add a group_size argument
2397 and pass it to get_vectype_for_scalar_type. Don't use the
2398 cached vector type for BB vectorization if a group size is given.
2399 Handle data references in that case.
2400 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2401 pass it to get_mask_type_for_scalar_type.
2402
2403 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2404
2405 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2406 parameter.
2407 (estimate_edge_time): Use it.
2408 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2409 ret_nonspec_time parameter.
2410
2411 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2412
2413 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2414
2415 2019-11-15 Nick Clifton <nickc@redhat.com>
2416 Szabolcs Nagy <szabolcs.nagy@arm.com>
2417
2418 PR target/65649
2419 * config/microblaze/microblaze.c (print_operand): Print value as long.
2420
2421 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2422
2423 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2424 accidental commit.
2425
2426 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2427
2428 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2429 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2430
2431 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2432
2433 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2434 (gcn_conditional_register_usage): Use constants in place of hard-coded
2435 values.
2436 (gcn_hsa_declare_function_name): Set lower bound for number of
2437 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2438 MAX_NORMAL_VGPR_COUNT.
2439
2440 2019-11-15 Martin Jambor <mjambor@suse.cz>
2441
2442 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2443 declaration.
2444
2445 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2446
2447 * config/gcn/gcn.c (default_requested_args): New.
2448 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2449 set with default_requested_args.
2450 (gcn_conditional_register_usage): Limit register usage of non-kernel
2451 functions. Reassign fixed registers if a non-standard set of args is
2452 requested.
2453 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2454
2455 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2456
2457 PR ipa/92528
2458 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2459 aggregate jump function when inlined-to caller has no edge summary.
2460
2461 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2462
2463 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2464
2465 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2466
2467 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2468 prologue use of v0.
2469 (print_operand_address): Use v1 for zero vector offset.
2470
2471 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2472
2473 PR tree-optimization/92515
2474 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2475 types when converting a vector/scalar shift into a vector/vector one,
2476 using tree_nop_conversion_p instead of useless_type_conversion_p.
2477 Move the conversion code to the transform block.
2478
2479 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2480
2481 * read-rtl-function.c
2482 (function_reader::add_fixup_source_location): Take additional
2483 parameter of a column.
2484 (function_reader::maybe_read_location): Optionally parse column
2485 information and pass to add_fixup_source_location.
2486
2487 2019-11-15 Richard Biener <rguenther@suse.de>
2488
2489 PR tree-optimization/92512
2490 * tree-vect-loop.c (check_reduction_path): Fix operand index
2491 computability check. Add check for second use in COND_EXPRs.
2492
2493 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2494
2495 PR target/92515
2496 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2497 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2498
2499 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2500
2501 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2502 register class for VCC_LO and VCC_HI.
2503 (gcn_spill_class): Use SGPR_REGS to spill registers in
2504 VCC_CONDITIONAL_REG.
2505
2506 2019-11-15 Richard Biener <rguenther@suse.de>
2507
2508 PR tree-optimization/92324
2509 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2510 singedness of SLP reduction epilouge operations. Also reduce
2511 the vector width for SLP reductions before doing elementwise
2512 operations if possible.
2513
2514 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2515
2516 * passes.c (skip_pass): Set epilogue_completed if skipping the
2517 pro_and_epilogue pass.
2518
2519 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2520
2521 * passes.c (should_skip_pass_p): Always run "dfinish".
2522
2523 2019-11-15 Richard Biener <rguenther@suse.de>
2524
2525 * ipa-inline.c (inline_small_functions): Move assignment
2526 to next before call destroying edge.
2527
2528 2019-11-15 Richard Biener <rguenther@suse.de>
2529
2530 PR tree-optimization/92039
2531 PR tree-optimization/91975
2532 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2533 previous change, treat invariants consistently as non-constant.
2534 (tree_estimate_loop_size): Ternary ops with just the first op
2535 constant are not optimized away.
2536
2537 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2538
2539 * gimplify.c (gimplify_call_expr): Don't call
2540 omp_resolve_declare_variant after gimplification.
2541 * omp-general.c (omp_context_selector_matches): For isa that might
2542 match in some other function, defer if in declare simd function.
2543 (omp_context_compute_score): Don't look for " score" in construct
2544 trait set. Set *score to -1 if it can't ever match.
2545 (omp_resolve_declare_variant): If any variants need to be deferred,
2546 don't punt immediately, but compute scores of all variants and if
2547 ther eis a score winner that doesn't need to be deferred, return that.
2548
2549 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2550
2551 * ipa-comdats.c: Fix comments typo.
2552 * ipa-profile.c: Fix comments typo.
2553 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2554 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2555 (gimple_gen_ic_func_profiler): Likewise.
2556 (pass_ipa_tree_profile::gate): Fix comments typo.
2557
2558 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2559
2560 * ipa-inline.c (inline_small_functions): Update iterator of next.
2561
2562 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2563
2564 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2565 register is suitable for the mode.
2566
2567 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2568
2569 * range-op.h (range_operator::fold_range): Return a bool.
2570 * range-op.cc (range_operator::wi_fold): Assert supported type.
2571 (range_operator::fold_range): Assert supported type and return true.
2572 (operator_equal::fold_range): Return true.
2573 (operator_not_equal::fold_range): Same.
2574 (operator_lt::fold_range): Same.
2575 (operator_le::fold_range): Same.
2576 (operator_gt::fold_range): Same.
2577 (operator_ge::fold_range): Same.
2578 (operator_plus::op1_range): Adjust call to fold_range.
2579 (operator_plus::op2_range): Same.
2580 (operator_minus::op1_range): Same.
2581 (operator_minus::op2_range): Same.
2582 (operator_exact_divide::op1_range): Same.
2583 (operator_lshift::fold_range): Return true and adjust fold_range call.
2584 (operator_rshift::fold_range): Same.
2585 (operator_cast::fold_range): Return true.
2586 (operator_logical_and::fold_range): Same.
2587 (operator_logical_or::fold_range): Same.
2588 (operator_logical_not::fold_range): Same.
2589 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2590 (operator_bitwise_not::op1_range): Same.
2591 (operator_cst::fold_range): Return true.
2592 (operator_identity::fold_range): Return true.
2593 (operator_negate::fold_range): Return true and adjust fold_range call.
2594 (operator_addr_expr::fold_range): Return true.
2595 (operator_addr_expr::op1_range): Adjust call to fold_range.
2596 (range_cast): Same.
2597 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2598 (range_fold_unary_symbolics_p): Same.
2599
2600 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2601
2602 PR tree-optimization/92506
2603 * range-op.cc (range_operator::fold_range): Start with range undefined.
2604 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2605 overflow is varying.
2606
2607 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2608
2609 * range-op.cc (*operator*::*range): Remove calls to
2610 range_intersect, range_invert, and range_union in favor of calling
2611 the in-place API methods.
2612 (range_tests): Same.
2613 * range.cc (range_intersect): Remove.
2614 (range_union): Remove.
2615 (range_invert): Remove.
2616 * range.h (range_intersect): Remove.
2617 (range_union): Remove.
2618 (range_intersect): Remove.
2619
2620 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2621
2622 PR rtl-optimization/92430
2623 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2624 (pass_jump_after_combine::execute): Perform jump threading
2625 unconditionally.
2626
2627 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2628 Doug Rupp <rupp@adacore.com>
2629 Olivier Hainque <hainque@adacore.com>
2630
2631 * config.gcc: Collapse the arm-vxworks entries into
2632 a single arm-wrs-vxworks7* one, bpabi based. Update
2633 the default cpu from arm8 to armv7-a
2634 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2635 we always use ARM_UNWIND_INFO.
2636 (DWARF2_UNWIND_INFO): Remove redefinition.
2637 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2638 (VXWORKS_PERSONALITY): Define, to "llvm".
2639 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2640
2641 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2642
2643 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2644 _VX_CPU instead of CPU and handle arm_arch8.
2645
2646 2019-11-14 Doug Rupp <rupp@adacore.com>
2647 Olivier Hainque <hainque@adacore.com>
2648 Jerome Lambourg <lambourg@adacore.com>
2649
2650 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2651 * config/aarch64/aarch64-vxworks.h: New file.
2652 * config/aarch64/t-aarch64-vxworks: New file.
2653
2654 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2655 Olivier Hainque <hainque@adacore.com>
2656
2657 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2658 definition, pointless with a VxWorks specific version
2659 of crtstuff.
2660 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2661 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2662 New local macros, controlling the addition of vxworks specific
2663 crtstuff objects depending on the EH mechanism and kind of
2664 module being linked.
2665 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2666
2667 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2668 Jerome Lambourg <lambourg@adacore.com>
2669 Olivier Hainque <hainque@adacore.com>
2670
2671 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2672 common macro definitions, conveying VXWORKS7 or 64bit general
2673 variations. Add a block to set gcc_cv_initfini_array
2674 unconditionally to "yes" for VxWorks7.
2675 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2676 by default. Update some comments.
2677 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2678 default, to be added the end of VXWORKS_LIBS_RTP.
2679 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2680 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2681 redefine.
2682 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2683 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2684 to account for the now available TLS abilities.
2685 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2686 (VXWORKS_HAVE_TLS): Likewise.
2687
2688 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2689
2690 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2691 (vect_slp_convert_to_external): Likewise.
2692 (vect_slp_analyze_node_operations): If analysis fails, try building
2693 the node from scalars instead.
2694
2695 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2696
2697 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2698 between vector types.
2699 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2700 non-widening and non-narrowing path to handle standard
2701 conversion codes, if the target supports them.
2702 * expr.c (convert_move): Try using the extend and truncate optabs
2703 for vectors.
2704 * optabs-tree.c (supportable_convert_operation): Likewise.
2705 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2706 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2707 (trunc<mode><Vnarrowq>2): New patterns.
2708
2709 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2710
2711 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2712 require vectype and nunits_vectype to have the same size;
2713 instead assert that nunits_vectype has at least as many
2714 elements as vectype. Don't compute a separate nunits_vectype
2715 if the scalar type is obviously the same as vectype's.
2716 Tweak dump messages.
2717
2718 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2719
2720 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2721 function.
2722 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2723 (TARGET_VECTORIZE_RELATED_MODE): Define.
2724
2725 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2726
2727 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2728 (vec_info::used_vector_mode): New member variable.
2729 (vect_chooses_same_modes_p): Declare.
2730 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2731 chosen vector mode in vec_info::used_vector_mode.
2732 (vect_chooses_same_modes_p): New function.
2733 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2734 the same vector statements multiple times.
2735 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2736
2737 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2738
2739 * machmode.h (opt_machine_mode::operator==): New function.
2740 (opt_machine_mode::operator!=): Likewise.
2741 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2742 (get_related_vectype_for_scalar_type): Delete.
2743 (get_vectype_for_scalar_type_and_size): Declare.
2744 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2745 whether analysis passed or failed, and with what vector modes.
2746 Use related_vector_mode to check whether trying a particular
2747 vector mode would be redundant with the autodetected mode,
2748 and print a dump message if we decide to skip it.
2749 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2750 (vect_create_epilog_for_reduction): Use
2751 get_related_vectype_for_scalar_type instead of
2752 get_vectype_for_scalar_type_and_size.
2753 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2754 with...
2755 (get_related_vectype_for_scalar_type): ...this new function.
2756 Take a starting/"prevailing" vector mode rather than a vector size.
2757 Take an optional nunits argument, with the same meaning as for
2758 related_vector_mode. Use related_vector_mode when not
2759 auto-detecting a mode, falling back to mode_for_vector if no
2760 target mode exists.
2761 (get_vectype_for_scalar_type): Update accordingly.
2762 (get_same_sized_vectype): Likewise.
2763 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2764
2765 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2766
2767 * tree-vect-stmts.c (vectorizable_call): Require the types
2768 to have the same size.
2769
2770 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2771
2772 * tree-vect-stmts.c (vectorizable_call): If an operand is
2773 constant or external, use get_vectype_for_scalar_type
2774 rather than get_same_sized_vectype to get its vector type.
2775 (vectorizable_conversion, vectorizable_shift): Likewise.
2776 (vectorizable_operation): Likewise.
2777
2778 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2779
2780 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2781 (vec_info::vector_mode): ...this new field.
2782 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2783 (vect_analyze_loop, vect_transform_loop): Likewise.
2784 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2785 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2786 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2787 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2788 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2789
2790 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2791
2792 * target.h (vector_sizes, auto_vector_sizes): Delete.
2793 (vector_modes, auto_vector_modes): New typedefs.
2794 * target.def (autovectorize_vector_sizes): Replace with...
2795 (autovectorize_vector_modes): ...this new hook.
2796 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2797 Replace with...
2798 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2799 * doc/tm.texi: Regenerate.
2800 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2801 (default_autovectorize_vector_modes): New function.
2802 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2803 (default_autovectorize_vector_modes): New function.
2804 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2805 of autovectorize_vector_sizes. Use the number of units in the mode
2806 to calculate the maximum VF.
2807 * omp-low.c (omp_clause_aligned_alignment): Use
2808 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2809 Use a loop based on related_mode to iterate through all supported
2810 vector modes for a given scalar mode.
2811 * optabs-query.c (can_vec_mask_load_store_p): Use
2812 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2813 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2814 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2815 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2816 Replace with...
2817 (aarch64_autovectorize_vector_modes): ...this new function.
2818 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2819 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2820 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2821 (arc_autovectorize_vector_modes): ...this new function.
2822 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2823 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2824 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2825 (arm_autovectorize_vector_modes): ...this new function.
2826 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2827 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2828 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2829 (ix86_autovectorize_vector_modes): ...this new function.
2830 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2831 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2832 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2833 (mips_autovectorize_vector_modes): ...this new function.
2834 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2835 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2836
2837 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2838
2839 * tree-vect-stmts.c (vectorizable_shift): Check the number
2840 of vector elements as well as the type mode when deciding
2841 whether an op1_vectype is compatible. Reuse the result of
2842 this check when generating vector statements.
2843
2844 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2845
2846 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2847 targetm.vectorize.preferred_simd_mode returns an integer mode,
2848 use mode_for_vector to decide what the vector type's mode
2849 should actually be. Use build_vector_type_for_mode instead
2850 of build_vector_type.
2851
2852 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2853
2854 * target.def (get_mask_mode): Take a vector mode itself as argument,
2855 instead of properties about the vector mode.
2856 * doc/tm.texi: Regenerate.
2857 * targhooks.h (default_get_mask_mode): Update to reflect new
2858 get_mode_mask interface.
2859 * targhooks.c (default_get_mask_mode): Likewise. Use
2860 related_int_vector_mode.
2861 * optabs-query.c (can_vec_mask_load_store_p): Update call
2862 to get_mask_mode.
2863 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2864 first that the original mode really is a vector.
2865 * tree.c (build_truth_vector_type_for): Likewise.
2866 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2867 get_mode_mask interface.
2868 (aarch64_expand_sve_vcond): Update call accordingly.
2869 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2870 get_mode_mask interface.
2871 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2872
2873 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2874
2875 * tree.h (build_truth_vector_type): Delete.
2876 (build_same_sized_truth_vector_type): Likewise.
2877 * tree.c (build_truth_vector_type): Rename to...
2878 (build_truth_vector_type_for): ...this. Make static and take
2879 a vector type as argument.
2880 (truth_type_for): Update accordingly.
2881 (build_same_sized_truth_vector_type): Delete.
2882 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2883 instead of build_same_sized_truth_vector_type.
2884 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2885 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2886 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2887 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2888 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2889 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2890 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2891 (vectorizable_store, vectorizable_condition): Likewise.
2892 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2893 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2894 build_truth_vector_type.
2895 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2896 Use truth_type_for instead of build_same_sized_truth_vector_type.
2897 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2898
2899 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2900
2901 * tree.h (build_truth_vector_type_for_mode): Declare.
2902 * tree.c (build_truth_vector_type_for_mode): New function,
2903 split out from...
2904 (build_truth_vector_type): ...here.
2905 (build_opaque_vector_type): Fix head comment.
2906 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2907 vec_info parameter.
2908 (vect_halve_mask_nunits): Replace vec_info parameter with the
2909 mode of the new vector.
2910 (vect_double_mask_nunits): Likewise.
2911 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2912 (vect_double_mask_nunits): Likewise.
2913 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2914 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2915 to vect_halve_mask_nunits, getting the required mode from the unpack
2916 patterns.
2917 (vect_set_loop_condition_masked): Update call accordingly.
2918 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2919 parameter and update call to vect_double_mask_nunits.
2920 (vectorizable_conversion): Update call accordingly.
2921 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2922 (vectorizable_call): Update call accordingly.
2923 (supportable_widening_operation): Update call to
2924 vect_halve_mask_nunits.
2925 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2926 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2927
2928 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2929
2930 * machmode.h (mode_for_int_vector): Delete.
2931 (related_int_vector_mode): Declare.
2932 * stor-layout.c (mode_for_int_vector): Delete.
2933 (related_int_vector_mode): New function.
2934 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2935 instead of mode_for_int_vector.
2936 (expand_vec_perm_const): Likewise.
2937 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2938 (aarch64_evpc_sve_tbl): Likewise.
2939 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2940 (s390_expand_vcond): Likewise.
2941
2942 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2943
2944 * target.def (related_mode): New hook.
2945 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2946 * doc/tm.texi: Regenerate.
2947 * targhooks.h (default_vectorize_related_mode): Declare.
2948 * targhooks.c (default_vectorize_related_mode): New function.
2949 * machmode.h (related_vector_mode): Declare.
2950 * stor-layout.c (related_vector_mode): New function.
2951 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2952 * optabs-query.c (qimode_for_vec_perm): Likewise.
2953 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2954 (vectorizable_store, vectorizable_load): Likewise
2955
2956 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2957
2958 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2959 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2960 * config/arm/arm-c.c (arm_cpu_builtins): Define
2961 __GCC_ASM_FLAG_OUTPUTS__.
2962 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2963 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2964 Define __GCC_ASM_FLAG_OUTPUTS__.
2965 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2966 * doc/extend.texi (FlagOutputOperands): Add documentation
2967 for ARM and AArch64.
2968
2969 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2970 * config/arm/predicates.md (nz_comparison_operator): Rename
2971 from noov_comparison_operator.
2972 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2973 (arm_gen_dicompare_reg): Likewise.
2974 (maybe_get_arm_condition_code): Likewise.
2975 (thumb1_final_prescan_insn): Likewise.
2976 (arm_emit_coreregs_64bit_shift): Likewise.
2977 * config/arm/arm.md (addsi3_compare0): Likewise.
2978 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2979 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2980 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2981 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2982 (*mulsi3addsi_compare0_scratch): Likewise.
2983 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2984 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2985 (*zeroextractsi_compare0_scratch): Likewise.
2986 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2987 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2988 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2989 (andsi_not_shiftsi_si_scc): Likewise.
2990 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2991 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2992 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2993 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2994 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2995 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2996 (return_addr_mask, *check_arch2): Likewise.
2997 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2998 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2999 (compare_scc splitters): Likewise.
3000 (movcond_addsi): Likewise.
3001 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3002 (*thumb2_addsi3_compare0_scratch): Likewise.
3003 (*thumb2_mulsi_short_compare0): Likewise.
3004 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3005 (compare peephole2s): Likewise.
3006 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3007 nz_comparison_operator names.
3008 (cbranchsi4_insn): Likewise.
3009
3010 * config/arm/constraints.md (c): Use cc_register predicate.
3011
3012 * config/aarch64/constraints.md (c): New constraint.
3013
3014 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3015
3016 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3017 ipa_merge_fn_summary_after_inlining): Micro optimize.
3018
3019 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3020
3021 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3022
3023 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3024
3025 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3026 (ipa_value_range_from_jfunc): New function.
3027 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3028 known_value_ranges parameter; use it to evalulate conditions.
3029 (evaluate_properties_for_edge): Compute known value ranges.
3030 (ipa_fn_summary_t::duplicate): Update use of
3031 evaluate_conditions_for_known_args.
3032 (estimate_ipcp_clone_size_and_time): Likewise.
3033 (ipa_merge_fn_summary_after_inlining): Likewise.
3034 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3035
3036 2019-11-14 Martin Liska <mliska@suse.cz>
3037
3038 * ipa-inline.c (want_inline_small_function_p): Use
3039 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3040 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3041
3042 2019-11-14 Martin Liska <mliska@suse.cz>
3043
3044 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3045 of a callee to get value of the param.
3046 * ipa-inline.c (inline_insns_auto): Use proper
3047 opt_for_fn.
3048 * opts.c (maybe_default_option): Do not overwrite param
3049 value if optimization level does not match. Note that
3050 params usually have default value set via Init() keyword.
3051 * params.opt: Remove -param=max-inline-insns-auto-O2.
3052 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3053 * doc/invoke.texi: Remove documentation of
3054 max-inline-insns-auto-O2.
3055
3056 2019-11-14 Martin Liska <mliska@suse.cz>
3057
3058 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3059 Do not initialize m_other_count.
3060 (switch_conversion::collect): Do not count m_default_count and
3061 m_other_count as we use frequencies for edges.
3062 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3063
3064 2019-11-14 Martin Liska <mliska@suse.cz>
3065
3066 PR other/92329
3067 * doc/invoke.texi: Document -fallocation-dce.
3068
3069 2019-11-14 Martin Liska <mliska@suse.cz>
3070
3071 PR target/92389
3072 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3073 PTA_ICELAKE_CLIENT which is later interited by
3074 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3075
3076 2019-11-14 Martin Liska <mliska@suse.cz>
3077
3078 * ipa-icf.c (sem_item_optimizer::execute): Save
3079 loaded_symbols.
3080 (sem_item_optimizer::parse_nonsingleton_classes):
3081 Return number of loaded symbols.
3082 (sem_item_optimizer::merge_classes): Print
3083 statistics about totally needed symbols.
3084 * ipa-icf.h (parse_nonsingleton_classes): Change return
3085 type.
3086 (merge_classes): Add one argument.
3087
3088 2019-11-14 Martin Liska <mliska@suse.cz>
3089
3090 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3091 func_checker::hash_operand by handling of FIELD_DECLs.
3092
3093 2019-11-14 Martin Liska <mliska@suse.cz>
3094
3095 * ipa-icf-gimple.h (func_checker::func_checker): Add
3096 default constructor.
3097 * ipa-icf.c (sem_function::init): Make operand_equal_p
3098 and hash_operand public.
3099 (sem_item::add_expr): Remove.
3100 (sem_item::add_type): Remove.
3101 (sem_function::hash_stmt): Use m_checker for hashing
3102 of GIMPLE statements.
3103 (sem_function::parse): Init with checker.
3104 (sem_variable::parse): Pass NULL as checker.
3105 (sem_item_optimizer::parse_funcs_and_vars):
3106 Pass checker to ::parse function.
3107 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3108 (sem_variable::parse): New function.
3109 (sem_variable::get_hash): Only return computed hash value.
3110 (sem_variable::init): Initialize hash of a variable.
3111 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3112 to couple of functions as a new argument.
3113
3114 2019-11-14 Martin Liska <mliska@suse.cz>
3115
3116 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3117 bail out reason.
3118 (func_checker::compare_gimple_assign): Likewise.
3119
3120 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3121
3122 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3123 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3124 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3125
3126 * omp-general.c (omp_context_name_list_prop): New function.
3127 (omp_context_selector_matches): Use it. Return 0 if it returns
3128 NULL.
3129 (omp_context_selector_props_compare): Allow equivalency of an
3130 identifier and a string literal containing no embedded zeros.
3131
3132 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3133
3134 * range-op.cc (RANGE3): Remove.
3135 (range_tests): Remove all selftest that check for multi-ranges.
3136 Put tests in namespace selftest.
3137 * selftest.h: Move range_tests into namespace selftest.
3138 * value-range.h (class value_range): Unfriend range_tests.
3139
3140 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3141
3142 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3143 normalize_symbolics and normalize_addresses working in place.
3144 (range_fold_unary_symbolics_p): Same.
3145 (range_fold_unary_symbolics_p): Same.
3146 * value-range.cc (num_pairs): Same.
3147 (lower_bound): Same.
3148 (upper_bound): Same.
3149 (contains_p): Same.
3150 (normalize_addresses): Same.
3151 (normalize_symbolics): Same.
3152 * value-range.h (normalize_symbolics): Same.
3153 (normalize_addresses): Same.
3154
3155 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3156
3157 PR ipa/91682
3158 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3159 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3160 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3161 (ipa_agg_jump_function): Remove member function equal_to.
3162 (ipa_agg_jump_function_p): Remove typedef.
3163 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3164 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3165 information for aggregate jump function.
3166 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3167 record last definition statement.
3168 (load_from_unmodified_param_or_agg): New function.
3169 (ipa_known_agg_contents_list): Add new field type and value, remove
3170 field constant.
3171 (build_agg_jump_func_from_list): Rename parameter const_count to
3172 value_count, build aggregate jump function from ipa_load_agg_data.
3173 (analyze_agg_content_value): New function.
3174 (extract_mem_content): Analyze memory store assignment to prepare
3175 information for aggregate jump function generation.
3176 (determine_known_aggregate_parts): Add new parameter fbi, remove
3177 parameter aa_walk_budeget_p.
3178 (update_jump_functions_after_inlining): Update aggregate jump function.
3179 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3180 (try_make_edge_direct_simple_call): Add new parameter new_root.
3181 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3182 new_root_info.
3183 (update_indirect_edges_after_inlining): Pass new argument to
3184 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3185 (ipa_write_jump_function): Write aggregate jump function to file.
3186 (ipa_read_jump_function): Read aggregate jump function from file.
3187 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3188 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3189 (ipa_agg_value_from_node): Likewise.
3190 (ipa_agg_value_set_from_jfunc): Likewise.
3191 (propagate_vals_across_arith_jfunc): Likewise.
3192 (propagate_aggregate_lattice): Likewise.
3193 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3194 (propagate_vals_across_pass_through): Call
3195 propagate_vals_across_arith_jfunc.
3196 (get_clone_agg_value): Move forward.
3197 (propagate_aggs_across_jump_function): Handle value propagation for
3198 aggregate jump function.
3199 (agg_jmp_p_vec_for_t_vec): Remove.
3200 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3201 with vec<ipa_agg_value>.
3202 (copy_plats_to_inter, intersect_with_plats): Likewise.
3203 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3204 (intersect_aggregate_with_edge): Likewise.
3205 (find_aggregate_values_for_callers_subset): Likewise.
3206 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3207 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3208 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3209 (gather_context_independent_values): Likewise.
3210 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3211 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3212 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3213 (evaluate_properties_for_edge): Likewise.
3214 (estimate_edge_devirt_benefit): Likewise.
3215 (estimate_edge_size_and_time): Likewise.
3216 (estimate_calls_size_and_time): Likewise.
3217 (ipa_call_context::ipa_call_context): Likewise.
3218 (estimate_ipcp_clone_size_and_time): Likewise.
3219 * ipa-fnsummary.h (ipa_call_context): Replace
3220 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3221 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3222 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3223 (do_estimate_edge_size): Likewise.
3224 (do_estimate_edge_hints): Likewise.
3225
3226 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3227
3228 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3229 binary operations.
3230
3231 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3232
3233 * ipa-profile.c (check_argument_count): Check properly that e_info
3234 is non-NULL; do not check descriptors.
3235
3236 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3237
3238 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3239 check for ipa profiles.
3240
3241 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3242
3243 PR c++/92421
3244 * ipa-prop.c (update_indirect_edges_after_inlining):
3245 Mark parameter as used.
3246 * ipa-inline.c (recursive_inlining): Reset node cache
3247 after inlining.
3248 (inline_small_functions): Remove checking ifdef.
3249 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3250 cache consistency.
3251
3252 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3253
3254 PR ipa/92498
3255 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3256 is NULL.
3257 (ipa_profile): Fix reversed test.
3258
3259 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3260
3261 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3262 (propagate_constants_topo): Fix typo.
3263
3264 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3265
3266 * Makefile.in (OBJS): Add value-range.o.
3267 (GTFILES): Add value-range.h.
3268 * gengtype.c (open_base_files): Add value-range.h to list of
3269 header files.
3270 * tree-vrp.c: Move the following value_range related functions:
3271 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3272 constant_p, set_undefined, set_varying, may_contain_p,
3273 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3274 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3275 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3276 value_inside_range, ranges_from_anti_range, union_ranges,
3277 intersect_ranges, intersect_helper, union_helper, union_,
3278 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3279 upper_bound, contains_p, invert, intersect...
3280 * value-range.cc: ...to here.
3281 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3282 associated inline methods from here...
3283 * value-range.h: ...to here.
3284
3285 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3286
3287 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3288 instead of asserting its value.
3289
3290 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3291
3292 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3293 constructors and set methods so value_range_kind is the last
3294 argument and defaults to VR_RANGE.
3295 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3296 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3297 * ipa-prop.c (ipa_get_value_range): Same.
3298 (ipa_compute_jump_functions_for_edge): Same.
3299 * range-op.cc (value_range_from_overflowed_bounds): Same.
3300 (operator_cast::op1_range): Same.
3301 (range_tests): Same.
3302 * range.cc (range_nonzero): Same.
3303 * tree-ssanames.c (get_range_info): Same.
3304 * tree-vrp.c (value_range_equiv::set): Same.
3305 (value_range::value_range): Same.
3306 (value_range_equiv::value_range_equiv): Same.
3307 (value_range_equiv::update): Same.
3308 (value_range_equiv::deep_copy): Same.
3309 (value_range_equiv::move): Same.
3310 (value_range_equiv::set_undefined): Same.
3311 (value_range::set): Same.
3312 (value_range::set_nonzero): Same.
3313 (ranges_from_anti_range): Same.
3314 (extract_range_from_plus_minus_expr): Same.
3315 (value_range::intersect_helper): Same.
3316 (value_range_equiv::intersect): Same.
3317 (value_range::union_helper): Same.
3318 (value_range_equiv::union_): Same.
3319 (value_range::normalize_symbolics): Same.
3320 (value_range::invert): Same.
3321 (determine_value_range_1): Same.
3322 * tree-vrp.h (class value_range): Same.
3323 (class value_range_equiv): Same.
3324 * vr-values.c (set_value_range_to_nonnegative): Same.
3325 (set_value_range_to_truthvalue): Same.
3326 (vr_values::update_value_range): Same.
3327 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3328 (vr_values::extract_range_from_binary_expr): Same.
3329 (vr_values::extract_range_from_comparison): Same.
3330 (vr_values::extract_range_basic): Same.
3331 (vr_values::adjust_range_with_scev): Same.
3332 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3333 (vr_values::extract_range_from_phi_node): Same.
3334
3335 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3336
3337 * tree-dump.c (dequeue_and_dump): Print first tree operand
3338 for VIEW_CONVERT_EXPR.
3339
3340 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3341
3342 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3343 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3344 * real.c (get_max_float): Add norm_max argument.
3345 * real.h (get_max_float): Update prototype.
3346 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3347 get_max_float.
3348
3349 2019-11-13 Martin Liska <mliska@suse.cz>
3350
3351 * dbgcnt.c (test_sorted_dbg_counters): New.
3352 (dbgcnt_c_tests): Likewise.
3353 * selftest-run-tests.c (selftest::run_tests): Likewise.
3354 * selftest.h (dbgcnt_c_tests): Likewise.
3355
3356 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3357 Martin Jambor <mjambor@suse.cz>
3358
3359 PR ipa/92454
3360 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3361 (identify_dead_nodes): Likewise.
3362
3363 2019-11-13 Martin Liska <mliska@suse.cz>
3364
3365 * ipa-icf.c (sem_function::equals_private): Do not overuse
3366 push/pop_cfun functions.
3367
3368 2019-11-13 Martin Liska <mliska@suse.cz>
3369
3370 * common.opt: Document change of -fdbg-cnt option.
3371 * dbgcnt.c (DEBUG_COUNTER): Remove.
3372 (dbg_cnt_is_enabled): Remove.
3373 (dbg_cnt): Work with new intervals.
3374 (dbg_cnt_set_limit_by_index): Set to new
3375 list of intervals.
3376 (dbg_cnt_set_limit_by_name): Likewise.
3377 (dbg_cnt_process_single_pair): Process new format.
3378 (dbg_cnt_process_opt): Likewise.
3379 (dbg_cnt_list_all_counters): Likewise.
3380 * doc/invoke.texi: Document change of -fdbg-cnt option.
3381 (cmp_tuples): New.
3382
3383 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3384
3385 * ipa-inline.c (ipa_inline): Check that function is defined before
3386 flattening.
3387
3388 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3389 Julian Brown <julian@codesourcery.com>
3390
3391 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3392 flag_worker_partitioning is not set.
3393 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3394 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3395
3396 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3397
3398 * config/gcn/gcn-run.c (heap_region): New global variable.
3399 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3400 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3401 (get_kernarg_region): Move contents to ....
3402 (get_memory_region): .... here.
3403 (get_heap_region): New function.
3404 (init_device): Initialize the heap_region.
3405 (device_malloc): Add region parameter.
3406 (struct kernargs): Move heap ....
3407 (heap): ... to global scope.
3408 (main): Allocate heap separate to kernargs.
3409
3410 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3411
3412 * ipa-prop.c (ipa_print_node_jump_functions,
3413 ipa_print_node_params): Print info about missing summaries.
3414
3415 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3416
3417 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3418 the cost of generating loop masks.
3419
3420 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3421
3422 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3423 New function.
3424 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3425 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3426 (vect_transform_loop): Likewise.
3427 (vect_analyze_loop_costing): Don't take the cost of versioning
3428 into account for the static profitability threshold if it turns
3429 out that no versioning is needed.
3430
3431 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3432
3433 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3434 and target_option_default_node to get -fprofile-generate ctors working
3435 right with LTO.
3436
3437 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3438
3439 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3440 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3441 (vectorizable_assignment): Don't add a cost for nop conversions.
3442 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3443 Likewise.
3444 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3445
3446 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3447
3448 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3449 number of ncopies as an additional argument.
3450 (vectorizable_conversion): Update call accordingly. Use "modifier"
3451 to check whether a conversion is between vectors with the same
3452 numbers of units.
3453
3454 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3455
3456 * config/aarch64/aarch64-sve-builtins-functions.h
3457 (unary_count::expand): Use aarch64_sve_int_mode instead of
3458 mode_for_int_vector.
3459
3460 2019-11-13 Martin Liska <mliska@suse.cz>
3461
3462 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3463
3464 2019-11-13 Martin Liska <mliska@suse.cz>
3465
3466 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3467 Remove call to finalize_options_struct.
3468
3469 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3470
3471 PR target/92055
3472 * config/avr/t-avr (avr-mcus): Do not depend on
3473 $(srcdir)/config/avr/t-multilib.
3474
3475 2019-11-13 Richard Biener <rguenther@suse.de>
3476
3477 PR tree-optimization/92473
3478 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3479 direct optab reduction in the correct type.
3480
3481 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3482
3483 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3484 hexadecimal literal.
3485
3486 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3487
3488 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3489 UNORDERED if !HONOR_NANS (DFmode).
3490 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3491 if !HONOR_NANS (<MODE>mode).
3492
3493 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3494
3495 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3496 (ipcp_verify_propagated_values): Likewise.
3497 (propagate_constants_across_call): Likewise.
3498 (propagate_constants_topo): Likewise.
3499 (ipcp_propagate_stage): Likewise.
3500
3501 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3502
3503 PR ipa/92471
3504 * ipa-profile.c (check_argument_count): Break out from ...;
3505 watch for missing summaries.
3506 (ipa_profile): Here.
3507
3508 2019-11-12 Martin Sebor <msebor@redhat.com>
3509
3510 PR tree-optimization/92412
3511 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3512 extern variables.
3513
3514 2019-11-12 Martin Sebor <msebor@redhat.com>
3515
3516 PR middle-end/83688
3517 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3518 (directive::argno): New member.
3519 (format_result::aliases, format_result::alias_count): New data members.
3520 (format_result::append_alias): New member function.
3521 (fmtresult::dst_offset): New data member.
3522 (pass_sprintf_length::call_info::dst_origin): New data member.
3523 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3524 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3525 (get_origin_and_offset): Same.
3526 (format_string): Call it.
3527 (format_directive): Call append_alias and set directive argument
3528 number.
3529 (maybe_warn_overlap): New function.
3530 (pass_sprintf_length::compute_format_length): Call it.
3531 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3532 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3533
3534 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3535
3536 PR rtl-optimization/92430
3537 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3538 dominance info at the beginning.
3539
3540 2019-11-12 Richard Biener <rguenther@suse.de>
3541
3542 PR tree-optimization/92460
3543 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3544 expression before gimplifying.
3545
3546 2019-11-12 Richard Biener <rguenther@suse.de>
3547
3548 PR tree-optimization/92461
3549 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3550 stmt after propagation.
3551
3552 2019-11-12 Martin Liska <mliska@suse.cz>
3553
3554 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3555 Use SET_OPTION_IF_UNSET.
3556 (ix86_option_override_internal): Likewise.
3557 * opts.c (default_options_optimization): Likewise.
3558 (finish_options): Likewise.
3559 (enable_fdo_optimizations): Likewise.
3560 (common_handle_option): Likewise.
3561
3562 2019-11-12 Martin Liska <mliska@suse.cz>
3563
3564 * common/common-target.def: Remove option_validate_param and
3565 option_default_params.
3566 * common/common-targhooks.c (default_option_validate_param):
3567 Remove.
3568 * common/common-targhooks.h (default_option_validate_param):
3569 Remove.
3570 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3571 Remove usage of this.
3572 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3573 (aarch64_option_validate_param): Likewise.
3574 (aarch64_option_default_params): Likewise
3575 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3576 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3577 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3578 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3579 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3580 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3581 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3582 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3583 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3584 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3585 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3586 guard_size here.
3587 * doc/tm.texi: Remove option_default_params and option_validate_param.
3588 * doc/tm.texi.in: Likewise.
3589
3590 2019-11-12 Martin Liska <mliska@suse.cz>
3591
3592 * common/common-target.def:
3593 Do not mention set_default_param_value
3594 and set_param_value.
3595 * doc/tm.texi: Likewise.
3596
3597 2019-11-12 Martin Liska <mliska@suse.cz>
3598
3599 * common.opt: Remove param_values.
3600 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3601 Remove finalize_options_struct.
3602 * gcc.c (driver::decode_argv): Do not call global_init_params
3603 and finish_params.
3604 (driver::finalize): Do not call params_c_finalize
3605 and finalize_options_struct.
3606 * opt-suggestions.c (option_proposer::get_completions): Remove
3607 special casing of params.
3608 (option_proposer::find_param_completions): Remove.
3609 (test_completion_partial_match): Update expected output.
3610 * opt-suggestions.h: Remove find_param_completions.
3611 * opts-common.c (add_misspelling_candidates): Add
3612 --param with a space.
3613 * opts.c (handle_param): Remove.
3614 (init_options_struct):. Remove init_options_struct and
3615 similar calls.
3616 (finalize_options_struct): Remove.
3617 (common_handle_option): Use SET_OPTION_IF_UNSET.
3618 * opts.h (finalize_options_struct): Remove.
3619 * toplev.c (general_init): Do not call global_init_params.
3620 (toplev::finalize): Do not call params_c_finalize and
3621 finalize_options_struct.
3622
3623 2019-11-12 Martin Liska <mliska@suse.cz>
3624
3625 * Makefile.in: Remove PARAMS_H and params.list
3626 and params.options.
3627 * params-enum.h: Remove.
3628 * params-list.h: Remove.
3629 * params-options.h: Remove.
3630 * params.c: Remove.
3631 * params.def: Remove.
3632 * params.h: Remove.
3633 * asan.c: Do not include params.h.
3634 * auto-profile.c: Likewise.
3635 * bb-reorder.c: Likewise.
3636 * builtins.c: Likewise.
3637 * cfgcleanup.c: Likewise.
3638 * cfgexpand.c: Likewise.
3639 * cfgloopanal.c: Likewise.
3640 * cgraph.c: Likewise.
3641 * combine.c: Likewise.
3642 * common/config/aarch64/aarch64-common.c: Likewise.
3643 * common/config/gcn/gcn-common.c: Likewise.
3644 * common/config/ia64/ia64-common.c: Likewise.
3645 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3646 * common/config/rs6000/rs6000-common.c: Likewise.
3647 * common/config/sh/sh-common.c: Likewise.
3648 * config/aarch64/aarch64.c: Likewise.
3649 * config/alpha/alpha.c: Likewise.
3650 * config/arm/arm.c: Likewise.
3651 * config/avr/avr.c: Likewise.
3652 * config/csky/csky.c: Likewise.
3653 * config/i386/i386-builtins.c: Likewise.
3654 * config/i386/i386-expand.c: Likewise.
3655 * config/i386/i386-features.c: Likewise.
3656 * config/i386/i386-options.c: Likewise.
3657 * config/i386/i386.c: Likewise.
3658 * config/ia64/ia64.c: Likewise.
3659 * config/rs6000/rs6000-logue.c: Likewise.
3660 * config/rs6000/rs6000.c: Likewise.
3661 * config/s390/s390.c: Likewise.
3662 * config/sparc/sparc.c: Likewise.
3663 * config/visium/visium.c: Likewise.
3664 * coverage.c: Likewise.
3665 * cprop.c: Likewise.
3666 * cse.c: Likewise.
3667 * cselib.c: Likewise.
3668 * dse.c: Likewise.
3669 * emit-rtl.c: Likewise.
3670 * explow.c: Likewise.
3671 * final.c: Likewise.
3672 * fold-const.c: Likewise.
3673 * gcc.c: Likewise.
3674 * gcse.c: Likewise.
3675 * ggc-common.c: Likewise.
3676 * ggc-page.c: Likewise.
3677 * gimple-loop-interchange.cc: Likewise.
3678 * gimple-loop-jam.c: Likewise.
3679 * gimple-loop-versioning.cc: Likewise.
3680 * gimple-ssa-split-paths.c: Likewise.
3681 * gimple-ssa-sprintf.c: Likewise.
3682 * gimple-ssa-store-merging.c: Likewise.
3683 * gimple-ssa-strength-reduction.c: Likewise.
3684 * gimple-ssa-warn-alloca.c: Likewise.
3685 * gimple-ssa-warn-restrict.c: Likewise.
3686 * graphite-isl-ast-to-gimple.c: Likewise.
3687 * graphite-optimize-isl.c: Likewise.
3688 * graphite-scop-detection.c: Likewise.
3689 * graphite-sese-to-poly.c: Likewise.
3690 * graphite.c: Likewise.
3691 * haifa-sched.c: Likewise.
3692 * hsa-gen.c: Likewise.
3693 * ifcvt.c: Likewise.
3694 * ipa-cp.c: Likewise.
3695 * ipa-fnsummary.c: Likewise.
3696 * ipa-inline-analysis.c: Likewise.
3697 * ipa-inline.c: Likewise.
3698 * ipa-polymorphic-call.c: Likewise.
3699 * ipa-profile.c: Likewise.
3700 * ipa-prop.c: Likewise.
3701 * ipa-split.c: Likewise.
3702 * ipa-sra.c: Likewise.
3703 * ira-build.c: Likewise.
3704 * ira-conflicts.c: Likewise.
3705 * loop-doloop.c: Likewise.
3706 * loop-invariant.c: Likewise.
3707 * loop-unroll.c: Likewise.
3708 * lra-assigns.c: Likewise.
3709 * lra-constraints.c: Likewise.
3710 * modulo-sched.c: Likewise.
3711 * opt-suggestions.c: Likewise.
3712 * opts.c: Likewise.
3713 * postreload-gcse.c: Likewise.
3714 * predict.c: Likewise.
3715 * reload.c: Likewise.
3716 * reorg.c: Likewise.
3717 * resource.c: Likewise.
3718 * sanopt.c: Likewise.
3719 * sched-deps.c: Likewise.
3720 * sched-ebb.c: Likewise.
3721 * sched-rgn.c: Likewise.
3722 * sel-sched-ir.c: Likewise.
3723 * sel-sched.c: Likewise.
3724 * shrink-wrap.c: Likewise.
3725 * stmt.c: Likewise.
3726 * targhooks.c: Likewise.
3727 * toplev.c: Likewise.
3728 * tracer.c: Likewise.
3729 * trans-mem.c: Likewise.
3730 * tree-chrec.c: Likewise.
3731 * tree-data-ref.c: Likewise.
3732 * tree-if-conv.c: Likewise.
3733 * tree-inline.c: Likewise.
3734 * tree-loop-distribution.c: Likewise.
3735 * tree-parloops.c: Likewise.
3736 * tree-predcom.c: Likewise.
3737 * tree-profile.c: Likewise.
3738 * tree-scalar-evolution.c: Likewise.
3739 * tree-sra.c: Likewise.
3740 * tree-ssa-ccp.c: Likewise.
3741 * tree-ssa-dom.c: Likewise.
3742 * tree-ssa-dse.c: Likewise.
3743 * tree-ssa-ifcombine.c: Likewise.
3744 * tree-ssa-loop-ch.c: Likewise.
3745 * tree-ssa-loop-im.c: Likewise.
3746 * tree-ssa-loop-ivcanon.c: Likewise.
3747 * tree-ssa-loop-ivopts.c: Likewise.
3748 * tree-ssa-loop-manip.c: Likewise.
3749 * tree-ssa-loop-niter.c: Likewise.
3750 * tree-ssa-loop-prefetch.c: Likewise.
3751 * tree-ssa-loop-unswitch.c: Likewise.
3752 * tree-ssa-math-opts.c: Likewise.
3753 * tree-ssa-phiopt.c: Likewise.
3754 * tree-ssa-pre.c: Likewise.
3755 * tree-ssa-reassoc.c: Likewise.
3756 * tree-ssa-sccvn.c: Likewise.
3757 * tree-ssa-scopedtables.c: Likewise.
3758 * tree-ssa-sink.c: Likewise.
3759 * tree-ssa-strlen.c: Likewise.
3760 * tree-ssa-structalias.c: Likewise.
3761 * tree-ssa-tail-merge.c: Likewise.
3762 * tree-ssa-threadbackward.c: Likewise.
3763 * tree-ssa-threadedge.c: Likewise.
3764 * tree-ssa-uninit.c: Likewise.
3765 * tree-switch-conversion.c: Likewise.
3766 * tree-vect-data-refs.c: Likewise.
3767 * tree-vect-loop.c: Likewise.
3768 * tree-vect-slp.c: Likewise.
3769 * tree-vrp.c: Likewise.
3770 * tree.c: Likewise.
3771 * value-prof.c: Likewise.
3772 * var-tracking.c: Likewise.
3773
3774 2019-11-12 Martin Liska <mliska@suse.cz>
3775
3776 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3777 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3778 macro.
3779 (asan_sanitize_allocas_p): Likewise.
3780 (asan_emit_stack_protection): Likewise.
3781 (asan_protect_global): Likewise.
3782 (instrument_derefs): Likewise.
3783 (instrument_builtin_call): Likewise.
3784 (asan_expand_mark_ifn): Likewise.
3785 * auto-profile.c (auto_profile): Likewise.
3786 * bb-reorder.c (copy_bb_p): Likewise.
3787 (duplicate_computed_gotos): Likewise.
3788 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3789 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3790 (try_crossjump_bb): Likewise.
3791 * cfgexpand.c (defer_stack_allocation): Likewise.
3792 (stack_protect_classify_type): Likewise.
3793 (pass_expand::execute): Likewise.
3794 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3795 (estimate_reg_pressure_cost): Likewise.
3796 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3797 * combine.c (combine_instructions): Likewise.
3798 (record_value_for_reg): Likewise.
3799 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3800 (aarch64_option_default_params): Likewise.
3801 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3802 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3803 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3804 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3805 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3806 (aarch64_allocate_and_probe_stack_space): Likewise.
3807 (aarch64_expand_epilogue): Likewise.
3808 (aarch64_override_options_internal): Likewise.
3809 * config/alpha/alpha.c (alpha_option_override): Likewise.
3810 * config/arm/arm.c (arm_option_override): Likewise.
3811 (arm_valid_target_attribute_p): Likewise.
3812 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3813 * config/i386/i386.c (get_probe_interval): Likewise.
3814 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3815 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3816 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3817 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3818 (get_stack_clash_protection_guard_size): Likewise.
3819 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3820 * config/s390/s390.c (allocate_stack_space): Likewise.
3821 (s390_emit_prologue): Likewise.
3822 (s390_option_override_internal): Likewise.
3823 * config/sparc/sparc.c (sparc_option_override): Likewise.
3824 * config/visium/visium.c (visium_option_override): Likewise.
3825 * coverage.c (get_coverage_counts): Likewise.
3826 (coverage_compute_profile_id): Likewise.
3827 (coverage_begin_function): Likewise.
3828 (coverage_end_function): Likewise.
3829 * cse.c (cse_find_path): Likewise.
3830 (cse_extended_basic_block): Likewise.
3831 (cse_main): Likewise.
3832 * cselib.c (cselib_invalidate_mem): Likewise.
3833 * dse.c (dse_step1): Likewise.
3834 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3835 (get_max_insn_count): Likewise.
3836 (make_debug_insn_raw): Likewise.
3837 (init_emit): Likewise.
3838 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3839 * final.c (compute_alignments): Likewise.
3840 * fold-const.c (fold_range_test): Likewise.
3841 (fold_truth_andor): Likewise.
3842 (tree_single_nonnegative_warnv_p): Likewise.
3843 (integer_valued_real_single_p): Likewise.
3844 * gcse.c (want_to_gcse_p): Likewise.
3845 (prune_insertions_deletions): Likewise.
3846 (hoist_code): Likewise.
3847 (gcse_or_cprop_is_too_expensive): Likewise.
3848 * ggc-common.c: Likewise.
3849 * ggc-page.c (ggc_collect): Likewise.
3850 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3851 (MAX_DATAREFS): Likewise.
3852 (OUTER_STRIDE_RATIO): Likewise.
3853 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3854 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3855 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3856 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3857 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3858 (imm_store_chain_info::output_merged_store): Likewise.
3859 (pass_store_merging::process_store): Likewise.
3860 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3861 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3862 (scop_to_isl_ast): Likewise.
3863 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3864 (optimize_isl): Likewise.
3865 * graphite-scop-detection.c (build_scops): Likewise.
3866 * haifa-sched.c (set_modulo_params): Likewise.
3867 (rank_for_schedule): Likewise.
3868 (model_add_to_worklist): Likewise.
3869 (model_promote_insn): Likewise.
3870 (model_choose_insn): Likewise.
3871 (queue_to_ready): Likewise.
3872 (autopref_multipass_dfa_lookahead_guard): Likewise.
3873 (schedule_block): Likewise.
3874 (sched_init): Likewise.
3875 * hsa-gen.c (init_prologue): Likewise.
3876 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3877 (cond_move_process_if_block): Likewise.
3878 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3879 (merge_agg_lats_step): Likewise.
3880 (devirtualization_time_bonus): Likewise.
3881 (hint_time_bonus): Likewise.
3882 (incorporate_penalties): Likewise.
3883 (good_cloning_opportunity_p): Likewise.
3884 (ipcp_propagate_stage): Likewise.
3885 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3886 (set_switch_stmt_execution_predicate): Likewise.
3887 (analyze_function_body): Likewise.
3888 (compute_fn_summary): Likewise.
3889 * ipa-inline-analysis.c (estimate_growth): Likewise.
3890 * ipa-inline.c (caller_growth_limits): Likewise.
3891 (inline_insns_single): Likewise.
3892 (inline_insns_auto): Likewise.
3893 (can_inline_edge_by_limits_p): Likewise.
3894 (want_early_inline_function_p): Likewise.
3895 (big_speedup_p): Likewise.
3896 (want_inline_small_function_p): Likewise.
3897 (want_inline_self_recursive_call_p): Likewise.
3898 (edge_badness): Likewise.
3899 (recursive_inlining): Likewise.
3900 (compute_max_insns): Likewise.
3901 (early_inliner): Likewise.
3902 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3903 * ipa-profile.c (ipa_profile): Likewise.
3904 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3905 (ipa_analyze_node): Likewise.
3906 (ipcp_transform_function): Likewise.
3907 * ipa-split.c (consider_split): Likewise.
3908 * ipa-sra.c (allocate_access): Likewise.
3909 (process_scan_results): Likewise.
3910 (ipa_sra_summarize_function): Likewise.
3911 (pull_accesses_from_callee): Likewise.
3912 * ira-build.c (loop_compare_func): Likewise.
3913 (mark_loops_for_removal): Likewise.
3914 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3915 * loop-doloop.c (doloop_optimize): Likewise.
3916 * loop-invariant.c (gain_for_invariant): Likewise.
3917 (move_loop_invariants): Likewise.
3918 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3919 (decide_unroll_runtime_iterations): Likewise.
3920 (decide_unroll_stupid): Likewise.
3921 (expand_var_during_unrolling): Likewise.
3922 * lra-assigns.c (spill_for): Likewise.
3923 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3924 * modulo-sched.c (sms_schedule): Likewise.
3925 (DFA_HISTORY): Likewise.
3926 * opts.c (default_options_optimization): Likewise.
3927 (finish_options): Likewise.
3928 (common_handle_option): Likewise.
3929 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3930 (if): Likewise.
3931 * predict.c (get_hot_bb_threshold): Likewise.
3932 (maybe_hot_count_p): Likewise.
3933 (probably_never_executed): Likewise.
3934 (predictable_edge_p): Likewise.
3935 (predict_loops): Likewise.
3936 (expr_expected_value_1): Likewise.
3937 (tree_predict_by_opcode): Likewise.
3938 (handle_missing_profiles): Likewise.
3939 * reload.c (find_equiv_reg): Likewise.
3940 * reorg.c (redundant_insn): Likewise.
3941 * resource.c (mark_target_live_regs): Likewise.
3942 (incr_ticks_for_insn): Likewise.
3943 * sanopt.c (pass_sanopt::execute): Likewise.
3944 * sched-deps.c (sched_analyze_1): Likewise.
3945 (sched_analyze_2): Likewise.
3946 (sched_analyze_insn): Likewise.
3947 (deps_analyze_insn): Likewise.
3948 * sched-ebb.c (schedule_ebbs): Likewise.
3949 * sched-rgn.c (find_single_block_region): Likewise.
3950 (too_large): Likewise.
3951 (haifa_find_rgns): Likewise.
3952 (extend_rgns): Likewise.
3953 (new_ready): Likewise.
3954 (schedule_region): Likewise.
3955 (sched_rgn_init): Likewise.
3956 * sel-sched-ir.c (make_region_from_loop): Likewise.
3957 * sel-sched-ir.h (MAX_WS): Likewise.
3958 * sel-sched.c (process_pipelined_exprs): Likewise.
3959 (sel_setup_region_sched_flags): Likewise.
3960 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3961 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3962 * toplev.c (print_version): Likewise.
3963 (process_options): Likewise.
3964 * tracer.c (tail_duplicate): Likewise.
3965 * trans-mem.c (tm_log_add): Likewise.
3966 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3967 * tree-data-ref.c (split_constant_offset): Likewise.
3968 (compute_all_dependences): Likewise.
3969 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3970 * tree-inline.c (remap_gimple_stmt): Likewise.
3971 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3972 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3973 (create_parallel_loop): Likewise.
3974 * tree-predcom.c (determine_unroll_factor): Likewise.
3975 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3976 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3977 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3978 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3979 (dse_optimize_redundant_stores): Likewise.
3980 (dse_classify_store): Likewise.
3981 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3982 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3983 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3984 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3985 (try_peel_loop): Likewise.
3986 (tree_unroll_loops_completely): Likewise.
3987 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3988 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3989 (MAX_CONSIDERED_GROUPS): Likewise.
3990 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3991 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3992 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3993 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3994 (L1_CACHE_SIZE_BYTES): Likewise.
3995 (L2_CACHE_SIZE_BYTES): Likewise.
3996 (should_issue_prefetch_p): Likewise.
3997 (schedule_prefetches): Likewise.
3998 (determine_unroll_factor): Likewise.
3999 (volume_of_references): Likewise.
4000 (add_subscript_strides): Likewise.
4001 (self_reuse_distance): Likewise.
4002 (mem_ref_count_reasonable_p): Likewise.
4003 (insn_to_prefetch_ratio_too_small_p): Likewise.
4004 (loop_prefetch_arrays): Likewise.
4005 (tree_ssa_prefetch_arrays): Likewise.
4006 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4007 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4008 (convert_mult_to_fma): Likewise.
4009 (math_opts_dom_walker::after_dom_children): Likewise.
4010 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4011 (hoist_adjacent_loads): Likewise.
4012 (gate_hoist_loads): Likewise.
4013 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4014 (compute_partial_antic_aux): Likewise.
4015 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4016 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4017 (vn_reference_lookup): Likewise.
4018 (do_rpo_vn): Likewise.
4019 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4020 * tree-ssa-sink.c (select_best_block): Likewise.
4021 * tree-ssa-strlen.c (new_stridx): Likewise.
4022 (new_addr_stridx): Likewise.
4023 (get_range_strlen_dynamic): Likewise.
4024 (class ssa_name_limit_t): Likewise.
4025 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4026 (create_variable_info_for_1): Likewise.
4027 (init_alias_vars): Likewise.
4028 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4029 (tail_merge_optimize): Likewise.
4030 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4031 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4032 (thread_jumps::find_jump_threads_backwards): Likewise.
4033 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4034 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4035 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4036 (jump_table_cluster::can_be_handled): Likewise.
4037 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4038 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4039 (param_switch_conversion_branch_ratio): Likewise.
4040 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4041 (vect_enhance_data_refs_alignment): Likewise.
4042 (vect_prune_runtime_alias_test_list): Likewise.
4043 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4044 (vect_get_datarefs_in_loop): Likewise.
4045 (vect_analyze_loop): Likewise.
4046 * tree-vect-slp.c (vect_slp_bb): Likewise.
4047 * tree-vectorizer.h: Likewise.
4048 * tree-vrp.c (find_switch_asserts): Likewise.
4049 (vrp_prop::check_mem_ref): Likewise.
4050 * tree.c (wide_int_to_tree_1): Likewise.
4051 (cache_integer_cst): Likewise.
4052 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4053 (reverse_op): Likewise.
4054 (vt_find_locations): Likewise.
4055
4056 2019-11-12 Martin Liska <mliska@suse.cz>
4057
4058 * Makefile.in: Include params.opt.
4059 * flag-types.h (enum parloops_schedule_type): Add
4060 parloops_schedule_type used in params.opt.
4061 * params.opt: New file.
4062
4063 2019-11-12 Martin Liska <mliska@suse.cz>
4064
4065 * common.opt: Remove --param and --param= options.
4066 * opt-functions.awk: Mark CL_PARAMS for options
4067 that have Param keyword.
4068 * opts-common.c (decode_cmdline_options_to_array):
4069 Replace --param key=value with --param=key=value.
4070 * opts.c (print_filtered_help): Remove special
4071 printing of params.
4072 (print_specific_help): Update title for params.
4073 (common_handle_option): Do not handle OPT__param.
4074 opts.h (SET_OPTION_IF_UNSET): New macro.
4075 * doc/options.texi: Document Param keyword.
4076
4077 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4078 Frederik Harwath <frederik@codesourcery.com>
4079 Thomas Schwinge <thomas@codesourcery.com>
4080
4081 gcc/
4082 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4083 enumeration constant.
4084 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4085 (is_gimple_omp_offloaded): Likewise.
4086 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4087 constant. Adjust the value of ORT_NONE accordingly.
4088 (is_gimple_stmt): Handle OACC_SERIAL.
4089 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4090 (gomp_needs_data_present): Likewise.
4091 (gimplify_adjust_omp_clauses): Likewise.
4092 (gimplify_omp_workshare): Handle OACC_SERIAL.
4093 (gimplify_expr): Likewise.
4094 * omp-expand.c (expand_omp_target):
4095 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4096 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4097 * omp-low.c (is_oacc_parallel): Rename function to...
4098 (is_oacc_parallel_or_serial): ... this.
4099 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4100 (scan_sharing_clauses): Adjust accordingly.
4101 (scan_omp_for): Likewise.
4102 (lower_oacc_head_mark): Likewise.
4103 (convert_from_firstprivate_int): Likewise.
4104 (lower_omp_target): Likewise.
4105 (check_omp_nesting_restrictions): Handle
4106 GF_OMP_TARGET_KIND_OACC_SERIAL.
4107 (lower_oacc_reductions): Likewise.
4108 (lower_omp_target): Likewise.
4109 * tree.def (OACC_SERIAL): New tree code.
4110 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4111
4112 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4113
4114 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4115
4116 PR target/92449
4117 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4118 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4119
4120 PR tree-optimization/92452
4121 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4122 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4123 MINUS_EXPR on it.
4124
4125 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4126
4127 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4128 safelen with 0.
4129
4130 2019-11-12 Alan Modra <amodra@gmail.com>
4131
4132 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4133 element of unspec vec.
4134 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4135 PC-relative TLS.
4136 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4137 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4138 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4139 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4140
4141 2019-11-12 Alan Modra <amodra@gmail.com>
4142
4143 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4144 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4145 (IS_NOMARK_TLSGETADDR): Likewise.
4146 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4147 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4148 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4149 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4150 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4151 (rs6000_indirect_call_template_1): Likewise.
4152 (rs6000_pltseq_template): Likewise.
4153 (rs6000_opt_vars): Remove "tls-markers" entry.
4154 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4155 with TARGET_ELF.
4156 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4157 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4158 (pltseq_plt_pcrel<mode>): Likewise.
4159 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4160 (call_value_local64): Likewise.
4161 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4162 output and length attribute sub-expression.
4163 (call_value_nonlocal_sysv<mode>),
4164 (call_value_nonlocal_sysv_secure<mode>),
4165 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4166 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4167 (call_value_indirect_pcrel<mode>): Likewise.
4168 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4169 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4170 * configure: Regenerate.
4171 * config.in: Regenerate.
4172
4173 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4174
4175 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4176 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4177 address being a prefixed load/store.
4178 (stack_protect_testdi): Deal with either address being a prefixed
4179 load.
4180
4181 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4182
4183 PR bootstrap/92433
4184 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4185 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4186 std::swap.
4187
4188 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4189
4190 PR tree-optimization/92420
4191 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4192 up file.
4193 (get_group_load_store_type): Use it for reversed SLP accesses.
4194
4195 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4196
4197 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4198 summary.
4199 (ipcp_transformation_t::duplicate): Break out from ...
4200 (ipa_node_params_t::duplicate): ... here; add copying of agg
4201 replacements.
4202 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4203 (ipcp_transformation_t): Add duplicate.
4204
4205 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4206
4207 PR fortran/91828
4208 * doc/install.texi: Document that the minimum MPFR version is
4209 3.1.0.
4210
4211 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4212
4213 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4214 use new register constraint letters.
4215
4216 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4217
4218 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4219 as well, if interesting recover the symbol and re-legitimize the
4220 pic address.
4221
4222 2019-11-11 Martin Liska <mliska@suse.cz>
4223
4224 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4225 alphabetically.
4226
4227 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4228
4229 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4230 account when checking if there are enough iterations to vectorize
4231 epilogue.
4232
4233 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4234 Kwok Cheung Yeung <kcy@codesourcery.com>
4235
4236 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4237 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4238 (LANG_HOOKS_DECLS): Rename also here.
4239 * langhooks.h (lang_hooks_for_decls): Rename
4240 omp_is_optional_argument to omp_check_optional_argument; take
4241 additional bool argument.
4242 * omp-general.h (omp_check_optional_argument): Likewise.
4243 * omp-general.h (omp_check_optional_argument): Likewise.
4244 * omp-low.c (lower_omp_target): Update calls; handle absent
4245 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4246
4247 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4248
4249 PR target/87833
4250 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4251 -fPIC and -shared the last to create offload image.
4252
4253 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4254
4255 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4256 of 'offset'.
4257
4258 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4259 (config.status): Use/depend on it.
4260 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4261 * configure: Regenerate.
4262
4263 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4264
4265 PR tree-optimization/88760
4266 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4267 * gcc/common/config/rs6000/rs6000-common.c
4268 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4269 Turn on -funroll-loops and -munroll-only-small-loops.
4270 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4271 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4272 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4273 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4274 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4275 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4276
4277 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4278
4279 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4280 Make scalar_load, vector_load, unaligned_load and
4281 vector_gather_load cost more to conform hardware latency and
4282 insn cost settings.
4283
4284 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4285
4286 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4287 (MACHO_SYMBOL_LINKER_VIS_P): New.
4288
4289 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4290
4291 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4292 registers in eliminable_regset.
4293
4294 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4295
4296 * ipa-inline.c (compute_uninlined_call_time,
4297 compute_inlined_call_time): Take edge frequency as
4298 parameter rather than computing it by itself.
4299 (big_speedup_p, edge_badness): Manually CSE sreal
4300 frequency calculations.
4301
4302 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4303
4304 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4305 case where profiles are same.
4306
4307 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4308
4309 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4310
4311 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4312
4313 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4314 args summaries of inlined edge unless it holds info about
4315 described reference.
4316
4317 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4318
4319 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4320 (*movcc_internal1): Rename to...
4321 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4322
4323 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4324
4325 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4326 (cgraph_node::create_virtual_clone): Copy it.
4327 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4328 summaries.
4329 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4330 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4331 is disabled.
4332 (propagate_constants_across_call): If callee is not analyzed, give up.
4333 (propagate_constants_topo): Lower to bottom latties of all callees of
4334 functions with ipa-cp disabled.
4335 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4336 (cgraph_edge_brings_value_p): Check for availability first.
4337 (create_specialized_node): Set ipcp_clone.
4338 (ipcp_store_bits_results): Check that info is present.
4339 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4340 thunks.
4341 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4342 conservative when callee summary is missing.
4343 (remap_edge_summaries): Lookup call summary only when needed.
4344 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4345 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4346 Use get_create.
4347 (ipa_analyze_node): Use get_create.
4348 (propagate_controlled_uses): Do not propagate when function is not
4349 analyzed.
4350 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4351 (ipa_read_node_info): Use get_create.
4352 * ipa-prop.h (IPA_NODE_REF): Use get.
4353 (IPA_NODE_REF_GET_CREATE): New.
4354
4355 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4356
4357 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4358 on function symbol.
4359
4360 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4361
4362 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4363 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4364 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4365 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4366
4367 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4368
4369 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4370 capping the growth cumulated.
4371 (offline_size): Break out from ...
4372 (estimate_growth): ... here.
4373 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4374 parameters.
4375 (growth_likely_positive): Turn to ...
4376 (growth_positive_p): Re-implement.
4377 * ipa-inline.h (growth_likely_positive): Remove.
4378 (growth_positive_p): Declare.
4379 * ipa-inline.c (want_inline_small_function_p): Use
4380 growth_positive_p.
4381 (want_inline_function_to_all_callers_p): Likewise.
4382
4383 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4384
4385 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4386 calculation of min_size.
4387 (ipa_update_overall_fn_summary): Likewise.
4388
4389 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4390
4391 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4392 estimate_edge_devirt_benefit when not computing hints;
4393 do not compute time when not asked for.
4394 (estimate_calls_size_and_time): Pass NULL hints and time when
4395 these are not computed; do not evaluate hint predicates when these are
4396 not computed.
4397 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4398 frequency.
4399
4400 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4401
4402 PR tree-optimization/92401
4403 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4404 if res_op->code is an expression with code length 1.
4405 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4406 if res_op->code is an expression with code length 2.
4407 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4408 if res_op->code is an expression with code length 3.
4409
4410 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4411
4412 * config/darwin.c (machopic_mcount_stub_name): Validate the
4413 symbol stub name when it is created.
4414 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4415 stub validation.
4416
4417 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4418
4419 * symtab.c: Fix comment typos.
4420 * cgraphunit.c: Likewise.
4421 * cgraph.h: Likewise.
4422 * cgraphclones.c: Likewise.
4423 * cgraph.c: Likewise.
4424 * varpool.c: Likewise.
4425 * tree-ssa-strlen.c: Likewise.
4426 * ipa-sra.c: Likewise.
4427 (scan_expr_access, check_all_callers_for_issues): Fix typo
4428 in a dump message.
4429
4430 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4431
4432 * config/darwin-protos.h: Add include quard.
4433
4434 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4435
4436 * range-op.h (range_operator::fold_range): Return result in a
4437 reference parameter instead of by value.
4438 (range_operator::wi_fold): Same.
4439 * range-op.cc (range_operator::wi_fold): Return result in a reference
4440 parameter instead of by value.
4441 (range_operator::fold_range): Same.
4442 (value_range_from_overflowed_bounds): Same.
4443 (value_range_with_overflow): Same
4444 (create_possibly_reversed_range): Same.
4445 (operator_equal::fold_range): Same.
4446 (operator_not_equal::fold_range): Same.
4447 (operator_lt::fold_range): Same.
4448 (operator_le::fold_range): Same.
4449 (operator_gt::fold_range): Same.
4450 (operator_ge::fold_range): Same.
4451 (operator_plus::wi_fold): Same.
4452 (operator_plus::op1_range): Change call to fold_range.
4453 (operator_plus::op2_range): Change call to fold_range.
4454 (operator_minus::wi_fold): Return result via reference parameter.
4455 (operator_minus::op1_range): Change call to fold_range.
4456 (operator_minus::op2_range): Change call to fold_range.
4457 (operator_min::wi_fold): Return result via reference parameter.
4458 (operator_max::wi_fold): Same.
4459 (cross_product_operator::wi_cross_product): Same.
4460 (operator_mult::wi_fold): Same.
4461 (operator_div::wi_fold): Same.
4462 (operator_div op_floor_div): Fix whitespace.
4463 (operator_exact_divide::op1_range): Change call to fold_range.
4464 (operator_lshift::fold_range): Return result via reference parameter.
4465 (operator_lshift::wi_fold): Same.
4466 (operator_rshift::fold_range): Same.
4467 (operator_rshift::wi_fold): Same.
4468 (operator_cast::fold_range): Same.
4469 (operator_cast::op1_range): Change calls to fold_range.
4470 (operator_logical_and::fold_range): Return result via reference.
4471 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4472 (operator_bitwise_and::wi_fold): Return result via reference.
4473 (operator_logical_or::fold_range): Same.
4474 (operator_bitwise_or::wi_fold): Same.
4475 (operator_bitwise_xor::wi_fold): Same.
4476 (operator_trunc_mod::wi_fold): Same.
4477 (operator_logical_not::fold_range): Same.
4478 (operator_bitwise_not::fold_range): Same.
4479 (operator_bitwise_not::op1_range): Change call to fold_range.
4480 (operator_cst::fold_range): Return result via reference.
4481 (operator_identity::fold_range): Same.
4482 (operator_abs::wi_fold): Same.
4483 (operator_absu::wi_fold): Same.
4484 (operator_negate::fold_range): Same.
4485 (operator_negate::op1_range): Change call to fold_range.
4486 (operator_addr_expr::fold_range): Return result via reference.
4487 (operator_addr_expr::op1_range): Change call to fold_range.
4488 (operator_pointer_plus::wi_fold): Return result via reference.
4489 (operator_pointer_min_max::wi_fold): Same.
4490 (operator_pointer_and::wi_fold): Same.
4491 (operator_pointer_or::wi_fold): Same.
4492 (range_op_handler): Change call to fold_range.
4493 (range_cast): Same.
4494 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4495 fold_range.
4496 (range_fold_unary_symbolics_p): Same.
4497 (range_fold_binary_expr): Same.
4498 (range_fold_unary_expr): Same.
4499
4500 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4501
4502 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4503 vector type as an argument rather than reading it from the
4504 stmt_vec_info.
4505 (vect_create_epilog_for_reduction): Update accordingly.
4506 (vectorizable_reduction): Likewise.
4507 (vect_transform_cycle_phi): Likewise.
4508
4509 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4510
4511 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4512 the comparison codes that make sense for the mode used, and only the
4513 codes that can be done with a single branch instruction.
4514
4515 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4516
4517 PR tree-optimization/92351
4518 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4519 peeling the main loop for alignment, make sure to set the misalignment
4520 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4521
4522 2019-11-08 Richard Biener <rguenther@suse.de>
4523
4524 * dbgcnt.def (ivopts_loop): Add.
4525 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4526 ivopts_loop before optimizing a loop.
4527
4528 2019-11-08 Richard Biener <rguenther@suse.de>
4529
4530 PR ipa/92409
4531 * tree-inline.c (declare_return_variable): Properly handle
4532 type mismatches for the return slot.
4533
4534 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4535
4536 PR target/92095
4537 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4538 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4539 change.
4540 (got_helper_needed): New static variable.
4541 (output_load_pcrel_sym): New function.
4542 (get_pc_thunk_name): Remove after inlining...
4543 (load_got_register): ...here. Rework the initialization of the GOT
4544 register and of the GOT helper.
4545 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4546 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4547 helper must be emitted. Use output_asm_insn instead of fprintf.
4548 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4549 if optimization is enabled.
4550 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4551 by calling output_load_pcrel_sym.
4552
4553 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4554
4555 * tree-sra.c (create_access): Delay disqualifying the base
4556 for poly_int values until we know we have a base.
4557
4558 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4559
4560 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4561 for loops with SIMDUID set. Enable epilogue vectorization for loops
4562 with SIMDLEN set after finding a main loop with a VF that matches it.
4563
4564 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4565
4566 PR target/92038
4567 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4568 value only, return non-NULL if there is a single non-clobber
4569 constituent store even if there are constituent clobbers and return
4570 one of clobber constituent stores if all constituent stores are
4571 clobbers.
4572 (split_group): Handle clobbers.
4573 (imm_store_chain_info::output_merged_store): When computing
4574 bzero_first, look after all clobbers at the start. Don't count
4575 clobber stmts in orig_num_stmts, except if the first orig store is
4576 a clobber covering the whole area and split_stores cover the whole
4577 area, consider equal number of stmts ok. Punt if split_stores
4578 contains only ->orig stores and their number plus number of original
4579 clobbers is equal to original number of stmts. For ->orig, look past
4580 clobbers in the constituent stores.
4581 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4582 stmts.
4583 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4584 rhs.
4585 (store_valid_for_store_merging_p): Allow clobber stmts.
4586 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4587
4588 PR c++/92384
4589 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4590 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4591 slot.
4592 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4593 force creation of a unique data.stack_parm slot.
4594
4595 2019-11-08 Richard Biener <rguenther@suse.de>
4596
4597 * genmatch.c (expr::gen_transform): Use the resimplify
4598 member function instead of hard-coding the gimple_resimplifyN variant.
4599 (dt_simplify::gen_1): Likewise.
4600
4601 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4602
4603 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4604 POLY_INT_CST.
4605
4606 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4607
4608 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4609 instead of INTEGER_CST.
4610
4611 2019-11-08 Richard Biener <rguenther@suse.de>
4612
4613 PR tree-optimization/92324
4614 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4615 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4616 sign-conversions as necessary.
4617 (vectorizable_reduction): Reject conversions in the chain
4618 that are not sign-conversions, base analysis on a non-converting
4619 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4620 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4621 for debug stmts.
4622 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4623 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4624
4625 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4626
4627 PR target/92055
4628 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4629 Fix a missing '-' when displaying these options in the
4630 help screen.
4631
4632 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4633
4634 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4635
4636 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4637
4638 * config/aarch64/aarch64-builtins.c
4639 (aarch64_builtin_vectorized_function): Remove bswap handling.
4640
4641 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4642
4643 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4644 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4645 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4646 Treat the vector types as indivisible.
4647
4648 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4649
4650 * optabs.def (gather_load_optab, mask_gather_load_optab)
4651 (scatter_store_optab, mask_scatter_store_optab): Turn into
4652 conversion optabs, with the offset mode given explicitly.
4653 * doc/md.texi: Update accordingly.
4654 * config/aarch64/aarch64-sve-builtins-base.cc
4655 (svld1_gather_impl::expand): Likewise.
4656 (svst1_scatter_impl::expand): Likewise.
4657 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4658 (expand_scatter_store_optab_fn): Likewise.
4659 (direct_gather_load_optab_supported_p): Likewise.
4660 (direct_scatter_store_optab_supported_p): Likewise.
4661 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4662 to be argument 4.
4663 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4664 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4665 argument with the offset vector type. Require the two vector
4666 types to have the same number of elements but allow their element
4667 sizes to be different. Treat the optabs as conversion optabs.
4668 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4669 prototype accordingly.
4670 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4671 (supports_vec_convert_optab_p): ...this new function.
4672 (supports_vec_gather_load_p): Update accordingly.
4673 (supports_vec_scatter_store_p): Likewise.
4674 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4675 Replace the offset sign and bits parameters with a scalar type tree.
4676 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4677 Pass back the offset vector type instead of the scalar element type.
4678 Allow the offset to be wider than the memory elements. Search for
4679 an offset type that the target supports, stopping once we've
4680 reached the maximum of the element size and pointer size.
4681 Update call to internal_gather_scatter_fn_supported_p.
4682 (vect_check_gather_scatter): Update calls accordingly.
4683 When testing a new scale before knowing the final offset type,
4684 check whether the scale is supported for any signed or unsigned
4685 offset type. Check whether the target supports the source and
4686 target types of a conversion before deciding whether to look
4687 through the conversion. Record the chosen offset_vectype.
4688 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4689 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4690 directly from the gs_info's offset_vectype instead. Pass a zero
4691 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4692 * tree-vect-stmts.c (check_load_store_masking): Update call to
4693 internal_gather_scatter_fn_supported_p, passing the offset vector
4694 type recorded in the gs_info.
4695 (vect_truncate_gather_scatter_offset): Update call to
4696 vect_check_gather_scatter, leaving it to search for a valid
4697 offset vector type.
4698 (vect_use_strided_gather_scatters_p): Convert the offset to the
4699 element type of the gs_info's offset_vectype.
4700 (vect_get_gather_scatter_ops): Get the offset vector type directly
4701 from the gs_info.
4702 (vect_get_strided_load_store_ops): Likewise.
4703 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4704 and IFN_MASK_GATHER_LOAD.
4705 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4706 (gather_load<mode><v_int_equiv>): ...this.
4707 (mask_gather_load<mode>): Rename to...
4708 (mask_gather_load<mode><v_int_equiv>): ...this.
4709 (scatter_store<mode>): Rename to...
4710 (scatter_store<mode><v_int_equiv>): ...this.
4711 (mask_scatter_store<mode>): Rename to...
4712 (mask_scatter_store<mode><v_int_equiv>): ...this.
4713
4714 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4715
4716 PR target/92132
4717 * config/rs6000/predicates.md
4718 (signed_or_equality_comparison_operator): New predicate.
4719 (unsigned_or_equality_comparison_operator): Likewise.
4720 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4721 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4722 * config/rs6000/vector.md
4723 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4724 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4725 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4726 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4727 vector modes and same-size integer vector modes.
4728 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4729 (vector_lt<mode> for VEC_F): New expand.
4730 (vector_le<mode> for VEC_F): Likewise.
4731 (vector_ne<mode> for VEC_F): Likewise.
4732 (vector_unge<mode> for VEC_F): Likewise.
4733 (vector_ungt<mode> for VEC_F): Likewise.
4734 (vector_unle<mode> for VEC_F): Likewise.
4735 (vector_unlt<mode> for VEC_F): Likewise.
4736 (vector_uneq<mode>): Expose name.
4737 (vector_ltgt<mode>): Likewise.
4738 (vector_unordered<mode>): Likewise.
4739 (vector_ordered<mode>): Likewise.
4740
4741 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4742
4743 PR target/92295
4744 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4745 Enhance ix86_expand_vector_init_concat.
4746
4747 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4748
4749 * doc/invoke.texi (-Wold-style-definition): Document () not being
4750 considered an old-style definition for C2x.
4751
4752 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4753
4754 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4755 Enhance comment.
4756 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4757 insn patterns using ldcw instruction.
4758 (memory_barrier): Remove insn pattern using sync instruction.
4759 * config/pa/pa.opt (coherent-ldcw): New option.
4760 (ordered): New option.
4761
4762 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4763
4764 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4765 valid conditions.
4766
4767 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4768
4769 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4770 typo - mistmatch -> mismatch.
4771 * ipa-profile.c (ipa_profile): Likewise.
4772 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4773 - mistmatch -> mismatch.
4774
4775 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4776
4777 * simplify-rtx.c (comparison_to_mask): New function.
4778 (mask_to_comparison): New function.
4779 (simplify_logical_relational_operation): New function.
4780 (simplify_binary_operation_1): Call
4781 simplify_logical_relational_operation.
4782
4783 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4784
4785 PR other/92090
4786 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4787 modes for integer constants.
4788
4789 2019-11-07 Jan Hubicka <jh@suse.cz>
4790
4791 PR ipa/92406
4792 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4793 summary.
4794
4795 2019-11-07 Jan Hubicka <jh@suse.cz>
4796
4797 * optc-save-gen.awk: Generate cl_target_option_free
4798 and cl_optimization_option_free.
4799 * opth-en.awk: Declare cl_target_option_free
4800 and cl_optimization_option_free.
4801 * tree.c (free_node): Use it.
4802
4803 2019-11-06 Jan Hubicka <jh@suse.cz>
4804
4805 * lto-streamer-in.c: Include alloc-pool.h.
4806 (freeing_string_slot_hasher): Remove.
4807 (string_slot_allocator): New object allocator.
4808 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4809 (file_name_obstack): New obstack.
4810 (canon_file_name): Allocate in obstack and allocator.
4811 (lto_reader_init): Initialize obstack and allocator.
4812 (lto_free_file_name_hash): New function.
4813 * lto-streamer.h (lto_free_file_name_hash): New.
4814
4815 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4816
4817 PR tree-optimization/89134
4818 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4819 * params.def: Add min-loop-cond-split-prob.
4820 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4821 outside checks on loop into the function.
4822 (split_info): New class.
4823 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4824 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4825 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4826 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4827 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4828 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4829 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4830 (split_loop_on_cond): Likewise.
4831 (tree_ssa_split_loops): Add loop split on conditional statement.
4832
4833 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4834
4835 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4836 pattern.
4837
4838 2019-11-07 Richard Biener <rguenther@suse.de>
4839
4840 PR tree-optimization/92405
4841 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4842 restrict lane-reducing ops to single stmt chains.
4843
4844 2019-11-07 Martin Jambor <mjambor@suse.cz>
4845
4846 PR lto/70929
4847 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4848 * cgraph.h (gimple_check_call_matching_types): Remove
4849 * cgraph.c (gimple_check_call_args): Likewise.
4850 (gimple_check_call_matching_types): Likewise.
4851 (symbol_table::create_edge): Do not call
4852 gimple_check_call_matching_types.
4853 (cgraph_edge::make_direct): Likewise.
4854 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4855 * value-prof.h (check_ic_target): Remove.
4856 * value-prof.c (check_ic_target): Remove.
4857 (gimple_ic_transform): Do nat call check_ic_target.
4858 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4859 (afdo_indirect_call): Likewise.
4860 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4861 gimple_check_call_matching_types.
4862 * ipa-inline.c (early_inliner): Likewise.
4863
4864 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4865
4866 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4867 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4868 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4869 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4870 * config/arm/iterators.md (USSAT16): New int_iterator.
4871 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4872 (sup): Likewise.
4873 * config/arm/predicates.md (ssat16_imm): New predicate.
4874 (usat16_imm): Likewise.
4875 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4876
4877 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4878
4879 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4880 New define_insns.
4881 (arm_<simd32_op>): New define_expands.
4882 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4883 __smuad, __smuadx): Define.
4884 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4885 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4886 (SIMD32_BINOP_Q): Likewise.
4887 (simd32_op): Handle the above.
4888 * config/arm/unspecs.md: Define unspecs for the above.
4889
4890 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4891
4892 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4893 * config/arm/arm.md (APSRGE_REGNUM): Define.
4894 (arm_<simd32_op>): New define_insn.
4895 (arm_sel): Likewise.
4896 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4897 (CALL_USED_REGISTERS): Likewise.
4898 (REG_ALLOC_ORDER): Likewise.
4899 (FIRST_PSEUDO_REGISTER): Update value.
4900 (ARM_GE_BITS_READ): Define.
4901 * config/arm/arm.c (arm_conditional_register_usage): Clear
4902 APSRGE_REGNUM from operand_reg_set.
4903 (arm_ge_bits_access): Define.
4904 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4905 ARM_BUIILTIN_sel.
4906 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4907 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4908 FAIL if ARM_GE_BITS_READ.
4909 (*arm_add<mode>3): New define_insn.
4910 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4911 (*arm_sub<mode>3): New define_insn.
4912 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4913 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4914 __usub16): Define.
4915 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4916 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4917 (simd32_op): Handle the above.
4918 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4919 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4920 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4921 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4922
4923 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4924
4925 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4926 (arm_smlabb): New define_expand.
4927 (*maddhisi4tb): Rename to...
4928 (maddhisi4tb): ... This.
4929 (*maddhisi4tt): Rename to...
4930 (maddhisi4tt): ... This.
4931 (arm_smlatb_setq): New define_insn.
4932 (arm_smlatb): New define_expand.
4933 (arm_smlatt_setq): New define_insn.
4934 (arm_smlatt): New define_expand.
4935 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4936 (arm_<smlaw_op>): New define_expand.
4937 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4938 __smlawb, __smlawt): Define.
4939 * config/arm_acle_builtins.def: Define builtins for the above.
4940 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4941 (slaw_op): New int_attribute.
4942 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4943
4944 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4945
4946 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4947 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4948 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4949 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4950 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4951 (ss_op): New code_attr.
4952
4953 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4954
4955 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4956 * config/arm/arm.md (APSRQ_REGNUM): Define.
4957 (add_setq): New define_subst.
4958 (add_clobber_q_name): New define_subst_attr.
4959 (add_clobber_q_pred): Likewise.
4960 (maddhisi4): Change to define_expand. Split into mult and add if
4961 ARM_Q_BIT_READ.
4962 (arm_maddhisi4): New define_insn.
4963 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4964 (*maddhisi4tt): Likewise.
4965 (arm_ssat): New define_expand.
4966 (arm_usat): Likewise.
4967 (arm_get_apsr): New define_insn.
4968 (arm_set_apsr): Likewise.
4969 (arm_saturation_occurred): New define_expand.
4970 (arm_set_saturation): Likewise.
4971 (*satsi_<SAT:code>): Rename to...
4972 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4973 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4974 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4975 (CALL_USED_REGISTERS): Mark apsrq.
4976 (FIRST_PSEUDO_REGISTER): Update value.
4977 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4978 (machine_function): Add q_bit_access.
4979 (ARM_Q_BIT_READ): Define.
4980 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4981 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4982 operand_reg_set.
4983 (arm_q_bit_access): Define.
4984 * config/arm/arm-builtins.c: Include stringpool.h.
4985 (arm_sat_binop_imm_qualifiers,
4986 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4987 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4988 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4989 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4990 SET_SAT_QUALIFIERS): Likewise.
4991 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4992 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4993 Handle 0 argument expander.
4994 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4995 (arm_check_builtin_call): Define.
4996 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4997 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4998 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4999 (arm_q_bit_access): Likewise.
5000 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5001 __saturation_occurred, __set_saturation_occurred): Define.
5002 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5003 saturation_occurred, set_saturation_occurred.
5004 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5005 (UNSPEC_APSR_READ): Likewise.
5006 (VUNSPEC_APSR_WRITE): Likewise.
5007 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5008 (*arm_ssadd<mode>3): New define_insn.
5009 (sssub<mode>3): Convert to define_expand.
5010 (*arm_sssub<mode>3): New define_insn.
5011 (ssmulsa3): Convert to define_expand.
5012 (*arm_ssmulsa3): New define_insn.
5013 (usmulusa3): Convert to define_expand.
5014 (*arm_usmulusa3): New define_insn.
5015 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5016 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5017 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5018
5019 2019-11-07 Martin Liska <mliska@suse.cz>
5020
5021 PR c++/92354
5022 * cgraph.c (delete_function_version): Clear global
5023 variable version_info_node if equal to deleted
5024 function.
5025
5026 2019-11-07 Martin Liska <mliska@suse.cz>
5027
5028 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5029 of CONSTRUCTOR_NO_CLEARING.
5030 (operand_compare::hash_operand): Likewise.
5031
5032 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5033
5034 Support 64-bit double and 64-bit long double configurations.
5035
5036 PR target/92055
5037 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5038 --with-long-double=.
5039 * config/avr/t-multilib: Remove.
5040 * config/avr/t-avr: Output of genmultilib.awk is now fully
5041 dynamically generated and no more part of the repo.
5042 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5043 Pass them down to...
5044 * config/avr/genmultilib.awk: ...here and handle them.
5045 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5046 (-mlong-double=, avr_long_double). New option and var.
5047 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5048 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5049 Set default as requested by --with-double=
5050 (TARGET_HANDLE_OPTION): Define to this...
5051 (avr_handle_option): ...new hook worker.
5052 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5053 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5054 (avr_double_lib): New proto for spec function.
5055 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5056 (DRIVER_SELF_SPECS): Call %:double-lib.
5057 * config/avr/avr.c (avr_option_override): Assert
5058 sizeof(long double) >= sizeof(double) for the target.
5059 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5060 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5061 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5062 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5063 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5064 New built-in define depending on --with-double=, --with-long-double=.
5065 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5066 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5067 * doc/install.texi (Cross-Compiler-Specific Options)
5068 <--with-double=, --with-long-double=>: Doc.
5069
5070 2019-11-07 Richard Biener <rguenther@suse.de>
5071
5072 * dbgcnt.def (gimple_unroll): New.
5073 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5074 gimple_unroll debug counter before applying transform.
5075 (try_peel_loop): Likewise.
5076
5077 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5078
5079 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5080 frame pointer in multiple registers.
5081 (ira_setup_eliminable_regset): Setup eliminable_regset,
5082 ira_no_alloc_regs and regs_ever_live for frame pointer in
5083 multiple registers.
5084
5085 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5086
5087 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5088 V2DI modes.
5089
5090 2019-11-06 Jan Hubicka <jh@suse.cz>
5091
5092 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5093 allocations.
5094 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5095 Do not silently ignore summary corruptions.
5096
5097 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5098
5099 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5100 the epilogue if there are peeled iterations for it to handle.
5101
5102 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5103
5104 * config/arc/arc.c (arc_split_ior): Add asserts.
5105 (arc_split_mov_const): Likewise.
5106 (arc_check_ior_const): Do not match known short immediate values.
5107 * config/arc/arc.md (movsi): Don't split predicated instructions
5108 (iorsi): Likewise.
5109
5110 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5111
5112 * config/arc/arc.opt (mea): Update help string.
5113 * doc/invoke.texi(ARC): Update mea option info.
5114
5115 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5116
5117 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5118 (zero_extendqisi2_ac): Likewise.
5119 (zero_extendhisi2_i): Likewise.
5120 (extendqihi2_i): Likewise.
5121 (extendqisi2_ac): Likewise.
5122 (extendhisi2_i): Likewise.
5123
5124 2019-11-06 Richard Biener <rguenther@suse.de>
5125
5126 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5127 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5128 Simplify single_defuse_cycle condition.
5129
5130 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5131
5132 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5133 epilogue loop, make sure that the VF is small enough or that
5134 the epilogue loop can be fully-masked.
5135
5136 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5137
5138 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5139 loop when we've finished, rather than returning directly from
5140 the loop. Use a local variable to track whether we're still
5141 searching for the preferred simdlen. Make vect_epilogues
5142 record whether the next iteration should try to treat the
5143 loop as an epilogue.
5144
5145 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5146
5147 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5148 __arc_hard_float__, __ARC_HARD_FLOAT__,
5149 __arc_soft_float__, __ARC_SOFT_FLOAT__
5150
5151 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5152
5153 PR tree-optimization/92317
5154 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5155 update phi's with constant phi arguments.
5156
5157 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5158 Alexandre Oliva <oliva@adacore.com>
5159
5160 * common.opt (-fcallgraph-info[=]): New option.
5161 * doc/invoke.texi (Developer options): Document it.
5162 * opts.c (common_handle_option): Handle it.
5163 * builtins.c (expand_builtin_alloca): Record allocation if
5164 -fcallgraph-info=da.
5165 * calls.c (expand_call): If -fcallgraph-info, record the call.
5166 (emit_library_call_value_1): Likewise.
5167 * flag-types.h (enum callgraph_info_type): New type.
5168 * explow.c: Include stringpool.h.
5169 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5170 * function.c (allocate_stack_usage_info): New.
5171 (allocate_struct_function): Call it for -fcallgraph-info.
5172 (prepare_function_start): Call it otherwise.
5173 (record_final_call, record_dynamic_alloc): New.
5174 * function.h (struct callinfo_callee): New.
5175 (CALLEE_FROM_CGRAPH_P): New.
5176 (struct callinfo_dalloc): New.
5177 (struct stack_usage): Add callees and dallocs.
5178 (record_final_call, record_dynamic_alloc): Declare.
5179 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5180 object if -fcallgraph-info=da.
5181 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5182 * print-tree.h (print_decl_identifier): Declare.
5183 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5184 * print-tree.c: Include print-tree.h.
5185 (print_decl_identifier): New function.
5186 * toplev.c: Include print-tree.h.
5187 (callgraph_info_file): New global variable.
5188 (callgraph_info_external_printed): Likewise.
5189 (output_stack_usage): Rename to...
5190 (output_stack_usage_1): ... this. Make it static, add cf
5191 parameter. If -fcallgraph-info=su, print stack usage to cf.
5192 If -fstack-usage, use print_decl_identifier for
5193 pretty-printing.
5194 (INDIRECT_CALL_NAME): New.
5195 (dump_final_node_vcg_start): New.
5196 (dump_final_callee_vcg, dump_final_node_vcg): New.
5197 (output_stack_usage): New.
5198 (lang_dependent_init): Open and start file if
5199 -fcallgraph-info. Allocated callgraph_info_external_printed.
5200 (finalize): If callgraph_info_file is not null, finish it,
5201 close it, and release callgraph_info_external_printed.
5202
5203 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5204 Frederik Harwath <frederik@codesourcery.com>
5205 Thomas Schwinge <thomas@codesourcery.com>
5206
5207 * omp-low.c (struct omp_context): New fields
5208 local_reduction_clauses, outer_reduction_clauses.
5209 (new_omp_context): Initialize these.
5210 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5211 (scan_omp_for): Check reduction clauses for incorrect nesting.
5212
5213 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5214
5215 PR inline-asm/92352
5216 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5217 operands with non-memory constraints.
5218
5219 2019-11-05 Martin Sebor <msebor@redhat.com>
5220
5221 PR tree-optimization/92373
5222 * tree.c (component_ref_size): Only consider initializers of objects
5223 of matching struct types.
5224 Return null for instances of interior zero-length arrays.
5225
5226 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5227
5228 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5229
5230 2019-11-05 Jason Merrill <jason@redhat.com>
5231
5232 PR tree-optimization/91825
5233 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5234
5235 2019-11-05 Jim Wilson <jimw@sifive.com>
5236
5237 PR middle-end/92263
5238 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5239 optimize_insn_for_speed_p is true.
5240
5241 2019-11-05 Martin Sebor <msebor@redhat.com>
5242
5243 PR middle-end/92333
5244 PR middle-end/82608
5245 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5246 size.
5247 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5248 name and location for a temporary variable.
5249
5250 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5251
5252 * tree-vrp.c (value_range::value_range): Fix whitespace.
5253 (defined_ranges_p): Same.
5254 (range_fold_binary_symbolics_p): Same.
5255 (value_range::intersect_helper): Same.
5256 (value_range::union_helper): Same.
5257 * tree-vrp.h (range_fold_binary_expr): Same.
5258
5259 2019-11-04 Martin Sebor <msebor@redhat.com>
5260
5261 PR middle-end/92341
5262 PR middle-end/82612
5263 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5264 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5265 of message printed in a warning for empty arrays.
5266 (vrp_prop::check_mem_ref): Also handle function parameters and
5267 empty arrays.
5268
5269 2019-11-05 Richard Biener <rguenther@suse.de>
5270
5271 PR tree-optimization/92371
5272 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5273 on the original stmt of live stmts in the chain.
5274 (vectorizable_live_operation): Look at the original stmt when
5275 checking STMT_VINFO_REDUC_DEF.
5276
5277 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5278
5279 * gimple-fold.c, gimple-loop-versioning.cc,
5280 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5281 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5282 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5283 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5284 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5285 value_range_equiv, and value_range_base to value_range.
5286
5287 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5288
5289 * expr.c (build_personality_function): Fix generated type to
5290 match actual personality functions.
5291
5292 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5293
5294 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5295 enough bytes for the NULL character.
5296
5297 2019-11-05 Richard Biener <rguenther@suse.de>
5298
5299 PR tree-optimization/92280
5300 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5301 had a single use do not create a new CTOR.
5302 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5303 BIT_FIELD_REF of a CTOR via GENERIC.
5304
5305 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5306
5307 * config/s390/s390.c (s390_vector_alignment): Check if the value
5308 fits into uhwi before using it.
5309
5310 2019-11-05 Martin Liska <mliska@suse.cz>
5311
5312 * symbol-summary.h: Use ggc_delete.
5313
5314 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5315
5316 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5317 Change vec_perm field to 10.
5318
5319 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5320
5321 * doc/install.texi: Further fix syntax for html generation.
5322
5323 2019-11-05 Martin Liska <mliska@suse.cz>
5324
5325 * symbol-summary.h: Rename allocator to m_allocator and
5326 add comment.
5327
5328 2019-11-05 Richard Biener <rguenther@suse.de>
5329
5330 PR tree-optimization/92324
5331 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5332 all signed or unsigned operations.
5333
5334 2019-11-05 Jan Hubicka <jh@suse.cz>
5335
5336 * hsa-brig.c: Include alloc-pool.h
5337 * hsa-dump.c: Likewise.
5338 * hsa-gen.c: Likewise.
5339 * hse-regalloc.c: Likewise.
5340 * ipa-hsa.c: Likewise.
5341 * ipa-predicate.c: Likewise.
5342 * ipa-reference.c: Likewise.
5343 * ipa-sra.c: Likewise.
5344 * omp-expand.c: Likewise.
5345 * omp-general.c: Likewise.
5346 * omp-low.c: Likewise.
5347 * sumbol-summary.h (function_summary_base): Add allocator.
5348 (function_summary<T *>::function_summary): Update construction.
5349 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5350 (call_summary_base): Add allcator.
5351 (call_summary<T *>::call_summary): Update construction.
5352 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5353
5354 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5355
5356 PR tree-optimization/91945
5357 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5358 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5359 Formatting fix.
5360
5361 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5362
5363 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5364 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5365 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5366 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5367 (vrp_set_zero_nonzero_bits): Move to...
5368 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5369 (vr_values::simplify_bit_ops_using_ranges): Rename
5370 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5371
5372 2019-11-05 Martin Liska <mliska@suse.cz>
5373
5374 PR c++/92339
5375 * fold-const.c (operand_compare::hash_operand): Remove
5376 FIELD_DECL handling.
5377
5378 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5379
5380 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5381 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5382 static.
5383
5384 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5385
5386 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5387 properly handle symbolics.
5388 (range_compatible_p): Remove.
5389
5390 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5391
5392 * common.opt (-fabi-version): Document =14.
5393 * doc/invoke.texi (C++ Dialect Options): Likewise.
5394
5395 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5396
5397 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5398
5399 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5400
5401 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5402 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5403 gcn_omp_device_kind_arch_isa.
5404 * config/gcn/t-omp-device: New file.
5405 * configure.ac: Support gcn for omp_device_property.
5406 * configure: Regenerate.
5407
5408 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5409
5410 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5411 (vrp_val_max): Same.
5412 (vrp_val_is_min): Same.
5413 (vrp_val_is_max): Same.
5414 (value_range_base::nonzero_p): Remove last argument to
5415 vrp_val_is_max.
5416 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5417 (vrp_val_max): Same.
5418 (vrp_val_is_min): Same.
5419 (vrp_val_is_max): Same.
5420 (value_range_base::set_varying): Remove last argument to vrp_val*.
5421 (value_range_base::dump): Same.
5422 (value_range_base::set): Same.
5423 (value_range_base::normalize_symbolics): Same.
5424 (value_range_base::num_pairs): Same.
5425 (value_range_base::lower_bound): Same.
5426 (value_range_base::upper_bound): Same.
5427 (ranges_from_anti_range): Remove handle_pointers argument.
5428 (value_range_base::singleton_p): Remove last argument to
5429 ranges_from_anti_range.
5430
5431 2019-11-04 Jan Hubicka <jh@suse.cz>
5432
5433 * ipa-reference.c (init_function_info): Initialize
5434 info->global.statics_read.
5435
5436 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5437
5438 * tree-vrp.c (value_range_base::invert): Use constructors to build
5439 range.
5440
5441 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5442
5443 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5444 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5445
5446 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5447
5448 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5449 VR_UNDEFINED.
5450
5451 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5452
5453 * tree-vrp.c (dump_assert_info): New.
5454 (dump_asserts_info): New.
5455
5456 2019-11-04 Jan Hubicka <jh@suse.cz>
5457
5458 * ipa-inline-transform.c: Include ipa-utils.h
5459 (inline_call): Set thunk_expansion flag.
5460 * ipa-utils.h (thunk_expansion): Declare.
5461 * ipa-devirt.c (thunk_expansion): New global var.
5462 (devirt_node_removal_hook): Do not invalidate cache while
5463 doing thunk expansion.
5464
5465 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5466
5467 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5468
5469 2019-11-04 Martin Sebor <msebor@redhat.com>
5470
5471 PR tree-optimization/92349
5472 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5473 memebers have constant sizes.
5474
5475 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5476
5477 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5478 parameter.
5479 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5480 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5481 vect_analyze_loop.
5482
5483 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5484
5485 * expr.c (store_constructor): Modify to handle single element vectors.
5486 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5487 constructors.
5488 (vect_slp_check_for_constructors): New function.
5489 (vect_slp_analyze_bb_1): Call new function to check for vector
5490 constructors.
5491 (vectorize_slp_instance_root_stmt): New function.
5492 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5493 constructors.
5494 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5495
5496 2019-11-04 Richard Biener <rguenther@suse.de>
5497
5498 PR tree-optimization/92345
5499 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5500 we produced a reduction chain.
5501 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5502 LOOP_VINFO_REDUCTIONS.
5503
5504 2019-11-04 Jan Hubicka <jh@suse.cz>
5505
5506 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5507 duplicate summaries.
5508 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5509 first.
5510 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5511 access call summaries.
5512 (dump_ipa_call_summary): Be ready for missing edge summaries.
5513 (analyze_function_body): Use get instead of get_create to access
5514 edge summary.
5515 (estimate_calls_size_and_time): Do not access summaries of
5516 inlined edges; sanity check they are missing.
5517 (ipa_call_context::estimate_size_and_time): Use get instead
5518 of get_create to access node summary.
5519 (inline_update_callee_summaries): Do not update depth of
5520 inlined edge.
5521 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5522 growth caches.
5523 (ipa_merge_fn_summary_after_inlining): Use get instead
5524 of get_create.
5525 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5526 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5527 fast summary.
5528 (initialize_growth_caches): Update.
5529 (do_estimate_edge_time): Remove redundant copy of context.
5530 (ipa_remove_from_growth_caches): New function.
5531 * ipa-inline.c (flatten_function): Update overall summary
5532 only when optimizing.
5533 (inline_to_all_callers): Update overall summary of function
5534 inlined to.
5535 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5536 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5537 to false.
5538
5539 2019-11-04 Richard Biener <rguenther@suse.de>
5540
5541 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5542 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5543
5544 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5545
5546 * ggc-common.c: Include system.h before malloc.h.
5547
5548 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5549
5550 * configure.ac: Pass --enable-obsolete=* and
5551 --enable-option-checking=* down to build configure, and fail
5552 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5553 * configure: Rebuild.
5554 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5555 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5556
5557 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5558
5559 * config.in: Regenerate.
5560 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5561 -mtiny-printf is used without GCC being configured with
5562 --enable-newlib-nano-formatted-io.
5563 * config/msp430/msp430.h (LINK_SPEC): Pass
5564 "--wrap puts --wrap printf" when -mtiny-printf is used.
5565 * config/msp430/msp430.opt: Document -mtiny-printf.
5566 * configure: Regenerate.
5567 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5568 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5569 --enable-newlib-nano-formatted-io is passed.
5570 * doc/invoke.texi: Document -mtiny-printf.
5571
5572 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5573
5574 * configure: Regenerate.
5575
5576 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5577
5578 * config/msp430/driver-msp430.c
5579 (msp430_get_linker_devices_include_path): New spec function.
5580 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5581 (extract_devices_dir_from_exec_prefix): New function.
5582 (extract_devices_dir_from_collect_gcc): New function.
5583 (msp430_check_env_var_for_devices): New function.
5584 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5585 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5586 devices.csv was not found using other methods.
5587 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5588 New prototype.
5589 (msp430_dirname): Likewise.
5590 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5591 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5592 msp430_get_linker_devices_include_path.
5593 (TARGET_EXTRA_PRE_INCLUDES): Define.
5594 * doc/invoke.texi: Document new ways of searching for support files.
5595
5596 2019-11-04 Richard Biener <rguenther@suse.de>
5597
5598 PR tree-optimization/92301
5599 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5600 as required by epilogue generation
5601
5602 2019-11-04 Martin Liska <mliska@suse.cz>
5603
5604 PR ipa/92304
5605 * fold-const.c (operand_compare::hash_operand): Fix field
5606 hashing of CONSTRUCTOR.
5607
5608 2019-11-04 Martin Liska <mliska@suse.cz>
5609
5610 * ggc.h (ggc_delete): New function.
5611 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5612 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5613 (ipa_free_all_node_params): Likewise.
5614 * ipa-sra.c (ipa_sra_analysis): Likewise.
5615
5616 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5617
5618 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5619 set_switch_stmt_execution_predicate, compute_bb_predicates,
5620 will_be_nonconstant_expr_predicate,
5621 phi_result_unknown_predicate,
5622 analyze_function_body): Pass arround params summary.
5623 (ipa_call_context::duplicate_from): New comment;
5624 only duplicate useful values.
5625 (ipa_call_context::equal_to): Only compare useful values.
5626 (remap_edge_summaries): Pass params_summary.
5627 (remap_hint_predicate): Likewise.
5628 (ipa_merge_fn_summary_after_inlining): Likewise.
5629 (inline_read_section): Initialize params summary used flags.
5630 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5631 around param_summary.
5632 (add_condition): Initialized used params summary flags.
5633 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5634 (inline_param_summary::useless_p): New predicate.
5635 (remap_after_inlining, add_condition): Update prototype
5636 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5637 move_cost.
5638 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5639 summaries.
5640 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5641 (ipa_analyze_virtual_call_uses): Likewise.
5642 (update_indirect_edges_after_inlining): Update param summaries.
5643 (ipa_print_node_params): Print used flags.
5644 (ipa_read_indirect_edge_info): Update param summareis.
5645 * ipa-prop.h (ipa_param_descriptor): Add
5646 used_by_ipa_predicates, used_by_indirect_call
5647 and used_by_polymorphic_call.
5648 (ipa_set_param_used_by_ipa_predicates,
5649 ipa_set_param_used_by_indirect_call,
5650 ipa_set_param_used_by_polymorphic_call,
5651 ipa_is_param_used_by_ipa_predicates,
5652 ipa_is_param_used_by_indirect_call,
5653 ipa_is_param_used_by_polymorphic_call): New inline functions.
5654
5655 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5656
5657 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5658 member function.
5659 (ipa_call_context::release): Add ALL parameter.
5660 (ipa_call_context::equal_to): New member function.
5661 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5662 duplicate_form, release, equal_to and exists_p member functoins.
5663 * ipa-inline-analysis.c (node_context_cache_entry): New
5664 class.
5665 (node_context_summary): Likewise.
5666 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5667 node_context_clear): New static vars.
5668 (initialize_growth_caches): New function.
5669 (free_growth_caches): Also delete node_context_cache; output stats.
5670 (do_estimate_edge_time): Cache contexts.
5671 (reset_node_cache): New function.
5672 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5673 (inline_small_functions): Initialize growth caches.
5674 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5675 Declare.
5676 * ipa-predicate.h (inline_param_summary::equal_to): New.
5677 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5678 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5679 (ipa_agg_jump_function): Implement equal_to member function.
5680
5681 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5682
5683 * ipa-fnsummary.c (inline_read_section): Set vector size
5684 ahead of time.
5685
5686 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5687
5688 * ipa-fnsummary.c (ipa_call_context): New constructor.
5689 (estimate_node_size_and_time): Turn to ...
5690 (ipa_call_context::estimate_size_and_time): ... this one.
5691 (ipa_call_context::release): New.
5692 * ipa-fnsummary.h (ipa_call_context): New class.
5693 (estimate_node_size_and_time): Remove.
5694 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5695 do_estimate_edge_hints): Update.
5696
5697 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5698
5699 * config.in: Regenerate.
5700 * configure: Regenerate.
5701 * configure.ac: Check for mallinfo.
5702 * ggc-common.c: Include malloc.h if available;
5703 include options.h
5704 (report_heap_memory_use): New functoin.
5705 * ggc-page.c (ggc_grow): Do not print "start".
5706 * ggc.h (report_heap_memory_use): Declare.
5707 * pases.c (execute_one_pass): Report memory after IPA passes.
5708 (ipa_read_summaries_1): Likewise.
5709 (ipa_read_optimization_summaries_1): Likewise.
5710
5711 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5712
5713 * gimplify.h (omp_construct_selector_matches): Change return
5714 type to int, add a new SCORES argument.
5715 * gimplify.c (omp_construct_selector_matches): Likewise. If
5716 SCORES is non-NULL, compute scores of each construct.
5717 * omp-general.h (omp_get_context_selector): Declare.
5718 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5719 Adjust omp_construct_selector_matches callers.
5720 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5721 (omp_context_compute_score): New function.
5722 (omp_resolve_declare_variant): Compute scores and decide based on
5723 that.
5724
5725 PR bootstrap/92314
5726 * configure.ac: Don't look for omp-device-properties files from
5727 installed offloading compilers. Instead add tmake_file snippets
5728 for configured offloading targets and use files they generate.
5729 * Makefile.in (install): Don't depend on
5730 install-omp-device-properties.
5731 (install-omp-device-properties): Remove goal.
5732 * config/i386/t-omp-device: New file.
5733 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5734 * config/nvptx/t-omp-device: New file.
5735 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5736 * configure: Regenerated.
5737
5738 * omp-general.h (omp_context_selector_set_compare): Declare.
5739 * omp-general.c (omp_construct_simd_compare,
5740 omp_context_selector_props_compare, omp_context_selector_set_compare,
5741 omp_context_selector_compare): New functions.
5742 (omp_resolve_declare_variant): Prune variants that are strict subset
5743 of another variant.
5744
5745 2019-11-01 Martin Sebor <msebor@redhat.com>
5746
5747 PR middle-end/91679
5748 PR middle-end/91647
5749 PR middle-end/91463
5750 PR middle-end/92312
5751 * doc/invoke.texi (-Wzero-length-bounds): Document.
5752 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5753 instead of a hand-rolled loop to avoid PR 92323.
5754 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5755 with initializers.
5756 (vrp_prop::check_mem_ref): Handle declared struct objects.
5757 * tree.c (last_field): New function.
5758 (array_at_struct_end_p): Handle MEM_REF.
5759 (get_initializer_for): New helper.
5760 (component_ref_size): Add argument. Rename locals. Call
5761 get_initializer_for instead of fold_ctor_reference. Correct handling
5762 of flexible array members.
5763 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5764
5765 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5766
5767 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5768 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5769 UNSPEC_VSX_CVSPUXDS): Remove.
5770 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5771 (vsx_xvcvspdp_be): ... this. New. And...
5772 (vsx_xvcvspdp_le): ... this. New.
5773 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5774 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5775 (vsx_xvcv<su>xwdp_le): ... this. New.
5776 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5777 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5778 (vsx_xvcvsp<su>xds_le): ... this. New.
5779
5780 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5781
5782 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5783 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5784 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5785 UNSPEC_VSX_XVCVSPSXWS): Remove.
5786 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5787 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5788
5789 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5790
5791 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5792 (UNSPEC_VSX_XVCDPSP): Remove.
5793 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5794 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5795
5796 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5797
5798 * hooks.c (hook_tree_tree_bool_null): New.
5799 * hooks.h (hook_tree_tree_bool_null): Declare.
5800 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5801 (LANG_HOOKS_DECLS): Add it.
5802 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5803 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5804 (lower_omp_target): Handle Fortran array with descriptor in
5805 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5806
5807 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5808
5809 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5810 Assert that the type we store in abi_vector_types is its own
5811 main variant.
5812 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5813
5814 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5815
5816 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5817 from a CONST_INT address when TARGET_THUMB2.
5818
5819 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5820
5821 * config/arm/arm.md (add_not_cin): New insn.
5822 (add_not_shift_cin): Likewise.
5823
5824 2019-10-31 Martin Liska <mliska@suse.cz>
5825
5826 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5827 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5828 and compare_memory_operand.
5829
5830 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5831
5832 * configure.ac: Compute and substitute omp_device_properties and
5833 omp_device_property_deps.
5834 * Makefile.in (generated_files): Add omp-device-properties.h.
5835 (omp-general.o): Depend on omp-device-properties.h.
5836 (omp_device_properties): New make variable.
5837 (omp-device-properties.h, s-omp-device-properties-h,
5838 install-omp-device-properties): New goals.
5839 (install): Depend on install-omp-device-properties for accelerators.
5840 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5841 * target.h (enum omp_device_kind_arch_isa): New enum.
5842 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5843 documentation.
5844 * omp-general.c: Include omp-device-properties.h.
5845 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5846 colon instead of comma.
5847 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5848 functions.
5849 (omp_context_selector_matches): Implement device set arch/isa
5850 selectors, improve device set kind selector handling.
5851 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5852 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5853 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5854 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5855 ix86_omp_device_kind_arch_isa.
5856 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5857 definition from ix86_target_string to file scope.
5858 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5859 to file scope.
5860 (ix86_omp_device_kind_arch_isa): New function.
5861 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5862 isa_opts definitions to file scope.
5863 * config/i386/t-intelmic (omp-device-properties): New goal.
5864 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5865 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5866 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5867 nvptx_omp_device_kind_arch_isa.
5868 * configure: Regenerate.
5869 * doc/tm.texi: Regenerate.
5870
5871 PR middle-end/92231
5872 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5873 DECL_BUILT_IN in comment. Remove redundant ()s around return
5874 argument.
5875 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5876 before calling fndecl_built_in_p.
5877 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5878 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5879 fndecl_built_in_p on it.
5880
5881 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5882
5883 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5884
5885 2019-10-31 Martin Liska <mliska@suse.cz>
5886
5887 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5888 of cgraph_local_info and use local_info_node instead.
5889 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5890 (bfin_function_ok_for_sibcall): Likewise.
5891 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5892 (must_reload_pic_reg_p): Likewise.
5893
5894 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5895
5896 PR c++/90947
5897 * tree.h (type_initializer_zero_p): Remove.
5898 * tree.c (type_initializer_zero_p): Remove.
5899
5900 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5901
5902 * doc/invoke.texi (-Wshadow, -Wshadow=global
5903 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5904
5905 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5906
5907 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5908 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5909 and 'target exit data'.
5910
5911 2019-10-30 Martin Jambor <mjambor@suse.cz>
5912
5913 ipa/92278
5914 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5915 availability comparison.
5916
5917 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5918
5919 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5920 calls to __mspabi_mpy* functions.
5921 * config/msp430/msp430.md (mulhisi3): New define_expand.
5922 (umulhisi3): New define_expand.
5923 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5924 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5925
5926 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5927
5928 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5929 (msp430_check_plus_not_high_mem): New.
5930 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5931 might be in low memory.
5932 Indicate that a 16-bit absolute address is in lower memory.
5933
5934 2019-10-30 Martin Jambor <mjambor@suse.cz>
5935
5936 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5937 ultimate_alias_target.
5938
5939 2019-10-30 Richard Biener <rguenther@suse.de>
5940
5941 PR tree-optimization/92275
5942 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5943 Copy all loop-closed PHIs.
5944
5945 2019-10-30 Martin Liska <mliska@suse.cz>
5946
5947 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5948 const_tree as function argument.
5949 (func_checker::compare_decl): Likewise.
5950 (func_checker::operand_equal_p): Likewise.
5951 (func_checker::compare_variable_decl): Likewise.
5952 (func_checker::parse_labels): Likewise.
5953 * ipa-icf-gimple.h: Likewise.
5954
5955 2019-10-30 Martin Liska <mliska@suse.cz>
5956
5957 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5958 Do not compare alias sets. It's handled by operand_equal_p.
5959
5960 2019-10-30 Martin Liska <mliska@suse.cz>
5961
5962 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5963 initialize m_compare_polymorphic.
5964 (func_checker::compare_decl): Do not compare polymorphic types.
5965 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5966 * ipa-icf.c (sem_function::equals_private): Do not call
5967 compare_polymorphic_p.
5968
5969 2019-10-30 Martin Liska <mliska@suse.cz>
5970
5971 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5972 compare_operand.
5973 (func_checker::compare_memory_operand): Remove.
5974 (func_checker::compare_cst_or_decl): Remove.
5975 (func_checker::operand_equal_valueize): Do not handle
5976 FIELD_DECL.
5977 (func_checker::compare_gimple_call): Call compare_operand.
5978 (func_checker::compare_gimple_assign): Likewise.
5979 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5980 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5981 * ipa-icf.h (icf_handled_component_p): Remove.
5982
5983 2019-10-30 Martin Liska <mliska@suse.cz>
5984
5985 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5986 (func_checker::compare_cst_or_decl): Remove handling
5987 of FIELD_DECL.
5988 (func_checker::compare_operand): Transform to ...
5989 (func_checker::operand_equal_p): ... this.
5990 * ipa-icf-gimple.h (class func_checker): Add
5991 operand_equal_p and hash_operand.
5992 * ipa-icf.c (sem_function::equals_private): Fix
5993 pushing and popping of cfun.
5994
5995 2019-10-30 Martin Liska <mliska@suse.cz>
5996
5997 * fold-const.c (operand_equal_p): Move to ...
5998 (operand_compare::operand_equal_p): ... here.
5999 (operand_compare::verify_hash_value): New.
6000 (add_expr): Move to ...
6001 (operand_compare::hash_operand): ... here.
6002 * fold-const.h (operand_equal_p): Move to the class.
6003 (class operand_compare): New.
6004 * tree.c (add_expr): Remove.
6005
6006 2019-10-30 Martin Liska <mliska@suse.cz>
6007
6008 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6009 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6010
6011 2019-10-30 Martin Liska <mliska@suse.cz>
6012
6013 PR lto/91393
6014 PR lto/88220
6015 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6016 from a first_clone in order to get proper LTO section
6017 in LTO stream.
6018 (cgraph_node::get_untransformed_body):
6019 Use lto_get_section_data where symtab_node::order
6020 must be provided.
6021 * cgraphclones.c (cgraph_node::find_replacement):
6022 Update also symbol order.
6023 * ipa-fnsummary.c (ipa_fn_summary_read):
6024 Use new function lto_get_summary_section_data.
6025 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6026 * ipa-icf.c (sem_item_optimizer::read_summary):
6027 Likewise.
6028 * ipa-prop.c (ipa_prop_read_jump_functions):
6029 Likewise.
6030 (ipcp_read_transformation_summaries): Likewise.
6031 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6032 * lto-cgraph.c (input_node): Add also order_base.
6033 (input_varpool_node): Likewise.
6034 (input_cgraph_1): Assign the order_base.
6035 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6036 * lto-opts.c (lto_write_options): Pass new argument.
6037 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6038 (lto_get_summary_section_data): New.
6039 (lto_get_raw_section_data): Add order argument.
6040 (lto_create_simple_input_block): Likewise.
6041 * lto-section-out.c (lto_destroy_simple_output_block):
6042 Likewise.
6043 * lto-streamer-in.c (lto_input_toplevel_asms):
6044 Use lto_get_summary_section_data.
6045 (lto_input_mode_table): Likewise.
6046 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6047 (lto_output_toplevel_asms): Pass new argument.
6048 (copy_function_or_variable): Likewise.
6049 (produce_lto_section):Likewise.
6050 (produce_symtab): Likewise.
6051 (lto_write_mode_table): Likewise.
6052 (produce_asm_for_decls): Likewise.
6053 * lto-streamer.c (lto_get_section_name): Concat symbol name
6054 and symbol order.
6055 * lto-streamer.h (lto_get_section_data): Add order argument.
6056 (lto_get_summary_section_data): New.
6057 (lto_get_raw_section_data): Add order argument.
6058 (lto_get_section_name): Likewise.
6059 * varpool.c (varpool_node::get_constructor): Pass order argument.
6060
6061 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6062
6063 PR tree-optimization/92262
6064 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6065 ubase or cbase here.
6066 (remove_unused_ivs): Unshare comp before using it.
6067
6068 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6069
6070 * ipa-prop.c (update_jump_functions_after_inlining):
6071 Watch for missing summaries.
6072
6073 2019-10-30 Richard Biener <rguenther@suse.de>
6074
6075 PR tree-optimization/65930
6076 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6077 chains also allow a leading and trailing conversion.
6078 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6079 intermediate reduction chains.
6080 (vect_analyze_slp_instance): Likewise. Build a SLP
6081 node for a trailing conversion manually.
6082
6083 2019-10-30 Martin Liska <mliska@suse.cz>
6084
6085 * cgraph.c (cgraph_node::local_info): Transform to ...
6086 (cgraph_node::local_info_node): ... this.
6087 (cgraph_node::dump): Remove cgraph_local_info and
6088 put its fields directly into cgraph_node.
6089 (cgraph_node::get_availability): Likewise.
6090 (cgraph_node::make_local): Likewise.
6091 (cgraph_node::verify_node): Likewise.
6092 * cgraph.h (struct GTY): Likewise.
6093 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6094 (duplicate_thunk_for_node): Likewise.
6095 (cgraph_node::create_clone): Likewise.
6096 (cgraph_node::create_virtual_clone): Likewise.
6097 (cgraph_node::create_version_clone): Likewise.
6098 * cgraphunit.c (cgraph_node::reset): Likewise.
6099 (cgraph_node::finalize_function): Likewise.
6100 (cgraph_node::add_new_function): Likewise.
6101 (analyze_functions): Likewise.
6102 * combine.c (setup_incoming_promotions): Likewise.
6103 * config/i386/i386.c (ix86_function_regparm): Likewise.
6104 (ix86_function_sseregparm): Likewise.
6105 (init_cumulative_args): Likewise.
6106 * ipa-cp.c (determine_versionability): Likewise.
6107 (count_callers): Likewise.
6108 (set_single_call_flag): Likewise.
6109 (initialize_node_lattices): Likewise.
6110 (estimate_local_effects): Likewise.
6111 (create_specialized_node): Likewise.
6112 (identify_dead_nodes): Likewise.
6113 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6114 (ipa_fn_summary_generate): Likewise.
6115 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6116 (process_hsa_functions): Likewise.
6117 * ipa-icf.c (set_local): Likewise.
6118 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6119 * ipa-inline.c (speculation_useful_p): Likewise.
6120 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6121 (ipa_profile): Likewise.
6122 * ipa-split.c (split_function): Likewise.
6123 (execute_split_functions): Likewise.
6124 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6125 (ipa_sra_ipa_function_checks): Likewise.
6126 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6127 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6128 * lto-cgraph.c (lto_output_node): Likewise.
6129 (input_overwrite_node): Likewise.
6130 * multiple_target.c (expand_target_clones): Likewise.
6131 * omp-simd-clone.c (simd_clone_create): Likewise.
6132 * trans-mem.c (expand_call_tm): Likewise.
6133 (ipa_tm_mayenterirr_function): Likewise.
6134 (ipa_tm_diagnose_tm_safe): Likewise.
6135 (ipa_tm_diagnose_transaction): Likewise.
6136 (ipa_tm_create_version): Likewise.
6137 (ipa_tm_transform_calls_redirect): Likewise.
6138 (ipa_tm_execute): Likewise.
6139 * tree-inline.c (expand_call_inline): Likewise.
6140
6141 2019-10-29 Martin Liska <mliska@suse.cz>
6142
6143 * symbol-summary.h (function_summary): Pass memory location
6144 to underlaying hash_map (or vec).
6145 (V>::fast_function_summary): Likewise.
6146
6147 2019-10-29 Martin Liska <mliska@suse.cz>
6148
6149 * ggc.h (ggc_alloc_no_dtor): New function.
6150 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6151 destructor and ggc_free.
6152 (ipa_free_size_summary): Call delete instead
6153 of release.
6154 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6155 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6156 (ipa_free_all_edge_args): Call destructor and ggc_free.
6157 (ipa_free_all_node_params): Likewise.
6158 (ipcp_free_transformation_sum): Likewise.
6159 * ipa-prop.h (ipa_check_create_node_params):
6160 Call new ggc_alloc_no_dtor.
6161 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6162 (ipa_sra_analysis): Call destructor and ggc_free.
6163 Replace release with delete operator.
6164 * symbol-summary.h (release): Remove ..
6165 (V>::~fast_function_summary): and move logic here.
6166 Likewise for other classes.
6167
6168 2019-10-29 Richard Biener <rguenther@suse.de>
6169
6170 PR tree-optimization/92260
6171 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6172 lane-reducing ops.
6173
6174 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6175
6176 PR tree-optimization/88915
6177 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6178 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6179 and make the valueize function pointer also take a void pointer.
6180 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6181 around vn_valueize, to call it without a context.
6182 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6183 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6184 (~_loop_vec_info): Release epilogue_vinfos.
6185 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6186 number of iterations of epilogue.
6187 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6188 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6189 versioning threshold needed for main loop.
6190 (vect_analyze_loop): Likewise.
6191 (find_in_mapping): New helper function.
6192 (update_epilogue_loop_vinfo): New function.
6193 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6194 on main loop and call update_epilogue_loop_vinfo to update it.
6195 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6196 stmts on loop preheader edge.
6197 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6198 we decided to vectorize epilogues. Update epilogues NITERS and
6199 construct ADVANCE to update epilogues data references where needed.
6200 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6201 (vect_do_peeling, vect_update_inits_of_drs,
6202 determine_peel_for_niter, vect_analyze_loop): Add or update
6203 declarations.
6204 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6205 created loop_vec_info's for epilogues when available. Otherwise analyse
6206 epilogue separately.
6207
6208 2019-10-29 Richard Biener <rguenther@suse.de>
6209
6210 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6211 example.
6212
6213 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6214
6215 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6216 index for the COND_EXPR from stmt_info rather than reduc_info.
6217
6218 2019-10-29 Richard Biener <rguenther@suse.de>
6219
6220 PR tree-optimization/65930
6221 * tree-vect-loop.c (check_reduction_path): Relax single-use
6222 check allowing out-of-loop uses.
6223 (vect_is_simple_reduction): SLP reduction chains cannot have
6224 intermediate stmts used outside of the loop.
6225 (vect_create_epilog_for_reduction): The adjustment might need
6226 to be converted.
6227 (vectorizable_reduction): Annotate live stmts of the reduction
6228 chain with STMT_VINFO_REDUC_DEF.
6229 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6230
6231 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6232
6233 * calls.c (pass_by_reference): Leave the target to decide whether
6234 POLY_INT_CST-sized arguments should be passed by value or reference,
6235 rather than forcing them to be passed by reference.
6236 (must_pass_in_stack_var_size): Likewise.
6237 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6238 V31_REGNUM to P15_REGNUM.
6239 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6240 Take an extra "silent_p" parameter, defaulting to false.
6241 (aarch64_sve::svbool_type_p): Declare.
6242 (aarch64_sve::nvectors_if_data_type): Likewise.
6243 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6244 (aarch64_frame::reg_offset): Turn into poly_int64s.
6245 (aarch64_frame::save_regs_size): Likewise.
6246 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6247 (aarch64_frame::sve_callee_adjust): Likewise.
6248 (aarch64_frame::spare_reg_reg): Likewise.
6249 (ARM_PCS_SVE): New arm_pcs value.
6250 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6251 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6252 (CUMULATIVE_ARGS::silent_p): Likewise.
6253 (BITS_PER_SVE_PRED): New macro.
6254 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6255 function. Reject aarch64_vector_pcs attributes on SVE functions.
6256 (aarch64_attribute_table): Use the above handler.
6257 (aarch64_sve_abi): New function.
6258 (aarch64_sve_argument_p): Likewise.
6259 (aarch64_returns_value_in_sve_regs_p): Likewise.
6260 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6261 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6262 descriptor for them.
6263 (aarch64_simd_decl_p): Delete.
6264 (aarch64_emit_cfi_for_reg_p): New function.
6265 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6266 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6267 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6268 as partly clobbered for the SVE PCS.
6269 (aarch64_function_ok_for_sibcall): Check whether the two functions
6270 use the same ABI, rather than checking specifically for whether
6271 they're aarch64_vector_pcs functions.
6272 (aarch64_pass_by_reference): Raise an error for attempts to pass
6273 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6274 if there are not enough free registers left, or if the argument is
6275 variadic.
6276 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6277 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6278 tuples in memory.
6279 (aarch64_layout_arg): Take a function_arg_info rather than
6280 individual properties. Handle SVE predicates, vectors and tuples.
6281 Raise an error if they are passed to unprototyped functions.
6282 (aarch64_function_arg): If the silent_p flag is set, suppress the
6283 usual error about using float registers without TARGET_FLOAT.
6284 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6285 it in the cumulative_args structure. Initialize aapcs_nprn and
6286 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6287 error about using float registers without TARGET_FLOAT.
6288 If the silent_p flag is not set, also raise an error about
6289 using SVE functions when SVE is disabled.
6290 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6291 and call it for SVE functions too. Update aapcs_nprn similarly
6292 to the other register counts.
6293 (aarch64_layout_frame): If a big-endian function needs to save
6294 and restore Z8-Z15, search for a spare predicate that it can use.
6295 Store SVE predicates at the bottom of the register save area,
6296 followed by SVE vectors, then followed by the normal slots.
6297 Keep pointing the hard frame pointer at the base of the normal slots,
6298 above the SVE vectors. Update the various frame creation and
6299 tear-down strategies for the new layout, initializing the new
6300 sve_callee_adjust field. Add an additional layout for frames
6301 whose saved registers are all SVE registers.
6302 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6303 (aarch64_return_address_signing_enabled): Likewise.
6304 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6305 aarch64_reg_save_mode.
6306 (aarch64_adjust_sve_callee_save_base): New function.
6307 (aarch64_add_cfa_expression): Move earlier in file. Take the
6308 saved register as an rtx rather than a register number and use
6309 its mode for the MEM slot.
6310 (aarch64_save_callee_saves): Remove the mode argument and instead
6311 use aarch64_reg_save_mode to get the mode of each save slot.
6312 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6313 offsets. Allow GP offsets to be saved at a VL-based offset from
6314 the stack, handling this case using the frame pointer if available
6315 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6316 big-endian SVE functions; use normal moves for other SVE saves.
6317 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6318 returns true. Add explicit CFA notes when not storing via the
6319 stack pointer. Do not try to pair SVE saves.
6320 (aarch64_restore_callee_saves): Cope with poly_int64 register
6321 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6322 use normal moves for other SVE restores. Only add CFA restore notes
6323 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6324 SVE restores.
6325 (aarch64_get_separate_components): Always keep the first SVE save
6326 in the prologue if we need to use it as a stack probe. Don't allow
6327 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6328 Likewise the spare predicate register that they need. Update the
6329 offset calculation to account for the SVE save area. Use the
6330 appropriate range check for SVE LDR and STR instructions.
6331 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6332 (aarch64_process_components): Likewise. Update the offset
6333 calculation to account for the SVE save area. Only mark the
6334 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6335 Do not try to pair SVE saves.
6336 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6337 reg_offsets. When handling the final allocation, expect the
6338 first SVE register save to be part of the initial allocation
6339 and for it to act as a probe at SP. Account for the SVE callee
6340 save area in the dump information.
6341 (aarch64_expand_prologue): Update the frame diagram. Fold the
6342 SVE callee allocation into the initial allocation if stack clash
6343 protection is enabled. Use new variables to track the offset
6344 of the frame chain (and hard frame pointer) from the current
6345 stack pointer, and likewise the offset of the bottom of the
6346 register save area. Update calls to aarch64_save_callee_saves
6347 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6348 saving the FP&SIMD registers. Save the predicate registers.
6349 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6350 into account when setting the stack pointer from the frame pointer,
6351 and when deciding whether we can inherit the initial adjustment
6352 amount from the prologue. Restore the predicate registers after
6353 the vector registers, then apply sve_callee_adjust, then restore
6354 the general registers.
6355 (aarch64_secondary_reload): Don't use secondary SVE reloads
6356 for VNx16BImode.
6357 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6358 (aarch64_short_vector_p): Return false for SVE types.
6359 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6360 at the start of the function. Return false for SVE types.
6361 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6362 functions too.
6363 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6364 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6365 to big-endian targets for bytewise moves.
6366 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6367
6368 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6369 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6370 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6371
6372 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6373 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6374 aarch64-sve-builtins-base.o to extra_objs. Add
6375 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6376 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6377 (aarch64-sve-builtins-shapes.o): Likewise.
6378 (aarch64-sve-builtins-base.o): New rules.
6379 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6380 (aarch64_resolve_overloaded_builtin): Likewise.
6381 (aarch64_check_builtin_call): Likewise.
6382 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6383 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6384 pragma.
6385 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6386 (aarch64_svprfop): New enum.
6387 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6388 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6389 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6390 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6391 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6392 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6393 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6394 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6395 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6396 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6397 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6398 (aarch64_sve::mangle_builtin_type): Likewise.
6399 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6400 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6401 (aarch64_sve::expand_builtin): Likewise.
6402 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6403 (aarch64_sve_int_mode): Likewise.
6404 (aarch64_ptrue_all_mode): New function.
6405 (aarch64_convert_sve_data_to_pred): Make public.
6406 (svprfop_token): New function.
6407 (aarch64_output_sve_prefetch): Likewise.
6408 (aarch64_fold_sve_cnt_pat): Likewise.
6409 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6410 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6411 instead of gen_while_ult.
6412 (aarch64_replace_reg_mode): Make public.
6413 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6414 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6415 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6416 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6417 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6418 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6419 (aarch64_sve_ptrue_svpattern_p): Likewise.
6420 (aarch64_sve_pred_valid_immediate): Check
6421 aarch64_sve_ptrue_svpattern_p.
6422 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6423 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6424 functions.
6425 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6426 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6427 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6428 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6429 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6430 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6431 New unspecs.
6432 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6433 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6434 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6435 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6436 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6437 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6438 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6439 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6440 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6441 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6442 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6443 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6444 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6445 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6446 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6447 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6448 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6449 (Vesize): Handle partial vector modes.
6450 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6451 mode attributes.
6452 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6453 iterators.
6454 (s, paired_extend, inc_dec): New code attributes.
6455 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6456 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6457 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6458 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6459 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6460 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6461 UNSPEC_COND_FMULX.
6462 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6463 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6464 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6465 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6466 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6467 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6468 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6469 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6470 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6471 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6472 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6473 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6474 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6475 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6476 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6477 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6478 UNSPEC_COND_FSCALE.
6479 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6480 (binqops_op, binqops_op_rev, last_op): New int attributes.
6481 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6482 (fn, ab): New int attributes.
6483 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6484 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6485 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6486 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6487 UNSPEC_RBIT.
6488 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6489 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6490 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6491 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6492 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6493 UNSPEC_COND_FMULX.
6494 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6495 (brk_reg_con, brk_reg_opno): New int attributes.
6496 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6497 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6498 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6499 UNSPEC_COND_FMIN.
6500 (max_elem_bits): New int attribute.
6501 (min_elem_bits): Handle UNSPEC_RBIT.
6502 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6503 TRUNCATE as well as SUBREG.
6504 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6505 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6506 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6507 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6508 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6509 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6510 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6511 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6512 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6513 (aarch64_gather_scale_operand_h): New predicates.
6514 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6515 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6516 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6517 (*aarch64_sve_reinterpret<mode>): Allow any source register
6518 instead of requiring an exact match.
6519 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6520 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6521 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6522 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6523 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6524 (aarch64_update_ffrt): New patterns.
6525 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6526 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6527 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6528 (@aarch64_ld<fn>f1<mode>): New patterns.
6529 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6530 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6531 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6532 (@aarch64_ldnt1<mode>): New patterns.
6533 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6534 the scalar part of the address.
6535 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6536 scalar part of the addresse and add an alternative for handling
6537 nonzero offsets.
6538 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6539 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6540 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6541 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6542 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6543 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6544 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6545 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6546 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6547 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6548 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6549 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6550 (@aarch64_sve_prefetch<mode>): New patterns.
6551 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6552 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6553 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6554 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6555 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6556 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6557 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6558 (@aarch64_stnt1<mode>): New patterns.
6559 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6560 the scalar part of the address.
6561 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6562 the scalar part of the addresse and add an alternative for handling
6563 nonzero offsets.
6564 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6565 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6566 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6567 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6568 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6569 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6570 New patterns.
6571 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6572 (extract_last_<mode>): Generalize to...
6573 (@extract_<LAST:last_op>_<mode>): ...this.
6574 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6575 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6576 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6577 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6578 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6579 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6580 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6581 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6582 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6583 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6584 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6585 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6586 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6587 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6588 (*aarch64_adr_uxtw_unspec): Likewise.
6589 (*aarch64_adr_uxtw): Rename to...
6590 (*aarch64_adr_uxtw_and): ...this.
6591 (@aarch64_adr<mode>_shift): New expander.
6592 (*aarch64_adr_shift_sxtw): New pattern.
6593 (aarch64_<su>abd<mode>_3): Rename to...
6594 (@aarch64_pred_<su>abd<mode>): ...this.
6595 (<su>abd<mode>_3): Update accordingly.
6596 (@aarch64_cond_<su>abd<mode>): New expander.
6597 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6598 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6599 (*<su>mul<mode>3_highpart): Rename to...
6600 (@aarch64_pred_<optab><mode>): ...this.
6601 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6602 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6603 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6604 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6605 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6606 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6607 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6608 (*v<ASHIFT:optab><mode>3): Rename to...
6609 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6610 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6611 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6612 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6613 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6614 (@cond_asrd<mode>): New expander.
6615 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6616 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6617 (*sdiv_pow2<mode>3): Delete.
6618 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6619 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6620 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6621 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6622 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6623 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6624 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6625 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6626 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6627 (*add<SVE_F:mode>3): Rename to...
6628 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6629 for SVE_STRICT_GP.
6630 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6631 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6632 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6633 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6634 (*sub<SVE_F:mode>3): Rename to...
6635 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6636 for SVE_STRICT_GP.
6637 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6638 (*fabd<SVE_F:mode>3): Rename to...
6639 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6640 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6641 (*mul<SVE_F:mode>3): Rename to...
6642 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6643 for SVE_STRICT_GP.
6644 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6645 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6646 to...
6647 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6648 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6649 (*<nlogical><PRED_ALL:mode>3): Rename to...
6650 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6651 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6652 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6653 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6654 (aarch64_pred_<logical_nn><mode>_z): ...this.
6655 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6656 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6657 (*fma<SVE_I:mode>4): Rename to...
6658 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6659 (*fnma<SVE_I:mode>4): Rename to...
6660 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6661 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6662 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6663 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6664 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6665 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6666 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6667 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6668 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6669 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6670 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6671 (@aarch64_sve_tmad<mode>): Likewise.
6672 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6673 (*aarch64_sel_dup<mode>): Rename to...
6674 (@aarch64_sel_dup<mode>): ...this.
6675 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6676 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6677 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6678 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6679 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6680 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6681 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6682 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6683 (*fcm<cmp_op><mode>): Rename to...
6684 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6685 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6686 (*fcmuo<mode>): Rename to...
6687 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6688 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6689 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6690 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6691 (fold_extract_last_<mode>): Generalize to...
6692 (@fold_extract_<last_op>_<mode>): ...this.
6693 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6694 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6695 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6696 DImode result explicit.
6697 (reduc_plus_scal_<mode>): Update accordingly.
6698 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6699 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6700 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6701 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6702 (*aarch64_sve_tbl<mode>): Rename to...
6703 (@aarch64_sve_tbl<mode>): ...this.
6704 (@aarch64_sve_compact<mode>): New pattern.
6705 (*aarch64_sve_dup_lane<mode>): Rename to...
6706 (@aarch64_sve_dup_lane<mode>): ...this.
6707 (@aarch64_sve_dupq_lane<mode>): New pattern.
6708 (@aarch64_sve_splice<mode>): Likewise.
6709 (aarch64_sve_<perm_insn><mode>): Rename to...
6710 (@aarch64_sve_<perm_insn><mode>): ...this.
6711 (*aarch64_sve_ext<mode>): Rename to...
6712 (@aarch64_sve_ext<mode>): ...this.
6713 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6714 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6715 to...
6716 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6717 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6718 Rename to...
6719 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6720 ...this.
6721 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6722 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6723 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6724 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6725 to...
6726 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6727 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6728 a "@" marker.
6729 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6730 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6731 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6732 pattern.
6733 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6734 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6735 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6736 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6737 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6738 "@" marker.
6739 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6740 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6741 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6742 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6743 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6744 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6745 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6746 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6747 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6748 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6749 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6750 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6751 (aarch64_sve_cnt_pat): Likewise.
6752 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6753 (*aarch64_sve_incsi_pat): Likewise.
6754 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6755 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6756 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6757 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6758 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6759 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6760 (*aarch64_sve_decsi_pat): Likewise.
6761 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6762 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6763 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6764 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6765 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6766 (@aarch64_pred_cntp<mode>): Likewise.
6767 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6768 New expander.
6769 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6770 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6771 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6772 New expander.
6773 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6774 New pattern.
6775 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6776 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6777 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6778 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6779 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6780 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6781 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6782 New expander.
6783 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6784 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6785 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6786 New expander.
6787 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6788 New pattern.
6789 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6790 expander.
6791 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6792 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6793 expander.
6794 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6795 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6796 expander.
6797 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6798 * config/aarch64/arm_sve.h: New file.
6799 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6800 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6801 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6802 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6803 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6804 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6805 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6806 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6807 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6808
6809 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6810
6811 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6812 New pattern.
6813 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6814 SVE modes.
6815
6816 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6817
6818 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6819 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6820 FFRT_REGNUM + 1.
6821 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6822 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6823 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6824 (aarch64_hard_regno_nregs): Handle the new register classes.
6825 (aarch64_hard_regno_mode_ok): Likewise.
6826 (aarch64_regno_regclass): Likewise.
6827 (aarch64_class_max_nregs): Likewise.
6828 (aarch64_register_move_cost): Likewise.
6829 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6830 as general register_operands.
6831
6832 2019-10-29 Martin Liska <mliska@suse.cz>
6833
6834 * ggc-common.c: One can't subtract unsigned types
6835 in compare function.
6836
6837 2019-10-29 Martin Liska <mliska@suse.cz>
6838
6839 * cgraphunit.c (symbol_table::compile): Pass
6840 title as dump_memory_report argument.
6841 * toplev.c (dump_memory_report): New argument.
6842 (finalize): Pass new argument.
6843 * toplev.h (dump_memory_report): Add argument.
6844
6845 2019-10-29 Martin Liska <mliska@suse.cz>
6846
6847 * ggc-common.c: Move Leak to the first column.
6848
6849 2019-10-29 Martin Liska <mliska@suse.cz>
6850
6851 * cgraphunit.c (symbol_table::compile): Remove argument
6852 for dump_memory_report.
6853 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6854 (compare_final): Remove in order to make report
6855 better readable.
6856 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6857 * mem-stats.h (mem_alloc_description::get_list):
6858 Do not pass cmp.
6859 (mem_alloc_description::dump): Likewise here.
6860 * toplev.c (dump_memory_report): Remove final
6861 argument.
6862 (finalize): Likewise.
6863 * toplev.h (dump_memory_report): Remove argument.
6864
6865 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6866
6867 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6868 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6869 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6870 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6871 accept "const".
6872
6873 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6874
6875 * coretypes.h (string_int_pair): New typedef.
6876 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6877 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6878 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6879
6880 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6881
6882 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6883 (simulate_builtin_function_decl): Declare.
6884 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6885 (LANG_HOOKS_INITIALIZER): Include it.
6886 * langhooks.c (add_builtin_function_common): Rename to...
6887 (build_builtin_function): ...this. Add a location parameter and use
6888 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6889 the decl instead.
6890 (add_builtin_function): Update accordingly, passing the returned
6891 decl to the lang hook.
6892 (add_builtin_function_ext_scope): Likewise
6893 (simulate_builtin_function_decl): New function.
6894
6895 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6896
6897 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6898 example, use actual names of supported offload targets.
6899
6900 PR target/92258
6901 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6902
6903 2019-10-28 Martin Sebor <msebor@redhat.com>
6904
6905 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6906 (handle_store): Pass argument to get_addr_stridx.
6907
6908 2019-10-28 Martin Sebor <msebor@redhat.com>
6909
6910 PR tree-optimization/92226
6911 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6912 the offset is in the open range outlined by SI's length.
6913
6914 2019-10-28 Martin Sebor <msebor@redhat.com>
6915
6916 PR c/66970
6917 * doc/cpp.texi (__has_builtin): Document.
6918 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6919
6920 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6921
6922 PR target/82981
6923 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6924 doubleword and low doubleword result of multiplication on
6925 MIPS64R6.
6926
6927 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6928 pure qualifier to the built-in.
6929 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6930 built-ins.
6931 (struct mips_builtin_description): Add is_pure flag.
6932 (mips_init_builtins): Mark built-in as pure if the flag in the
6933 corresponding mips_builtin_description struct is set.
6934
6935 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6936 alternative which covers the floating-point input value. Also
6937 forbid the split of insert.d pattern for floating-point values.
6938
6939 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6940
6941 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6942 * config/riscv/riscv-sr.c: New file.
6943 * config/riscv/riscv.c (riscv_reorg): New function.
6944 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6945 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6946 (riscv_remove_unneeded_save_restore_calls): Declare.
6947 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6948
6949 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6950
6951 PR tree-optimization/92163
6952 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6953 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6954 before calling bitmap_set_bit.
6955 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6956 delete_dead_or_redundant_assignment.
6957 (dse_dom_walker::dse_optimize_stmt): Likewise.
6958 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6959
6960 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6961
6962 PR middle-end/91272
6963 * tree-vect-stmts.c (vectorizable_condition): Support
6964 EXTRACT_LAST_REDUCTION with fully-masked loops.
6965
6966 2019-10-28 Richard Biener <rguenther@suse.de>
6967
6968 PR tree-optimization/92252
6969 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6970 STMT_VINFO_REDUC_IDX when swapping operands.
6971
6972 2019-10-28 Richard Biener <rguenther@suse.de>
6973
6974 PR tree-optimization/92241
6975 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6976 we failed to update the reduction index do not use the pattern
6977 stmts for the reduction chain.
6978 (vectorizable_reduction): When the reduction chain is corrupt,
6979 fail.
6980 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6981 fail to update the reduction chain.
6982
6983 2019-10-28 Richard Biener <rguenther@suse.de>
6984
6985 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6986 STMT_VINFO_REDUC_IDX from the actual stmt.
6987 (vect_transform_reduction): Likewise.
6988 (vectorizable_reduction): Compute the reduction chain length,
6989 do not recompute the reduction operand index. Remove no longer
6990 necessary restriction for condition reduction chains.
6991
6992 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6993
6994 PR target/92225
6995 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6996 condition for V2DImode.
6997
6998 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6999
7000 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7001 Remove %k operand modifier.
7002 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7003
7004 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7005
7006 PR rtl-optimization/92007
7007 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7008 call it after reload if hot/cold partitioning has been done.
7009 (class pass_postreload_jump): Rename to
7010 pass_jump_after_combine.
7011 (make_pass_postreload_jump): Rename to
7012 make_pass_jump_after_combine.
7013 * passes.def(pass_postreload_jump): Move before reload, rename
7014 to pass_jump_after_combine.
7015 * tree-pass.h (make_pass_postreload_jump): Rename to
7016 make_pass_jump_after_combine.
7017
7018 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7019
7020 PR ipa/92242
7021 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7022 for missing EDGE_REF
7023 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7024
7025 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7026
7027 PR tree-optimization/88760
7028 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7029 Enable -funroll-loops for -O2 and above.
7030 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7031 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7032 do not turn on web and rngreg implicitly, if the unroller is not
7033 explicitly enabled.
7034
7035 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7036
7037 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7038 jump functions.
7039
7040 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7041
7042 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7043 * cgraph.h (cgraph_node::rtl_info): Likewise.
7044
7045 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7046
7047 * ipa-cp.c (propagate_constants_across_call): If args are not available
7048 just drop everything to varying.
7049 (find_aggregate_values_for_callers_subset): Watch for missing
7050 edge summary.
7051 (find_more_scalar_values_for_callers_subs): Likewise.
7052 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7053 update_jump_functions_after_inlining, propagate_controlled_uses):
7054 Watch for missing summaries.
7055 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7056 is finished.
7057 (ipa_write_node_info): Watch for missing summaries.
7058 (ipa_read_edge_info): Create new ref.
7059 (ipa_edge_args_sum_t): Add remove.
7060 (IPA_EDGE_REF_GET_CREATE): New macro.
7061 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7062 edge summary.
7063 (remap_edge_change_prob): Likewise.
7064
7065 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7066
7067 * ipa-inline-transform.c (inline_call): update function summaries
7068 after expanidng thunk.
7069
7070 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7071
7072 * ipa-icf.c (sem_function::merge): Update function summaries.
7073 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7074
7075 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7076
7077 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7078 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7079 operand already has scalar mode.
7080 (iptr): Remove SF/DF.
7081
7082 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7083
7084 PR target/91289
7085 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7086 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7087 this.
7088
7089 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7090
7091 * config/i386/sse.md
7092 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7093 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7094 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7095 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7096 <sse>_vmmaskcmp<mode>3):
7097 Change predicates from vector_operand to nonimmediate_operand,
7098 constraints xBm to xm, since scalar operations don't need
7099 memory address alignment.
7100 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7101 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7102 round_saeonly_nimm_predicate with
7103 round_saeonly_nimm_scalar_predicate.
7104 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7105 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7106 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7107 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7108 avx512f_vmfmadd_<mode>_mask3<round_name>,
7109 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7110 *avx512f_vmfmsub_<mode>_mask<round_name>,
7111 avx512f_vmfmsub_<mode>_mask3<round_name>,
7112 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7113 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7114 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7115 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7116 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7117 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7118 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7119 cvtusi2<ssescalarmodesuffix>32<round_name>,
7120 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7121 round_nimm_predicate with round_nimm_scalr_predicate.
7122 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7123 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7124 avx512er_vmrcp28<mode><round_saeonly_name>,
7125 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7126 ): Replace round_saeonly_nimm_predicate with
7127 round_saeonly_nimm_scalar_predicate.
7128 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7129 vector_operand with nonimmediate_operand.
7130 * config/i386/subst.md (round_scalar_nimm_predicate,
7131 round_saeonly_scalar_nimm_predicate): Replace
7132 vector_operand with nonimmediate_operand.
7133
7134 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7135
7136 PR target/89071
7137 * config/i386/i386.md (*rcpsf2_sse): Add
7138 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7139 (*rsqrtsf2_sse): Ditto.
7140 (*sqrt<mode>2_sse): Ditto.
7141 (sse4_1_round<mode>2): separate constraint vm, add
7142 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7143 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7144 by pass rpad.
7145 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7146 Ditto.
7147 (*sse_vmrsqrtv4sf2): Ditto.
7148 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7149 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7150 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7151 <iptr> pointer size modifier since vround support memory operand.
7152
7153 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7154
7155 PR target/85969
7156 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7157 static function.
7158
7159 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7160 Tobias Burnus <tobias@codesourcery.com>
7161
7162 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7163 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7164 common block decls.
7165
7166 2019-10-25 Richard Biener <rguenther@suse.de>
7167
7168 PR tree-optimization/92222
7169 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7170 (_slp_oprnd_info::second_pattern): Likewise.
7171 (_slp_oprnd_info::any_pattern): New.
7172 (vect_create_oprnd_info): Adjust.
7173 (vect_get_and_check_slp_defs): Compute whether any stmt is
7174 in a pattern.
7175 (vect_build_slp_tree_2): Avoid building up a node from scalars
7176 if any of the operand defs, not just the first, is in a pattern.
7177
7178 2019-10-25 Richard Biener <rguenther@suse.de>
7179
7180 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7181 swapping if we actually have to modify the IL on a shared stmt.
7182 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7183 because we no longer modify the IL.
7184
7185 2019-10-25 Martin Liska <mliska@suse.cz>
7186
7187 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7188
7189 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7190
7191 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7192 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7193 handled by vect_transform_reduction. Allow fully-masked loops
7194 to be used with reduction chains.
7195 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7196 operations in fully-masked loops.
7197 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7198 operations in fully-masked loops.
7199
7200 2019-10-25 Richard Biener <rguenther@suse.de>
7201
7202 * tree-vect-loop.c (vectorizable_reduction): Verify
7203 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7204 correctly.
7205 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7206 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7207 stmts.
7208
7209 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7210
7211 * gimplify.h (omp_construct_selector_matches): Declare.
7212 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7213 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7214 called function if needed for flag_openmp.
7215 (gimplify_scan_omp_clauses): Set ctx->code.
7216 (omp_construct_selector_matches): New function.
7217 * omp-general.h (omp_constructor_traits_to_codes,
7218 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7219 * omp-general.c (omp_constructor_traits_to_codes,
7220 omp_context_selector_matches, omp_resolve_declare_variant): New
7221 functions.
7222
7223 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7224 literal.
7225 * config/rx/rx.c (rx_print_operand): Likewise.
7226 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7227 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7228 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7229 Likewise.
7230 * genemit.c (emit_c_code): Likewise.
7231 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7232
7233 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7234
7235 * symbols-summary.h (fast_function_summary<T *, V>::release,
7236 fast_call_summary<T *, V>::release): Free m_vector.
7237
7238 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7239
7240 * cgraphunit.c (symbol_table::process_new_functions): Call
7241 ipa_free_size_summary.
7242 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7243 (devirtualization_time_bonus): Update.
7244 (ipcp_propagate_stage): Update.
7245 * ipa-fnsummary.c (ipa_size_summaries): New.
7246 (ipa_fn_summary_alloc): Alloc size summary.
7247 (dump_ipa_call_summary): Update.
7248 (ipa_dump_fn_summary): Update.
7249 (analyze_function_body): Update.
7250 (compute_fn_summary): Likewise.
7251 (ipa_get_stack_frame_offset): New function.
7252 (inline_update_callee_summaries): Do not update frame offsets.
7253 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7254 remove call and function summary.
7255 (ipa_update_overall_fn_summary): Update.
7256 (inline_read_section): Update.
7257 (ipa_fn_summary_write): Update.
7258 (ipa_free_fn_summary): Do not remove summaries.
7259 (ipa_free_size_summary): New.
7260 (release summary pass): Also run at WPA.
7261 * ipa-fnsummary.h (ipa_size_summary): Declare.
7262 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7263 estimated_self_stack_size.
7264 (ipa_size_summary_t): New type.
7265 (ipa_size_summaries): Declare.
7266 (ipa_free_size_summary): Declare.
7267 (ipa_get_stack_frame_offset): Declare.
7268 * ipa-icf.c (sem_function::merge): Update.
7269 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7270 (estimate_growth): Update.
7271 (growth_likely_positive): Update.
7272 (clone_inlined_nodes): Update.
7273 (inline_call): Update.
7274 * ipa-inline.c (caller_growth_limits): Update.
7275 (edge_badness): Update.
7276 (recursive_inlining): Update.
7277 (inline_small_functions): Update.
7278 (inline_to_all_callers_1): Update.
7279 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7280
7281 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7282
7283 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7284 (uavg<mode>3_ceil): ... This.
7285 (altivec_vavgs<VI_char>): Rename to...
7286 (avg<mode>3_ceil): ... This.
7287 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7288 VAVGUW, VAVGSW): Adjust.
7289
7290 2019-10-24 Nathan Sidwell <nathan@acm.org>
7291
7292 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7293
7294 2019-10-24 Martin Liska <mliska@suse.cz>
7295
7296 * symbol-summary.h (gt_pch_nx): Mark all functions
7297 with gcc_unreachable as we do not expect to be called.
7298
7299 2019-10-24 Richard Biener <rguenther@suse.de>
7300
7301 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7302 chains try harder with operand swapping and instead of
7303 putting a shifted chain into the reduction operands put
7304 a repetition of the final reduction op there as if we'd
7305 reassociate the expression.
7306
7307 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7308
7309 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7310 statics_not_read and statics_not_written to statics_read and
7311 statics_written respectively.
7312 (no_module_statics): New static var.
7313 (ipa_reference_get_not_read_global): Rename to ...
7314 (ipa_reference_get_read_global): ... this.
7315 (ipa_reference_get_not_written_global): Rename to ...
7316 (ipa_reference_get_written_global): ... this.
7317 (dump_static_vars_set_to_file): Dump no_module_statics.
7318 (copy_static_var_set): Add for propagation parameter.
7319 (ipa_init): Initialize no_module_statics.
7320 (ipa_ref_opt_summary_t::duplicate): Update.
7321 (ipa_ref_opt_summary_t::remove): Update.
7322 (propagate): Update.
7323 (write_node_summary_p): Look correctly for bitmap differences.
7324 (ipa_reference_write_optimization_summary): Update.
7325 (ipa_reference_read_optimization_summary): Update.
7326 * ipa-reference.h
7327 (ipa_reference_get_not_read_global): Rename to ...
7328 (ipa_reference_get_read_global): ... this.
7329 (ipa_reference_get_not_written_global): Rename to ...
7330 (ipa_reference_get_written_global): ... this.
7331 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7332 (call_may_clobber_ref_p_1): Update.
7333
7334 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7335
7336 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7337 and add comment.
7338 (msp430_hard_regno_nregs_with_padding): Remove.
7339
7340 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7341
7342 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7343 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7344 shift amount is between 1 and 4.
7345 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7346 is between 1 and 4.
7347
7348 2019-10-24 Richard Biener <rguenther@suse.de>
7349
7350 PR tree-optimization/92205
7351 * tree-vect-loop.c (vectorizable_reduction): Restrict
7352 search for alternate vectype_in to lane-reducing patterns
7353 we support.
7354
7355 2019-10-24 Richard Biener <rguenther@suse.de>
7356
7357 PR tree-optimization/92203
7358 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7359 Skip eliminating conversion stmts inserted by insertion.
7360
7361 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7362
7363 * config/s390/s390.c (s390_get_thread_pointer): Use
7364 gen_get_thread_pointer.
7365 (s390_expand_split_stack_prologue): Likewise.
7366 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7367 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7368 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7369 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7370 parameterized name.
7371
7372 2019-10-24 Richard Biener <rguenther@suse.de>
7373
7374 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7375 SLP discovery fails try to handle the reduction as part
7376 of SLP reduction discovery.
7377
7378 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7379
7380 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7381 declaration.
7382 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7383 attribute if it exists, rather than the insn size. If we use the
7384 insn size, adjust the size to remove the extra size that prefixed
7385 instructions take.
7386 (rs6000_adjust_insn_length): New function.
7387 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7388 update the instruction sized if prefixed instructions are used.
7389 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7390 (non_prefixed_length attribute): Delete.
7391 (num_insns attribute): New insn attribute to return the number of
7392 instructions.
7393 (max_prefixed_insns attribute): New insn attribute to return the
7394 maximum number of prefixed instructions in an insn.
7395 (length attribute): Do not adjust for prefix instructions here,
7396 punt to ADJUST_INSN_LENGTH.
7397 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7398 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7399 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7400 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7401 max_prefixed_insns and num_insns.
7402
7403 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7404 (movtd_64bit_nodm): Reformat.
7405 (mov<mode>_32bit): Reformat.
7406 (mov<mode>_softfloat): Reformat.
7407 (FMOVE128_GPR splitter): Reformat.
7408 (DIFD splitter): Reformat.
7409 (TI2 splitter): Reformat.
7410 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7411 bits of the offset for the memory address are non-zero, use PLWA
7412 if prefixed instructions are available.
7413
7414 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7415
7416 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7417
7418 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7419
7420 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7421 previous patch.
7422
7423 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7424
7425 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7426 (cmp_symbol_files): New.
7427 (lto_output): Copy sections in file order.
7428 * lto-streamer.h (lto_file_decl_data): Add field order.
7429
7430 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7431
7432 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7433 * ipa-reference.c (reference_vars_map_t): new type.
7434 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7435 (ipa_reference_var_uid): Implement.
7436 (varpool_node_hooks): New static var.
7437 (varpool_removal_hook): New function.
7438 (is_improper): Do not check bitmap for id==-1
7439 (get_static_name): Update.
7440 (ipa_init): Initialize new datastructures.
7441 (analyze_function): Do not recompute ids.
7442 (propagate): Free reference_vars_to_consider.
7443 (stream_out_bitmap): Update.
7444 (ipa_reference_read_optimization_summary): Update.
7445
7446 2019-10-23 qing zhao <qing.zhao@oracle.com>
7447
7448 PR gcov-profile/91971
7449 * coverage.c (coverage_init): Mangle the full path of filename when
7450 filename is a absolute path.
7451
7452 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7453
7454 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7455 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7456 (msp430_has_hwmult): New.
7457 (msp430_output_labelref):
7458 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7459 * config/msp430/msp430.md (mulhisi3): Likewise.
7460 (umulhisi3): Likewise.
7461 (mulsidi3): Likewise.
7462 (umulsidi3): Likewise.
7463
7464 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7465
7466 PR ipa/92074
7467 * params.def (inline-heuristics-hint-percent): Set to 600.
7468
7469 2019-10-23 Richard Biener <rguenther@suse.de>
7470
7471 PR tree-optimization/65930
7472 * tree-vect-loop.c (check_reduction_path): Allow conversions
7473 that only change the sign.
7474 (vectorizable_reduction): Relax latch def stmts we handle further.
7475
7476 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7477
7478 PR debug/90231
7479 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7480 (remove_unused_ivs): Use it instead of get_computation_at. When
7481 choosing best candidate, only consider candidates where
7482 get_debug_computation_at actually returns non-NULL.
7483
7484 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7485
7486 PR tree-optimization/92131
7487 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7488 range would be symbolic, drop to varying for any explicit overflow
7489 in the constant part or if neither range is a singleton.
7490
7491 2019-10-23 Martin Liska <mliska@suse.cz>
7492
7493 PR middle-end/81669
7494 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7495 Initialize m_data.
7496
7497 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7498
7499 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7500 int_mode_for_mode rather than mode_for_int_vector for scalars.
7501
7502 2019-10-23 Richard Biener <rguenther@suse.de>
7503
7504 PR tree-optimization/92179
7505 * tree-vect-stmts.c (vectorizable_shift): For shift args
7506 that are all the same remove type restriction in the SLP case.
7507 Adjust SLP code to handle converting of the shift arg to
7508 only apply in case the modes are different.
7509
7510 2019-10-23 Martin Liska <mliska@suse.cz>
7511
7512 PR ipa/91969
7513 * ipa-inline.c (recursive_inlining): Do not print
7514 when curr->count is not initialized.
7515
7516 2019-10-23 Richard Biener <rguenther@suse.de>
7517
7518 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7519 op from scalars in case there's a constant operand in its
7520 definition.
7521
7522 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7523
7524 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7525 against out of range max skip or log values.
7526
7527 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7528
7529 * cgraph.c (dump_graphviz): Change name to dump_name
7530
7531 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7532
7533 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7534 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7535 subtraction from a carry operation.
7536
7537 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7538
7539 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7540
7541 2019-10-22 Richard Biener <rguenther@suse.de>
7542
7543 PR tree-optimization/92173
7544 * tree-vect-loop.c (vectorizable_reduction): If
7545 vect_transform_reduction cannot handle code-generation try without
7546 the single-def-use-cycle optimization. Pass optab_vector to
7547 optab_for_tree_code to get vector shifts as that's what we'd
7548 generate.
7549
7550 2019-10-22 Michael Matz <matz@suse.de>
7551
7552 PR middle-end/90796
7553 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7554 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7555 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7556
7557 2019-10-22 Richard Biener <rguenther@suse.de>
7558
7559 PR tree-optimization/92173
7560 * tree-vect-loop.c (vectorizable_reduction): If
7561 vect_transform_reduction cannot handle code-generation try without
7562 the single-def-use-cycle optimization. Pass optab_vector to
7563 optab_for_tree_code to get vector shifts as that's what we'd
7564 generate.
7565
7566 2019-10-22 Martin Liska <mliska@suse.cz>
7567
7568 * diagnostic-format-json.cc (json_from_expanded_location):
7569 Use json::integer_number.
7570 * gcov.c (output_intermediate_json_line): Use new
7571 json::integer_number.
7572 (output_json_intermediate_file): Likewise.
7573 * json.cc (number::print): Move to ...
7574 (float_number::print): ... this.
7575 (integer_number::print): New.
7576 (test_writing_numbers): Move to ...
7577 (test_writing_float_numbers): ... this.
7578 (test_writing_integer_numbers): New.
7579 (json_cc_tests): Register test_writing_integer_numbers.
7580 * json.h (class value): Add forward declaration
7581 for float_number and integer_number.
7582 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7583 (class number): Move to ...
7584 (class float_number): ... this.
7585 (class integer_number): New.
7586 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7587 Use json::integer_number.
7588 (optrecord_json_writer::location_to_json): Likewise.
7589 (optrecord_json_writer::profile_count_to_json): Likewise.
7590 (optrecord_json_writer::pass_to_json): Likewise.
7591
7592 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7593
7594 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7595 autodetected_vector_size rather than vector_size is zero.
7596 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7597 Set autodetected_vector_size immediately after calling
7598 vect_analyze_loop_2. Check for a fatal error before advancing
7599 next_size.
7600
7601 2019-10-21 Jason Merrill <jason@redhat.com>
7602
7603 * lock-and-run.sh: Check for process existence rather than timeout.
7604
7605 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7606
7607 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7608 widening multiplication.
7609
7610 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7611
7612 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7613 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7614 type attribute.
7615 (subsi3_carryin_shift): Separate into register and constant controlled
7616 alternatives. Use shift_amount_operand for operand 4. Set shift
7617 attribute and simplify type attribute.
7618 (subsi3_carryin_shift_alt): Likewise.
7619 (rsbsi3_carryin_shift): Likewise.
7620 (rsbsi3_carryin_shift_alt): Likewise.
7621 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7622 and register controlled shifts into distinct alternatives.
7623 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7624 (andsi_not_shiftsi_si_scc): Likewise.
7625 (arm_cmpsi_negshiftsi_si): Likewise.
7626 (not_shiftsi): Remove redundant M constraint from alternative 1.
7627 (not_shiftsi_compare0): Likewise.
7628 (arm_cmpsi_insn): Remove redundant alternative 2.
7629 (cmpsi_shift_swp): Likewise.
7630 (sub_shiftsi): Likewise.
7631 (sub_shiftsi_compare0_scratch): Likewise.
7632 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7633 (thumb2_cmpsi_neg_shiftsi): Likewise.
7634
7635 2019-10-21 Richard Biener <rguenther@suse.de>
7636
7637 PR tree-optimization/92162
7638 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7639 STMT_VINFO_REDUC_IDX in reduc_info.
7640 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7641
7642 2019-10-21 Richard Biener <rguenther@suse.de>
7643
7644 * tree-vectorizer.h (_slp_tree::ops): New member.
7645 (SLP_TREE_SCALAR_OPS): New.
7646 (vect_get_slp_defs): Adjust prototype.
7647 * tree-vect-slp.c (vect_free_slp_tree): Release
7648 SLP_TREE_SCALAR_OPS.
7649 (vect_create_new_slp_node): Initialize it. New overload for
7650 initializing by an operands array.
7651 (_slp_oprnd_info::ops): New member.
7652 (vect_create_oprnd_info): Initialize it.
7653 (vect_free_oprnd_info): Release it.
7654 (vect_get_and_check_slp_defs): Populate the operands array.
7655 Do not swap operands in the IL when not necessary.
7656 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7657 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7658 swap operands in the operands array. Do not swap operands in
7659 the IL.
7660 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7661 (vect_gather_slp_loads): Fix.
7662 (vect_detect_hybrid_slp_stmts): Likewise.
7663 (vect_slp_analyze_node_operations_1): Search for a internal
7664 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7665 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7666 the def-type push/pop dance.
7667 (vect_get_constant_vectors): Compute number_of_vectors here.
7668 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7669 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7670 (vect_get_slp_defs): Simplify greatly.
7671 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7672 (vect_transform_reduction): Likewise.
7673 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7674 (vectorizable_call): Likewise.
7675 (vectorizable_operation): Likewise.
7676 (vectorizable_load): Likewise.
7677 (vectorizable_condition): Likewise.
7678 (vectorizable_comparison): Likewise.
7679
7680 2019-10-21 Richard Biener <rguenther@suse.de>
7681
7682 PR tree-optimization/92161
7683 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7684 for reductions.
7685
7686 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7687
7688 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7689 (aarch64_rndr): New define_insn.
7690 (aarch64_rndrrs): Likewise.
7691 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7692 (TARGET_RNG): Likewise.
7693 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7694 argument.
7695 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7696 Add fourth argument in prototype.
7697 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7698 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7699 (aarch64_init_rng_builtins): Define.
7700 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7701 (aarch64_expand_rng_builtin): Define.
7702 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7703 RNG builtins.
7704 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7705 __ARM_FEATURE_RNG when TARGET_RNG.
7706 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7707
7708 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7709
7710 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7711 alignment is more restrictive.
7712
7713 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7714
7715 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7716 (vect_update_max_nunits): Update comment.
7717 (current_vector_size): Delete.
7718 * tree-vect-stmts.c (current_vector_size): Likewise.
7719 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7720 of current_vector_size.
7721 (get_mask_type_for_scalar_type): Likewise.
7722 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7723 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7724 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7725 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7726 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7727 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7728
7729 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7730
7731 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7732 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7733 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7734 accordingly.
7735
7736 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7737
7738 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7739 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7740 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7741 call accordingly.
7742 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7743
7744 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7745
7746 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7747 a loop_vec_info.
7748 (vect_set_loop_condition_masked): Update call accordingly.
7749
7750 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7751
7752 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7753 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7754 (simple_integer_narrowing): Update call accordingly.
7755 (vectorizable_conversion): Likewise.
7756
7757 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7758
7759 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7760 (vectorizable_call): Update call accordingly.
7761
7762 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7763
7764 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7765 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7766 (duplicate_and_interleave): Update call accordingly.
7767 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7768
7769 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7770
7771 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7772 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7773 (vect_get_constant_vectors): Update call accordingly.
7774 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7775
7776 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7777
7778 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7779 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7780 (vect_prologue_cost_for_slp_op): Update call accordingly.
7781 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7782 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7783 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7784 (get_mask_type_for_scalar_type): Likewise.
7785 (vect_get_vector_types_for_stmt): Likewise.
7786 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7787 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7788 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7789 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7790 (vect_split_statement, vect_convert_input): Likewise.
7791 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7792 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7793 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7794 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7795 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7796 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7797 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7798 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7799 (vect_recog_mask_conversion_pattern): Likewise.
7800 (vect_add_conversion_to_pattern): Likewise.
7801 (vect_recog_gather_scatter_pattern): Likewise.
7802 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7803 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7804
7805 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7806
7807 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7808 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7809 (vect_check_load_store_mask): Update call accordingly.
7810 (vect_get_mask_type_for_stmt): Likewise.
7811 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7812 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7813 (vect_convert_mask_for_vectype): Likewise.
7814
7815 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7816
7817 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7818 a vec_info.
7819 (vect_recog_dot_prod_pattern): Update call accordingly.
7820 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7821 (vect_recog_widen_sum_pattern): Likewise.
7822
7823 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7824
7825 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7826 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7827 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7828 accordingly.
7829
7830 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7831
7832 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7833 get_vectype_for_scalar_type_and_size instead of
7834 get_vectype_for_scalar_type.
7835
7836 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7837
7838 * common.opt (-fcommon): Fix description.
7839
7840 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7841
7842 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7843 * config/i386/i386.c (ix86_pre_reload_split): New function.
7844 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7845 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7846 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7847 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7848 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7849 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7850 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7851 *<shift_insn><dwi>3_doubleword_mask,
7852 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7853 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7854 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7855 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7856 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7857 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7858 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7859 *avx2_<code>v8qiv8si2<mask_name>_2,
7860 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7861 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7862 *avx512f_<code>v8qiv8di2<mask_name>_2,
7863 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7864 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7865 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7866 sse4_2_pcmpistr): Likewise.
7867
7868 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7869
7870 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7871 now defaults to https.
7872
7873 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7874
7875 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7876 skip non-zero array accesses.
7877
7878 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7879
7880 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7881 and return a boolean success value. Move the allocation and
7882 initialization of the bb_vec_info to...
7883 (vect_slp_bb_region): ...here. Update call accordingly.
7884 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7885 than in vect_slp_analyze_bb_1.
7886
7887 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7888
7889 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7890 when processing the given datarefs for the first time and
7891 check_datarefs subsequently.
7892 (vect_slp_bb_region): New function, split out of...
7893 (vect_slp_bb): ...here. Don't recompute the region bounds and
7894 dataref sets when retrying with a different vector size.
7895
7896 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7897 Uroš Bizjak <ubizjak@gmail.com>
7898
7899 PR target/92140
7900 * config/i386/predicates.md (int_nonimmediate_operand): New special
7901 predicate.
7902 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7903 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7904 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7905 define_insn_and_split patterns.
7906
7907 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7908
7909 * config/rs6000/rs6000.md: Delete out--of-date comment about
7910 special-casing integer loads.
7911
7912 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7913
7914 * escaped_string.h (escaped_string): New header.
7915 * tree.c (escaped_string): Remove escaped_string class.
7916
7917 2019-10-18 Martin Sebor <msebor@redhat.com>
7918
7919 PR tree-optimization/92157
7920 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7921 compute_string_length to return a negative result.
7922
7923 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7924
7925 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7926 (negvsi3, negvdi3): Delete.
7927 (negdi2_compare): Delete.
7928
7929 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7930
7931 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7932 operations.
7933 (subdi3_compare1): Delete pattern.
7934 (subvsi3_borrow): New insn pattern.
7935 (subvsi3_borrow_imm): Likewise.
7936
7937 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7938
7939 * config/arm/arm.md (subv<mode>4): Delete.
7940 (subvdi4): New expander pattern.
7941 (subvsi4): Likewise. Handle some immediate values.
7942 (subvsi3_intmin): New insn pattern.
7943 (subvsi3): Likewise.
7944 (subvsi3_imm1): Likewise.
7945 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7946 idioms.
7947
7948 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7949
7950 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7951 incoming operands. Early split the calculation into SImode
7952 operations.
7953 (usubvsi3_borrow): New insn pattern.
7954 (usubvsi3_borrow_imm): Likewise.
7955
7956 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7957
7958 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7959 (usubvsi4): New pattern. Allow some immediate values for inputs.
7960 (usubvdi4): New pattern.
7961
7962 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7963
7964 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7965 or second operand of the PLUS inside a DImode equality test to be
7966 sign-extend when selecting CC_Vmode.
7967 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7968 instructions.
7969 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7970 expand patterns.
7971 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7972 (addsi3_cin_vout_0): Likewise.
7973 (adddi3_compareV): Delete.
7974
7975 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7976
7977 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7978 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7979 to transform this back into the summation version when that leads
7980 to smaller code.
7981
7982 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7983
7984 * config/arm/arm.md (addv<mode>4): Delete.
7985 (addvsi4): New pattern. Handle immediate values that the architecture
7986 supports.
7987 (addvdi4): New pattern.
7988 (addsi3_compareV): Rename to ...
7989 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7990 and use COMPARE rather than NE.
7991 (addsi3_compareV_imm): New pattern.
7992 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7993 a signed-overflow check.
7994
7995 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7996
7997 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7998 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7999 CC_ADCmode.
8000 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8001 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8002 with overflow.
8003 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8004 expand patterns.
8005 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8006 (addsi3_cin_cout_imm_insn): Likewise.
8007 (adddi3_compareC): Delete insn.
8008 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8009
8010 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8011
8012 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8013 * (uaddv<mode>4): Delete expansion pattern.
8014 (uaddvsi4): New pattern.
8015 (uaddvdi4): Likewise.
8016 (addsi3_compareC): Delete pattern, change callers to use
8017 addsi3_compare_op1.
8018 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8019 reduce the number of alternatives and re-work type attribute handling.
8020 (addsi3_compare_op2): Clean up constraints to reduce the number of
8021 alternatives and re-work type attribute handling.
8022 (compare_addsi2_op0): Likewise.
8023 (compare_addsi2_op1): Likewise.
8024
8025 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8026
8027 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8028 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8029 for DImode operands.
8030 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8031 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8032 CC_NCVmode.
8033 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8034 (arm_cmpdi_unsigned): Delete.
8035
8036 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8037
8038 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8039 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8040 unchanged only if that will be cheaper.
8041 (arm_select_cc_mode): Recognize a swapped comparison that will
8042 be regenerated using RSBS or RSCS. Relax restriction on selecting
8043 CC_RSBmode.
8044 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8045 a constant.
8046 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8047 is CC_RSBmode.
8048 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8049 as CCmode.
8050 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8051 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8052
8053 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8054
8055 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8056 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8057 need these modes.
8058 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8059 of EQ, NE, LT, GE, LTU and GEU.
8060 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8061 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8062 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8063 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8064 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8065
8066 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8067
8068 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8069 operand 2.
8070 (cstoredi4): Similarly, but for operand 3.
8071 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8072 canonicalization of unsigned compares with a constant on Arm.
8073 Prefer using const+1 and adjusting the comparison over swapping the
8074 operands whenever the original constant was not valid.
8075 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8076 register here.
8077 (arm_validize_comparison): Do not force invalid DImode operands to
8078 registers here.
8079
8080 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8081
8082 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8083 return CC_Zmode if comparing against a constant where one word is
8084 zero.
8085 (arm_gen_compare_reg): Split DImode handling to ...
8086 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8087 against simple constants.
8088 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8089
8090 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8091
8092 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8093 (rsbsi3_carryin_shift_alt): Likewise.
8094
8095 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8096
8097 * config/arm/arm.md (negscc_borrow): New pattern.
8098 (mov_negscc): Don't split if the insn would match negscc_borrow.
8099 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8100 (thumb2_mov_negscc_strict_it): Likewise.
8101
8102 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8103
8104 * config/arm/arm.c (arm_insn_cost): New function.
8105 (TARGET_INSN_COST): Override default definition.
8106
8107 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8108
8109 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8110 borrow operations.
8111
8112 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8113
8114 * config/arm/arm.c (strip_carry_operation): New function.
8115 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8116 for SImode.
8117
8118 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8119
8120 * config/arm/predicates.md (arm_carry_operation): New special
8121 predicate.
8122 * config/arm/iterators.md (LTUGEU): Delete iterator.
8123 (cnb): Delete code attribute.
8124 (optab): Delete ltu and geu elements.
8125 * config/arm/arm.md (addsi3_carryin): Renamed from
8126 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8127 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8128 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8129 (addsi3_carryin_clobercc): Similarly.
8130 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8131 Thumb2 state.
8132
8133 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8134
8135 * config/arm/arm.md (arm_subdi3): Delete insn.
8136 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8137
8138 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8139
8140 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8141 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8142 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8143 return CC_RSBmode.
8144 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8145 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8146 expand.
8147 (subdi3): Rewrite to early-expand the sub-operations.
8148 (rsb_im_compare): New pattern.
8149 (negdi2): Delete.
8150 (negdi2_insn): Delete.
8151 (arm_negsi2): Correct type attribute to alu_imm.
8152 (negsi2_0compare): New insn pattern.
8153 (negsi2_carryin): New insn pattern.
8154
8155 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8156
8157 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8158 operand 2.
8159
8160 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8161
8162 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8163 to match canonical form.
8164
8165 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8166
8167 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8168 (extend<mode>di2): Likewise.
8169
8170 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8171
8172 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8173 * config/arm/arm.c (arm_decompose_di_binop): New function.
8174 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8175 If not generating Thumb-1 code, decompose the operation into 32-bit
8176 pieces.
8177 * add0si_carryin_<optab>: New pattern.
8178
8179 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8180
8181 * arm.md (adddi3): Only accept register operands.
8182 (arm_adddi3): Convert to simple insn with no split. Do not accept
8183 constants.
8184 (adddi_sesidi_di): Delete patern.
8185 (adddi_zesidi_di): Likewise.
8186 (uaddv<mode>4): Use LTU as condition for branch.
8187 (adddi3_compareV): Convert to simple insn with no split.
8188 (addsi3_compareV_upper): Delete pattern.
8189 (adddi3_compareC): Convert to simple insn with no split. Correct
8190 flags setting expression.
8191 (addsi3_compareC_upper): Delete pattern.
8192 (addsi3_compareC): Correct flags setting expression.
8193 (subdi3_compare1): Convert to simple insn with no split.
8194 (subsi3_carryin_compare): Delete pattern.
8195 (arm_subdi3): Convert to simple insn with no split.
8196 (subdi_zesidi): Delete pattern.
8197 (subdi_di_sesidi): Delete pattern.
8198 (subdi_zesidi_di): Delete pattern.
8199 (subdi_sesidi_di): Delete pattern.
8200 (subdi_zesidi_zesidi): Delete pattern.
8201 (negvdi3): Use s_register_operand.
8202 (negdi2_compare): Convert to simple insn with no split.
8203 (negdi2_insn): Likewise.
8204 (negsi2_carryin_compare): Delete pattern.
8205 (negdi_zero_extendsidi): Delete pattern.
8206 (arm_cmpdi_insn): Convert to simple insn with no split.
8207 (negdi2): Don't call gen_negdi2_neon.
8208 * config/arm/neon.md (adddi3_neon): Delete pattern.
8209 (subdi3_neon): Delete pattern.
8210 (negdi2_neon): Delete pattern.
8211 (splits for negdi2_neon): Delete splits.
8212
8213 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8214
8215 PR middle-end/92153
8216 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8217 than after it.
8218
8219 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8220
8221 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8222 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8223 new multilib variants and new mappings.
8224
8225 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8226
8227 PR target/86040
8228 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8229
8230 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8231 Richard Sandiford <richard.sandiford@arm.com>
8232
8233 PR target/86753
8234 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8235 and define hashmap traits for it.
8236 (loop_vec_info::scalar_cond_masked_set): New member.
8237 (vect_record_loop_mask): Adjust prototype.
8238 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8239 Implement method.
8240 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8241 vect_record_loop_mask.
8242 (vectorizable_live_operation): Likewise.
8243 (vect_record_loop_mask): New param scalar_mask. Add entry
8244 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8245 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8246 Pass it as last arg to vect_record_loop_mask.
8247 (vectorizable_call): Pass scalar_mask as last arg to
8248 vect_record_loop_mask.
8249 (vectorizable_store): Likewise.
8250 (vectorizable_load): Likewise.
8251 (vectorizable_condition): Check if another part of vectorized code
8252 applies loop_mask to condition or to it's inverse, and if yes,
8253 apply loop_mask to result of vector comparison.
8254
8255 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8256
8257 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8258
8259 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8260
8261 PR tree-optimization/92056
8262 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8263 before calling compute_builtin_object_size.
8264
8265 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8266
8267 PR target/65342
8268 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8269 (movdi_low_st): Delete.
8270 * config/rs6000/rs6000.c
8271 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8272 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8273 * config/rs6000/rs6000.md (movsi_low): Delete.
8274
8275 2019-10-17 Jason Merrill <jason@redhat.com>
8276
8277 * gimplify.h (get_initialized_tmp_var): Add default argument to
8278 post_p.
8279 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8280 NULL post_p argument.
8281 * targhooks (std_gimplify_va_arg_expr): Likewise.
8282
8283 2019-10-17 Richard Biener <rguenther@suse.de>
8284
8285 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8286 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8287 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8288 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8289 * tree-vect-loop.c (vect_is_simple_reduction): Set
8290 STMT_VINFO_REDUC_CODE.
8291 (vectorizable_reduction): Remove dead and redundant code, use
8292 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8293
8294 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8295
8296 Fix breakage introduced by r276985.
8297
8298 * config/avr/avr.c (avr_option_override): Remove set of
8299 PARAM_ALLOW_STORE_DATA_RACES.
8300 * common/config/avr/avr-common.c (avr_option_optimization_table)
8301 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8302
8303 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8304
8305 * config/i386/i386.h (processor_costs): Add clear_ratio.
8306 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8307 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8308 of 6 and move_ratio in all cost models.
8309
8310 2019-10-17 Richard Biener <rguenther@suse.de>
8311
8312 * tree-vect-loop.c (check_reduction_path): Compute reduction
8313 operation here.
8314 (vect_is_simple_reduction): Remove special-case of single-stmt
8315 reduction path detection.
8316
8317 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8318
8319 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8320
8321 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8322
8323 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8324 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8325 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8326 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8327 New combine patterns.
8328 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8329 above.
8330 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8331
8332 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8333
8334 * tree-vrp.c (value_range_base::dump): Display +INF for both
8335 pointers and integers when appropriate.
8336
8337 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8338
8339 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8340 when to use versioning threshold.
8341
8342 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8343
8344 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8345 outlined code from ...
8346 (vect_analyze_loop_2): ... here.
8347
8348 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8349
8350 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8351 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8352 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8353
8354 2019-10-17 Richard Biener <rguenther@suse.de>
8355
8356 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8357 (vect_is_simple_reduction): Move all validity checks ...
8358 (vectorizable_reduction): ... here. Compute whether we
8359 need a fold-left reduction here.
8360 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8361 both overloads, check needs_fold_left_reduction_p directly.
8362 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8363
8364 2019-10-17 Richard Biener <rguenther@suse.de>
8365
8366 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8367 TARGET_MEM_REF creation.
8368
8369 2019-10-17 Richard Biener <rguenther@suse.de>
8370
8371 PR tree-optimization/92129
8372 * tree-vect-loop.c (vectorizable_reduction): Also fail
8373 on GIMPLE_SINGLE_RHS.
8374
8375 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8376
8377 PR tree-optimization/92056
8378 * tree-object-size.c (cond_expr_object_size): Return early if then_
8379 processing resulted in unknown size.
8380
8381 PR tree-optimization/92115
8382 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8383 temporary if it could trap.
8384
8385 2019-10-17 Richard Biener <rguenther@suse.de>
8386
8387 PR debug/91887
8388 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8389 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8390
8391 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8392
8393 * tree-ssa-strlen.c (maybe_invalidate): Use
8394 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8395
8396 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8397 Jim Wilson <jimw@sifive.com>
8398
8399 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8400 regs to SIBCALL_REGS.
8401 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8402 passing regs to SIBCALL_REGS.
8403
8404 2019-10-16 Martin Sebor <msebor@redhat.com>
8405
8406 PR tree-optimization/83821
8407 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8408 the length of a string when available.
8409 (handle_builtin_memset) Add argument.
8410 (handle_store, strlen_check_and_optimize_call): Same.
8411 (check_and_optimize_stmt): Same. Pass it to callees.
8412
8413 2019-10-16 Martin Sebor <msebor@redhat.com>
8414
8415 PR tree-optimization/91996
8416 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8417 information.
8418 (compare_nonzero_chars): Add an overload.
8419 (count_nonzero_bytes): Add an argument. Call overload above.
8420 Handle non-constant lengths in some range.
8421 (handle_store): Add an argument.
8422 (check_and_optimize_stmt): Pass an argument to handle_store.
8423
8424 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8425
8426 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8427
8428 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8429
8430 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8431 operands which correspond to the same input-output register to
8432 have the same pseudo assigned to them.
8433
8434 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8435
8436 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8437
8438 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8439
8440 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8441 Apply reasonable limit to symbol offsets.
8442
8443 2019-10-16 Richard Biener <rguenther@suse.de>
8444
8445 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8446 (vect_is_simple_reduction): Delay checking to
8447 vectorizable_reduction and relax the checking.
8448 (vectorizable_reduction): Check we have a simple use. Check
8449 for bogus condition reductions.
8450 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8451 are looking at the last stmt in a pattern sequence when
8452 filling in backedge PHI values.
8453
8454 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8455 Jiufu Guo <guojiufu@linux.ibm.com>
8456
8457 PR target/70010
8458 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8459 the callee explicitly disables some isa_flags the caller is using.
8460
8461 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8462
8463 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8464
8465 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8466
8467 * genmodes.c (mode_data::order): New field.
8468 (blank_mode): Update accordingly.
8469 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8470 (make_vector_modes): Likewise.
8471 (VECTOR_MODES): Update use accordingly.
8472 (cmp_modes): Sort by the new order field ahead of sorting by size.
8473 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8474 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8475 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8476 (aarch64_classify_vector_mode): Handle the new partial modes.
8477 (aarch64_vl_bytes): New function.
8478 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8479 when counting the number of registers in an SVE mode.
8480 (aarch64_class_max_nregs): Likewise.
8481 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8482 in registers yet.
8483 (aarch64_classify_address): Treat partial vectors analogously
8484 to full vectors.
8485 (aarch64_print_address_internal): Consolidate the printing of
8486 MUL VL addresses, using aarch64_vl_bytes as the number of
8487 bytes represented by "VL".
8488 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8489
8490 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8491
8492 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8493 rather than known_lt when choosing frame layouts.
8494
8495 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8496
8497 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8498 that all the adjustments add up to the full frame size.
8499 Use crtl->outgoing_args_size directly as the final adjustment
8500 where appropriate.
8501
8502 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8503
8504 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8505 "frame" reference instead of always referring directly to
8506 "cfun->machine->frame".
8507
8508 2019-10-16 Richard Biener <rguenther@suse.de>
8509
8510 PR tree-optimization/92119
8511 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8512 against missing bswap lhs.
8513
8514 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8515
8516 PR middle-end/92033
8517 * poly-int.h (constant_lower_bound_with_limit): New function.
8518 (constant_upper_bound_with_limit): Likewise.
8519 * doc/poly-int.texi: Document them.
8520 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8521 into the worst-case INTEGER_CST bounds.
8522
8523 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8524
8525 PR ipa/91088
8526 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8527 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8528 * ipa-predicat.h (struct expr_eval_op): New struct.
8529 (expr_eval_ops): New typedef.
8530 (struct condition): Add type and param_ops fields, remove size field.
8531 (add_condition): Replace size parameter with type parameter, add
8532 param_ops parameter.
8533 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8534 (predicate::add_clause): Add comparisons on type and param_ops.
8535 (dump_condition): Add debug dump for param_ops.
8536 (remap_after_inlining): Adjust call arguments to add_condition.
8537 (add_condition): Replace size parameter with type parameter, add
8538 param_ops parameter. Unshare constant value used in conditions.
8539 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8540 parameter expressions using param_ops.
8541 (decompose_param_expr): New function.
8542 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8543 to replace call to unmodified_parm_or_parm_agg_item.
8544 (set_switch_stmt_execution_predicate): Likewise.
8545 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8546 with type.
8547 (inline_read_section): Read param_ops from summary stream.
8548 (ipa_fn_summary_write): Write param_ops to summary stream.
8549
8550 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8551
8552 PR rtl-optimization/92107
8553 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8554 expression written.
8555
8556 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8557
8558 * config/darwin.c: Update description of fix and continue.
8559
8560 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8561
8562 * config/darwin.c (darwin_binds_local_p): Update to call
8563 default_binds_local_p_3 () directly. amend comments.
8564
8565 2019-10-15 Richard Biener <rguenther@suse.de>
8566
8567 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8568 (tree_is_indexable): Use it.
8569 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8570 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8571 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8572
8573 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8574
8575 * config/msp430/msp430.md (zero_extendqipsi2): New.
8576 (zero_extendqisi2): Optimize case where src register and base dst
8577 register are the same.
8578 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8579 (zero_extendpsisi2): Optimize r->m case.
8580 Add unnamed insn patterns to catch insns combine searches for when
8581 optimizing pointer manipulation.
8582
8583 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8584
8585 * config/msp430/msp430.md: Group zero_extend* insns together.
8586
8587 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8588
8589 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8590 constraint.
8591 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8592 POST_INC.
8593 (msp430_subreg): Likewise.
8594 (msp430_split_addsi): Likewise.
8595 (msp430_print_operand_addr): Likewise.
8596 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8597 (USE_STORE_POST_INCREMENT): Define.
8598 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8599 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8600 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8601 (msp430_general_dst_operand): New.
8602 (msp430_general_dst_nonv_operand): New.
8603 (msp430_nonsubreg_operand): Remove.
8604 (msp430_nonsubreg_dst_operand): New.
8605 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8606 of defunct msp430_nonsubreg_operand.
8607 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8608
8609 2019-10-15 Richard Biener <rguenther@suse.de>
8610
8611 PR tree-optimization/91929
8612 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8613 (get_or_alloc_expr_for_name): Initialize it.
8614 (get_or_alloc_expr_for_constant): Likewise.
8615 (phi_translate_1): Copy it.
8616 (create_expression_by_pieces): Use the original location
8617 of the expression for the inserted stmt.
8618 (compute_avail): Record the location of the stmt for the
8619 expressions created.
8620
8621 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8622
8623 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8624 before using tree_to_uhwi.
8625
8626 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8627
8628 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8629
8630 2019-10-15 Richard Biener <rguenther@suse.de>
8631
8632 PR tree-optimization/92094
8633 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8634 do not adjust the reduction definition def type.
8635 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8636 defines the latch argument of the PHI.
8637
8638 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8639
8640 PR target/92035
8641 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8642 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8643 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8644 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8645 _mm_maskz_roundscale_round_sd): New intrinsics.
8646 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8647 __builtin_ia32_rndscales?_mask_round builtins instead of
8648 __builtin_ia32_rndscales?_round.
8649 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8650 __builtin_ia32_rndscalesd_round): Remove.
8651 (__builtin_ia32_rndscaless_mask_round,
8652 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8653 * config/i386/sse.md
8654 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8655 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8656 ... this, adjust and add subst atrributes to make it maskable.
8657
8658 2019-10-15 Richard Biener <rguenther@suse.de>
8659
8660 PR middle-end/92046
8661 * common.opt (fallow-store-data-races): New.
8662 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8663 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8664 * doc/invoke.texi (fallow-store-data-races): Document.
8665 (--param allow-store-data-races): Remove docs.
8666 * opts.c (default_options_table): Enable -fallow-store-data-races
8667 at -Ofast.
8668 (default_options_optimization): Do not enable --param
8669 allow-store-data-races at -Ofast.
8670 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8671 instead of PARAM_ALLOW_STORE_DATA_RACES.
8672 * tree-ssa-loop-im.c (execute_sm): Likewise.
8673
8674 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8675
8676 PR tree-optimization/92085
8677 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8678 instead of calling it unconditionally after
8679 delete_dead_or_redundant_assignment and fix indentation.
8680
8681 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8682
8683 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8684 TARGET_VFP_DOUBLE.
8685 (*fmsub<SDF:mode>4): Likewise.
8686 *fnmsub<SDF:mode>4): Likewise.
8687 (*fnmadd<SDF:mode>4): Likewise.
8688
8689 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8690
8691 * doc/tree-ssa.texi: Update renamed macro name.
8692
8693 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8694
8695 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8696 vector constants.
8697
8698 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8699
8700 * config/darwin.c: Use unsigned ints for the picbase label
8701 counters, initialise the vars explicitly.
8702 (update_pic_label_number_if_needed): Move a variable declaration
8703 to where it's needed.
8704 (machopic_output_function_base_name): Use a more strict checking
8705 assert, and and unsigned int for the picbase label counter.
8706 (machopic_get_function_picbase): Likewise.
8707
8708 2019-10-14 Richard Biener <rguenther@suse.de>
8709
8710 PR middle-end/92046
8711 * dse.c (scan_insn): Use param max_active_local_stores.
8712 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8713 based on optimization level.
8714 * loop-invariant.c (move_loop_invariants): Adjust
8715 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8716 * opts.c (default_options_optimization): Do not adjust
8717 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8718 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8719
8720 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8721
8722 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8723
8724 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8725
8726 * config/arm/arm.c (arm_option_override): Don't override sched
8727 pressure algorithm.
8728
8729 2019-10-14 Richard Biener <rguenther@suse.de>
8730
8731 PR tree-optimization/92069
8732 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8733 cycles do not set vect_nested_cycle on the latch definition.
8734
8735 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8736
8737 * function-abi.h (expr_callee_abi): Declare.
8738 * function-abi.cc (expr_callee_abi): New function.
8739
8740 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8741
8742 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8743 into [1,MAX].
8744 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8745 non-zero being represented as [1,MAX].
8746
8747 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8748
8749 * tree-sra.c (dump_access): Add missing braces.
8750
8751 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8752
8753 * config/darwin.c (machopic_indirection_name): Rework the
8754 function to emit linker-visible symbols only for indirections
8755 in the data section. Clean up the code and update comments.
8756
8757 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8758
8759 * config/darwin.c (machopic_indirect_data_reference): Remove
8760 redundant code.
8761
8762 2019-10-13 Nathan Sidwell <nathan@acm.org>
8763
8764 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8765
8766 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8767
8768 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8769 c99_runtime.
8770
8771 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8772
8773 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8774 so non-virutal are before virutals.
8775 (output_function): Avoid body modifications.
8776
8777 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8778
8779 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8780 %r22. Load function address before global pointer.
8781 (pa_attr_length_indirect_call): Adjust length of inline versions of
8782 $$dyncall.
8783 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8784 before normal cases. Update inline $$dyncall sequences to preserve
8785 function descriptor address in register %r22.
8786 (TRAMPOLINE_CODE_SIZE): Adjust.
8787 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8788 register %r22 contains trampoline address.
8789 (pa_trampoline_init): Adjust offsets.
8790 (pa_trampoline_adjust_address): Likewise.
8791 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8792
8793 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8794
8795 PR target/67183
8796 * config/darwin.c (machopic_indirection): New field to flag
8797 non-lazy-symbol-pointers in the data section.
8798 (machopic_indirection_name): Compute if an indirection should
8799 appear in the data section.
8800 (machopic_output_data_section_indirection): New callback split
8801 from machopic_output_indirection.
8802 (machopic_output_stub_indirection): Likewise.
8803 (machopic_output_indirection): Retain the code for non-lazy
8804 symbol pointers in their regular section.
8805 (machopic_finish): Use the new callbacks to order the indirection
8806 output.
8807
8808 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8809
8810 * config/darwin-protos.h (machopic_finish): Delete.
8811 * config/darwin.c (machopic_finish): Make static.
8812
8813 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8814
8815 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8816 sections when building kernel extension code.
8817
8818 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8819
8820 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8821 later standard."
8822
8823 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8824
8825 * config/pa/pa.c (pa_option_override): Remove trailing comma
8826 from warning.
8827
8828 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8829
8830 PR middle-end/92063
8831 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8832 <case VEC_COND_EXPR>: Return false with *handled = false.
8833 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8834 recursing on the first operand.
8835 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8836 instead of tree_could_trap_p.
8837 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8838
8839 2019-10-11 Jim Wilson <jimw@sifive.com>
8840
8841 PR rtl-optimization/91860
8842 * combine.c (subst): If new_rtx is a constant, also check for
8843 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8844
8845 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8846
8847 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8848 INTVAL when calling store_bit_field.
8849
8850 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8851
8852 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8853 size.
8854
8855 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8856
8857 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8858 vectorizable_live_operation.
8859 (vectorizable_live_operation): Adjust parameters.
8860 * tree-vect-stmts.c (vect_init_vector,
8861 vect_gen_widened_results_half): Fix typo in function comment.
8862 (can_vectorize_live_stmts): Adjust function comment.
8863 Adjust parameters. Adjust call to vectorizable_live_operation.
8864 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8865 (vect_transform_stmt): Adjust function comment. Adjust call to
8866 can_vectorize_live_stmts.
8867 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8868
8869 2019-10-11 Richard Biener <rguenther@suse.de>
8870
8871 PR tree-optimization/90883
8872 PR tree-optimization/91091
8873 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8874 alias-sets both for recording VN table entries and continuing
8875 walking after translating through copies. Handle same-sized
8876 reads from SSA names by returning the plain SSA name.
8877 (eliminate_dom_walker::eliminate_stmt): Properly handle
8878 non-size precision stores in redundant store elimination.
8879
8880 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8881
8882 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8883 (ggc_collect): Dump later to not interfere with release_page dump.
8884 (ggc_trim): New function.
8885 * ggc-none.c (ggc_trim): New.
8886 * ggc.h (ggc_trim): Declare.
8887
8888 2019-10-11 Richard Biener <rguenther@suse.de>
8889
8890 PR tree-optimization/92066
8891 PR tree-optimization/92046
8892 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8893 Fix bogus cost model check.
8894
8895 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8896
8897 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8898 (LANG_HOOKS_DECLS): Add it.
8899 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8900 update comment for omp_is_optional_argument.
8901 * omp-general.c (omp_is_allocatable_or_ptr): New.
8902 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8903 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8904 Fortran's optional arguments and allocatable/pointer scalars
8905 with use_device_addr.
8906
8907 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8908
8909 PR target/77918
8910 * config/s390/2827.md: Add new opcodes.
8911 * config/s390/2964.md: Likewise.
8912 * config/s390/3906.md: Likewise.
8913 * config/s390/8561.md: Likewise.
8914 * config/s390/s390-builtins.def (s390_vfchesb): Use
8915 the new vec_cmpgev4sf_quiet_nocc.
8916 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8917 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8918 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8919 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8920 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8921 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8922 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8923 * config/s390/s390-modes.def (CCSFPS): New mode.
8924 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8925 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8926 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8927 (s390_expand_vec_compare): Use non-signaling patterns where
8928 necessary.
8929 (s390_reverse_condition): Support CCSFPS.
8930 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8931 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8932 (asm_fcmp_op): Likewise.
8933 (*smaxv2df3_vx): Use pattern for quiet comparison.
8934 (*sminv2df3_vx): Likewise.
8935 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8936 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8937 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8938 (vec_cmplt<mode>_quiet_nocc): New expander.
8939 (vec_cmpge<mode>_quiet_nocc): New pattern.
8940 (vec_cmple<mode>_quiet_nocc): New expander.
8941 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8942 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8943 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8944 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8945 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8946 (vec_cmpungt<mode>): New expander.
8947 (vec_cmpunge<mode>): Likewise.
8948 (vec_cmpuneq<mode>): Use quiet patterns.
8949 (vec_cmpltgt<mode>): Allow only on z14+.
8950 (vec_cmpordered<mode>): Use quiet patterns.
8951 (vec_cmpunordered<mode>): Likewise.
8952 (VEC_CMP_EXPAND): Add ungt and unge.
8953
8954 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8955
8956 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8957 parameter.
8958 * lto-streamer-out.c: Include tree-dfa.h.
8959 (output_cfg): Do not use cfun.
8960 (lto_prepare_function_for_streaming): New.
8961 (output_function): Do not push cfun; do not initialize loop optimizer.
8962 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8963 * passes.c (ipa_write_summaries): Use it.
8964 (ipa_write_optimization_summaries): Do not modify bodies.
8965 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8966 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8967 * tree-ssa-dse.c (pass_dse::execute): Update use of
8968 renumber_gimple_stmt_uids.
8969 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8970
8971 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8972
8973 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8974 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8975
8976 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8977
8978 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8979 macros.
8980 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8981 Also define DFP macros for these conditions.
8982 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8983 DEC128_SUBNORMAL_MIN): Do not define.
8984 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8985 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8986
8987 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8988 Sandra Loosemore <sandra@codesourcery.com>
8989
8990 PR middle-end/26241
8991 * doc/lto.texi (IPA): Reference to the IPA passes.
8992 * doc/passes.texi (Pass manager): Add node IPA passes and
8993 description for each IPA pass.
8994
8995 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8996
8997 * ipa-reference.c: Do not include splay-tree.h
8998 (reference_vars_to_consider): Turn to hash map.
8999 (get_static_name, ipa_init, analyze_function, propagate,
9000 stream_out_bitmap, ipa_reference_write_optimization_summary,
9001 ipa_reference_write_optimization_summary): Update.
9002
9003 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9004
9005 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9006
9007 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9008
9009 * config/darwin.c: Lookup Objective C metadata and force indirection
9010 for IVAR refs.
9011
9012 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9013
9014 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9015 addresses.
9016 (mem_operand_gpr): Add check for prefixed addresses.
9017 (mem_operand_ds_form): Add check for prefixed addresses.
9018 (rs6000_legitimate_offset_address_p): If we support prefixed
9019 addresses, check for a 34-bit offset instead of 16-bit.
9020 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9021 Do not allow load/store with update if the address is prefixed.
9022 (rs6000_mode_dependent_address): If we support prefixed
9023 addresses, check for a 34-bit offset instead of 16-bit.
9024
9025 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9026
9027 PR target/77918
9028 * config/s390/vector.md (vcond_comparison_operator): New
9029 predicate.
9030 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9031
9032 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9033
9034 PR 87488
9035 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9036 -D.
9037 * configure.ac (--with-documentation-root-url): New option.
9038 * configure: Regenerate.
9039 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9040 option URL, add it as a new string field of the diagnostic option.
9041 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9042 (print_option_information): If get_option_url is non-NULL, call
9043 it, and if the result is non-NULL, potentially emit an escape
9044 sequence to markup the option text with the resulting URL.
9045 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9046 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9047 example of JSON output.
9048 * opts-diagnostic.h (get_option_url): New decl.
9049 * opts.c (get_option_url): New function.
9050 * toplev.c (general_init): Initialize the get_option_url callback.
9051
9052 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9053
9054 PR 87488
9055 * common.opt (fdiagnostics-urls=): New option.
9056 (diagnostic-url.h): Add SourceInclude.
9057 (diagnostic_url_rule): New enum.
9058 * diagnostic-color.c: Include "diagnostic-url.h".
9059 (diagnostic_urls_enabled_p): New function.
9060 * diagnostic-url.h: New file.
9061 * diagnostic.c: Include "diagnostic-url.h".
9062 (diagnostic_urls_init): New function.
9063 * diagnostic.h (diagnostic_urls_init): New decl.
9064 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9065 -fdiagnostics-urls to the list.
9066 (-fdiagnostics-urls): New option.
9067 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9068 (driver::global_initializations): Call diagnostic_urls_init.
9069 * opts-global.c (init_options_once): Likewise.
9070 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9071 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9072 show_urls.
9073 (pp_begin_url): New function.
9074 (pp_end_url): New function.
9075 (selftest::test_urls): New selftest.
9076 (selftest::pretty_print_c_tests): Call it.
9077 * pretty-print.h (pretty_printer::show_urls): New field.
9078 (pp_begin_url): New decl.
9079 (pp_end_url): New decl.
9080
9081 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9082
9083 PR target/92022
9084 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9085
9086 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9087
9088 PR target/88630
9089 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9090 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9091 also for TARGET_FPU_SH4_300.
9092 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9093 TARGET_SH4_300.
9094 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9095 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9096 (*negsf2_i): Split into ...
9097 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9098 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9099 (**abssf2_i): Split into ...
9100 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9101 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9102 (*negdf2_i): Split into ...
9103 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9104 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9105 (**abssf2_i): Split into ...
9106 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9107
9108 2019-10-10 Richard Biener <rguenther@suse.de>
9109
9110 PR middle-end/92046
9111 * opts.c (finish_options): Do not influence global --params
9112 from options that are adjustable per function.
9113 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9114 Apply --param adjustment based on active cost-model.
9115 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9116 further store-sinking when vectorization or if-conversion
9117 are not enabled.
9118
9119 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9120
9121 PR middle-end/92037
9122 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9123 rather than ggc_alloc_cleared to alloc symbol table.
9124 * toplev.c (general_init): Likewise.
9125 * cgraph.h (symbol_table): Explicitly construct every field.
9126
9127 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9128
9129 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9130 (PF_Z15): ... this.
9131 * config.gcc: Add z15 as option for --with-arch and --with-tune
9132 configure switches.
9133 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9134 error reporting for unsupported builtins.
9135 * config/s390/s390-opts.h (enum processor_type): Rename
9136 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9137 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9138 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9139 Likewise.
9140 * config/s390/s390-builtins.def: Likewise.
9141 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9142 (s390_expand_builtin): Add missing check for unsupported builtins.
9143 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9144 (s390_rtx_costs): Likewise.
9145 (s390_get_sched_attrmask): Rename arch13 to z15.
9146 (s390_get_unit_mask): Likewise.
9147 (s390_is_fpd): Likewise.
9148 (s390_is_fxd): Likewise.
9149 * config/s390/s390.h (enum processor_flags): Likewise.
9150 * config/s390/s390.md: Likewise.
9151 * config/s390/vector.md: Likewise.
9152 * config/s390/vx-builtins.md: Likewise.
9153 * config/s390/s390.opt: Add z15 to processor_type value.
9154
9155 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9156
9157 PR target/91035
9158 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9159 prototype.
9160 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9161 ("split_stack_data", "split_stack_call")
9162 ("split_stack_call_<mode>", "split_stack_cond_call")
9163 ("split_stack_cond_call_<mode>"): Remove.
9164 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9165 insn definition.
9166 * config/s390/s390.c (s390_output_split_stack_data): New function.
9167 (s390_expand_split_stack_prologue): Use the merged expander.
9168
9169 2019-10-09 Martin Sebor <msebor@redhat.com>
9170
9171 PR tree-optimization/90879
9172 * builtins.c (check_access): Avoid using maxbound when null.
9173 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9174 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9175 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9176 conditional.
9177 (get_range_strlen): Overwrite initial maxbound when non-null.
9178 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9179 changes.
9180 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9181 (used_only_for_zero_equality): New function.
9182 (handle_builtin_memcmp): Call it.
9183 (determine_min_objsize): Return an integer instead of tree.
9184 (get_len_or_size, strxcmp_eqz_result): New functions.
9185 (maybe_warn_pointless_strcmp): New function.
9186 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9187 between a longer string and a smaller array.
9188 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9189
9190 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9191
9192 * config/darwin.c (darwin_override_options): Make the check for
9193 Objective-C ABI version more specific for 64bit code.
9194
9195 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9196
9197 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9198 indicate that the new symbol is an indirection.
9199 (machopic_indirect_call_target): Likewise.
9200 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9201 (MACHO_SYMBOL_INDIRECTION_P): New.
9202 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9203
9204 2019-10-08 Jason Merrill <jason@redhat.com>
9205
9206 * doc/invoke.texi: Document -fconcepts-ts.
9207
9208 2019-10-09 Richard Biener <rguenther@suse.de>
9209
9210 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9211 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9212
9213 2019-10-08 Richard Biener <rguenther@suse.de>
9214
9215 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9216 (_stmt_vec_info::force_single_cycle): Likewise.
9217 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9218 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9219 * tree-vect-loop.c (vectorizable_reduction): Set
9220 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9221 (vect_transform_reduction): Use them to remove redundant code.
9222 (vect_transform_cycle_phi): Likewise.
9223
9224 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9225
9226 PR tree-optimization/90836
9227 * match.pd (popcount): New pattern.
9228
9229 2019-10-08 Martin Sebor <msebor@redhat.com>
9230
9231 PR middle-end/92026
9232 PR middle-end/92014
9233 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9234 again once nbytes has been set. Set the access size when not yet set.
9235
9236 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9237
9238 * config/darwin.c (machopic_select_section): Remove dead code for
9239 old Objective-C section selection method, replace with unreachable.
9240
9241 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9242
9243 * config/darwin.c (machopic_indirect_data_reference): Check for
9244 required indirections before making direct access to defined
9245 values.
9246 (machopic_output_indirection): Place the indirected pointes for
9247 required indirections into the non-lazy symbol pointers section.
9248 (darwin_encode_section_info):
9249 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9250 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9251
9252 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9253
9254 PR target/91994
9255 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9256 instead of ALL_SSE_REG to check if function call preserves some
9257 256-bit SSE registers.
9258
9259 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9260
9261 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9262 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9263 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9264
9265 2019-10-08 Richard Biener <rguenther@suse.de>
9266
9267 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9268 (_stmt_vec_info::is_reduc_info): Add.
9269 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9270 (vectorizable_condition): Remove.
9271 (vectorizable_shift): Likewise.
9272 (vectorizable_reduction): Adjust.
9273 (info_for_reduction): New.
9274 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9275 (vect_analyze_scalar_cycles_1): ... here.
9276 (vect_analyze_loop_operations): Adjust.
9277 (needs_fold_left_reduction_p): Simplify for single caller.
9278 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9279 for nested cycles not part of double reductions.
9280 (vect_model_reduction_cost): Pass in the reduction type.
9281 (info_for_reduction): New function.
9282 (vect_create_epilog_for_reduction): Use it, access reduction
9283 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9284 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9285 (vectorize_fold_left_reduction): Remove pointless assert.
9286 (vectorizable_reduction): Analyze the full reduction when
9287 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9288 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9289 stmt code-generation to vectorizable_* in most cases. Verify
9290 code-generation only for cases handled by
9291 vect_transform_reductuon.
9292 (vect_transform_reduction): Use info_for_reduction to get at
9293 reduction meta. Simplify.
9294 (vect_transform_cycle_phi): Likewise.
9295 (vectorizable_live_operation): Likewise.
9296 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9297 at the PHI node for STMT_VINFO_REDUC_TYPE.
9298 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9299 longer necessary code.
9300 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9301 (vectorizable_condition): Likewise. Get at reduction related
9302 info via info_for_reduction.
9303 (vect_analyze_stmt): Adjust.
9304 (vect_transform_stmt): Likewise.
9305 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9306 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9307
9308 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9309
9310 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9311 -fno-fp-int-builtin-inexact default for C2X.
9312
9313 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9314 Richard Biener <rguenther@suse.de>
9315
9316 PR tree-optimization/91532
9317 * tree-if-conv.c: Include tree-ssa-dse.h.
9318 (ifcvt_local_dce): Change param from bb to loop,
9319 and call dse_classify_store.
9320 (tree_if_conversion): Pass loop instead of loop->header as arg
9321 to ifcvt_local_dce.
9322 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9323 (delete_dead_or_redundant_assignment): Remove static qualifier from
9324 declaration, and add prototype in tree-ssa-dse.h.
9325 (dse_store_status): Move to tree-ssa-dse.h.
9326 (dse_classify_store): Remove static qualifier and add new tree param
9327 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9328 * tree-ssa-dse.h: New header.
9329
9330 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9331
9332 * config/darwin.c (machopic_output_indirection): Don't put
9333 hidden symbol indirections into the .data section, use the
9334 non-lazy symbol pointers section as normal.
9335 (darwin_encode_section_info): Record if a symbol is hidden.
9336 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9337 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9338
9339 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9340
9341 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9342 predicates instead of accessing bits directly.
9343 (machopic_indirect_call_target): Likewise.
9344 (machopic_output_indirection): Likewise.
9345 (darwin_encode_section_info): Improve description. Use renamed
9346 symbol flags. Use predicate macros for variables and functions.
9347 * config/darwin.h:
9348 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9349 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9350 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9351 (MACHO_SYMBOL_VARIABLE_P): New.
9352 (MACHO_SYMBOL_DEFINED_P):New.
9353 (MACHO_SYMBOL_STATIC_P): New.
9354 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9355 (SYMBOL_FLAG_SUBT_DEP): New.
9356 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9357
9358 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9359
9360 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9361 (msp430_expand_epilogue): Likewise.
9362 * config/msp430/predicates.md: Likewise.
9363 * config/msp430/msp430.md: Likewise.
9364 Replace blocks of 8 spaces with tabs.
9365
9366 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9367
9368 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9369 * config/msp430/msp430.c (msp430_split_addsi): New.
9370 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9371 a block of C code for splitting addsi.
9372
9373 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9374
9375 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9376 ix86_expand_rounddf_32): Reorder functions.
9377 * config/i386/i386-protos.h: Update.
9378
9379 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9380
9381 * config.in: Regenerate.
9382 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9383 Add new "Yx" constraint.
9384 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9385 function.
9386 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9387 prototype.
9388 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9389 code/data region to be selected in the small memory model.
9390 (msp430_section_attr): Don't warn if the "section" and "lower"
9391 attributes are used together.
9392 (msp430_handle_generic_attribute): Likewise.
9393 (msp430_var_in_low_mem): New function.
9394 (TARGET_ENCODE_SECTION_INFO): Define.
9395 (msp430_encode_section_info): New function.
9396 (gen_prefix): Return early in the small memory model.
9397 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9398 ".lower" prefix if -m{code,data}-region=lower have been passed.
9399 (msp430_output_aligned_decl_common): Emit common symbols when
9400 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9401 set.
9402 (TARGET_ASM_FILE_END): Define.
9403 (msp430_file_end): New function.
9404 (msp430_do_not_relax_short_jumps): Allow relaxation when
9405 function will be in the lower region.
9406 (msp430_op_not_in_high_mem): New function.
9407 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9408 the 'X' operand selector.
9409 Clarify comment for 'x' operand selector.
9410 * config/msp430/msp430.h (LINK_SPEC): Propagate
9411 -m{code,data}-region to the linker via spec function
9412 msp430_propagate_region_opt.
9413 (msp430_propagate_region_opt): New prototype.
9414 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9415 (SYMBOL_FLAG_LOW_MEM): Define.
9416 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9417 selector.
9418 (zero_extendqihi2): Fix operand number used by "%X" selector.
9419 (zero_extendqisi2): Likewise.
9420 (zero_extendhisi2): Likewise.
9421 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9422 (movhi): Likewise.
9423 (addqi3): Likewise.
9424 (addhi3): Likewise.
9425 (addsi3): Likewise.
9426 (addhi3_cy): Likewise.
9427 (addchi4_cy): Likewise.
9428 (subqi3): Likewise.
9429 (subhi3): Likewise.
9430 (subsi3): Likewise.
9431 (bic<mode>3): Likewise.
9432 (and<mode>3): Likewise.
9433 (ior<mode>3): Likewise.
9434 (xor<mode>3): Likewise.
9435 (slli_1): Add missing "%X" operand selector.
9436 (slll_1): Likewise.
9437 (slll_2): Likewise.
9438 (srai_1): Likewise.
9439 (sral_1): Likewise.
9440 (sral_2): Likewise.
9441 (srli_1): Likewise.
9442 (srll_1): Likewise.
9443 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9444 selector.
9445 (cbranchhi4_real): Likewise.
9446 (cbranchqi4_reversed): Likewise.
9447 (cbranchhi4_reversed): Likewise.
9448 (*bitbranch<mode>4): Likewise.
9449 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9450 * config/msp430/msp430.opt (mcode-region=): Set default to
9451 MSP430_REGION_LOWER. Improve docstring.
9452 (mdata-region=): Likewise.
9453 (muse-lower-region-prefix): New option.
9454 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9455 mdata-region=none multilib.
9456 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9457 mdata-region=none multilib.
9458 MULTILIB_EXCEPTIONS: Remove.
9459 MULTILIB_REQUIRED: Define.
9460 * configure: Regenerate.
9461 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9462 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9463 * doc/extend.texi: Clarify comment for {upper,lower,either}
9464 function attributes.
9465 Add separate description for "lower" variable attribute.
9466
9467 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9468
9469 PR target/77918
9470 * optabs-tree.c (vcond_icode_p): New function.
9471 (vcond_eq_icode_p): Likewise.
9472 (expand_vec_cond_expr_p): Use vcond_icode_p and
9473 vcond_eq_icode_p.
9474 * optabs.c (can_vcond_compare_p): New function.
9475 * optabs.h (can_vcond_compare_p): Likewise.
9476
9477 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9478
9479 PR target/77918
9480 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9481 caller passes a non-trapping condition.
9482 (is_gimple_condexpr): Allow trapping conditions.
9483 (is_gimple_condexpr_1): New helper function.
9484 (is_gimple_condexpr_for_cond): New function, acts like old
9485 is_gimple_condexpr.
9486 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9487 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9488 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9489 * gimplify.c (gimplify_cond_expr): Use
9490 is_gimple_condexpr_for_cond.
9491 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9492 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9493 VEC_COND_EXPR.
9494 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9495 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9496 is_gimple_condexpr_for_cond, remove pointless tmp check
9497 (forward_propagate_into_cond): Remove pointless tmp check.
9498
9499 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9500
9501 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9502 match that of other gsi_next_* functions. Adjust the comment.
9503 (gsi_start_nonvirtual_phis): New function.
9504 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9505 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9506
9507 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9508
9509 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9510 setjmp situation here. Fix a verb's ending: "the exact variables or
9511 elements for which there are warnings depends" -> "... depend".
9512
9513 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9514
9515 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9516
9517 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9518
9519 * ipa-prop.c (ipa_vr::nonzero_p): New.
9520 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9521 non-zero range.
9522 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9523 * tree-vrp.c (range_has_numeric_bounds_p): New.
9524 (range_int_cst_p): Use range_has_numeric_bounds_p.
9525 (get_range_op_handler): New.
9526 (supported_types_p): New.
9527 (defined_ranges_p): New.
9528 (drop_undefines_to_varying): New.
9529 (range_fold_binary_symbolics_p): New.
9530 (range_fold_unary_symbolics_p): New.
9531 (range_fold_unary_expr): Extract out into above functions.
9532 (range_fold_binary_expr): Same.
9533 (value_range_base::normalize_addresses): New.
9534 (value_range_base::normalize_symbolics): Normalize addresses.
9535 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9536
9537 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9538
9539 * tree-vrp.c (value_range_base::singleton_p): Use
9540 value_range_base::num_pairs instead of vrp_val_is* to check
9541 if a range has one sub-range.
9542
9543 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9544
9545 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9546 DEF is not a true earlyclobber but is tied to a specific input
9547 operand, and so is effectively earlyclobber wrt inputs that have
9548 different values.
9549 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9550
9551 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9552
9553 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9554 (pod_mode): Mark operators likewise.
9555 (scalar_int_mode): Mark non-default constructors and
9556 operators with CONSTEXPR.
9557 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9558 (fixed_size_mode): Likewise.
9559
9560 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9561
9562 PR target/91994
9563 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9564 and wrap the unspec_volatile in a parallel.
9565 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9566 the unspec_volatile.
9567 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9568 unspec_volatile to be wrapped in a parallel.
9569 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9570 (ix86_add_reg_usage_to_vzerouppers): New functions.
9571 (rest_of_handle_insert_vzeroupper): Use them to add register
9572 usage information to the vzeroupper instructions.
9573
9574 2019-10-07 Richard Biener <rguenther@suse.de>
9575
9576 PR tree-optimization/91975
9577 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9578 handle invariants.
9579
9580 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9581
9582 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9583 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9584
9585 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9586
9587 * config/darwin.c (darwin_override_options): Adjust objective-c
9588 ABI version error messages to avoid punctuation and contracted
9589 negations.
9590
9591 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9592
9593 * ipa-inline.c: Fix type; compute size rather than self_size
9594 for size of caller function.
9595
9596 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9597
9598 PR target/59888
9599 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9600 choose const_data section for constants with relocations.
9601 (machopic_select_section): Pass relocation flag to
9602 darwin_rodata_section ().
9603
9604 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9605
9606 PR tree-optimization/91734
9607 * generic-match-head.c: Include fold-const-call.h.
9608 * match.pd (sqrt(x) cmp c): Check the boundary value and
9609 in case inexact computation of c*c affects comparison of the boundary,
9610 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9611 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9612 for -frounding-math. For c2, try the next smaller or larger floating
9613 point constant depending on comparison code and if it has the same
9614 sqrt as c2, use it instead of c2.
9615
9616 2019-10-04 Martin Sebor <msebor@redhat.com>
9617
9618 PR middle-end/91977
9619 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9620 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9621 uninitialized objects.
9622
9623 2019-10-04 Martin Sebor <msebor@redhat.com>
9624
9625 * builtins.c (compute_objsize): Add an argument.
9626 * tree-object-size.c (addr_object_size): Same.
9627 (compute_builtin_object_size): Same.
9628 * tree-object-size.h (compute_builtin_object): Same.
9629
9630 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9631
9632 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9633
9634 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9635
9636 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9637
9638 2019-10-04 Martin Jambor <mjambor@suse.cz>
9639
9640 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9641 fntype when switching to calling memcpy instead of memset.
9642
9643 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9644
9645 * hash-table.h (hash_table::empty_slow): Don't assign
9646 size_t values to int variables.
9647
9648 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9649
9650 * expr.c (convert_mode_scalar): Remove shadowing local var.
9651 (emit_block_move): Rename local vars.
9652 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9653 (emit_push_insn): Rename local vars.
9654 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9655 shadowing local vars.
9656 (store_constructor): Remove shadowing local vars. Rename local var.
9657 (store_field, expand_cond_expr_using_cmove,
9658 expand_expr_real_2): Remove shadowing local vars.
9659 (expand_expr_real_1,
9660 do_store_flag): Remove shadowing local vars. Rename local vars.
9661
9662 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9663
9664 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9665
9666 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9667
9668 * genmatch.c (commutate): Rename local var.
9669 (lower_cond): Reuse local var.
9670 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9671 dt_operand::gen, dt_operand::gen_gimple_expr,
9672 dt_simplify::gen): Add a param. Rename generated vars.
9673 (decision_tree::insert_operand,
9674 (capture_info::walk_match, capture_info::walk_result,
9675 capture_info::walk_c_expr): Rename local vars.
9676 (expr::gen_transform): Rename generated vars.
9677 Use snprintf. Rename local vars.
9678 (capture::gen_transform, dt_operand::get_name,
9679 dt_operand::gen_opname): Rename generated vars.
9680 (write_predicate): Adjust call to gen_kids.
9681 (parser::get_internal_capture_id): Rename generated vars.
9682 (parser::parse_expr): Rename local vars.
9683 (parser::parse_if): Remove local var.
9684 (parser::parse_pattern, add_operator): Rename local vars.
9685
9686 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9687
9688 * builtins.def (DEF_C2X_BUILTIN): New macro.
9689 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9690 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9691 (strndup): Use DEF_C2X_BUILTIN.
9692 * coretypes.h (enum function_class): Add function_c2x_misc.
9693
9694 2019-10-04 Maya Rashish <coypu@sdf.org>
9695
9696 * ira-color.c (update_costs_from_allocno): Call
9697 ira_init_register_move_cost_if_necessary.
9698
9699 2019-10-04 Jeff Law <law@redhat.com>
9700
9701 * config/h8300/h8300.md (cpymemsi): Disable.
9702 (movmd, movmd_internal_<mode>, movstr, movsd):
9703 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9704 (movmd splitter, movsd splitter): Likewise.
9705
9706 * range-op.cc (range_tests): Avoid two tests when ints and
9707 shorts are the same size.
9708
9709 2019-10-04 Richard Biener <rguenther@suse.de>
9710
9711 PR lto/91968
9712 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9713 BLOCK_VARS.
9714
9715 2019-10-04 Richard Biener <rguenther@suse.de>
9716
9717 PR tree-optimization/91982
9718 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9719 against EXTRACT_LAST_REDUCTION.
9720 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9721
9722 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9723
9724 * range-op.o (value_range_from_overflowed_bounds): Rename from
9725 adjust_overflow_bound.
9726 (value_range_with_overflow): Rename from
9727 create_range_with_overflow.
9728 (create_possibly_reversed_range): Adjusted for above renames.
9729 (operator_*::wi_fold): Same.
9730 (cross_product_operator::wi_cross_productor): Same.
9731
9732 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9733
9734 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9735 -Wshadow=compatible-local): Fix description.
9736 Add an example where -Wshadow=compatible-local does not
9737 warn.
9738
9739 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9740
9741 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9742
9743 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9744 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9745
9746 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9747
9748 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9749 can_move_by_pieces issue.
9750
9751 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9752
9753 PR target/87243
9754 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9755 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9756 is available and the user has not set one on the command line.
9757
9758 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9759
9760 PR target/91769
9761 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9762 instead of REGNO equality check on addr.reg.
9763
9764 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9765
9766 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9767 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9768 * doc/invoke.texi (inline-heuristics-hint-percent,
9769 inline-heuristics-hint-percent-O2): Document.
9770 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9771 hint attribute.
9772 (can_inline_edge_by_limits_p): Use it.
9773
9774 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9775
9776 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9777 to print CONST_DOUBLEs.
9778
9779 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9780
9781 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9782 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9783 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9784
9785 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9786
9787 * Makefile.in (OBJS): Add range.o and range-op.o.
9788 Remove wide-int-range.o.
9789 * function-tests.c (test_ranges): New.
9790 (function_tests_c_tests): Call test_ranges.
9791 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9792 range_fold_unary_expr instead of extract_range_from_unary_expr.
9793 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9794 * range-op.cc: New file.
9795 * range-op.h: New file.
9796 * range.cc: New file.
9797 * range.h: New file.
9798 * selftest.h (range_tests): New prototype.
9799 * ssa.h: Include range.h.
9800 * tree-vrp.c (value_range_base::value_range_base): New
9801 constructors.
9802 (value_range_base::singleton_p): Do not call
9803 ranges_from_anti_range until sure we will need to.
9804 (value_range_base::type): Rename gcc_assert to
9805 gcc_checking_assert.
9806 (vrp_val_is_max): New argument.
9807 (vrp_val_is_min): Same.
9808 (wide_int_range_set_zero_nonzero_bits): Move from
9809 wide-int-range.cc.
9810 (extract_range_into_wide_ints): Remove.
9811 (extract_range_from_multiplicative_op): Remove.
9812 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9813 from extract_range_from_binary_expr.
9814 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9815 from extract_range_from_binary_expr.
9816 (extract_range_from_binary_expr): Remove.
9817 (normalize_for_range_ops): New.
9818 (range_fold_binary_expr): New.
9819 (range_fold_unary_expr): New.
9820 (value_range_base::num_pairs): New.
9821 (value_range_base::lower_bound): New.
9822 (value_range_base::upper_bound): New.
9823 (value_range_base::upper_bound): New.
9824 (value_range_base::contains_p): New.
9825 (value_range_base::invert): New.
9826 (value_range_base::union_): New.
9827 (value_range_base::intersect): New.
9828 (range_compatible_p): New.
9829 (value_range_base::operator==): New.
9830 (determine_value_range_1): Call range_fold_*expr instead of
9831 extract_range_from_*expr.
9832 * tree-vrp.h (class value_range_base): Add new constructors.
9833 Add methods for union_, intersect, operator==, contains_p,
9834 num_pairs, lower_bound, upper_bound, invert.
9835 (vrp_val_is_min): Add handle_pointers argument.
9836 (vrp_val_is_max): Same.
9837 (extract_range_from_unary_expr): Remove.
9838 (extract_range_from_binary_expr): Remove.
9839 (range_fold_unary_expr): New.
9840 (range_fold_binary_expr): New.
9841 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9842 range_fold_binary_expr instead of extract_range_from_binary_expr.
9843 (vr_values::extract_range_basic): Same.
9844 (vr_values::extract_range_from_unary_expr): Call
9845 range_fold_unary_expr instead of extract_range_from_unary_expr.
9846 * wide-int-range.cc: Remove.
9847 * wide-int-range.h: Remove.
9848
9849 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9850
9851 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9852 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9853 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9854 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9855 macro.
9856
9857 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9858
9859 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9860 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9861 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9862 * glimits.h: Likewise.
9863
9864 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9865
9866 PR rtl-optimization/91976
9867 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9868 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9869 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9870
9871 2019-10-02 Martin Sebor <msebor@redhat.com>
9872
9873 PR tree-optimization/80936
9874 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9875
9876 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9877
9878 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9879 instead of reg_class_contents[ALL_REGS].
9880
9881 2019-09-30 Jason Merrill <jason@redhat.com>
9882
9883 Add some hash_map_safe_* functions like vec_safe_*.
9884 * hash-map.h (default_hash_map_size): New variable.
9885 (create_ggc): Use it as default argument.
9886 (hash_map_maybe_create, hash_map_safe_get)
9887 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9888
9889 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9890
9891 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9892 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9893 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9894 (can_inline_edge_by_limits_p): Use it.
9895 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9896 (want_inline_small_function_p): Use O2 bounds.
9897 (edge_badness): LIkewise.
9898 * opts.c (default_options): Add OPT_finline_functions.
9899 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9900 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9901 New parameters.
9902 * doc/invoke.texi (-finline-functions): Update documentation.
9903 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9904 inline-min-speedup-O2): Document.
9905 (early-inlining-insns-O2): Simplify docs.
9906
9907 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9908
9909 PR rtl-optimization/87047
9910 * ifcvt.c (average_cost): New static function. Use it...
9911 (noce_process_if_block): ... here.
9912
9913 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9914
9915 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9916 * config/rs6000/rs6000-string.c (expand_block_move): Add
9917 might_overlap parm.
9918 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9919 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9920
9921 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9922
9923 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9924 (expand_builtin_memcpy): Use might_overlap parm.
9925 (expand_builtin_mempcpy_args): Use might_overlap parm.
9926 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9927 (expand_builtin_memory_copy_args): Add might_overlap parm.
9928 * expr.c (emit_block_move_via_cpymem): Rename to
9929 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9930 or movmem optab as appropriate.
9931 (emit_block_move_hints): Add might_overlap parm, do the right
9932 thing for might_overlap==true.
9933 * expr.h (emit_block_move_hints): Update prototype.
9934
9935 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9936
9937 * tree-eh.h (unsplit_eh_edges): Declare.
9938 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9939 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9940 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9941 (struct store_immediate_info): Add lp_nr field.
9942 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9943 initialize lp_nr with it.
9944 (struct merged_store_group): Add lp_nr and only_constants fields.
9945 (merged_store_group::merged_store_group): Initialize them.
9946 (merged_store_group::can_be_merged_into): Deal with them.
9947 (pass_store_merging): Rename terminate_and_release_chain into
9948 terminate_and_process_chain.
9949 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9950 renaming and remove useless assertions.
9951 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9952 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9953 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9954 instead of always recomputing it and compare lp_nr.
9955 (imm_store_chain_info::output_merged_store): If the group is in an
9956 active EH region, register new stores if they can throw. Moreover,
9957 if the insertion has created new basic blocks, adjust the PHI nodes
9958 of the post landing pad.
9959 (imm_store_chain_info::output_merged_stores): If the original stores
9960 are in an active EH region, deregister them.
9961 (lhs_valid_for_store_merging_p): Prettify.
9962 (adjust_bit_pos): New function extracted from...
9963 (mem_valid_for_store_merging): ...here. Use it for the base address
9964 and also for the offset if it is the addition of a constant.
9965 (lp_nr_for_store): New function.
9966 (pass_store_merging::process_store): Change return type to bool.
9967 Call lp_nr_for_store to initialize the store info. Propagate the
9968 return status of various called functions to the return value.
9969 (store_valid_for_store_merging_p): New predicate.
9970 (enum basic_block_status): New enumeration.
9971 (get_status_for_store_merging): New function.
9972 (pass_store_merging::execute): If the function can throw and catch
9973 non-call exceptions, unsplit the EH edges on entry and clean up the
9974 CFG on exit if something changed. Call get_status_for_store_merging
9975 for every basic block and keep the chains open across basic blocks
9976 when possible. Terminate and process open chains at the end, if any.
9977
9978 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9979
9980 * reginfo.c (globalize_reg): Fix shadowed variable in
9981 function_abis walk.
9982
9983 2019-10-02 Martin Jambor <mjambor@suse.cz>
9984
9985 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9986 do not compute some stuff when set.
9987 (cgraph_node::create_edge): Likewise.
9988 (cgraph_node::create_indirect_edge): Renamed last parameter to
9989 coning_p and flipped its meaning, don't even calculate
9990 inline_failed when set.
9991 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9992 (symbol_table::::create_edge): Likewise.
9993 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9994 the default value.
9995 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9996 call graph edge creating functions.
9997
9998 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9999
10000 PR c++/91222
10001 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10002 namespace types.
10003
10004 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10005
10006 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10007
10008 2019-10-02 Richard Biener <rguenther@suse.de>
10009
10010 * tree-vectorizer.h (vect_transform_reduction): Declare.
10011 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10012 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10013 stmt transform to ...
10014 (vect_transform_reduction): ... this.
10015
10016 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10017
10018 * omp-low.c (lower_omp_target): Dereference optional argument
10019 to work with the right pointer.
10020
10021 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10022
10023 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10024 false.
10025 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10026 * langhooks.h (omp_is_optional_argument): New hook.
10027 * omp-general.c (omp_is_optional_argument): New.
10028 * omp-general.h (omp_is_optional_argument): New declaration.
10029 * omp-low.c (lower_omp_target): Create temporary for received value
10030 and take the address for new_var if the original variable was a
10031 DECL_BY_REFERENCE. Use size of referenced object when a
10032 pass-by-reference optional argument used as argument to firstprivate.
10033
10034 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10035
10036 PR tree-optimization/91940
10037 * tree-vect-patterns.c: Include tree-vector-builder.h and
10038 vec-perm-indices.h.
10039 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10040 unpromoting the argument back to uint16_t, or by converting into a
10041 rotate, or into shifts plus ior.
10042
10043 2019-10-02 Richard Biener <rguenther@suse.de>
10044
10045 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10046 New.
10047 (vect_transform_cycle_phi): Declare.
10048 * tree-vect-stmts.c (vect_transform_stmt): Call
10049 vect_transform_cycle_phi.
10050 * tree-vect-loop.c (vectorizable_reduction): Split out
10051 PHI transformation stage to ...
10052 (vect_transform_cycle_phi): ... here.
10053
10054 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10055
10056 PR middle-end/91957
10057 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10058 eliminable registers.
10059 (make_hard_regno_live): Likewise, and don't make them live.
10060
10061 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10062
10063 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10064 Call pp_emit_prefix.
10065 (layout::print_source_line): Likewise.
10066 (layout::start_annotation_line): Likewise.
10067 (diagnostic_show_locus): Remove call to temporarily clear the
10068 prefix.
10069 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10070 interaction of pp_set_prefix with rulers and fix-it hints.
10071 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10072 prefix when calling diagnostic_show_locus, rather than destroying
10073 it afterwards.
10074 (print_parseable_fixits): Temporarily clear prefix.
10075 * pretty-print.c (pp_format): Save and restore line_length, rather
10076 than assuming it is zero.
10077 (pp_output_formatted_text): Remove assertion that line_length is
10078 zero.
10079
10080 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10081
10082 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10083 Rename to ...
10084 (nonoverlapping_refs_since_match_p): ... this; handle also
10085 ARRAY_REFs.
10086 (alias_stats): Update stats.
10087 (dump_alias_stats): Likewise.
10088 (cheap_array_ref_low_bound): New function.
10089 (aliasing_matching_component_refs_p): Add partial_overlap
10090 argument;
10091 pass it to nonoverlapping_refs_since_match_p.
10092 (aliasing_component_refs_walk): Update call of
10093 aliasing_matching_component_refs_p
10094 (nonoverlapping_array_refs_p): New function.
10095 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10096 indirect_refs_may_alias_p): Update calls of
10097 nonoverlapping_refs_since_match_p.
10098
10099 2019-10-01 Maya Rashish <coypu@sdf.org>
10100
10101 PR target/85401
10102 * ira-color.c (allocno_copy_cost_saving): Call
10103 ira_init_register_move_cost_if_necessary.
10104
10105 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10106
10107 * Makefile.in (gnat_install_lib): New variable.
10108 * configure.ac: Substitute it.
10109 * configure: Regenerate.
10110
10111 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10112
10113 PR lto/91222
10114 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10115 is matched with non-C++ type
10116
10117 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10118
10119 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10120 after local CSE.
10121
10122 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10123
10124 * doc/invoke.texi (early-inlining-insns-O2): Document.
10125 (early-inlining-insns): Update.
10126 * params.def (early-inlining-insns-O2): New bound.
10127 (early-inlining-insns): Update docs.
10128 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10129
10130 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10131
10132 PR target/88562
10133 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10134 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10135 a memory access insn.
10136
10137 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10138
10139 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10140 vpmsumd.
10141
10142 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10143
10144 PR target/77918
10145 * config/s390/s390.c (s390_expand_vec_compare): Use
10146 gen_vec_cmpordered and gen_vec_cmpunordered.
10147 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10148 vec_unordered): Delete.
10149 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10150 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10151 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10152 (vec_cmp<code>): Generic dispatcher.
10153
10154 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10155
10156 PR target/77918
10157 * config/s390/vector.md (V_HW): Add V1TI in order to make
10158 vcond$a$b generate vcondv1tiv1tf.
10159
10160 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10161
10162 PR rtl-optimization/91948
10163 * ira-build.c (ira_create_allocno): Initialize
10164 ALLOCNO_CROSSED_CALLS_ABIS.
10165 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10166 than regno to ira_need_caller_save_p.
10167
10168 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10169
10170 * config/i386/i386-options.c
10171 (ix86_recompute_optlev_based_flags): New, moved out of...
10172 (ix86_option_override_internal): ... this. Call it.
10173 (ix86_override_options_after_change): Call it here too.
10174
10175 PR debug/91507
10176 * dwarf2out.c (override_type_for_decl_p): New.
10177 (gen_variable_die): Use it.
10178
10179 2019-10-01 Richard Biener <rguenther@suse.de>
10180
10181 * tree-vect-loop.c (vectorizable_reduction): Move variables
10182 to where they are used.
10183
10184 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10185
10186 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10187 (build_def_use): Use PC instead of CC0 in a comment.
10188
10189 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10190
10191 * rtl.def (CLOBBER_HIGH): Delete.
10192 * doc/rtl.texi (clobber_high): Remove documentation.
10193 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10194 (reg_is_clobbered_by_clobber_high): Delete.
10195 (gen_hard_reg_clobber_high): Likewise.
10196 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10197 * cfgexpand.c (expand_gimple_stmt): Likewise.
10198 * combine-stack-adj.c (single_set_for_csa): Likewise.
10199 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10200 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10201 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10202 * cse.c (invalidate_reg): Remove clobber_high parameter.
10203 (invalidate): Update call accordingly.
10204 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10205 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10206 (count_reg_usage, insn_live_p): Likewise.
10207 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10208 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10209 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10210 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10211 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10212 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10213 (mark_nonreg_stores_2): Likewise.
10214 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10215 (df_get_call_refs): Likewise.
10216 * dwarf2out.c (mem_loc_descriptor): Likewise.
10217 * emit-rtl.c (verify_rtx_sharing): Likewise.
10218 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10219 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10220 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10221 * genemit.c (gen_exp, gen_insn): Likewise.
10222 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10223 * haifa-sched.c (haifa_classify_rtx): Likewise.
10224 * ira-build.c (create_insn_allocnos): Likewise.
10225 * ira-costs.c (scan_one_insn): Likewise.
10226 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10227 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10228 * jump.c (mark_jump_label_1): Likewise.
10229 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10230 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10231 handling.
10232 (mark_not_eliminable): Likewise.
10233 * lra-lives.c (process_bb_lives): Likewise.
10234 * lra.c (new_insn_reg): Remove clobber_high parameter.
10235 (collect_non_operand_hard_regs): Likewise. Update call to new
10236 insn_reg. Remove CLOBBER_HIGH handling.
10237 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10238 to collect_non_operand_hard_regs.
10239 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10240 Update call to new_insn_reg.
10241 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10242 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10243 (move2add_note_store): Likewise.
10244 * print-rtl.c (print_pattern): Likewise.
10245 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10246 (if_test_bypass_p): Likewise.
10247 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10248 * reginfo.c (reg_scan_mark_refs): Likewise.
10249 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10250 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10251 (forget_old_reloads_1): Likewise.
10252 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10253 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10254 (dbr_schedule): Likewise.
10255 * resource.c (update_live_status, mark_referenced_resources)
10256 (mark_set_resources): Likewise.
10257 * rtl.c (copy_rtx): Likewise.
10258 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10259 (note_pattern_stores): Likewise.
10260 (reg_is_clobbered_by_clobber_high): Delete.
10261 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10262 CLOBBER_HIGH handling.
10263
10264 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10265
10266 PR target/91452
10267 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10268 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10269 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10270 Handle ARM_PCS_TLSDESC.
10271 (aarch64_tlsdesc_abi_id): New function.
10272 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10273 rtx instead of a list of clobbers and clobber_highs.
10274 (tlsdesc_small_<mode>): Update accordingly.
10275
10276 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10277
10278 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10279 extra callee_abi argument.
10280 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10281 Insert a CALLEE_ABI unspec into the call pattern as the second
10282 element in the PARALLEL.
10283 (aarch64_simd_call_p): Delete.
10284 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10285 the new CALLEE_ABI element of the PARALLEL.
10286 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10287 from the function type, if given.
10288 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10289 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10290 when passed the function_arg_info end marker.
10291 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10292 final argument of gen_sibcall.
10293 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10294 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10295 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10296 pattern.
10297 (call_value): Likewise operand 3.
10298 (sibcall): Likewise operand 2. Place the unspec before rather than
10299 after the return.
10300 (sibcall_value): Likewise operand 3.
10301 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10302 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10303 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10304 constraint strings.
10305 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10306
10307 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10308
10309 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10310 choose_hard_reg_mode.
10311 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10312
10313 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10314
10315 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10316 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10317 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10318
10319 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10320
10321 * diagnostic-show-locus.c (line_label::line_label): Initialize
10322 m_has_vbar.
10323 (line_label::comparator): Reverse the sort order by m_state_idx,
10324 so that when the list is walked backwards the labels appear in
10325 order of insertion into the rich_location.
10326 (line_label::m_has_vbar): New field.
10327 (layout::print_any_labels): When dealing with multiple labels at
10328 the same line and column, only print vertical bars for the one
10329 with the highest label_line.
10330 (selftest::test_one_liner_labels): Update test for multiple labels
10331 to expect the labels to be in the order of insertion into the
10332 rich_location. Add a test for many such labels, where the column
10333 numbers are out-of-order relative to the insertion order.
10334
10335 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10336
10337 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10338 (ix86_frame::expensive_count): Likewise.
10339 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10340 of use_fast_prologue_epilogue robust against incidental changes
10341 in function size.
10342
10343 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10344
10345 PR target/77918
10346 * config/s390/vector.md (vec_unordered<mode>): Call
10347 gen_vec_ordered<mode>.
10348
10349 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10350
10351 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10352 New pattern for ASRD.
10353 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10354 * internal-fn.def (IFN_DIV_POW2): New internal function.
10355 * optabs.def (sdiv_pow2_optab): New optab.
10356 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10357 Modify pattern to support new operation.
10358 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10359 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10360 Document new target selector.
10361
10362 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10363
10364 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10365 to test whether we're compiling a vector PCS function and to test
10366 whether the function needs to save a particular register.
10367 Remove the vector PCS handling of df_set_regs_ever_live.
10368 (aarch64_components_for_bb): Use crtl->abi to test whether
10369 the function needs to save a particular register.
10370 (aarch64_process_components): Use crtl->abi to test whether
10371 we're compiling a vector PCS function.
10372 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10373 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10374
10375 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10376
10377 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10378 Delete.
10379 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10380 whether the block calls a function that clobbers more registers
10381 than the current function is allowed to.
10382 (aarch64_use_simple_return_insn_p): Delete.
10383 * config/aarch64/aarch64.md (simple_return): Remove condition.
10384
10385 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10386
10387 * function-abi.h (function_abi_aggregator): New class.
10388 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10389 function.
10390 * ira.c (update_equiv_regs_prescan): New function. Call
10391 set_paradoxical_subreg here rather than...
10392 (update_equiv_regs): ...here.
10393 (ira): Call update_equiv_regs_prescan.
10394
10395 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10396
10397 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10398 IN_TARGET_CODE.
10399 (call_used_or_fixed_regs): Likewise.
10400 (call_used_or_fixed_reg_p): Likewise.
10401 * reginfo.c (regs_invalidated_by_call): New macro.
10402
10403 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10404
10405 * shrink-wrap.c: Include function-abi.h.
10406 (requires_stack_frame_p): Use crtl->abi to test whether the
10407 current function can use a register without saving it first.
10408
10409 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10410
10411 * sel-sched-ir.h (_def::crosses_call): Replace with...
10412 (_def::crossed_call_abis): ..this new field.
10413 (def_list_add): Take a mask of ABIs instead of a crosses_call
10414 boolean.
10415 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10416 of _def accordingly.
10417 * sel-sched.c: Include function-abi.h.
10418 (hard_regs_data::regs_for_call_clobbered): Delete.
10419 (reg_rename::crosses_call): Replace with...
10420 (reg_rename::crossed_call_abis): ...this new field.
10421 (fur_static_params::crosses_call): Replace with...
10422 (fur_static_params::crossed_call_abis): ...this new field.
10423 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10424 (init_hard_regs_data): Use crtl->abi to test which registers the
10425 current function would need to save before it uses them.
10426 (mark_unavailable_hard_regs): Update handling of call-clobbered
10427 registers, using call_clobbers_in_region to find out which registers
10428 might be call-clobbered (but without taking -fipa-ra into account
10429 for now). Remove separate handling of partially call-clobbered
10430 registers.
10431 (verify_target_availability): Use crossed_call_abis instead of
10432 crosses_call.
10433 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10434 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10435
10436 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10437
10438 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10439 function to test whether a register is fully or partly clobbered.
10440
10441 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10442
10443 * rtlanal.c: Include function-abi.h.
10444 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10445 function and clobbers_reg_p to test whether the register
10446 is call-clobbered.
10447 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10448 to get the ABI of the called function and full_reg_clobbers to
10449 get the set of fully call-clobbered registers. Warn about the
10450 pitfalls of using this mode.
10451
10452 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10453
10454 * reload.c: Include function-abi.h.
10455 (find_equiv_reg): Use clobbers_reg_p to test whether either
10456 of the equivalent registers is clobbered by a call.
10457 * reload1.c: Include function-abi.h.
10458 (reg_reloaded_call_part_clobbered): Delete.
10459 (reload): Use crtl->abi to test which registers would need
10460 saving in the prologue before use.
10461 (find_reg): Likewise.
10462 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10463 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10464 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10465
10466 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10467
10468 * regrename.h (du_head::call_clobber_mask): New field.
10469 (du_head::need_caller_save_reg): Replace with...
10470 (du_head::call_abis): ...this new field.
10471 * regrename.c: Include function-abi.h.
10472 (call_clobbered_in_chain_p): New function.
10473 (check_new_reg_p): Use crtl->abi when deciding whether a register
10474 is free for use after RA. Use call_clobbered_in_chain_p to test
10475 whether a candidate register would be clobbered by a call.
10476 (find_rename_reg): Don't add call-clobber conflicts here.
10477 (rename_chains): Check call_abis instead of need_caller_save_reg.
10478 (merge_chains): Update for changes to du_head.
10479 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10480 target. Record the ABI identifier in call_abis and the set of
10481 fully or partially clobbered registers in call_clobber_mask.
10482 Add fully-clobbered registers to hard_conflicts here rather
10483 than in find_rename_reg.
10484 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10485 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10486 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10487 function-abi.h.
10488 * config/c6x/c6x.c: Likewise.
10489
10490 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10491
10492 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10493 mode of the register when deciding whether it is no longer
10494 available after a call.
10495
10496 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10497
10498 * recog.c: Include function-abi.h.
10499 (peep2_find_free_register): Use crtl->abi when deciding whether
10500 a register is free for use after RA.
10501
10502 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10503
10504 * postreload-gcse.c: Include regs.h and function-abi.h.
10505 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10506 call insn target. Conservatively assume that partially-clobbered
10507 registers are altered.
10508
10509 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10510
10511 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10512 when deciding whether a register is free for use after RA.
10513 (reload_combine): Remove unnecessary use of fixed_reg_set.
10514 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10515 call insn target. Use reg_mode when testing whether a register
10516 is no longer available.
10517
10518 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10519
10520 * target.def (return_call_with_max_clobbers): Delete.
10521 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10522 * doc/tm.texi: Regenerate.
10523 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10524 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10525 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10526 (lra_reg::call_insn): Delete.
10527 * lra.c: Include function-abi.h.
10528 (initialize_lra_reg_info_element): Don't initialize the fields above.
10529 (lra): Use crtl->abi to test whether the current function needs to
10530 save a register in the prologue. Remove special pre-inheritance
10531 lra_create_live_ranges pass for flag_ipa_ra.
10532 * lra-assigns.c: Include function-abi.h
10533 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10534 function needs to save a register in the prologue.
10535 (lra_assign): Assert that registers aren't allocated to a
10536 conflicting register, rather than checking only for overlaps
10537 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10538 and for registers that are not live across a call.
10539 * lra-constraints.c (last_call_for_abi): New variable.
10540 (full_and_partial_call_clobbers): Likewise.
10541 (setup_next_usage_insn): Remove the register from
10542 full_and_partial_call_clobbers.
10543 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10544 whether the register needs a caller save.
10545 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10546 of call_used_or_fixed_regs.
10547 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10548 full_and_partial_call_clobbers.
10549 * lra-lives.c (check_pseudos_live_through_calls): Replace
10550 last_call_used_reg_set and call_insn arguments with an abi argument.
10551 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10552 as the set of conflicting registers.
10553 (calls_have_same_clobbers_p): Delete.
10554 (process_bb_lives): Track the ABI of the last call instead of an
10555 insn/HARD_REG_SET pair. Update calls to
10556 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10557 the set of registers that could be clobbered by an EH edge.
10558 Include partially-clobbered as well as fully-clobbered registers.
10559 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10560 * lra-remat.c: Include function-abi.h.
10561 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10562 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10563 registers and bitmap_view to combine them into dead_regs.
10564 (call_used_input_regno_present_p): Take a function_abi argument
10565 and use it to test whether a register is call-clobbered.
10566 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10567 call insn target. Update tje call to call_used_input_regno_present_p.
10568 (do_remat): Likewise.
10569 (lra_remat): Remove the initialization of call_used_regs_arr_len
10570 and call_used_regs_arr.
10571
10572 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10573
10574 * loop-iv.c: Include regs.h and function-abi.h.
10575 (simplify_using_initial_values): Use insn_callee_abi to get the
10576 ABI of the call insn target. Conservatively assume that
10577 partially-clobbered registers are altered.
10578
10579 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10580
10581 * function-abi.h (call_clobbers_in_region): Declare.
10582 (call_clobbered_in_region_p): New function.
10583 * function-abi.cc (call_clobbers_in_region): Likewise.
10584 * ira-int.h: Include function-abi.h.
10585 (ira_allocno::crossed_calls_abis): New field.
10586 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10587 (ira_need_caller_save_regs): New function.
10588 (ira_need_caller_save_p): Likewise.
10589 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10590 of call_used_or_fixed_regs.
10591 (do_reload): Use crtl->abi to test whether the current function
10592 needs to save a register in the prologue. Count registers that
10593 need to be saved rather than registers that don't.
10594 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10595 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10596 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10597 (propagate_some_info_from_allocno): Likewise.
10598 (copy_info_to_removed_store_destinations): Likewise.
10599 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10600 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10601 (ira_build): Use ira_need_caller_save_regs instead of
10602 call_used_or_fixed_regs.
10603 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10604 whether the current function would need to save a register
10605 before using it.
10606 (calculate_spill_cost): Likewise.
10607 (allocno_reload_assign): Use ira_need_caller_save_regs and
10608 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10609 * ira-conflicts.c (ira_build_conflicts): Use
10610 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10611 as the set of call-clobbered registers. Remove the
10612 call_used_or_fixed_regs mask from the calculation of
10613 temp_hard_reg_set and mask its use instead. Remove special
10614 handling of partially-clobbered registers.
10615 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10616 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10617 calculate the set of conflicting registers for calls that
10618 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10619 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10620 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10621 Use eh_edge_abi to calculate the set of registers that could
10622 be clobbered by an EH edge. Include partially-clobbered as
10623 well as fully-clobbered registers.
10624
10625 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10626
10627 * haifa-sched.c: Include function-abi.h.
10628 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10629 the function would need to save a register before using it.
10630
10631 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10632
10633 * gcse.c: Include function-abi.h.
10634 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10635 the call insn target. Invalidate partially call-clobbered
10636 registers as well as fully call-clobbered ones.
10637
10638 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10639
10640 * function.c (aggregate_value_p): Work out which ABI the
10641 function is using before testing which registers are at least
10642 partly preserved by a call.
10643
10644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10645
10646 * early-remat.c: Include regs.h and function-abi.h.
10647 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10648 registers here.
10649 (early_remat::restrict_remat_for_unavail_regs): New function.
10650 (early_remat::restrict_remat_for_call): Likewise.
10651 (early_remat::process_block): Before calling emit_remat_insns
10652 for a previous call in the block, invalidate any candidates
10653 that would clobber call-preserved registers.
10654 (early_remat::emit_remat_insns_for_block): Likewise for the
10655 final call in a block. Do the same thing for live-in registers
10656 when calling emit_remat_insns at the head of a block.
10657
10658 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10659
10660 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10661 whether the current function needs to save at least part of a
10662 register before using it.
10663 (df_get_exit_block_use_set): Likewise for epilogue restores.
10664
10665 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10666
10667 * df-problems.c: Include regs.h and function-abi.h.
10668 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10669 sparse_invalidated_by_eh and dense_invalidated_by_call to
10670 dense_invalidated_by_eh.
10671 (df_print_bb_index): Update accordingly.
10672 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10673 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10674 that are clobbered by an EH edge. Clobber partially-clobbered
10675 registers as well as fully-clobbered ones.
10676 (df_md_confluence_n): Likewise.
10677 (df_rd_local_compute): Likewise. Update for changes to
10678 df_rd_problem_data.
10679 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10680 of registers that are clobbered by an EH edge. Includde partially-
10681 clobbered registers as well as fully-clobbered ones.
10682
10683 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10684
10685 * cselib.c (cselib_process_insn): If we know what mode a
10686 register was set in, check whether it is clobbered in that
10687 mode by a call. Only fall back to reg_raw_mode if that fails.
10688
10689 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10690
10691 * cse.c: Include regs.h and function-abi.h.
10692 (invalidate_for_call): Take the call insn as an argument.
10693 Use insn_callee_abi to get the ABI of the call and invalidate
10694 partially clobbered registers as well as fully clobbered ones.
10695 (cse_insn): Update call accordingly.
10696
10697 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10698
10699 * combine.c: Include function-abi.h.
10700 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10701 of the target of call insns. Invalidate partially-clobbered
10702 registers as well as fully-clobbered ones.
10703
10704 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10705
10706 * cfgloopanal.c: Include regs.h and function-abi.h.
10707 (init_set_costs): Use default_function_abi to test whether
10708 a general register is call-clobbered.
10709
10710 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10711
10712 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10713 instead of the call-clobbered sets.
10714
10715 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10716
10717 * caller-save.c (setup_save_areas): Remove redundant |s of
10718 fixed_reg_set.
10719 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10720 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10721 value is useful.
10722
10723 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10724
10725 * rtl.h (predefined_function_abi): Declare.
10726 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10727 instead of a boolean call_save flag.
10728 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10729 accordingly.
10730 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10731 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10732 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10733 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10734 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10735 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10736 * reginfo.c (init_reg_modes_target): Likewise.
10737 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10738 instead of a boolean call_save flag.
10739 * targhooks.c: Include function-abi.h.
10740 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10741 using eh_edge_abi to choose the mode.
10742
10743 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10744
10745 * target.def (hard_regno_call_part_clobbered): Take an ABI
10746 identifier instead of an rtx_insn.
10747 * doc/tm.texi: Regenerate.
10748 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10749 (hook_bool_uint_uint_mode_false): New function.
10750 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10751 (hook_bool_uint_uint_mode_false): New function.
10752 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10753 Take an ABI identifier instead of an rtx_insn.
10754 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10755 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10756 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10757 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10758 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10759 Likewise.
10760 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10761 * cselib.c: Include function-abi.h.
10762 (cselib_process_insn): Update call to
10763 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10764 to get the appropriate ABI identifier.
10765 * function-abi.cc (predefined_function_abi::initialize): Update call
10766 to targetm.hard_regno_call_part_clobbered.
10767 * ira-conflicts.c (ira_build_conflicts): Likewise.
10768 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10769 * lra-constraints.c: Include function-abi.h.
10770 (need_for_call_save_p): Update call to
10771 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10772 to get the appropriate ABI identifier.
10773 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10774 * regcprop.c (copyprop_hardreg_forward_1): Update call
10775 to targetm.hard_regno_call_part_clobbered.
10776 * reginfo.c (choose_hard_reg_mode): Likewise.
10777 * regrename.c (check_new_reg_p): Likewise.
10778 * reload.c (find_equiv_reg): Likewise.
10779 * reload1.c (emit_reload_insns): Likewise.
10780 * sched-deps.c: Include function-abi.h.
10781 (deps_analyze_insn): Update call to
10782 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10783 to get the appropriate ABI identifier.
10784 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10785 call to targetm.hard_regno_call_part_clobbered.
10786 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10787
10788 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10789
10790 * config/i386/i386.c: Include function-abi.h.
10791 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10792 if they preserve some 256-bit or 512-bit SSE registers.
10793
10794 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10795
10796 * target.def (insn_callee_abi): New hook.
10797 (remove_extra_call_preserved_regs): Delete.
10798 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10799 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10800 * doc/tm.texi: Regenerate.
10801 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10802 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10803 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10804 insn argument.
10805 (aarch64_remove_extra_call_preserved_regs): Delete.
10806 (aarch64_insn_callee_abi): New function.
10807 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10808 (TARGET_INSN_CALLEE_ABI): New macro.
10809 * rtl.h (get_call_fndecl): Declare.
10810 (cgraph_rtl_info): Fix formatting. Tweak comment for
10811 function_used_regs. Remove function_used_regs_valid.
10812 * rtlanal.c (get_call_fndecl): Moved from final.c
10813 * function-abi.h (insn_callee_abi): Declare.
10814 (target_function_abi_info): Mention insn_callee_abi.
10815 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10816 way to get_call_reg_set_usage did.
10817 (insn_callee_abi): New function.
10818 * regs.h (get_call_reg_set_usage): Delete.
10819 * final.c: Include function-abi.h.
10820 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10821 function_used_regs before the main loop rather than afterwards.
10822 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10823 if function_used_regs ends up not being useful.
10824 (get_call_fndecl): Move to rtlanal.c
10825 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10826 * caller-save.c: Include function-abi.h.
10827 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10828 instead of get_call_reg_set_usage.
10829 * cfgcleanup.c: Include function-abi.h.
10830 (old_insns_match_p): Use insn_callee_abi instead of
10831 get_call_reg_set_usage.
10832 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10833 a tree.
10834 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10835 function_used_regs.
10836 * df-scan.c: Include function-abi.h.
10837 (df_get_call_refs): Use insn_callee_abi instead of
10838 get_call_reg_set_usage.
10839 * ira-lives.c: Include function-abi.h.
10840 (process_bb_node_lives): Use insn_callee_abi instead of
10841 get_call_reg_set_usage.
10842 * lra-lives.c: Include function-abi.h.
10843 (process_bb_lives): Use insn_callee_abi instead of
10844 get_call_reg_set_usage.
10845 * postreload.c: Include function-abi.h.
10846 (reload_combine): Use insn_callee_abi instead of
10847 get_call_reg_set_usage.
10848 * regcprop.c: Include function-abi.h.
10849 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10850 get_call_reg_set_usage.
10851 * resource.c: Include function-abi.h.
10852 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10853 instead of get_call_reg_set_usage.
10854 * var-tracking.c: Include function-abi.h.
10855 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10856 get_call_reg_set_usage.
10857
10858 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10859
10860 * target.def (fntype_abi): New target hook.
10861 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10862 * doc/tm.texi: Regenerate.
10863 * target.h (predefined_function_abi): Declare.
10864 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10865 if defined.
10866 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10867 * config/aarch64/aarch64.c: Include function-abi.h.
10868 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10869 (TARGET_FNTYPE_ABI): Define.
10870
10871 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10872
10873 * Makefile.in (OBJS): Add function-abi.o.
10874 (GTFILES): Add function-abi.h.
10875 * function-abi.cc: New file.
10876 * function-abi.h: Likewise.
10877 * emit-rtl.h (rtl_data::abi): New field.
10878 * function.c: Include function-abi.h.
10879 (prepare_function_start): Initialize crtl->abi.
10880 * read-rtl-function.c: Include regs.h and function-abi.h.
10881 (read_rtl_function_body): Initialize crtl->abi.
10882 (read_rtl_function_body_from_file_range): Likewise.
10883 * reginfo.c: Include function-abi.h.
10884 (init_reg_sets_1): Initialize default_function_abi.
10885 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10886 when making a register global.
10887 * target-globals.h (this_target_function_abi_info): Declare.
10888 (target_globals::function_abi_info): New field.
10889 (restore_target_globals): Copy it.
10890 * target-globals.c: Include function-abi.h.
10891 (default_target_globals): Initialize the function_abi_info field.
10892 (target_globals): Allocate it.
10893 (save_target_globals): Free it.
10894
10895 2019-09-30 Nick Clifton <nickc@redhat.com>
10896
10897 PR target/85978
10898 * config/frv/frv.c (frv_register_move_cost): Add break statements
10899 to avoid falling through to the wrong cases. Tidy code.
10900
10901 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10902
10903 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10904 For multi-registers modes, test how big each register part is.
10905
10906 2019-09-30 Nick Clifton <nickc@redhat.com>
10907
10908 PR target/59205
10909 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10910 (TARGET_ASM_SELECT_SECTION): Remove definition.
10911 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10912
10913 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10914
10915 * emit-rtl.c (init_raw_REG): New function.
10916 (gen_raw_REG): Use init_raw_REG.
10917 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10918 macros.
10919 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10920 * rtl.h (rtx_init): New function.
10921 (rtx_alloca): New function.
10922 (init_raw_REG): New function.
10923 (alloca_raw_REG): New macro.
10924
10925 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10926
10927 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10928 (pcrel_local_address): Replace pcrel_address predicate, use the
10929 new function address_to_insn_form.
10930 (pcrel_external_address): Replace with new implementation using
10931 address_to_insn_form..
10932 (prefixed_mem_operand): Delete predicate which is now unused.
10933 (pcrel_external_mem_operand): Delete predicate which is now
10934 unused.
10935 * config/rs6000/rs6000-protos.h (enum insn_form): New
10936 enumeration.
10937 (enum non_prefixed_form): New enumeration.
10938 (address_to_insn_form): New declaration.
10939 (prefixed_load_p): New declaration.
10940 (prefixed_store_p): New declaration.
10941 (prefixed_paddi_p): New declaration.
10942 (rs6000_asm_output_opcode): New declaration.
10943 (rs6000_final_prescan_insn): Move declaration and update calling
10944 signature.
10945 (address_is_prefixed): New helper inline function.
10946 * config/rs6000/rs6000.c(print_operand_address): Check for either
10947 PC-relative local symbols or PC-relative external symbols.
10948 (rs6000_emit_move): Support loading PC-relative addresses.
10949 (mode_supports_prefixed_address_p): Delete, no longer used.
10950 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10951 (address_to_insn_form): New function to decode an address format.
10952 (reg_to_non_prefixed): New function to identify what the
10953 non-prefixed memory instruction format is for a register.
10954 (prefixed_load_p): New function to identify prefixed loads.
10955 (prefixed_store_p): New function to identify prefixed stores.
10956 (prefixed_paddi_p): New function to identify prefixed load
10957 immediates.
10958 (next_insn_prefixed_p): New static state variable.
10959 (rs6000_final_prescan_insn): New function to determine if an insn
10960 uses a prefixed instruction.
10961 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10962 prefixed instruction.
10963 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10964 (ASM_OUTPUT_OPCODE): New target hook.
10965 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10966 prefixed instructions.
10967 (prefixed_length): New insn attribute for the size of prefixed
10968 instructions.
10969 (non_prefixed_length): New insn attribute for the size of
10970 non-prefixed instructions.
10971 (pcrel_local_addr): New insn to load up a local PC-relative
10972 address.
10973 (pcrel_extern_addr): New insn to load up an external PC-relative
10974 address.
10975 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10976 GPR and loading a 128-bit floating point type to a GPR.
10977
10978 2019-09-30 Richard Biener <rguenther@suse.de>
10979
10980 * gimple.c (gimple_get_lhs): For PHIs return the result.
10981 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10982 SLP instance as argument.
10983 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10984 double-reduction PHIs with vectorizable_lc_phi.
10985 (vect_analyze_loop_operations): Adjust.
10986 (vect_create_epilog_for_reduction): Remove all code not dealing
10987 with reduction LC PHI or epilogue generation.
10988 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10989 for live stmts of reductions.
10990 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10991 do not handle defs that are not vect_internal_def.
10992 (can_vectorize_live_stmts): Adjust.
10993 (vect_analyze_stmt): When the vectorized stmt defined a value
10994 used on backedges adjust the backedge uses of vectorized PHIs.
10995
10996 2019-09-30 Martin Jambor <mjambor@suse.cz>
10997
10998 PR ipa/91853
10999 * tree-inline.c (force_value_to_type): New function.
11000 (setup_one_parameter): Use force_value_to_type to convert type.
11001 * tree-inline.c (force_value_to_type): Declare.
11002 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11003 with register type mismatches.
11004
11005 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11006
11007 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11008 32-bit PowerPC.
11009 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11010 * config/rs6000/t-freebsd64: Make use of the above define and build
11011 the 32-bit libraries with secure-plt.
11012
11013 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11014
11015 PR target/91931
11016 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11017 gen_int_mode instead of GEN_INT.
11018
11019 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11020
11021 * config/darwin.c (gen_macho_low): Amend to include the mode
11022 argument.
11023 (machopic_indirect_data_reference): Amend gen_macho_low call
11024 to include mode argument
11025 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11026 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11027 the macho_high expander and two define_insn entries.
11028
11029 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11030
11031 PR bootstrap/90543
11032 * optc-save-gen.awk: Fix up printing string option differences.
11033
11034 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11035
11036 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11037 vec_perm cost to 1 for non-Power7 VSX architectures.
11038
11039 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11040
11041 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11042 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11043 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11044
11045 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11046
11047 * config/darwin.c (gen_macho_high): Amend to include the mode
11048 argument.
11049 (machopic_indirect_data_reference): Amend gen_macho_high call
11050 to include mode argument.
11051 (machopic_legitimize_pic_address): Likewise.
11052 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11053 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11054 the macho_high expander and two define_insn entries.
11055
11056 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11057
11058 PR target/86805
11059 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11060
11061 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11062
11063 PR target/80672
11064 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11065 std::string::compare instead of std::string::find.
11066
11067 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11068
11069 * configure: Regenerate.
11070
11071 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11072
11073 PR middle-end/91920
11074 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11075 variables as shared.
11076
11077 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11078
11079 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11080 replaces the expander and two define_insn entries.
11081 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11082 call.
11083 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11084
11085 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11086
11087 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11088 (fibonacci_heap::nodes): Likewise.
11089 (fibonacci_heap::min_key): Likewise.
11090 (fibonacci_heap::min): Likewise.
11091
11092 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11093
11094 * cgraph.c (cgraph_node::get_fun): Make const.
11095 * cgraph.h (cgraph_node::get_fun): Likewise.
11096
11097 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11098
11099 PR target/91919
11100 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11101 of SImode MULT.
11102
11103 2019-09-27 Richard Biener <rguenther@suse.de>
11104
11105 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11106 (STMT_VINFO_REDUC_FN): Likewise.
11107 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11108 STMT_VINFO_REDUC_FN.
11109 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11110 for condition reductions.
11111 (vect_create_epilog_for_reduction): Compute all required state
11112 from the stmt to be vectorized.
11113 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11114 invocation and remove then dead code. For single def-use chains
11115 record only a single vector stmt.
11116
11117 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11118
11119 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11120 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11121 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11122 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11123 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11124 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11125 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11126 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11127 (aarch64_general_builtin_rsqrt): Declare.
11128 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11129 New function.
11130 (aarch64_mangle_builtin_type): Rename to...
11131 (aarch64_general_mangle_builtin_type): ...this.
11132 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11133 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11134 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11135 aarch64_general_add_builtin instead of add_builtin_function.
11136 (aarch64_init_builtins): Rename to...
11137 (aarch64_general_init_builtins): ...this. Use
11138 aarch64_general_add_builtin instead of add_builtin_function.
11139 (aarch64_builtin_decl): Rename to...
11140 (aarch64_general_builtin_decl): ...this and remove the unused
11141 arguments.
11142 (aarch64_expand_builtin): Rename to...
11143 (aarch64_general_expand_builtin): ...this and remove the unused
11144 arguments.
11145 (aarch64_builtin_rsqrt): Rename to...
11146 (aarch64_general_builtin_rsqrt): ...this.
11147 (aarch64_fold_builtin): Rename to...
11148 (aarch64_general_fold_builtin): ...this. Take the function subcode
11149 and return type as arguments. Remove the "ignored" argument.
11150 (aarch64_gimple_fold_builtin): Rename to...
11151 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11152 subcode and gcall as arguments, and return the new function call.
11153 * config/aarch64/aarch64.c (aarch64_init_builtins)
11154 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11155 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11156 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11157 instead of aarch64_builtin_rsqrt.
11158 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11159 instead of aarch64_mangle_builtin_type.
11160
11161 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11162
11163 * target.def (check_builtin_call): New target hook.
11164 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11165 * doc/tm.texi: Regenerate.
11166
11167 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11168
11169 PR tree-optimization/91909
11170 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11171 reduc_index parameter. When handling COND_REDUCTION, make sure
11172 that the reduction phi operand is in the correct arm of the
11173 VEC_COND_EXPR.
11174 (vectorizable_reduction): Pass reduc_index to the above.
11175
11176 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11177
11178 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11179 New combine pattern.
11180
11181 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11182
11183 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11184 loop instruction into new basic block before the loop when basic
11185 block that precedes the loop is empty.
11186
11187 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11188
11189 * function.c (gimplify_parameters): Use build_clobber function.
11190 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11191 * tree-inline.c (expand_call_inline): Likewise.
11192 * tree-sra.c (clobber_subtree): Likewise.
11193 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11194 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11195 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11196 lower_omp_target): Likewise.
11197 * omp-expand.c (expand_omp_for_generic): Likewise.
11198 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11199
11200 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11201
11202 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11203 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11204 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11205 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11206 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11207 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11208 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11209 LD_ELEMREV_V16QI): Use the PURE attribute.
11210
11211 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11212
11213 * config/rs6000/darwin.md: Replace the expanders for
11214 load_macho_picbase and reload_macho_picbase with use of '@'
11215 and <mode> in their respective define_insns.
11216 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11217 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11218 Pmode to gen_load_macho_picbase.
11219 * config/rs6000/rs6000.md: Likewise.
11220
11221 2019-09-25 Richard Biener <rguenther@suse.de>
11222
11223 PR tree-optimization/91896
11224 * tree-vect-loop.c (vectorizable_reduction): The single
11225 def-use cycle optimization cannot apply when there's more
11226 than one pattern stmt involved.
11227
11228 2019-09-26 Richard Biener <rguenther@suse.de>
11229
11230 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11231 loop-closed PHIs that are vect_internal_def.
11232 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11233 Simplify.
11234 (vectorizable_lc_phi): New.
11235 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11236 (vect_transform_stmt): Likewise.
11237 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11238 (vectorizable_lc_phi): Declare.
11239
11240 2019-09-26 Richard Biener <rguenther@suse.de>
11241
11242 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11243 vectorizable_reduction for vect_double_reduction_def.
11244 (vect_transform_loop): Likewise.
11245 (vect_create_epilog_for_reduction): Move double-reduction
11246 PHI creation and preheader argument setting of PHIs ...
11247 (vectorizable_reduction): ... here. Also process
11248 vect_double_reduction_def PHIs, creating the vectorized
11249 PHI nodes, remembering the scalar adjustment computed for
11250 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11251 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11252 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11253 Initialize STMT_VINFO_REDUC_CODE.
11254 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11255 (_stmt_vec_info::reduc_code): Likewise.
11256 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11257 (STMT_VINFO_REDUC_CODE): Likewise.
11258
11259 2019-09-26 Matt Turner <mattst88@gmail.com>
11260
11261 PR driver/69471
11262 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11263 (mtune=): Add Negative(mtune=).
11264 (mcpu=): Add Negative(mcpu=).
11265 * config/arm/arm.opt: Likewise.
11266
11267 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11268
11269 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11270 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11271 Define.
11272 * config/arm/arm_acle.h: Define builtins for the above.
11273 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11274 (simd32_op): Handle the above.
11275 * config/arm/unspecs.md: Define unspecs for the above.
11276
11277 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11278
11279 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11280 (arm_<sup>xtb16): Likewise.
11281 (arm_usada8): Likewise.
11282 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11283 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11284 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11285 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11286 __sxtb16, __uxtab16, __uxtb16): Define.
11287 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11288 * config/arm/unspecs.md: Define unspecs for the above.
11289 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11290 (USXTB16): Likewise.
11291 (simd32_op): New int_attribute.
11292 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11293 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11294
11295 2019-09-26 Martin Jambor <mjambor@suse.cz>
11296
11297 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11298 internal_error.
11299
11300 2019-09-26 Martin Jambor <mjambor@suse.cz>
11301
11302 * ipa-sra.c (process_scan_results): Fix continue condition.
11303
11304 2019-09-26 Martin Liska <mliska@suse.cz>
11305
11306 PR tree-optimization/91885
11307 * tree-vectorizer.c (try_vectorize_loop_1): Add
11308 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11309
11310 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11311
11312 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11313 aarch64_plus_immediate rather than aarch64_uimm12_shift
11314 to test for valid PLUS immediates.
11315
11316 2019-09-25 Martin Jambor <mjambor@suse.cz>
11317
11318 * tree-sra.c (no_accesses_p): Remove.
11319 (no_accesses_representant): Likewise.
11320
11321 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11322
11323 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11324 consistenly.
11325 (vaba_s16): Likewise.
11326 (vaba_s32): Likewise.
11327 (vaba_u8): Likewise.
11328 (vaba_u16): Likewise.
11329 (vaba_u32): Likewise.
11330 (vabal_high_s8): Likewise.
11331 (vabal_high_s16): Likewise.
11332 (vabal_high_s32): Likewise.
11333 (vabal_high_u8): Likewise.
11334 (vabal_high_u16): Likewise.
11335 (vabal_high_u32): Likewise.
11336 (vabal_s8): Likewise.
11337 (vabal_s16): Likewise.
11338 (vabal_s32): Likewise.
11339 (vabal_u8): Likewise.
11340 (vabal_u16): Likewise.
11341 (vabal_u32): Likewise.
11342 (vabaq_s8): Likewise.
11343 (vabaq_s16): Likewise.
11344 (vabaq_s32): Likewise.
11345 (vabaq_u8): Likewise.
11346 (vabaq_u16): Likewise.
11347 (vabaq_u32): Likewise.
11348 (vabd_s8): Likewise.
11349 (vabd_s16): Likewise.
11350 (vabd_s32): Likewise.
11351 (vabd_u8): Likewise.
11352 (vabd_u16): Likewise.
11353 (vabd_u32): Likewise.
11354 (vabdl_high_s8): Likewise.
11355 (vabdl_high_s16): Likewise.
11356 (vabdl_high_s32): Likewise.
11357 (vabdl_high_u8): Likewise.
11358 (vabdl_high_u16): Likewise.
11359 (vabdl_high_u32): Likewise.
11360 (vabdl_s8): Likewise.
11361 (vabdl_s16): Likewise.
11362 (vabdl_s32): Likewise.
11363 (vabdl_u8): Likewise.
11364 (vabdl_u16): Likewise.
11365 (vabdl_u32): Likewise.
11366 (vabdq_s8): Likewise.
11367 (vabdq_s16): Likewise.
11368 (vabdq_s32): Likewise.
11369 (vabdq_u8): Likewise.
11370 (vabdq_u16): Likewise.
11371 (vabdq_u32): Likewise.
11372 (vaddlv_s8): Likewise.
11373 (vaddlv_s16): Likewise.
11374 (vaddlv_u8): Likewise.
11375 (vaddlv_u16): Likewise.
11376 (vaddlvq_s8): Likewise.
11377 (vaddlvq_s16): Likewise.
11378 (vaddlvq_s32): Likewise.
11379 (vaddlvq_u8): Likewise.
11380 (vaddlvq_u16): Likewise.
11381 (vaddlvq_u32): Likewise.
11382 (vcvtx_f32_f64): Likewise.
11383 (vcvtx_high_f32_f64): Likewise.
11384 (vcvtxd_f32_f64): Likewise.
11385 (vmla_n_f32): Likewise.
11386 (vmla_n_s16): Likewise.
11387 (vmla_n_s32): Likewise.
11388 (vmla_n_u16): Likewise.
11389 (vmla_n_u32): Likewise.
11390 (vmla_s8): Likewise.
11391 (vmla_s16): Likewise.
11392 (vmla_s32): Likewise.
11393 (vmla_u8): Likewise.
11394 (vmla_u16): Likewise.
11395 (vmla_u32): Likewise.
11396 (vmlal_high_n_s16): Likewise.
11397 (vmlal_high_n_s32): Likewise.
11398 (vmlal_high_n_u16): Likewise.
11399 (vmlal_high_n_u32): Likewise.
11400 (vmlal_high_s8): Likewise.
11401 (vmlal_high_s16): Likewise.
11402 (vmlal_high_s32): Likewise.
11403 (vmlal_high_u8): Likewise.
11404 (vmlal_high_u16): Likewise.
11405 (vmlal_high_u32): Likewise.
11406 (vmlal_n_s16): Likewise.
11407 (vmlal_n_s32): Likewise.
11408 (vmlal_n_u16): Likewise.
11409 (vmlal_n_u32): Likewise.
11410 (vmlal_s8): Likewise.
11411 (vmlal_s16): Likewise.
11412 (vmlal_s32): Likewise.
11413 (vmlal_u8): Likewise.
11414 (vmlal_u16): Likewise.
11415 (vmlal_u32): Likewise.
11416 (vmlaq_n_f32): Likewise.
11417 (vmlaq_n_s16): Likewise.
11418 (vmlaq_n_s32): Likewise.
11419 (vmlaq_n_u16): Likewise.
11420 (vmlaq_n_u32): Likewise.
11421 (vmlaq_s8): Likewise.
11422 (vmlaq_s16): Likewise.
11423 (vmlaq_s32): Likewise.
11424 (vmlaq_u8): Likewise.
11425 (vmlaq_u16): Likewise.
11426 (vmlaq_u32): Likewise.
11427 (vmls_n_f32): Likewise.
11428 (vmls_n_s16): Likewise.
11429 (vmls_n_s32): Likewise.
11430 (vmls_n_u16): Likewise.
11431 (vmls_n_u32): Likewise.
11432 (vmls_s8): Likewise.
11433 (vmls_s16): Likewise.
11434 (vmls_s32): Likewise.
11435 (vmls_u8): Likewise.
11436 (vmls_u16): Likewise.
11437 (vmls_u32): Likewise.
11438 (vmlsl_high_n_s16): Likewise.
11439 (vmlsl_high_n_s32): Likewise.
11440 (vmlsl_high_n_u16): Likewise.
11441 (vmlsl_high_n_u32): Likewise.
11442 (vmlsl_high_s8): Likewise.
11443 (vmlsl_high_s16): Likewise.
11444 (vmlsl_high_s32): Likewise.
11445 (vmlsl_high_u8): Likewise.
11446 (vmlsl_high_u16): Likewise.
11447 (vmlsl_high_u32): Likewise.
11448 (vmlsl_n_s16): Likewise.
11449 (vmlsl_n_s32): Likewise.
11450 (vmlsl_n_u16): Likewise.
11451 (vmlsl_n_u32): Likewise.
11452 (vmlsl_s8): Likewise.
11453 (vmlsl_s16): Likewise.
11454 (vmlsl_s32): Likewise.
11455 (vmlsl_u8): Likewise.
11456 (vmlsl_u16): Likewise.
11457 (vmlsl_u32): Likewise.
11458 (vmlsq_n_f32): Likewise.
11459 (vmlsq_n_s16): Likewise.
11460 (vmlsq_n_s32): Likewise.
11461 (vmlsq_n_u16): Likewise.
11462 (vmlsq_n_u32): Likewise.
11463 (vmlsq_s8): Likewise.
11464 (vmlsq_s16): Likewise.
11465 (vmlsq_s32): Likewise.
11466 (vmlsq_u8): Likewise.
11467 (vmlsq_u16): Likewise.
11468 (vmlsq_u32): Likewise.
11469 (vmovl_high_s8): Likewise.
11470 (vmovl_high_s16): Likewise.
11471 (vmovl_high_s32): Likewise.
11472 (vmovl_high_u8): Likewise.
11473 (vmovl_high_u16): Likewise.
11474 (vmovl_high_u32): Likewise.
11475 (vmovl_s8): Likewise.
11476 (vmovl_s16): Likewise.
11477 (vmovl_s32): Likewise.
11478 (vmovl_u8): Likewise.
11479 (vmovl_u16): Likewise.
11480 (vmovl_u32): Likewise.
11481 (vmovn_high_s16): Likewise.
11482 (vmovn_high_s32): Likewise.
11483 (vmovn_high_s64): Likewise.
11484 (vmovn_high_u16): Likewise.
11485 (vmovn_high_u32): Likewise.
11486 (vmovn_high_u64): Likewise.
11487 (vmovn_s16): Likewise.
11488 (vmovn_s32): Likewise.
11489 (vmovn_s64): Likewise.
11490 (vmovn_u16): Likewise.
11491 (vmovn_u32): Likewise.
11492 (vmovn_u64): Likewise.
11493 (vmull_high_n_s16): Likewise.
11494 (vmull_high_n_s32): Likewise.
11495 (vmull_high_n_u16): Likewise.
11496 (vmull_high_n_u32): Likewise.
11497 (vmull_high_p8): Likewise.
11498 (vmull_high_s8): Likewise.
11499 (vmull_high_s16): Likewise.
11500 (vmull_high_s32): Likewise.
11501 (vmull_high_u8): Likewise.
11502 (vmull_high_u16): Likewise.
11503 (vmull_high_u32): Likewise.
11504 (vmull_n_s16): Likewise.
11505 (vmull_n_s32): Likewise.
11506 (vmull_n_u16): Likewise.
11507 (vmull_n_u32): Likewise.
11508 (vmull_p8): Likewise.
11509 (vmull_s8): Likewise.
11510 (vmull_s16): Likewise.
11511 (vmull_s32): Likewise.
11512 (vmull_u8): Likewise.
11513 (vmull_u16): Likewise.
11514 (vmull_u32): Likewise.
11515 (vpadal_s8): Likewise.
11516 (vpadal_s16): Likewise.
11517 (vpadal_s32): Likewise.
11518 (vpadal_u8): Likewise.
11519 (vpadal_u16): Likewise.
11520 (vpadal_u32): Likewise.
11521 (vpadalq_s8): Likewise.
11522 (vpadalq_s16): Likewise.
11523 (vpadalq_s32): Likewise.
11524 (vpadalq_u8): Likewise.
11525 (vpadalq_u16): Likewise.
11526 (vpadalq_u32): Likewise.
11527 (vpaddl_s8): Likewise.
11528 (vpaddl_s16): Likewise.
11529 (vpaddl_s32): Likewise.
11530 (vpaddl_u8): Likewise.
11531 (vpaddl_u16): Likewise.
11532 (vpaddl_u32): Likewise.
11533 (vpaddlq_s8): Likewise.
11534 (vpaddlq_s16): Likewise.
11535 (vpaddlq_s32): Likewise.
11536 (vpaddlq_u8): Likewise.
11537 (vpaddlq_u16): Likewise.
11538 (vpaddlq_u32): Likewise.
11539 (vpaddq_s8): Likewise.
11540 (vpaddq_s16): Likewise.
11541 (vpaddq_s32): Likewise.
11542 (vpaddq_s64): Likewise.
11543 (vpaddq_u8): Likewise.
11544 (vpaddq_u16): Likewise.
11545 (vpaddq_u32): Likewise.
11546 (vpaddq_u64): Likewise.
11547 (vqdmulh_n_s16): Likewise.
11548 (vqdmulh_n_s32): Likewise.
11549 (vqdmulhq_n_s16): Likewise.
11550 (vqdmulhq_n_s32): Likewise.
11551 (vqmovn_high_s16): Likewise.
11552 (vqmovn_high_s32): Likewise.
11553 (vqmovn_high_s64): Likewise.
11554 (vqmovn_high_u16): Likewise.
11555 (vqmovn_high_u32): Likewise.
11556 (vqmovn_high_u64): Likewise.
11557 (vqmovun_high_s16): Likewise.
11558 (vqmovun_high_s32): Likewise.
11559 (vqmovun_high_s64): Likewise.
11560 (vqrdmulh_n_s16): Likewise.
11561 (vqrdmulh_n_s32): Likewise.
11562 (vqrdmulhq_n_s16): Likewise.
11563 (vqrdmulhq_n_s32): Likewise.
11564 (vrsqrte_u32): Likewise.
11565 (vrsqrteq_u32): Likewise.
11566 (vtst_p8): Likewise.
11567 (vtst_p16): Likewise.
11568 (vtst_p64): Likewise.
11569 (vtstq_p8): Likewise.
11570 (vtstq_p16): Likewise.
11571 (vtstq_p64): Likewise.
11572 (vaddlv_s32): Likewise.
11573 (vaddlv_u32): Likewise.
11574 (vqtbl1_p8): Likewise.
11575 (vqtbl1_s8): Likewise.
11576 (vqtbl1_u8): Likewise.
11577 (vqtbl1q_p8): Likewise.
11578 (vqtbl1q_s8): Likewise.
11579 (vqtbl1q_u8): Likewise.
11580 (vqtbx1_s8): Likewise.
11581 (vqtbx1_u8): Likewise.
11582 (vqtbx1_p8): Likewise.
11583 (vqtbx1q_s8): Likewise.
11584 (vqtbx1q_u8): Likewise.
11585 (vqtbx1q_p8): Likewise.
11586 (vtbl1_s8): Likewise.
11587 (vtbl1_u8): Likewise.
11588 (vtbl1_p8): Likewise.
11589 (vtbl2_s8): Likewise.
11590 (vtbl2_u8): Likewise.
11591 (vtbl2_p8): Likewise.
11592 (vtbl3_s8): Likewise.
11593 (vtbl3_u8): Likewise.
11594 (vtbl3_p8): Likewise.
11595 (vtbl4_s8): Likewise.
11596 (vtbl4_u8): Likewise.
11597 (vtbl4_p8): Likewise.
11598 (vtbx2_s8): Likewise.
11599 (vtbx2_u8): Likewise.
11600 (vtbx2_p8): Likewise.
11601 (vld1_f32): Likewise.
11602 (vld1_f64): Likewise.
11603 (vld1_p8): Likewise.
11604 (vld1_p16): Likewise.
11605 (vld1_p64): Likewise.
11606 (vld1_s8): Likewise.
11607 (vld1_s16): Likewise.
11608 (vld1_s32): Likewise.
11609 (vld1_s64): Likewise.
11610 (vld1_u8): Likewise.
11611 (vld1_u16): Likewise.
11612 (vld1_u32): Likewise.
11613 (vld1_u64): Likewise.
11614 (vld1q_f32): Likewise.
11615 (vld1q_f64): Likewise.
11616 (vld1q_p8): Likewise.
11617 (vld1q_p16): Likewise.
11618 (vld1q_p64): Likewise.
11619 (vld1q_s8): Likewise.
11620 (vld1q_s16): Likewise.
11621 (vld1q_s32): Likewise.
11622 (vld1q_s64): Likewise.
11623 (vld1q_u8): Likewise.
11624 (vld1q_u16): Likewise.
11625 (vld1q_u32): Likewise.
11626 (vld1q_u64): Likewise.
11627 (vpmax_s8): Likewise.
11628 (vpmax_s16): Likewise.
11629 (vpmax_s32): Likewise.
11630 (vpmax_u8): Likewise.
11631 (vpmax_u16): Likewise.
11632 (vpmax_u32): Likewise.
11633 (vpmaxq_s8): Likewise.
11634 (vpmaxq_s16): Likewise.
11635 (vpmaxq_s32): Likewise.
11636 (vpmaxq_u8): Likewise.
11637 (vpmaxq_u16): Likewise.
11638 (vpmaxq_u32): Likewise.
11639 (vpmax_f32): Likewise.
11640 (vpmaxq_f32): Likewise.
11641 (vpmaxq_f64): Likewise.
11642 (vpmaxqd_f64): Likewise.
11643 (vpmaxs_f32): Likewise.
11644 (vpmaxnm_f32): Likewise.
11645 (vpmaxnmq_f32): Likewise.
11646 (vpmaxnmq_f64): Likewise.
11647 (vpmaxnmqd_f64): Likewise.
11648 (vpmaxnms_f32): Likewise.
11649 (vpmin_s8): Likewise.
11650 (vpmin_s16): Likewise.
11651 (vpmin_s32): Likewise.
11652 (vpmin_u8): Likewise.
11653 (vpmin_u16): Likewise.
11654 (vpmin_u32): Likewise.
11655 (vpminq_s8): Likewise.
11656 (vpminq_s16): Likewise.
11657 (vpminq_s32): Likewise.
11658 (vpminq_u8): Likewise.
11659 (vpminq_u16): Likewise.
11660 (vpminq_u32): Likewise.
11661 (vpmin_f32): Likewise.
11662 (vpminq_f32): Likewise.
11663 (vpminq_f64): Likewise.
11664 (vpminqd_f64): Likewise.
11665 (vpmins_f32): Likewise.
11666 (vpminnm_f32): Likewise.
11667 (vpminnmq_f32): Likewise.
11668 (vpminnmq_f64): Likewise.
11669 (vpminnmqd_f64): Likewise.
11670 (vpminnms_f32): Likewise.
11671 (vmla_f32): Likewise.
11672 (vmlaq_f32): Likewise.
11673 (vmlaq_f64): Likewise.
11674 (vmls_f32): Likewise.
11675 (vmlsq_f32): Likewise.
11676 (vmlsq_f64): Likewise.
11677 (vqtbl2_s8): Likewise.
11678 (vqtbl2_u8): Likewise.
11679 (vqtbl2_p8): Likewise.
11680 (vqtbl2q_s8): Likewise.
11681 (vqtbl2q_u8): Likewise.
11682 (vqtbl2q_p8): Likewise.
11683 (vqtbl3_s8): Likewise.
11684 (vqtbl3_u8): Likewise.
11685 (vqtbl3_p8): Likewise.
11686 (vqtbl3q_s8): Likewise.
11687 (vqtbl3q_u8): Likewise.
11688 (vqtbl3q_p8): Likewise.
11689 (vqtbl4_s8): Likewise.
11690 (vqtbl4_u8): Likewise.
11691 (vqtbl4_p8): Likewise.
11692 (vqtbl4q_s8): Likewise.
11693 (vqtbl4q_u8): Likewise.
11694 (vqtbl4q_p8): Likewise.
11695 (vqtbx2_s8): Likewise.
11696 (vqtbx2_u8): Likewise.
11697 (vqtbx2_p8): Likewise.
11698 (vqtbx2q_s8): Likewise.
11699 (vqtbx2q_u8): Likewise.
11700 (vqtbx2q_p8): Likewise.
11701 (vqtbx3_s8): Likewise.
11702 (vqtbx3_u8): Likewise.
11703 (vqtbx3_p8): Likewise.
11704 (vqtbx3q_s8): Likewise.
11705 (vqtbx3q_u8): Likewise.
11706 (vqtbx3q_p8): Likewise.
11707 (vqtbx4_s8): Likewise.
11708 (vqtbx4_u8): Likewise.
11709 (vqtbx4_p8): Likewise.
11710 (vqtbx4q_s8): Likewise.
11711 (vqtbx4q_u8): Likewise.
11712 (vqtbx4q_p8): Likewise.
11713 (vrev16_p8): Likewise.
11714 (vrev16_s8): Likewise.
11715 (vrev16_u8): Likewise.
11716 (vrev16q_p8): Likewise.
11717 (vrev16q_s8): Likewise.
11718 (vrev16q_u8): Likewise.
11719 (vrev32_p8): Likewise.
11720 (vrev32_p16): Likewise.
11721 (vrev32_s8): Likewise.
11722 (vrev32_s16): Likewise.
11723 (vrev32_u8): Likewise.
11724 (vrev32_u16): Likewise.
11725 (vrev32q_p8): Likewise.
11726 (vrev32q_p16): Likewise.
11727 (vrev32q_s8): Likewise.
11728 (vrev32q_s16): Likewise.
11729 (vrev32q_u8): Likewise.
11730 (vrev32q_u16): Likewise.
11731 (vrev64_f32): Likewise.
11732 (vrev64_p8): Likewise.
11733 (vrev64_p16): Likewise.
11734 (vrev64_s8): Likewise.
11735 (vrev64_s16): Likewise.
11736 (vrev64_s32): Likewise.
11737 (vrev64_u8): Likewise.
11738 (vrev64_u16): Likewise.
11739 (vrev64_u32): Likewise.
11740 (vrev64q_f32): Likewise.
11741 (vrev64q_p8): Likewise.
11742 (vrev64q_p16): Likewise.
11743 (vrev64q_s8): Likewise.
11744 (vrev64q_s16): Likewise.
11745 (vrev64q_s32): Likewise.
11746 (vrev64q_u8): Likewise.
11747 (vrev64q_u16): Likewise.
11748 (vrev64q_u32): Likewise.
11749 (vsha1cq_u32): Likewise.
11750 (vsha1mq_u32): Likewise.
11751 (vsha1pq_u32): Likewise.
11752 (vsha1h_u32): Likewise.
11753 (vsha1su0q_u32): Likewise.
11754 (vsha1su1q_u32): Likewise.
11755 (vsha256hq_u32): Likewise.
11756 (vsha256h2q_u32): Likewise.
11757 (vsha256su0q_u32): Likewise.
11758 (vsha256su1q_u32): Likewise.
11759 (vmull_p64): Likewise.
11760 (vmull_high_p64): Likewise.
11761 (vsqrt_f32): Likewise.
11762 (vsqrtq_f32): Likewise.
11763 (vsqrt_f64): Likewise.
11764 (vsqrtq_f64): Likewise.
11765 (vst1_f32): Likewise.
11766 (vst1_f64): Likewise.
11767 (vst1_p8): Likewise.
11768 (vst1_p16): Likewise.
11769 (vst1_p64): Likewise.
11770 (vst1_s8): Likewise.
11771 (vst1_s16): Likewise.
11772 (vst1_s32): Likewise.
11773 (vst1_s64): Likewise.
11774 (vst1_u8): Likewise.
11775 (vst1_u16): Likewise.
11776 (vst1_u32): Likewise.
11777 (vst1_u64): Likewise.
11778 (vst1q_f32): Likewise.
11779 (vst1q_f64): Likewise.
11780 (vst1q_p8): Likewise.
11781 (vst1q_p16): Likewise.
11782 (vst1q_p64): Likewise.
11783 (vst1q_s8): Likewise.
11784 (vst1q_s16): Likewise.
11785 (vst1q_s32): Likewise.
11786 (vst1q_s64): Likewise.
11787 (vst1q_u8): Likewise.
11788 (vst1q_u16): Likewise.
11789 (vst1q_u32): Likewise.
11790 (vst1q_u64): Likewise.
11791 (vst1_s64_x2): Likewise.
11792 (vst1_u64_x2): Likewise.
11793 (vst1_f64_x2): Likewise.
11794 (vst1_s8_x2): Likewise.
11795 (vst1_p8_x2): Likewise.
11796 (vst1_s16_x2): Likewise.
11797 (vst1_p16_x2): Likewise.
11798 (vst1_s32_x2): Likewise.
11799 (vst1_u8_x2): Likewise.
11800 (vst1_u16_x2): Likewise.
11801 (vst1_u32_x2): Likewise.
11802 (vst1_f16_x2): Likewise.
11803 (vst1_f32_x2): Likewise.
11804 (vst1_p64_x2): Likewise.
11805 (vst1q_s8_x2): Likewise.
11806 (vst1q_p8_x2): Likewise.
11807 (vst1q_s16_x2): Likewise.
11808 (vst1q_p16_x2): Likewise.
11809 (vst1q_s32_x2): Likewise.
11810 (vst1q_s64_x2): Likewise.
11811 (vst1q_u8_x2): Likewise.
11812 (vst1q_u16_x2): Likewise.
11813 (vst1q_u32_x2): Likewise.
11814 (vst1q_u64_x2): Likewise.
11815 (vst1q_f16_x2): Likewise.
11816 (vst1q_f32_x2): Likewise.
11817 (vst1q_f64_x2): Likewise.
11818 (vst1q_p64_x2): Likewise.
11819 (vst1_s64_x3): Likewise.
11820 (vst1_u64_x3): Likewise.
11821 (vst1_f64_x3): Likewise.
11822 (vst1_s8_x3): Likewise.
11823 (vst1_p8_x3): Likewise.
11824 (vst1_s16_x3): Likewise.
11825 (vst1_p16_x3): Likewise.
11826 (vst1_s32_x3): Likewise.
11827 (vst1_u8_x3): Likewise.
11828 (vst1_u16_x3): Likewise.
11829 (vst1_u32_x3): Likewise.
11830 (vst1_f16_x3): Likewise.
11831 (vst1_f32_x3): Likewise.
11832 (vst1_p64_x3): Likewise.
11833 (vst1q_s8_x3): Likewise.
11834 (vst1q_p8_x3): Likewise.
11835 (vst1q_s16_x3): Likewise.
11836 (vst1q_p16_x3): Likewise.
11837 (vst1q_s32_x3): Likewise.
11838 (vst1q_s64_x3): Likewise.
11839 (vst1q_u8_x3): Likewise.
11840 (vst1q_u16_x3): Likewise.
11841 (vst1q_u32_x3): Likewise.
11842 (vst1q_u64_x3): Likewise.
11843 (vst1q_f16_x3): Likewise.
11844 (vst1q_f32_x3): Likewise.
11845 (vst1q_f64_x3): Likewise.
11846 (vst1q_p64_x3): Likewise.
11847 (vst2_s64): Likewise.
11848 (vst2_u64): Likewise.
11849 (vst2_f64): Likewise.
11850 (vst2_s8): Likewise.
11851 (vst2_p8): Likewise.
11852 (vst2_s16): Likewise.
11853 (vst2_p16): Likewise.
11854 (vst2_s32): Likewise.
11855 (vst2_u8): Likewise.
11856 (vst2_u16): Likewise.
11857 (vst2_u32): Likewise.
11858 (vst2_f16): Likewise.
11859 (vst2_f32): Likewise.
11860 (vst2_p64): Likewise.
11861 (vst2q_s8): Likewise.
11862 (vst2q_p8): Likewise.
11863 (vst2q_s16): Likewise.
11864 (vst2q_p16): Likewise.
11865 (vst2q_s32): Likewise.
11866 (vst2q_s64): Likewise.
11867 (vst2q_u8): Likewise.
11868 (vst2q_u16): Likewise.
11869 (vst2q_u32): Likewise.
11870 (vst2q_u64): Likewise.
11871 (vst2q_f16): Likewise.
11872 (vst2q_f32): Likewise.
11873 (vst2q_f64): Likewise.
11874 (vst2q_p64): Likewise.
11875 (vst3_s64): Likewise.
11876 (vst3_u64): Likewise.
11877 (vst3_f64): Likewise.
11878 (vst3_s8): Likewise.
11879 (vst3_p8): Likewise.
11880 (vst3_s16): Likewise.
11881 (vst3_p16): Likewise.
11882 (vst3_s32): Likewise.
11883 (vst3_u8): Likewise.
11884 (vst3_u16): Likewise.
11885 (vst3_u32): Likewise.
11886 (vst3_f16): Likewise.
11887 (vst3_f32): Likewise.
11888 (vst3_p64): Likewise.
11889 (vst3q_s8): Likewise.
11890 (vst3q_p8): Likewise.
11891 (vst3q_s16): Likewise.
11892 (vst3q_p16): Likewise.
11893 (vst3q_s32): Likewise.
11894 (vst3q_s64): Likewise.
11895 (vst3q_u8): Likewise.
11896 (vst3q_u16): Likewise.
11897 (vst3q_u32): Likewise.
11898 (vst3q_u64): Likewise.
11899 (vst3q_f16): Likewise.
11900 (vst3q_f32): Likewise.
11901 (vst3q_f64): Likewise.
11902 (vst3q_p64): Likewise.
11903 (vst4_s64): Likewise.
11904 (vst4_u64): Likewise.
11905 (vst4_f64): Likewise.
11906 (vst4_s8): Likewise.
11907 (vst4_p8): Likewise.
11908 (vst4_s16): Likewise.
11909 (vst4_p16): Likewise.
11910 (vst4_s32): Likewise.
11911 (vst4_u8): Likewise.
11912 (vst4_u16): Likewise.
11913 (vst4_u32): Likewise.
11914 (vst4_f16): Likewise.
11915 (vst4_f32): Likewise.
11916 (vst4_p64): Likewise.
11917 (vst4q_s8): Likewise.
11918 (vst4q_p8): Likewise.
11919 (vst4q_s16): Likewise.
11920 (vst4q_p16): Likewise.
11921 (vst4q_s32): Likewise.
11922 (vst4q_s64): Likewise.
11923 (vst4q_u8): Likewise.
11924 (vst4q_u16): Likewise.
11925 (vst4q_u32): Likewise.
11926 (vst4q_u64): Likewise.
11927 (vst4q_f16): Likewise.
11928 (vst4q_f32): Likewise.
11929 (vst4q_f64): Likewise.
11930 (vst4q_p64): Likewise.
11931 (vtbx4_s8): Likewise.
11932 (vtbx4_u8): Likewise.
11933 (vtbx4_p8): Likewise.
11934 (vtrn_f32): Likewise.
11935 (vtrn_p8): Likewise.
11936 (vtrn_p16): Likewise.
11937 (vtrn_s8): Likewise.
11938 (vtrn_s16): Likewise.
11939 (vtrn_s32): Likewise.
11940 (vtrn_u8): Likewise.
11941 (vtrn_u16): Likewise.
11942 (vtrn_u32): Likewise.
11943 (vtrnq_f32): Likewise.
11944 (vtrnq_p8): Likewise.
11945 (vtrnq_p16): Likewise.
11946 (vtrnq_s8): Likewise.
11947 (vtrnq_s16): Likewise.
11948 (vtrnq_s32): Likewise.
11949 (vtrnq_u8): Likewise.
11950 (vtrnq_u16): Likewise.
11951 (vtrnq_u32): Likewise.
11952 (vrsqrte_f16): Likewise.
11953 (vrsqrteq_f16): Likewise.
11954 (vsqrt_f16): Likewise.
11955 (vsqrtq_f16): Likewise.
11956 (vabd_f16): Likewise.
11957 (vabdq_f16): Likewise.
11958 (vpadd_f16): Likewise.
11959 (vpaddq_f16): Likewise.
11960 (vpmax_f16): Likewise.
11961 (vpmaxq_f16): Likewise.
11962 (vpmaxnm_f16): Likewise.
11963 (vpmaxnmq_f16): Likewise.
11964 (vpmin_f16): Likewise.
11965 (vpminq_f16): Likewise.
11966 (vpminnm_f16): Likewise.
11967 (vpminnmq_f16): Likewise.
11968 (vrsqrts_f16): Likewise.
11969 (vrsqrtsq_f16): Likewise.
11970
11971 2019-09-25 Richard Biener <rguenther@suse.de>
11972
11973 PR tree-optimization/91896
11974 * tree-vect-loop.c (vectorizable_reduction): The single
11975 def-use cycle optimization cannot apply when there's more
11976 than one pattern stmt involved.
11977
11978 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11979
11980 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11981 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11982 (reload_macho_picbase_<mode>): Likewise.
11983
11984 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11985
11986 * config/rs6000/rs6000.md: Move darwin.md include until
11987 after the definition of the mode iterators.
11988
11989 2019-09-23 Martin Sebor <msebor@redhat.com>
11990
11991 PR tree-optimization/91570
11992 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11993 non-constant minlen, maxlen and maxbound.
11994
11995 2019-09-24 Richard Biener <rguenther@suse.de>
11996
11997 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11998 Rename to...
11999 (_stmt_vec_info::cond_reduc_code): ... this.
12000 (_stmt_vec_info::induc_cond_initial_val): Add.
12001 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12002 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12003 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12004 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12005 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12006 the reduction code.
12007 (vect_create_epilog_for_reduction): Drop special
12008 induction condition reduction params, pass in reduction code
12009 and simplify.
12010 (vectorizable_reduction): Perform condition reduction kind
12011 selection only at analysis time. Adjust passing on state.
12012
12013 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12014
12015 * config/aarch64/aarch64.md (mov<mode>): Don't call
12016 aarch64_split_dimode_const_store on volatile MEM.
12017
12018 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12019
12020 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12021 Update hwcap string for fp16fml.
12022
12023 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12024
12025 PR middle-end/91866
12026 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12027 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12028
12029 2019-09-24 Martin Liska <mliska@suse.cz>
12030
12031 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12032 instead of if-elseif-elseif-...
12033 * gimple-expr.c (extract_ops_from_tree): Likewise.
12034 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12035 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12036
12037 2019-09-24 Martin Jambor <mjambor@suse.cz>
12038
12039 PR ipa/91831
12040 * ipa-param-manipulation.c (carry_over_param): Make a method of
12041 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12042 in case of a context mismatch.
12043 (ipa_param_body_adjustments::common_initialization): Adjust call to
12044 carry_over_param.
12045 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12046 private method carry_over_param.
12047
12048 2019-09-24 Martin Jambor <mjambor@suse.cz>
12049
12050 PR ipa/91832
12051 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12052
12053 2019-09-24 Richard Biener <rguenther@suse.de>
12054
12055 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12056 base.
12057
12058 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12059
12060 * config/arm/t-arm (arm-builtins.o): Add dependency on
12061 arm_acle_builtins.def.
12062
12063 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12064
12065 PR target/91823
12066 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12067 canonical CONST_INTs. Use gen_rtvec.
12068
12069 2019-09-23 Richard Biener <rguenther@suse.de>
12070
12071 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12072 avoid adjusting by + 0 or * 1.
12073 (vect_create_epilog_for_reduction): Get reduction code only
12074 when necessary. Deal with adjustment_def only when necessary.
12075
12076 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12077
12078 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12079 memmodel index.
12080
12081 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12082
12083 PR ipa/91835
12084 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12085 "ipa-sra".
12086
12087 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12088
12089 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12090 code. Merge code blocks with common conditionals. Use declared
12091 macro instead of a magic number for PIC level.
12092
12093 2019-09-21 Martin Sebor <msebor@redhat.com>
12094
12095 PR middle-end/91830
12096 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12097 Simplify computation of the offset of the referenced subobject.
12098
12099 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12100
12101 * config/darwin.c (machopic_legitimize_pic_address): Check
12102 for lra not reload.
12103
12104 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12105
12106 * ira-conflicts.c (can_use_same_reg_p): New function.
12107 (process_reg_shuffles): Take an insn parameter. Ignore cases
12108 in which input operand op_num could seemingly never be allocated
12109 to the same register as the destination.
12110 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12111
12112 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12113
12114 * simplify-rtx.c (neg_const_int): Replace with...
12115 (neg_poly_int_rtx): ...this new function.
12116 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12117 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12118 (simplify_plus_minus): Likewise for constant terms here.
12119
12120 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12121
12122 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12123 HOST_WIDE_PRINT_UNSIGNED.
12124
12125 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12126
12127 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12128 character.
12129
12130 2019-09-20 Maya Rashish <coypu@sdf.org>
12131
12132 PR target/86811
12133 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12134 Define to speculation_safe_value_not_needed.
12135
12136 2019-09-20 Richard Biener <rguenther@suse.de>
12137 Uros Bizjak <ubizjak@gmail.com>
12138
12139 PR target/91814
12140 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12141 previous change.
12142 (general_scalar_chain::convert_op): Force not suitable memory
12143 operands to a register.
12144
12145 2019-09-20 Richard Biener <rguenther@suse.de>
12146
12147 PR tree-optimization/91821
12148 * tree-vect-loop.c (check_reduction_path): Check we can compute
12149 reduc_idx.
12150 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12151 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12152 operands in canonical order.
12153 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12154 STMT_VINFO_REDUC_IDX.
12155 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12156 (STMT_VINFO_REDUC_IDX): Likewise.
12157
12158 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12159
12160 PR target/91269
12161 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12162
12163 2019-09-20 Richard Biener <rguenther@suse.de>
12164
12165 PR tree-optimization/91822
12166 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12167 parameter.
12168 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12169 for reduc_index in nested cycles, adjust vectorizable_condition
12170 calls.
12171 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12172 parameter.
12173 (vect_analyze_stmt): Adjust.
12174 (vect_transform_stmt): Likewise.
12175
12176 2019-09-20 Richard Biener <rguenther@suse.de>
12177
12178 PR target/91767
12179 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12180 Ensure there's a sequence point between allocating the new register
12181 and passing a reference to a reg via regno_reg_rtx.
12182
12183 2019-09-20 Martin Jambor <mjambor@suse.cz>
12184
12185 * coretypes.h (cgraph_edge): Declare.
12186 * ipa-param-manipulation.c: Rewrite.
12187 * ipa-param-manipulation.h: Likewise.
12188 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12189 (OBJS): Added ipa-sra.o.
12190 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12191 and ref_p, added fields param_adjustments and performed_splits.
12192 (struct cgraph_clone_info): Remove ags_to_skip and
12193 combined_args_to_skip, new field param_adjustments.
12194 (cgraph_node::create_clone): Changed parameters to use
12195 ipa_param_adjustments.
12196 (cgraph_node::create_virtual_clone): Likewise.
12197 (cgraph_node::create_virtual_clone_with_body): Likewise.
12198 (tree_function_versioning): Likewise.
12199 (cgraph_build_function_type_skip_args): Removed.
12200 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12201 using ipa_param_adjustments.
12202 (clone_of_p): Likewise.
12203 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12204 (build_function_decl_skip_args): Likewise.
12205 (duplicate_thunk_for_node): Adjust parameters using
12206 ipa_param_body_adjustments, copy param_adjustments instead of
12207 args_to_skip.
12208 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12209 (cgraph_node::create_virtual_clone): Likewise.
12210 (cgraph_node::create_version_clone_with_body): Likewise.
12211 (cgraph_materialize_clone): Likewise.
12212 (symbol_table::materialize_all_clones): Likewise.
12213 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12214 ipa_replace_map check.
12215 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12216 (initialize_node_lattices): Make aware that some parameters might have
12217 already been removed.
12218 (want_remove_some_param_p): New function.
12219 (create_specialized_node): Convert to using ipa_param_adjustments and
12220 deal with possibly pre-existing adjustments.
12221 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12222 (output_node_opt_summary): Do not stream removed fields. Stream
12223 parameter adjustments instead of argumetns to skip.
12224 (input_node_opt_summary): Likewise.
12225 (input_node_opt_summary): Likewise.
12226 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12227 * lto-streamer.h (lto_section_type): Likewise.
12228 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12229 param_body_adjs.
12230 (copy_decl_to_var): Declare.
12231 * tree-inline.c (update_clone_info): Do not remap old_tree.
12232 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12233 statements, walk all extra generated statements and remap their
12234 operands.
12235 (redirect_all_calls): Add killed SSA names to a hash set.
12236 (remap_ssa_name): Do not remap killed SSA names.
12237 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12238 half of functionality moved to ipa_param_body_adjustments.
12239 (copy_decl_to_var): Make exported.
12240 (copy_body): Destroy killed_new_ssa_names hash set.
12241 (expand_call_inline): Remap performed splits.
12242 (update_clone_info): Likewise.
12243 (tree_function_versioning): Simplify tree_map processing. Updated to
12244 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12245 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12246 for the new interface.
12247 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12248 (simd_clone_compute_base_data_type): Likewise.
12249 (simd_clone_init_simd_arrays): Adjust for the new interface.
12250 (simd_clone_adjust_argument_types): Likewise.
12251 (struct modify_stmt_info): Likewise.
12252 (ipa_simd_modify_stmt_ops): Likewise.
12253 (ipa_simd_modify_function_body): Likewise.
12254 (simd_clone_adjust): Likewise.
12255 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12256 (type_internals_preclude_sra_p): Make public.
12257 * tree-sra.h: New file.
12258 * ipa-inline-transform.c (save_inline_function_body): Update to
12259 refelct new tree_function_versioning signature.
12260 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12261 ipa_param_adjustments to get current parameter indices.
12262 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12263 (ipcp_update_bits): Likewise.
12264 (ipcp_update_vr): Likewise.
12265 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12266 * ipa-sra.c: New file.
12267 * multiple_target.c (create_target_clone): Update to reflet new type
12268 of create_version_clone_with_body.
12269 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12270 tree_function_versioning.
12271 (modify_function): Update to reflect new type of
12272 tree_function_versioning.
12273 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12274 * passes.def: Remove old IPA-SRA and add new one.
12275 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12276 (make_pass_ipa_sra): Declare.
12277 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12278 ipa_sra_retvalues.
12279 * doc/invoke.texi (ipa-sra-max-replacements): New.
12280
12281 2019-09-19 Martin Sebor <msebor@redhat.com>
12282
12283 PR middle-end/91631
12284 * builtins.c (component_size): Correct trailing array computation,
12285 rename to component_ref_size and move...
12286 (compute_objsize): Adjust.
12287 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12288 (builtin_access::strict): Do not consider memmove.
12289 (builtin_access::write_off): New function.
12290 (builtin_memref::builtin_memref): Initialize refsize.
12291 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12292 refsize.
12293 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12294 Handle refsize.
12295 (builtin_access::builtin_access): Initialize dstoff to destination
12296 refeence offset here instead of in maybe_diag_overlap. Adjust
12297 referencess even to unrelated objects. Adjust sizrange of bounded
12298 string functions to reflect bound. For strcat, adjust destination
12299 sizrange by that of source.
12300 (builtin_access::strcat_overlap): Adjust offsets and sizes
12301 to reflect the increase in destination sizrange above.
12302 (builtin_access::overlap): Do not set dstoff here but instead
12303 in builtin_access::builtin_access.
12304 (check_bounds_or_overlap): Use builtin_access::write_off.
12305 (maybe_diag_access_bounds): Add argument. Add informational notes.
12306 (dump_builtin_memref, dump_builtin_access): New functions.
12307 * tree.c (component_ref_size): ...to here.
12308 * tree.h (component_ref_size): Declare.
12309 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12310 nul in the size of the source string.
12311
12312 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12313
12314 PR c/67224
12315 * doc/cpp.texi: Document support for extended characters in
12316 identifiers.
12317 * doc/cppopts.texi: Likewise.
12318
12319 2019-09-19 Richard Biener <rguenther@suse.de>
12320
12321 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12322 (check_reduction_path): New overload having the path as result.
12323 (vect_is_simple_reduction): From the detected reduction
12324 path build a SLP reduction chain if possible.
12325
12326 2019-09-19 Richard Biener <rguenther@suse.de>
12327
12328 PR target/91814
12329 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12330 Force operand to a register if it isn't nonimmediate_operand.
12331
12332 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12333
12334 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12335 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12336 (logical_op): Remove code attribute.
12337 (logical_OP): Likewise.
12338
12339 2019-09-19 Martin Liska <mliska@suse.cz>
12340
12341 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12342 Use proper casting.
12343
12344 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12345
12346 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12347 registers with %R.
12348
12349 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12350 for NE comparison of TImode values.
12351 (aarch64_emit_load_exclusive): Add support for TImode.
12352 (aarch64_emit_store_exclusive): Likewise.
12353 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12354 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12355 Change iterator from ALLI to ALLI_TI.
12356 (@atomic_compare_and_swap<JUST_TI>): New.
12357 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12358 (aarch64_load_exclusive_pair): New.
12359 (aarch64_store_exclusive_pair): New.
12360 * config/aarch64/iterators.md (JUST_TI): New.
12361
12362 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12363 strong_zero_p for aarch64_track_speculation; unify some code paths;
12364 use aarch64_gen_compare_reg instead of open-coding.
12365
12366 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12367 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12368 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12369 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12370 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12371 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12372 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12373 (atomic_<atomic_op><ALLI>): Likewise.
12374 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12375 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12376 * doc/invoke.texi: Document -moutline-atomics.
12377
12378 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12379
12380 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12381 trivial predicate for condition branch.
12382 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12383 for switch case.
12384 (compute_bb_predicates): Update predicate based on post-dominating
12385 relationship.
12386 (analyze_function_body): Calculate post-dominating information.
12387
12388 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12389
12390 * tree-vectorizer.h (vectorizable_condition): Take an int
12391 reduction index instead of a boolean flag.
12392 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12393 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12394 reductions if the reduction accumulator is the "then" rather
12395 than the "else" value.
12396 (vect_analyze_stmt): Update call accordingly.
12397 (vect_transform_stmt): Likewise.
12398 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12399 asserting that the index is > 0.
12400
12401 2019-09-19 Martin Liska <mliska@suse.cz>
12402
12403 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12404 (sort_congruence_classes_by_decl_uid): Likewise.
12405 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12406 easier sorting.
12407 (sem_item_optimizer::merge_classes): Likewise.
12408
12409 2019-09-19 Richard Biener <rguenther@suse.de>
12410
12411 PR tree-optimization/91812
12412 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12413 volatile loads.
12414
12415 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12416
12417 * defaults.h (TARGET_UNIT): New macro.
12418 (target_unit): New type.
12419 * rtl.h (native_encode_rtx, native_decode_rtx)
12420 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12421 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12422 * rtlanal.c (subreg_lsb_1): Delete.
12423 (subreg_size_lsb): New function.
12424 * simplify-rtx.c: Include rtx-vector-builder.h
12425 (simplify_immed_subreg): Delete.
12426 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12427 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12428 functions.
12429 (simplify_subreg): Use them.
12430 (test_vector_subregs_modes, test_vector_subregs_repeating)
12431 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12432 (test_vector_subregs): New functions.
12433 (test_vector_ops): Call test_vector_subregs for integer vector
12434 modes with at least 2 elements.
12435
12436 2019-09-19 Richard Biener <rguenther@suse.de>
12437
12438 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12439 LOOP_VINFO_OPERANDS_SWAPPED.
12440 (parloops_is_simple_reduction): Likewise.
12441 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12442 initialize operands_swapped.
12443 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12444 (vect_is_slp_reduction): Do not swap operands.
12445 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12446 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12447
12448 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12449
12450 PR target/87007
12451 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12452 Add avx_partial_xmm_update.
12453
12454 2019-09-18 Jim Wilson <jimw@sifive.com>
12455
12456 PR target/91683
12457 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12458 (riscv_move_integer): Likewise.
12459 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12460 riscv_move_integer arg.
12461 (riscv_legitimize_move): Likewise.
12462 (riscv_force_temporary): New parameter in_splitter. Don't call
12463 force_reg if true.
12464 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12465 arg.
12466 (riscv_add_offset): Likewise.
12467 (riscv_split_symbol): New parameter in_splitter. Pass to
12468 riscv_force_temporary.
12469 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12470 arg.
12471 (riscv_move_integer): New parameter in_splitter. New local
12472 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12473 in_splitter TRUE.
12474 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12475 riscv_split_symbol, and riscv_force_temporary args.
12476 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12477 riscv_move_integer arg.
12478 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12479
12480 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12481
12482 PR target/90878
12483 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12484 hard register store cost to 6.
12485
12486 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12487
12488 PR target/91446
12489 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12490 pseudo register store cost from 3 to 6 to make it the same as
12491 QImode and HImode.
12492
12493 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12494
12495 PR target/91738
12496 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12497 (one_cmpldi2): Likewise.
12498 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12499 of the constant parts is simple.
12500 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12501 (logical_op): Add new code attribute.
12502 (logical_OP): Likewise.
12503 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12504 (arm_iordi_operand): Add predicate.
12505 (arm_xordi_operand): Add predicate.
12506
12507 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12508
12509 * config/arm/arm.md (maddsidi4): Remove expander.
12510 (mulsidi3adddi): Remove pattern.
12511 (mulsidi3adddi_v6): Likewise.
12512 (mulsidi3_nov6): Likewise.
12513 (mulsidi3_v6): Likewise.
12514 (umulsidi3): Remove expander.
12515 (umulsidi3_nov6): Remove pattern.
12516 (umulsidi3_v6): Likewise.
12517 (umulsidi3adddi): Likewise.
12518 (umulsidi3adddi_v6): Likewise.
12519 (<Us>mulsidi3): Add combined expander.
12520 (<Us>maddsidi4): Likewise.
12521 (<US>mull): Add combined umull and smull pattern.
12522 (<US>mlal): Likewise.
12523 * config/arm/iterators.md (Us): Add new iterator.
12524
12525 2019-09-18 Richard Biener <rguenther@suse.de>
12526
12527 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12528 swapping.
12529 (vectorize_fold_left_reduction): Remove assert.
12530 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12531 operand in position 2. Remove assert.
12532
12533 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12534
12535 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12536 (smulsi3_highpart_nov6): Remove pattern.
12537 (smulsi3_highpart_v6): Likewise.
12538 (umulsi3_highpart): Likewise.
12539 (umulsi3_highpart_nov6): Likewise.
12540 (umulsi3_highpart_v6): Likewise.
12541 (<US>mull_high): Add new combined multiply pattern.
12542
12543 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12544
12545 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12546 (arm_mulsi3_v6): Likewise.
12547 (mulsi3addsi_v6): Likewise.
12548 (mulsi3subsi): Likewise.
12549 (mul): Add new multiply pattern.
12550 (mla): Likewise.
12551 (mls): Likewise.
12552
12553 2019-09-18 Richard Biener <rguenther@suse.de>
12554
12555 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12556 (parloops_valid_reduction_input_p): Copy from
12557 valid_reduction_input_p.
12558 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12559 (parloops_needs_fold_left_reduction_p): Copy from
12560 needs_fold_left_reduction_p.
12561 (parloops_is_simple_reduction): Copy from
12562 vect_is_simple_reduction.
12563 (parloops_force_simple_reduction): Copy from
12564 vect_force_simple_reduction.
12565 (gather_scalar_reductions): Adjust.
12566 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12567 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12568
12569 2019-09-18 Richard Biener <rguenther@suse.de>
12570
12571 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12572 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12573 static.
12574 (vect_create_epilog_for_reduction): Remove dead code.
12575
12576 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12577
12578 * varasm.c (assemble_real): Generate canonical const_ints.
12579
12580 2019-09-18 Richard Biener <rguenther@suse.de>
12581
12582 PR lto/91763
12583 * lto-streamer-in.c (input_eh_regions): Move EH init to
12584 lto_materialize_function.
12585 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12586 Likewise.
12587
12588 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12589
12590 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12591 are INTEGER_CSTs.
12592
12593 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12594
12595 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12596 of checking specifically for INTEGER_CST.
12597
12598 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12599
12600 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12601 sizes instead of uhwi sizes.
12602
12603 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12604
12605 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12606 (add_const_value_attribute): Handle CONST_POLY_INT.
12607
12608 2019-09-18 Martin Liska <mliska@suse.cz>
12609
12610 * dbgcnt.def (store_merging): New counter.
12611 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12612 Use it in store merging.
12613
12614 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12615
12616 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12617 function.
12618 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12619 * config/arm/arm.c (arm_sched_variable_issue): New function.
12620 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12621
12622 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12623
12624 * config/arm/types.md (no_reservation): New reservation.
12625 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12626 no_insn here.
12627 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12628 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12629 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12630 * config/arm/arm1020e.md (1020alu_op): Likewise.
12631 * config/arm/arm1026ejs.md (alu_op): Likewise.
12632 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12633 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12634 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12635 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12636 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12637 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12638 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12639 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12640 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12641 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12642 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12643 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12644 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12645 * config/arm/fa526.md (526_alu_op): Likewise.
12646 * config/arm/fa606te.md (606te_alu_op): Likewise.
12647 * config/arm/fa626te.md (626te_alu_op): Likewise.
12648 * config/arm/fa726te.md (726te_alu_op): Likewise.
12649 * config/arm/xgene1.md (xgene1_nop): Likewise.
12650
12651 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12652
12653 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12654 "no_insn" to "branch".
12655
12656 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12657
12658 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12659
12660 2019-09-17 Richard Biener <rguenther@suse.de>
12661
12662 PR debug/91772
12663 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12664 was missing generate locations only once.
12665
12666 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12667
12668 PR ipa/91089
12669 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12670 option.
12671 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12672 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12673 for switch default case using range analysis information.
12674
12675 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12676
12677 PR target/91749
12678 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12679 mode attributed is supported by FDPIC.
12680
12681 2019-09-17 Richard Biener <rguenther@suse.de>
12682
12683 PR tree-optimization/91790
12684 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12685 use the correct DR for setting up realignment.
12686
12687 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12688
12689 PR target/91719
12690 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12691 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12692 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12693 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12694
12695 2019-09-16 Jason Merrill <jason@redhat.com>
12696
12697 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12698
12699 2019-09-16 Martin Liska <mliska@suse.cz>
12700
12701 * gimple-fold.c (or_comparisons_1): Remove rules moved
12702 to ...
12703 * match.pd: ... here.
12704
12705 2019-09-16 Martin Liska <mliska@suse.cz>
12706
12707 * gimple-fold.c (or_comparisons_1): Remove rules
12708 moved to ...
12709 * match.pd: ... here.
12710
12711 2019-09-16 Martin Liska <mliska@suse.cz>
12712
12713 * genmatch.c (dt_node::append_simplify): Do not print
12714 warning when we have duplicate patterns belonging
12715 to a same simplify rule.
12716 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12717 (maybe_fold_comparisons_from_match_pd): Handle
12718 tcc_comparison as a results.
12719 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12720
12721 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12722 Qi Feng <ffengqi@linux.ibm.com>
12723
12724 PR middle-end/88784
12725 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12726 (x > y && x == XXX_MIN): Optimize into 'false'.
12727 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12728 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12729 (x < y && x == XXX_MAX): Optimize into 'false'.
12730 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12731 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12732 (x <= y || x != XXX_MIN): Optimize into 'true'.
12733 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12734 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12735 (x >= y || x != XXX_MAX): Optimize into 'true'.
12736 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12737
12738 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12739 Martin Liska <mliska@suse.cz>
12740
12741 * gimple-fold.c (and_comparisons_1): Add type as first
12742 argument.
12743 (and_var_with_comparison): Likewise.
12744 (and_var_with_comparison_1): Likewise.
12745 (or_comparisons_1): Likewise.
12746 (or_var_with_comparison): Likewise.
12747 (or_var_with_comparison_1): Likewise.
12748 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12749 (maybe_fold_or_comparisons): Likewise.
12750 (maybe_fold_comparisons_from_match_pd): New.
12751 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12752 (maybe_fold_or_comparisons): Likewise.
12753 * gimple.c (gimple_size): Make it public and add num_ops argument.
12754 (gimple_init): New function.
12755 (gimple_alloc): Call gimple_init.
12756 * gimple.h (gimple_size): New.
12757 (gimple_init): Likewise.
12758 * tree-if-conv.c (fold_or_predicates): Pass type.
12759 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12760 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12761 (optimize_vec_cond_expr): Likewise.
12762 (ovce_extract_ops): Return type of conditional expression.
12763 * tree-ssanames.c (init_ssa_name_imm_use): New.
12764 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12765 * tree-ssanames.h (init_ssa_name_imm_use): New.
12766
12767 2019-09-16 Richard Biener <rguenther@suse.de>
12768
12769 PR tree-optimization/91756
12770 PR tree-optimization/87132
12771 * tree-ssa-alias.h (enum translate_flags): New.
12772 (get_continuation_for_phi): Use it instead of simple bool flag.
12773 (walk_non_aliased_vuses): Likewise.
12774 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12775 (get_continuation_for_phi): When looking across backedges only
12776 disallow valueization.
12777 (walk_non_aliased_vuses): Adjust.
12778 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12779 if requested.
12780
12781 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12782
12783 PR middle-end/80791
12784 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12785 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12786 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12787 * target.def (have_count_reg_decr_p): New hook.
12788 (doloop_cost_for_generic): Likewise.
12789 (doloop_cost_for_address): Likewise.
12790 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12791 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12792 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12793 * doc/tm.texi: Regenerate.
12794 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12795 addend.
12796 (record_group): Init doloop_p.
12797 (add_candidate_1): Add optional argument doloop, change the handlings
12798 accordingly.
12799 (add_candidate): Likewise.
12800 (generic_predict_doloop_p): Update attribute.
12801 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12802 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12803 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12804 MIN_EXPR.
12805 (get_computation_cost): Update for doloop IV cand extra cost.
12806 (determine_group_iv_cost_cond): Update for doloop IV cand.
12807 (determine_iv_cost): Likewise.
12808 (ivopts_estimate_reg_pressure): Likewise.
12809 (may_eliminate_iv): Update handlings for doloop IV cand.
12810 (add_iv_candidate_for_doloop): New function.
12811 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12812 (iv_ca_set_no_cp): Update for doloop IV cand.
12813 (iv_ca_set_cp): Likewise.
12814 (iv_ca_dump): Dump register cost.
12815 (find_doloop_use): New function.
12816 (analyze_and_mark_doloop_use): Likewise.
12817 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12818
12819 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12820
12821 PR middle-end/91708
12822 * cse.c (cse_insn): Do not replace anything with a
12823 MEM.
12824
12825 2019-09-13 Ian Lance Taylor <iant@golang.org>
12826
12827 * doc/invoke.texi (Optimize Options): Fix typo.
12828
12829 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12830
12831 PR tree-optimization/89386
12832 * config/i386/sse.md (smulhrs<mode>3): New expander.
12833 (smulhrsv4hi3): Ditto.
12834
12835 2019-09-12 Richard Biener <rguenther@suse.de>
12836
12837 PR tree-optimization/91750
12838 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12839 in the type of the evolution.
12840
12841 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12842
12843 PR tree-optimization/89386
12844 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12845 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12846 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12847 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12848 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12849 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12850 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12851 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12852 (su, r): Handle the unspecs above.
12853 (bt): New int attribute.
12854 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12855 * internal-fn.c (first_commutative_argument): Commutativity info for
12856 above.
12857 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12858 (umulhrs_optab): New optabs.
12859 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12860 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12861 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12862 function.
12863 (vect_vect_recog_func_ptrs): Add it.
12864
12865 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12866
12867 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12868 code.
12869
12870 2019-09-11 Nathan Sidwell <nathan@acm.org>
12871
12872 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12873 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12874
12875 2019-09-11 Richard Biener <rguenther@suse.de>
12876
12877 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12878 * lto-wrapper.c (merge_and_complain): Pick up -g.
12879 (append_compiler_options): Likewise.
12880 (run_gcc): Re-instantiate handling -g0 at link-time.
12881 * doc/invoke.texi (flto): Document debug info generation.
12882
12883 2019-09-11 Richard Biener <rguenther@suse.de>
12884
12885 PR tree-optimization/90387
12886 * vr-values.c (vr_values::extract_range_basic): After inlining
12887 simplify non-constant __builtin_constant_p to false.
12888
12889 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12890
12891 PR rtl-optimization/89795
12892 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12893 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12894
12895 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12896
12897 PR tree-optimization/91723
12898 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12899 instead of pointer equality when checking if argument vectypes are
12900 the same.
12901
12902 PR middle-end/91725
12903 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12904 of get_nonzero_bits, only call it for integral types.
12905
12906 2019-09-11 Richard Biener <rguenther@suse.de>
12907
12908 Revert
12909 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12910
12911 * match.pd: Add flag_unsafe_math_optimizations check
12912 before deciding on the widest type in a binary math operation.
12913
12914 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12915
12916 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12917 and CALL_REALLY_USED_REGISTERS must be defined, and that
12918 CALL_REALLY_USED_REGISTERS is preferred.
12919 * doc/tm.texi: Regenerate.
12920 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12921 (call_really_used_regs): Likewise.
12922 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12923 CALL_REALLY_USED_REGISTERS are defined.
12924 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12925 initial value if defined.
12926 (initial_call_really_used_regs): Delete.
12927 (saved_call_really_used_regs): Likewise.
12928 (CALL_REALLY_USED_REGNO_P): Likewise.
12929 (init_reg_sets): Remove handling of call_really_used_regs.
12930 (save_register_info, restore_register_info, globalize_reg): Likewise.
12931 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12932 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12933 outside operand_reg_set.
12934 (fix_register): Don't change call_used_regs if
12935 CALL_REALLY_USED_REGISTERS is defined.
12936 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12937 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12938 instead of call_really_used_regs.
12939 (csky_conditional_register_usage): Remove the old handling of
12940 call_used_regs and change the handling of call_really_used_regs
12941 to use call_used_regs instead.
12942 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12943 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12944 making a register fixed.
12945 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12946 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12947 instead of call_really_used_regs.
12948 (m32r_conditional_register_usage): Don't set call_used_regs when
12949 making a register fixed.
12950 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12951 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12952 instead of call_really_used_regs.
12953 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12954 (mips_cfun_call_saved_reg_p): Likewise.
12955 (mips_swap_registers): Remove the old handling of call_used_regs
12956 and change the handling of call_really_used_regs to use call_used_regs
12957 instead.
12958 (mips_conditional_register_usage): Likewise.
12959 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12960 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12961 instead of call_really_used_regs.
12962 (mn10300_get_live_callee_saved_regs): Likewise.
12963 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12964 (mn10300_conditional_register_usage): Don't set call_used_regs when
12965 making a register fixed.
12966 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12967 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12968 Remove the old handling of call_used_regs and change the handling
12969 of call_really_used_regs to use call_used_regs instead.
12970 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12971 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12972 instead of call_really_used_regs.
12973 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12974 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12975 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12976 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12977 (s390_conditional_register_usage): Remove the old handling of
12978 call_used_regs and change the handling of call_really_used_regs
12979 to use call_used_regs instead.
12980 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12981 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12982 (sh_fix_range, reg_unused_after): Likewise.
12983 (sh_conditional_register_usage): Remove the old handling of
12984 call_used_regs and change the handling of call_really_used_regs
12985 to use call_used_regs instead.
12986 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12987 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12988 call_used_regs when making a register fixed.
12989 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12990 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12991 call_used_regs when making a register fixed.
12992 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12993 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12994 set call_used_regs when making a register fixed.
12995 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12996 * config/visium/visium.c (visium_conditional_register_usage): Remove
12997 the old handling of call_used_regs and change the handling of
12998 call_really_used_regs to use call_used_regs instead.
12999
13000 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13001
13002 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13003 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13004 * reginfo.c (call_used_regs): New macro.
13005
13006 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13007
13008 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13009 fixed_regs test.
13010 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13011 (bpf_expand_epilogue): Likewise.
13012 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13013 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13014 (ft32_expand_epilogue): Likewise.
13015 * config/i386/i386.c (ix86_save_reg): Likewise.
13016 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13017 (moxie_expand_epilogue): Likewise.
13018 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13019 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13020 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13021
13022 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13023
13024 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13025 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13026 instead of testing call_used_regs directly.
13027 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13028 (aarch64_components_for_bb): Likewise.
13029 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13030 * config/arc/arc.c (arc_must_save_register): Likewise.
13031 (arc_epilogue_uses): Likewise.
13032 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13033 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13034 (arm_compute_save_reg0_reg12_mask): Likewise.
13035 (arm_compute_save_core_reg_mask): Likewise.
13036 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13037 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13038 (cmse_nonsecure_entry_clear_before_return): Likewise.
13039 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13040 (arm_expand_epilogue): Likewise.
13041 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13042 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13043 (_reg_unused_after): Likewise.
13044 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13045 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13046 (add_to_reg, hwloop_optimize): Likewise.
13047 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13048 (bpf_expand_epilogue): Likewise.
13049 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13050 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13051 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13052 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13053 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13054 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13055 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13056 * config/frv/frv.c (frv_stack_info): Likewise.
13057 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13058 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13059 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13060 (move_callee_saved_registers): Likewise.
13061 * config/h8300/h8300.c (byte_reg): Likewise.
13062 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13063 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13064 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13065 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13066 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13067 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13068 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13069 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13070 * config/m32c/m32c.c (need_to_save): Likewise.
13071 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13072 * config/mcore/mcore.c (calc_live_regs): Likewise.
13073 * config/microblaze/microblaze.c (microblaze_must_save_register):
13074 Likewise.
13075 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13076 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13077 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13078 (mmix_expand_epilogue): Likewise.
13079 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13080 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13081 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13082 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13083 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13084 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13085 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13086 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13087 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13088 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13089 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13090 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13091 * config/rl78/rl78.c (need_to_save): Likewise.
13092 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13093 (rs6000_stack_info, generate_set_vrsave): Likewise.
13094 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13095 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13096 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13097 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13098 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13099 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13100 (save_local_or_in_reg_p): Likewise.
13101 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13102 (xstormy16_epilogue_uses): Likewise.
13103 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13104 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13105 * config/v850/v850.c (compute_register_save_size): Likewise.
13106 * config/vax/vax.c (vax_expand_prologue): Likewise.
13107 * config/visium/visium.c (visium_save_reg_p): Likewise.
13108 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13109 * cselib.c (cselib_process_insn): Likewise.
13110 * df-scan.c (df_get_entry_block_def_set): Likewise.
13111 * function.c (aggregate_value_p): Likewise.
13112 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13113 * ira-lives.c (process_bb_node_lives): Likewise.
13114 * ira.c (do_reload): Likewise.
13115 * lra-lives.c (process_bb_lives): Likewise.
13116 * lra-remat.c (lra_remat): Likewise.
13117 * lra.c (lra): Likewise.
13118 * postreload.c (reload_combine_recognize_pattern): Likewise.
13119 (reload_cse_move2add): Likewise.
13120 * recog.c (peep2_find_free_register): Likewise.
13121 * regrename.c (check_new_reg_p): Likewise.
13122 * reload.c (find_equiv_reg): Likewise.
13123 * reload1.c (reload, find_reg): Likewise.
13124 * sel-sched.c (init_hard_regs_data): Likewise.
13125
13126 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13127
13128 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13129 regs_invalidated_by_call & ~fixed_reg_set instead of
13130 call_used_or_fixed_regs & ~fixed_reg_set.
13131 * config/sh/sh.c (output_stack_adjust): Likewise.
13132
13133 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13134
13135 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13136 (call_used_reg_set): Delete.
13137 (call_used_or_fixed_regs): New macro.
13138 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13139 of call_used_reg_set.
13140 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13141 instead of call_used_regs.
13142 (save_call_clobbered_regs): Likewise.
13143 * cfgcleanup.c (old_insns_match_p): Likewise.
13144 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13145 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13146 Likewise.
13147 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13148 * config/sh/sh.c (output_stack_adjust): Likewise.
13149 * final.c (collect_fn_hard_reg_usage): Likewise.
13150 * ira-build.c (ira_build): Likewise.
13151 * ira-color.c (calculate_saved_nregs): Likewise.
13152 (allocno_reload_assign, calculate_spill_cost): Likewise.
13153 * ira-conflicts.c (ira_build_conflicts): Likewise.
13154 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13155 * ira-lives.c (process_bb_node_lives): Likewise.
13156 * ira.c (setup_reg_renumber): Likewise.
13157 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13158 * lra-constraints.c (need_for_call_save_p): Likewise.
13159 (need_for_split_p, inherit_in_ebb): Likewise.
13160 * lra-lives.c (process_bb_lives): Likewise.
13161 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13162 * postreload.c (reload_combine): Likewise.
13163 * regrename.c (find_rename_reg): Likewise.
13164 * reload1.c (reload_as_needed): Likewise.
13165 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13166 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13167 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13168
13169 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13170
13171 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13172 (no_caller_save_reg_set): Delete.
13173 * caller-save.c (init_caller_save): Don't initialize it.
13174 * ira-conflicts.c (ira_build_conflicts): Calculate
13175 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13176
13177 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13178
13179 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13180 (target_hard_regs::x_savable_regs): New field.
13181 (call_fixed_reg_set): Delete.
13182 (savable_regs): New macro,
13183 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13184 (init_reg_sets_1): Likewise. Initialize savable_regs.
13185 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13186 for all registers. Set savable_regs instead of call_fixed_reg_set.
13187 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13188 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13189 * config/sh/sh.c (output_stack_adjust): Likewise.
13190
13191 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13192
13193 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13194 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13195 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13196
13197 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13198
13199 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13200 * rtlanal.c (get_call_rtx_from): Likewise.
13201 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13202 than the pattern to get_call_rtx_from.
13203 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13204 an rtx_insn * instead of an rtx.
13205 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13206
13207 2019-09-10 Martin Liska <mliska@suse.cz>
13208
13209 * common.opt: Use newly added WarnRemoved.
13210 * config/aarch64/aarch64.opt: Likewise.
13211 * config/arm/arm.opt: Likewise.
13212 * config/i386/i386.opt: Likewise.
13213 * config/ia64/ia64.opt: Likewise.
13214 * config/rs6000/rs6000.opt: Likewise.
13215 * doc/options.texi: Document WarnRemoved properly.
13216 * dwarf2out.c (gen_producer_string): Handle renamed
13217 OPT_SPECIAL_warn_removed.
13218 * lto-opts.c (lto_write_options): Likewise.
13219 * lto-wrapper.c (merge_and_complain): Likewise.
13220 * opts-common.c (decode_cmdline_option): Likewise.
13221 (prune_options): Likewise.
13222 (read_cmdline_option): Likewise.
13223 (control_warning_option): Likewise.
13224 * opts.c (print_filtered_help): Likewise.
13225 * optc-gen.awk: Parse for WarnRemoved and make usage
13226 of Deprecated an error.
13227 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13228
13229 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13230
13231 * doc/install.texi: Fix syntax for html generation.
13232
13233 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13234
13235 PR middle-end/91680
13236 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13237 the shift type to type.
13238
13239 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13240
13241 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13242 FDPIC mode.
13243 (stack_protect_combined_test_insn): Likewise.
13244
13245 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13246 Mickaël Guêné <mickael.guene@st.com>
13247
13248 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13249 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13250 (load_tp_soft_fdpic): New pattern.
13251 (load_tp_soft): Disable in FDPIC mode.
13252
13253 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13254 Mickaël Guêné <mickael.guene@st.com>
13255
13256 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13257 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13258 (arm_call_tls_get_addr): Add FDPIC support.
13259 (legitimize_tls_address): Likewise.
13260 (arm_emit_tls_decoration): Likewise.
13261
13262 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13263 Mickaël Guêné <mickael.guene@st.com>
13264
13265 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13266 support.
13267 (arm_trampoline_init): Likewise.
13268 (arm_trampoline_adjust_address): Likewise.
13269 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13270
13271 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13272 Mickaël Guêné <mickael.guene@st.com>
13273
13274 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13275 (legitimize_pic_address): Enforce binding rules on function
13276 pointers in FDPIC mode.
13277 (arm_assemble_integer): Likewise.
13278
13279 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13280 Mickaël Guêné <mickael.guene@st.com>
13281
13282 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13283 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13284 FDPIC.
13285
13286 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13287 Mickaël Guêné <mickael.guene@st.com>
13288
13289 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13290 field.
13291
13292 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13293 Mickaël Guêné <mickael.guene@st.com>
13294
13295 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13296 in FDPIC mode.
13297 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13298 new function.
13299 * config/arm/arm.c (arm_option_override): Define pic register to
13300 FDPIC_REGNUM.
13301 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13302 have no decl or go through PLT.
13303 (calculate_pic_address_constant): New function.
13304 (legitimize_pic_address): Call calculate_pic_address_constant.
13305 (arm_load_pic_register): Handle TARGET_FDPIC.
13306 (arm_is_segment_info_known): New function.
13307 (arm_pic_static_addr): Add support for FDPIC.
13308 (arm_load_function_descriptor): New function.
13309 (arm_emit_call_insn): Add support for FDPIC.
13310 (arm_assemble_integer): Add support for FDPIC.
13311 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13312 Define. (FDPIC_REGNUM): New define.
13313 * config/arm/arm.md (call): Add support for FDPIC.
13314 (call_value): Likewise.
13315 (restore_pic_register_after_call): New pattern.
13316 (untyped_call): Disable if FDPIC.
13317 (untyped_return): Likewise.
13318 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13319
13320 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13321 Mickaël Guêné <mickael.guene@st.com>
13322
13323 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13324 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13325 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13326 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13327 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13328 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13329 * config/arm/uclinuxfdpiceabi.h: New file.
13330
13331 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13332
13333 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13334
13335 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13336 Mickaël Guêné <mickael.guene@st.com>
13337
13338 * config/arm/arm.opt: Add -mfdpic option.
13339 * doc/invoke.texi: Add documentation for -mfdpic.
13340
13341 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13342
13343 * expmed.c (extract_bit_field): Update function comment
13344 regarding alt_rtl.
13345 * expr.c (expand_expr_real): Update function comment
13346 regarding alt_rtl.
13347 (expand_misaligned_mem_ref): New helper function.
13348 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13349 Remove duplicate assignment to "base" at case MEM_REF.
13350 Remove a shadowed variable "unsignedp" at case VCE.
13351
13352 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13353
13354 * regset.h (regs_invalidated_by_call_regset): Delete.
13355 (fixed_reg_set_regset): Likewise.
13356 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13357 (fixed_reg_set_regset, persistent_obstack): Likewise.
13358 (init_reg_sets_1, globalize_reg): Update accordingly.
13359 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13360 instead of a bitmap.
13361 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13362 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13363 instead of regs_invalidated_by_call_regset.
13364 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13365 * df-scan.c (df_scan_start_dump): Likewise.
13366 * dse.c (copy_fixed_regs): Likewise.
13367 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13368
13369 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13370
13371 * array-traits.h: New file.
13372 * coretypes.h (array_traits, bitmap_view): New types.
13373 * bitmap.h: Include "array-traits.h"
13374 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13375 (base_bitmap_view, bitmap_view): New classes.
13376 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13377 * hard-reg-set.h: Include array-traits.h.
13378 (array_traits<HARD_REG_SET>): New struct.
13379 * regset.h (IOR_REG_SET_HRS): New macro.
13380 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13381 rather than iterating over each hard register.
13382 * sched-deps.c (sched_analyze_insn): Likewise.
13383 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13384
13385 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13386
13387 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13388 instead of a HARD_REG_SET *.
13389 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13390 (ira_build): Update call accordingly.
13391 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13392
13393 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13394
13395 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13396 (HARD_REG_SET::operator!=): Likewise.
13397 (hard_reg_set_equal_p): Delete.
13398 * cfgcleanup.c (old_insns_match_p): Use == instead of
13399 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13400 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13401 (add_allocno_hard_regs_to_forest): Likewise.
13402 (setup_allocno_available_regs_num): Likewise.
13403 * ira.c (setup_pressure_classes): Likewise.
13404 (setup_allocno_and_important_classes): Likewise.
13405 (setup_reg_class_relations): Likewise.
13406 * lra-lives.c (process_bb_lives): Likewise.
13407 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13408
13409 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13410
13411 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13412 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13413 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13414 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13415 Likewise.
13416 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13417 * ira.c (setup_reg_renumber): Likewise.
13418 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13419 * regrename.c (regrename_find_superclass): Likewise.
13420 * reload1.c (find_reg): Likewise.
13421
13422 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13423
13424 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13425 * caller-save.c (setup_save_areas): Use "&~" instead of
13426 AND_COMPL_HARD_REG_SET.
13427 (save_call_clobbered_regs): Likewise.
13428 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13429 Likewise.
13430 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13431 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13432 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13433 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13434 (mips_conditional_register_usage): Likewise.
13435 * config/sh/sh.c (output_stack_adjust): Likewise.
13436 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13437 (setup_profitable_hard_regs): Likewise.
13438 (get_conflict_and_start_profitable_regs): Likewise.
13439 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13440 (ira_build_conflicts): Likewise.
13441 * ira-costs.c (restrict_cost_classes): Likewise.
13442 (setup_regno_cost_classes_by_aclass): Likewise.
13443 * ira-lives.c (process_bb_node_lives): Likewise.
13444 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13445 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13446 (setup_allocno_and_important_classes, setup_class_translate_array)
13447 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13448 Likewise.
13449 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13450 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13451 (process_alt_operands, inherit_in_ebb): Likewise.
13452 * lra-eliminations.c (update_reg_eliminate): Likewise.
13453 * lra-lives.c (process_bb_lives): Likewise.
13454 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13455 * resource.c (find_dead_or_set_registers): Likewise.
13456 (mark_target_live_regs): Likewise.
13457 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13458 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13459 (implicit_clobber_conflict_p): Likewise.
13460 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13461 (try_shrink_wrapping): Likewise.
13462
13463 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13464
13465 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13466 (HARD_REG_SET::operator|=): Likewise.
13467 (IOR_HARD_REG_SET): Delete.
13468 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13469 IOR_HARD_REG_SET.
13470 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13471 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13472 * final.c (collect_fn_hard_reg_usage): Likewise.
13473 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13474 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13475 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13476 (propagate_some_info_from_allocno): Likewise.
13477 (copy_info_to_removed_store_destinations): Likewise.
13478 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13479 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13480 (fast_allocation): Likewise.
13481 * ira-conflicts.c (ira_build_conflicts): Likewise.
13482 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13483 (process_bb_node_lives): Likewise.
13484 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13485 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13486 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13487 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13488 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13489 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13490 (process_bb_lives): Likewise.
13491 * lra-spills.c (assign_spill_hard_regs): Likewise.
13492 * postreload.c (reload_combine): Likewise.
13493 * reginfo.c (init_reg_sets_1): Likewise.
13494 * regrename.c (merge_overlapping_regs, find_rename_reg)
13495 (merge_chains): Likewise.
13496 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13497 (find_reload_regs, finish_spills, choose_reload_regs_init)
13498 (emit_reload_insns): Likewise.
13499 * reorg.c (redundant_insn): Likewise.
13500 * resource.c (find_dead_or_set_registers, mark_set_resources)
13501 (mark_target_live_regs): Likewise.
13502 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13503 * sched-deps.c (sched_analyze_insn): Likewise.
13504 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13505 (find_best_reg_for_expr): Likewise.
13506 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13507
13508 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13509
13510 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13511 (HARD_REG_SET::operator&): Likewise.
13512 (AND_HARD_REG_SET): Delete.
13513 * caller-save.c (setup_save_areas): Use "&" instead of
13514 AND_HARD_REG_SET.
13515 (save_call_clobbered_regs): Likewise.
13516 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13517 * config/m32c/m32c.c (reduce_class): Likewise.
13518 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13519 * final.c (get_call_reg_set_usage): Likewise.
13520 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13521 (setup_left_conflict_sizes_p): Likewise.
13522 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13523 (ira_build_conflicts): Likewise.
13524 * ira-costs.c (restrict_cost_classes): Likewise.
13525 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13526 (setup_reg_class_relations): Likewise.
13527 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13528 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13529 * resource.c (find_dead_or_set_registers): Likewise.
13530 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13531
13532 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13533
13534 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13535 (COMPL_HARD_REG_SET): Delete.
13536 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13537 of COMPL_HARD_REG_SET.
13538 (try_rename_operands): Likewise.
13539 * config/sh/sh.c (push_regs): Likewise.
13540 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13541 * lra-constraints.c (contains_reg_p): Likewise.
13542 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13543
13544 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13545
13546 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13547 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13548 of COPY_HARD_REG_SET.
13549 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13550 (epiphany_conditional_register_usage): Likewise.
13551 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13552 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13553 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13554 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13555 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13556 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13557 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13558 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13559 * config/sh/sh.c (output_stack_adjust): Likewise.
13560 * final.c (collect_fn_hard_reg_usage): Likewise.
13561 (get_call_reg_set_usage): Likewise.
13562 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13563 (ira_flattening): Likewise.
13564 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13565 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13566 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13567 (ira_reassign_pseudos): Likewise.
13568 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13569 (ira_build_conflicts): Likewise.
13570 * ira-costs.c (restrict_cost_classes): Likewise.
13571 (setup_regno_cost_classes_by_aclass): Likewise.
13572 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13573 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13574 (setup_stack_reg_pressure_class, setup_pressure_classes)
13575 (setup_allocno_and_important_classes, setup_class_translate_array)
13576 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13577 (ira_setup_eliminable_regset): Likewise.
13578 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13579 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13580 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13581 (process_alt_operands, inherit_in_ebb): Likewise.
13582 * lra-lives.c (process_bb_lives): Likewise.
13583 * lra-spills.c (assign_spill_hard_regs): Likewise.
13584 * lra.c (lra): Likewise.
13585 * mode-switching.c (new_seginfo): Likewise.
13586 * postreload.c (reload_combine): Likewise.
13587 * reg-stack.c (straighten_stack): Likewise.
13588 * reginfo.c (save_register_info, restore_register_info): Likewise.
13589 (init_reg_sets_1, record_subregs_of_mode): Likewise
13590 * regrename.c (create_new_chain, rename_chains): Likewise.
13591 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13592 (find_reload_regs): Likewise.
13593 * resource.c (find_dead_or_set_registers): Likewise.
13594 (mark_target_live_regs): Likewise.
13595 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13596
13597 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13598
13599 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13600 (note_pattern_stores): Declare.
13601 (note_stores): Take an rtx_insn *.
13602 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13603 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13604 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13605 (note_stores): Take an rtx_insn * as argument and process
13606 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13607 (note_pattern_stores): ...this.
13608 (find_first_parameter_load): Pass the insn rather than
13609 its pattern to note_stores.
13610 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13611 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13612 (insert_one_insn): Likewise.
13613 * combine.c (combine_instructions): Likewise.
13614 (likely_spilled_retval_p): Likewise.
13615 (try_combine): Use note_pattern_stores instead of note_stores.
13616 (record_dead_and_set_regs): Pass the insn rather than its pattern
13617 to note_stores.
13618 (reg_dead_at_p): Likewise.
13619 * config/bfin/bfin.c (workaround_speculation): Likewise.
13620 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13621 rather than an rtx.
13622 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13623 instead of note_stores.
13624 (frv_optimize_membar_local): Pass the insn rather than its pattern
13625 to note_stores.
13626 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13627 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13628 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13629 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13630 (mips_reorg_process_insns): Likewise.
13631 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13632 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13633 rather than rtxes.
13634 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13635 its pattern to note_stores.
13636 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13637 of note_stores.
13638 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13639 the insn to note_stores.
13640 (prescan_insns_for_dce): Update call accordingly.
13641 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13642 to note_stores.
13643 * df-problems.c (can_move_insns_across): Likewise.
13644 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13645 * function.c (assign_parm_setup_reg): Likewise.
13646 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13647 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13648 (single_set_gcse): Likewise.
13649 * ira.c (validate_equiv_mem): Likewise.
13650 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13651 for no_equiv.
13652 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13653 pattern to note_stores.
13654 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13655 * loop-iv.c (simplify_using_initial_values): Likewise.
13656 * mode-switching.c (optimize_mode_switching): Likewise.
13657 * optabs.c (emit_libcall_block_1): Likewise.
13658 (expand_atomic_compare_and_swap): Likewise.
13659 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13660 (record_opr_changes): Likewise. Remove explicit handling of
13661 CALL_INSN_FUNCTION_USAGE.
13662 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13663 * regcprop.c (kill_clobbered_values): Likewise.
13664 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13665 to note_stores.
13666 * regrename.c (build_def_use): Likewise.
13667 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13668 for mark_not_eliminable.
13669 (reload_as_needed): Pass the insn rather than its pattern
13670 to note_stores.
13671 (emit_output_reload_insns): Likewise.
13672 * resource.c (mark_target_live_regs): Likewise.
13673 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13674 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13675 instead of note_stores.
13676 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13677 its pattern to note_stores.
13678 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13679 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13680
13681 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13682
13683 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13684 than a #define. Use a structure rather than an array as the
13685 fallback definition. Remove special cases for low array sizes.
13686 (const_hard_reg_set): New typedef.
13687 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13688 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13689 (hard_reg_set_empty_p): Likewise.
13690 (SET_HARD_REG_BIT): Use a function rather than a macro to
13691 handle the case in which HARD_REG_SET is a structure.
13692 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13693 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13694 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13695 (IOR_COMPL_HARD_REG_SET): Likewise.
13696 (hard_reg_set_iterator::pset): Constify the pointer target.
13697 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13698 of a "const HARD_REG_SET". Update the handling of non-integer
13699 HARD_REG_SETs.
13700 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13701 * reload.h: Likewise.
13702 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13703 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13704 of a "const HARD_REG_SET".
13705 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13706 (range_in_hard_reg_set_p): Likewise.
13707 * ira-costs.c (restrict_cost_classes): Likewise.
13708 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13709 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13710 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13711 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13712 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13713 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13714 take an unsigned int and open-code the HARD_REG_SET operations.
13715
13716 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13717
13718 * Makefile.in (OBJS): Remove bt-load.o.
13719 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13720 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13721 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13722 document that the option no longer does anything.
13723 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13724 * target.def (branch_target_register_class): Delete.
13725 (branch_target_register_callee_saved): Likewise.
13726 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13727 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13728 * doc/tm.texi: Regenerate.
13729 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13730 (make_pass_branch_target_load_optimize2): Likewise.
13731 * passes.def (pass_branch_target_load_optimize1): Likewise.
13732 (pass_branch_target_load_optimize2): Likewise.
13733 * targhooks.h (default_branch_target_register_class): Likewise.
13734 * targhooks.c (default_branch_target_register_class): Likewise.
13735 * opt-suggestions.c (test_completion_valid_options): Remove
13736 -fbtr-bb-exclusive from the list of test options.
13737 * bt-load.c: Remove.
13738
13739 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13740
13741 * match.pd: Add flag_unsafe_math_optimizations check
13742 before deciding on the widest type in a binary math operation.
13743
13744 2019-09-09 Martin Liska <mliska@suse.cz>
13745
13746 * config/i386/i386.opt: Update comment of removed
13747 options that are preserved only for backward
13748 compatibility.
13749
13750 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13751
13752 PR target/87853
13753 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13754 instead of __v16qs.
13755
13756 PR target/91704
13757 * config/i386/avxintrin.h (__v32qs): New typedef.
13758 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13759 instead of __v32qi.
13760
13761 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13762
13763 * doc/invoke.texi (Option Summary): Cover eBPF.
13764 (eBPF Options): New section.
13765 * doc/extend.texi (BPF Built-in Functions): Likewise.
13766 (BPF Kernel Helpers): Likewise.
13767
13768 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13769
13770 * config.gcc: Support for bpf-*-* targets.
13771 * common/config/bpf/bpf-common.c: New file.
13772 * config/bpf/t-bpf: Likewise.
13773 * config/bpf/predicates.md: Likewise.
13774 * config/bpf/constraints.md: Likewise.
13775 * config/bpf/bpf.opt: Likewise.
13776 * config/bpf/bpf.md: Likewise.
13777 * config/bpf/bpf.h: Likewise.
13778 * config/bpf/bpf.c: Likewise.
13779 * config/bpf/bpf-protos.h: Likewise.
13780 * config/bpf/bpf-opts.h: Likewise.
13781 * config/bpf/bpf-helpers.h: Likewise.
13782 * config/bpf/bpf-helpers.def: Likewise.
13783
13784 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13785
13786 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13787 indirect_calls.
13788
13789 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13790
13791 * opt-functions.awk (integer_range_info): Make sure values are in
13792 numeric context before operating with them.
13793
13794 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13795
13796 * genemit.c (gen_split): Print the filename and line number where the
13797 splitter (or peephole2) was defined, to the dump file.
13798
13799 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13800
13801 PR tree-optimization/91665
13802 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13803 incompatible with the type of PHI result.
13804
13805 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13806
13807 PR target/91684
13808 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13809 gen_unaligned_storedi for 4-byte aligned addresses.
13810
13811 2019-09-06 Jim Wilson <jimw@sifive.com>
13812
13813 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13814 change.
13815
13816 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13817
13818 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13819
13820 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13821
13822 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13823 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13824
13825 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13826
13827 PR target/91654
13828 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13829 cost of SSE->integer and integer->SSE moves from 2 to 6.
13830 (core_cost): Ditto.
13831
13832 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13833
13834 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13835 before testing TYPE_TRANSPARENT_AGGR.
13836 * calls.c (initialize_argument_information, load_register_parameters):
13837 Likewise.
13838
13839 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13840
13841 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13842 high regs.
13843 (cmp_ior): Likewise.
13844
13845 2019-09-06 Martin Liska <mliska@suse.cz>
13846
13847 * doc/match-and-simplify.texi: Separate tuples with ;.
13848
13849 2019-09-06 Martin Liska <mliska@suse.cz>
13850
13851 PR c++/91125
13852 * Makefile.in: Remove tlink.o.
13853 * collect2.c (do_link): New function isolated
13854 from do_tlink.
13855 (main): Use.
13856 * collect2.h (do_tlink): Remove declaration of do_tlink.
13857 * doc/extend.texi: Remove documentation of -frepo.
13858 * doc/invoke.texi: Likewise.
13859 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13860 * tlink.c: Remove.
13861
13862 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13863 Jim Wilson <jimw@sifive.com>
13864
13865 PR target/91635
13866 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13867 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13868 paradoxical_subreg_p (operands[0]).
13869 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13870 use as intermediate value.
13871
13872 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13873
13874 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13875 (sync_compare_and_swap<mode>_insn): Likewise.
13876
13877 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13878
13879 PR middle-end/91615
13880 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13881 without movmisalign optab.
13882
13883 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13884
13885 PR middle-end/91001
13886 PR middle-end/91105
13887 PR middle-end/91106
13888 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13889 types, use type of their first field instead of type of
13890 args[i].tree_value.
13891
13892 2019-09-05 Richard Biener <rguenther@suse.de>
13893
13894 PR rtl-optimization/91656
13895 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13896 of early out.
13897
13898 2019-09-05 Richard Biener <rguenther@suse.de>
13899
13900 PR middle-end/90501
13901 * tree-inline.c (declare_return_variable): Mark the return
13902 slot as addressable after building an address of it.
13903
13904 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13905
13906 * doc/install.texi: Update and clarify requirements to build GNAT.
13907
13908 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13909
13910 PR middle-end/91577
13911 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13912 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13913 call to be in memory.
13914 (pass_expand::execute): Call discover_nonconstant_array_refs before
13915 setting currently_expanding_to_rtl.
13916
13917 2019-09-04 Caroline Tice <cmtice@google.com>
13918
13919 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13920 specified together.
13921
13922 2019-09-04 Marek Polacek <polacek@redhat.com>
13923
13924 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13925
13926 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13927
13928 PR target/32413
13929 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13930 for QI and HImode moves between SSE and general registers.
13931
13932 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13933
13934 PR c/78736
13935 * doc/invoke.texi: Document -Wenum-conversion.
13936
13937 2019-09-04 Richard Biener <rguenther@suse.de>
13938
13939 PR rtl-optimization/36262
13940 * postreload-gcse.c: Include intl.h and gcse.h.
13941 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13942 to avoid linear list walk.
13943 (record_last_mem_set_info): Gate off if not computing transparentness.
13944 (get_bb_avail_insn): If transparentness isn't computed give up
13945 early.
13946 (gcse_after_reload_main): Skip compute_transp and extended PRE
13947 if gcse_or_cprop_is_too_expensive says so.
13948
13949 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13950
13951 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13952 noinit section.
13953 (msp430_select_section): Handle decls with the "noinit" attribute with
13954 default_elf_select_section.
13955 Handle SECCAT_RODATA_MERGE_* section types with
13956 default_elf_select_section.
13957 Add comments about handling of unsupported section types.
13958 (msp430_section_type_flags): Remove handling of the noinit section.
13959
13960 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13961
13962 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13963 conflicting msp430-specific attributes.
13964 (msp430_section_attr): Likewise.
13965 Add warnings about conflicts with generic "noinit" and "section"
13966 attributes.
13967 Fix grammar in -mlarge error message.
13968 (msp430_data_attr): Rename to msp430_persist_attr.
13969 Add warnings about conflicts with generic "noinit" and "section"
13970 attributes.
13971 Add warning for when variable is not initialized.
13972 Chain conditionals which prevent the attribute being added.
13973 (ATTR_EXCL): New helper.
13974 (attr_reent_exclusions): New exclusion table.
13975 (attr_naked_exclusions): Likewise.
13976 (attr_crit_exclusions): Likewise.
13977 (attr_lower_exclusions): Likewise.
13978 (attr_upper_exclusions): Likewise.
13979 (attr_either_exclusions): Likewise.
13980 (attr_persist_exclusions): Likewise.
13981 (msp430_attribute_table): Update with exclusion rules.
13982 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13983 has a section.
13984
13985 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13986
13987 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13988 (msp430_handle_generic_attribute): New function.
13989 * doc/tm.texi: Regenerate.
13990 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13991 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13992 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13993 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13994
13995 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13996
13997 PR tree-optimization/91504
13998 * match.pd: Add ((~a & b) ^a) --> (a | b).
13999
14000 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14001
14002 PR target/91604
14003 * config/i386/i386-expand.c (split_double_mode): If there is more than
14004 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14005 already split matching MEM operand instead of calling adjust_address
14006 again.
14007
14008 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14009
14010 * config.gcc: Obsolete spu target. Remove references to spu.
14011 * configure.ac: Remove references to spu.
14012 * configure: Regenerate.
14013 * config/spu/: Remove directory.
14014 * common/config/spu/: Remove directory.
14015
14016 * doc/extend.texi: Remove references to spu.
14017 * doc/invoke.texi: Likewise.
14018 * doc/md.texi: Likewise.
14019 * doc/sourcebuild.texi: Likewise.
14020
14021 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14022
14023 PR middle-end/91603
14024 PR middle-end/91612
14025 PR middle-end/91613
14026 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14027 and SSA_NAME referring to CONSTANT_P correctly.
14028
14029 2019-09-03 Richard Biener <rguenther@suse.de>
14030
14031 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14032 (vn_nary_op_insert): Likewise.
14033 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14034 (vn_nary_op_lookup): Likewise.
14035 (vn_nary_op_insert): Likewise.
14036
14037 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14038
14039 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14040 (*op0, 1) instead of XEXP (*op1, 0).
14041
14042 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14043
14044 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14045 (aarch64_fjcvtzs): New define_insn.
14046 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14047 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14048 Add AARCH64_JSCVT.
14049 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14050 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14051 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14052 __ARM_FEATURE_JCVT where appropriate.
14053 * config/aarch64/arm_acle.h (__jcvt): Define.
14054
14055 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14056
14057 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14058 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14059 (aarch64_<frintnzs_op><mode>): New define_insn.
14060 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14061 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14062 __ARM_FEATURE_FRINT when appropriate.
14063 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14064 frint32x, frint64z, frint64x.
14065 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14066 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14067 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14068 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14069 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14070 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14071 * config/aarch64/iterators.md (VSFDF): Define.
14072 (FRINTNZX): Likewise.
14073 (frintnzs_op): Likewise.
14074
14075 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14076
14077 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14078 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14079 Cortex-A34.
14080 * config/aarch64/aarch64-tune.md: Regenerated.
14081 * doc/invoke.texi: Document the new processors.
14082
14083 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14084
14085 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14086 string.
14087 (ssbs): Likewise.
14088 (sve2): Likewise.
14089 (sve2-sm4): Likewise.
14090 (sveaes): Likewise.
14091 (svesha3): Likewise.
14092 (svebitperm): Likewise.
14093
14094 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14095 Richard Biener <rguenther@suse.de>
14096
14097 PR tree-optimization/91597
14098 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14099 BIT_AND_EXPR optimization for pointers, even if both operand
14100 ranges don't include NULL, the result can be NULL.
14101
14102 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14103
14104 PR middle-end/91605
14105 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14106 (non_mem_decl_p): ...this.
14107 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14108 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14109 unconditionally as before.
14110
14111 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14112
14113 PR target/91323
14114 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14115 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14116 * tree.def (LTGT_EXPR): Likewise.
14117 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14118
14119 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14120
14121 PR go/91617
14122 * fold-const.c (range_check_type): For enumeral and boolean
14123 type, pass 1 to type_for_size langhook instead of
14124 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14125 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14126 (build_range_check): Don't call unsigned_type_for for pointer types.
14127 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14128 range_check_type result.
14129
14130 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14131
14132 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14133 (replace_ref): Do not replace a chain of only two candidates which are
14134 valid memory references.
14135
14136 2019-09-02 Martin Liska <mliska@suse.cz>
14137
14138 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14139 Bail out when we'll end up with the same number of clusters as
14140 at the beginning.
14141 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14142 (jump_table_cluster::can_be_handled): Remove the guard
14143 as it's already handled in ::is_enabled. Allocate output
14144 after early bail out.
14145
14146 2019-09-02 Martin Liska <mliska@suse.cz>
14147
14148 PR gcov-profile/91601
14149 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14150 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14151 also negative edges.
14152 (circuit): Handle also negative edges as they can happen
14153 in some situations.
14154
14155 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14156
14157 PR target/91472
14158 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14159 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14160 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14161
14162 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14163
14164 PR middle-end/91623
14165 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14166 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14167 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14168 zero vector.
14169
14170 PR lto/91572
14171 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14172 GIMPLE_ASM TREE_LIST operands.
14173
14174 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14175
14176 * doc/generic.texi (Unary and Binary Expressions): Mark up
14177 an instance of TYPE_MIN.
14178
14179 2019-08-31 Stafford Horne <shorne@gmail.com>
14180
14181 * config/or1k/constraints.md (t): New constraint.
14182 * config/or1k/or1k.h (GOT_REGS): New register class.
14183 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14184
14185 2019-08-30 Jim Wilson <jimw@sifive.com>
14186
14187 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14188 and -fpic and -mplt then disable -msave-restore and warn.
14189
14190 2019-08-30 Martin Sebor <msebor@redhat.com>
14191
14192 PR middle-end/91599
14193 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14194 the statement doesn't have one.
14195 * gimple-pretty-print.c (percent_G_format): Same.
14196
14197 PR middle-end/91584
14198 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14199 before using them to validate MEM_REF offset.
14200
14201 2019-08-30 Marek Polacek <polacek@redhat.com>
14202
14203 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14204
14205 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14206
14207 * config/arm/arm.md (unaligned_loaddi,
14208 unaligned_storedi): New unspec insn patterns.
14209 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14210 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14211 and unaligned_storedi for 4-byte aligned memory.
14212 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14213 4-byte aligned memory.
14214
14215 2019-08-30 Martin Jambor <mjambor@suse.cz>
14216
14217 tree-optimization/91579
14218 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14219 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14220 appropriate.
14221 (arg_needs_copy_p): Removed.
14222 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14223 arg_needs_copy_p.
14224 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14225
14226 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14227
14228 * config/i386/i386-features.c
14229 (general_scalar_chain::compute_convert_gain):
14230 Correct cost for double-word shifts.
14231 (general_scalar_to_vector_candidate_p): Reject count operands
14232 greater or equal to mode bitsize.
14233
14234 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14235
14236 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14237 for moves between SSE and non-general registers and between
14238 mask and non-general registers.
14239 (ix86_register_move_cost): Remove stalled comment.
14240
14241 2019-08-29 Richard Biener <rguenther@suse.de>
14242
14243 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14244 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14245
14246 2019-08-29 Richard Biener <rguenther@suse.de>
14247
14248 PR bootstrap/91580
14249 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14250 Do not emit scalar copies for debug-insns, instead replace
14251 their uses with the reg copy used in the chain or reset them
14252 if there is a reaching definition outside of the chain as well.
14253
14254 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14255
14256 PR target/91560
14257 * config/i386/i386-expand.c (expand_vec_perm_movs,
14258 expand_vec_perm_blend, expand_vec_perm_vpermil,
14259 expand_vec_perm_pshufb, expand_vec_perm_1,
14260 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14261 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14262 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14263 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14264 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14265 comments - replace ix86_expand_vec_perm_builtin_1 with
14266 ix86_expand_vec_perm_const_1.
14267 (expand_vec_perm2_vperm2f128_vblend): New function.
14268 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14269 expand_vec_perm2_vperm2f128_vblend as last resort.
14270 (canonicalize_perm): Formatting fix.
14271
14272 PR tree-optimization/91351
14273 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14274 unsigned_type_for.
14275 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14276 range_check_type returns NULL.
14277 * tree-switch-conversion.c (switch_conversion::build_one_array):
14278 Use range_check_type instead of unsigned_type_for, don't perform
14279 linear opt if it returns NULL.
14280 (bit_test_cluster::find_bit_tests): Formatting fix.
14281 (bit_test_cluster::emit): Use range_check_type instead of
14282 unsigned_type_for.
14283 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14284 returns NULL.
14285
14286 2019-08-29 Richard Biener <rguenther@suse.de>
14287
14288 PR tree-optimization/91568
14289 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14290 (vect_update_max_nunits): Add overload for poly_uint64.
14291 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14292 (vect_build_slp_tree): Record max_nunits into the subtree
14293 and merge it upwards.
14294 (vect_print_slp_tree): Print max_nunits.
14295
14296 2019-08-28 Marek Polacek <polacek@redhat.com>
14297
14298 Implement P1152R4: Deprecating some uses of volatile.
14299 PR c++/91361
14300 * doc/invoke.texi: Document -Wvolatile.
14301
14302 2019-08-28 Marek Polacek <polacek@redhat.com>
14303
14304 PR c++/91360 - Implement C++20 P1143R2: constinit.
14305 * doc/invoke.texi: Document -Wc++20-compat.
14306
14307 2019-08-28 Martin Sebor <msebor@redhat.com>
14308
14309 PR tree-optimization/91457
14310 * builtins.c (component_size): New function.
14311 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14312 * builtins.h (compute_objsize): Add argument.
14313 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14314 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14315 (vrp_prop::check_mem_ref): Same.
14316 (vrp_prop::search_for_addr_array): Set no-warning bit.
14317 (check_array_bounds): Same.
14318
14319 2019-08-28 Martin Sebor <msebor@redhat.com>
14320
14321 PR driver/80545
14322 * opts-common.c (option_enabled): Correct checking for language
14323 options.
14324
14325 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14326
14327 * config/i386/i386.c (ix86_register_move_cost): Do not
14328 limit the cost of moves to/from XMM register to minimum 8.
14329
14330 2019-08-28 Martin Jambor <mjambor@suse.cz>
14331
14332 PR ipa/91468
14333 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14334 checking assert a normal assert to test it really is redundant.
14335 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14336 redundant test.
14337 (update_jump_functions_after_inlining): Removed combining unary
14338 arithmetic operations with an ancestor jump function.
14339 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14340 instead of t.
14341
14342 2019-08-28 Richard Biener <rguenther@suse.de>
14343
14344 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14345 add the MD problem.
14346
14347 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14348 Richard Biener <rguenther@suse.de>
14349
14350 * expr.c (expand_assignment): Handle misaligned DECLs.
14351 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14352 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14353 too.
14354 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14355 * varasm.c (build_constant_desc): Align constants of misaligned types.
14356 * config/arm/predicates.md (aligned_operand): New predicate.
14357 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14358 aligned_operand to check restrictions on memory addresses.
14359 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14360 * config/arm/vec-common.md (mov<VALL>): Likewise.
14361
14362 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14363
14364 PR libgomp/91530
14365 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14366 V_128 iterator instead of VI_128.
14367
14368 2019-08-28 Martin Liska <mliska@suse.cz>
14369
14370 PR tree-optimization/90970
14371 * builtins.c (check_access): Remove assignment to maxread
14372 as it hasn't been used since when it was introduced in r255755.
14373
14374 2019-08-27 Martin Sebor <msebor@redhat.com>
14375
14376 PR tree-optimization/91567
14377 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14378 of unknown strings.
14379 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14380 to PTRDIFF_MAX - 2.
14381
14382 2019-08-27 Jeff Law <law@redhat.com>
14383
14384 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14385 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14386
14387 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14388
14389 PR target/91528
14390 * config/i386/i386-features.c (convert_scalars_to_vector):
14391 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14392 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14393 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14394 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14395
14396 2019-08-27 Richard Biener <rguenther@suse.de>
14397
14398 * config/i386/i386-features.h
14399 (general_scalar_chain::~general_scalar_chain): Add.
14400 (general_scalar_chain::insns_conv): New bitmap.
14401 (general_scalar_chain::n_sse_to_integer): New.
14402 (general_scalar_chain::n_integer_to_sse): Likewise.
14403 (general_scalar_chain::make_vector_copies): Adjust signature.
14404 * config/i386/i386-features.c
14405 (general_scalar_chain::general_scalar_chain): Outline,
14406 initialize new members.
14407 (general_scalar_chain::~general_scalar_chain): New.
14408 (general_scalar_chain::mark_dual_mode_def): Record insns
14409 we need to insert conversions at and count them.
14410 (general_scalar_chain::compute_convert_gain): Account
14411 for conversion instructions at chain boundary.
14412 (general_scalar_chain::make_vector_copies): Generate a single
14413 copy for a def by a specific insn.
14414 (general_scalar_chain::convert_registers): First populate
14415 defs_map, then make copies at out-of chain insns.
14416
14417 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14418
14419 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14420 comment.
14421 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14422
14423 2019-08-27 Martin Liska <mliska@suse.cz>
14424
14425 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14426 loop.
14427 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14428 Enclose in anonymous namespace.
14429 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14430 hard_register initialization in braces.
14431 * tree-vrp.h (value_range_base::supports_type_p): Return false
14432 for function with boolean return type.
14433
14434 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14435
14436 * config/i386/i386.c (emit_i387_cw_initialization)
14437 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14438
14439 2019-08-26 Martin Sebor <msebor@redhat.com>
14440
14441 PR c++/83431
14442 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14443 (sprintf_dom_walker): Remove class.
14444 (get_int_range): Make argument const.
14445 (directive::fmtfunc, directive::set_precision): Same.
14446 (format_none): Same.
14447 (build_intmax_type_nodes): Same.
14448 (adjust_range_for_overflow): Same.
14449 (format_floating): Same.
14450 (format_character): Same.
14451 (format_string): Same.
14452 (format_plain): Same.
14453 (get_int_range): Cast away constness.
14454 (format_integer): Same.
14455 (get_string_length): Call get_range_strlen_dynamic. Handle
14456 null lendata.maxbound.
14457 (should_warn_p): Adjust argument scope qualifier.
14458 (maybe_warn): Same.
14459 (format_directive): Same.
14460 (parse_directive): Same.
14461 (is_call_safe): Same.
14462 (try_substitute_return_value): Same.
14463 (sprintf_dom_walker::handle_printf_call): Rename...
14464 (handle_printf_call): ...to this. Initialize target to host charmap
14465 here instead of in pass_sprintf_length::execute.
14466 (struct call_info): Make global.
14467 (sprintf_dom_walker::compute_format_length): Make global.
14468 (sprintf_dom_walker::handle_gimple_call): Same.
14469 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14470 * print-rtl.c (print_pattern): Reduce the number of spaces to
14471 avoid -Wformat-truncation.
14472 * tree-pass.h (make_pass_warn_printf): New function.
14473 * tree-ssa-strlen.c (strlen_optimize): New variable.
14474 (get_string_length): Add comments.
14475 (get_range_strlen_dynamic): New function.
14476 (check_and_optimize_call): New function.
14477 (handle_integral_assign): New function.
14478 (strlen_check_and_optimize_stmt): Factor code out into
14479 strlen_check_and_optimize_call and handle_integral_assign.
14480 (strlen_dom_walker::evrp): New member.
14481 (strlen_dom_walker::before_dom_children): Use evrp member.
14482 (strlen_dom_walker::after_dom_children): Use evrp member.
14483 (printf_strlen_execute): New function.
14484 (pass_strlen::gate): Update to handle printf calls.
14485 (dump_strlen_info): New function.
14486 (pass_data_warn_printf): New variable.
14487 (pass_warn_printf): New class.
14488 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14489 (handle_printf_call): Same.
14490 * tree-vrp.c (value_range_base::type): Adjust assertion.
14491 * vr-values.c (vr_values::update_value_range): Use type of the first
14492 argument rather than the second.
14493
14494 2019-08-26 Richard Biener <rguenther@suse.de>
14495
14496 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14497 Remove.
14498 (convert_scalars_to_vector): Do not call it.
14499
14500 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14501 Uros Bizjak <ubizjak@gmail.com>
14502
14503 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14504 CASE_MATHFN_FLOATN for roundeven.
14505 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14506 I387_ROUNDEVEN.
14507 (ix86_mode_needed): Likewise.
14508 (ix86_mode_after): Likewise.
14509 (ix86_mode_entry): Likewise.
14510 (ix86_mode_exit): Likewise.
14511 (ix86_emit_mode_set): Likewise.
14512 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14513 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14514 (ix86_entity): Add I387_ROUNDEVEN.
14515 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14516 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14517 (define_int_iterator): Likewise.
14518 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14519 (define_constant): Define ROUND_ROUNDEVEN mode.
14520 (define_attr): Add roundeven mode for i387_cw.
14521 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14522 * internal-fn.def (ROUNDEVEN): New builtin function.
14523 * optabs.def (roundeven_optab): New optab.
14524
14525 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14526
14527 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14528 for ROUNDEVEN.
14529 * builtins.def: Added function definitions for roundeven function
14530 variants.
14531 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14532 function call. Adjust condition for floor, ceil, trunc and round.
14533 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14534 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14535 (integer_valued_real_call_p): Added case for roundeven function.
14536 * real.c (is_even): New function. Returns true if real number is even,
14537 otherwise returns false.
14538 (is_halfway_below): New function. Returns true if real number is
14539 halfway between two integers, else return false.
14540 (real_roundeven): New function. Round real number to nearest integer,
14541 rounding halfway cases towards even.
14542 * real.h (real_value): Added descriptive comments. Added function
14543 declaration for roundeven function.
14544 * doc/extend.texi (Other Builtins): List roundeven variants among
14545 functions which can be handled as builtins.
14546
14547 2019-08-26 Richard Biener <rguenther@suse.de>
14548
14549 PR target/91522
14550 PR target/91527
14551 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14552 New member.
14553 (general_scalar_chain::replace_with_subreg): Remove.
14554 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14555 (general_scalar_chain::convert_reg): Adjust signature.
14556 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14557 iterate over all defs of a reg.
14558 (general_scalar_chain::replace_with_subreg): Remove.
14559 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14560 (general_scalar_chain::make_vector_copies): Populate defs_map,
14561 place copy only after defs that are used as vectors in the chain.
14562 (general_scalar_chain::convert_reg): Emit a copy for a specific
14563 def in a specific instruction.
14564 (general_scalar_chain::convert_op): All reg uses are converted here.
14565 (general_scalar_chain::convert_insn): Emit copies for scalar
14566 uses of defs here. Replace uses with the copies we created.
14567 Replace and convert the def. Adjust REG_DEAD notes, remove
14568 REG_EQUIV/EQUAL notes.
14569 (general_scalar_chain::convert_registers): Only handle copies
14570 into the chain here.
14571
14572 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14573
14574 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14575
14576 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14577
14578 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14579 Add nop_convert case.
14580 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14581 Fold all statements if requested.
14582 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14583 Allow to fold all statements.
14584 * tree-vrp.c (class vrp_folder):
14585 Let substitute_and_fold_engine fold all statements.
14586
14587 2019-08-26 Richard Biener <rguenther@suse.de>
14588
14589 PR tree-optimization/91526
14590 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14591 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14592 TODO_update_address_taken.
14593
14594 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14595
14596 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14597 __STDC_HOSTED__.
14598
14599 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14600
14601 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14602 machine mode for unspec_volatile operand.
14603
14604 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14605
14606 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14607 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14608 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14609 (prefer_neon_for_64bits): Remove.
14610 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14611 (tune_params): Remove PREF_NEON_64_FALSE uses.
14612 (arm_option_override): Remove prefer_neon selection code.
14613 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14614 * config/arm/arm-protos.h (tune_params): Remove
14615 prefer_neon_for_64bits.
14616 (prefer_neon_for_64bits): Remove.
14617
14618 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14619
14620 PR pch/61250
14621 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14622 and issue any diagnostics needed before collecting the pre-PCH
14623 state.
14624
14625 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14626
14627 PR middle-end/91283
14628 * common.opt (fexcess-precision=): Add Optimization flag. Use
14629 flag_excess_precision variable instead of
14630 flag_excess_precision_cmdline.
14631 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14632 member.
14633 (flag_excess_precision): Don't define.
14634 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14635 flag_excess_precision_cmdline. Remove comment.
14636 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14637 and x_flag_excess_precision instead of
14638 frontend_set_flag_excess_precision_cmdline and
14639 x_flag_excess_precision_cmdline.
14640 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14641 x_flag_excess_precision_cmdline.
14642 * toplev.c (init_excess_precision): Remove.
14643 (lang_dependent_init_target): Don't call it.
14644
14645 2019-08-23 Martin Liska <mliska@suse.cz>
14646
14647 * lto-wrapper.c (run_gcc): When setting jobserver
14648 set also parallel to 1. This was done so before r273908.
14649
14650 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14651
14652 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14653 (cortex-a76ae): Likewise.
14654 (cortex-a77): Likewise
14655 * config/arm/arm-tables.opt: Regenerate.
14656 * config/arm/arm-tune.md: Likewise.
14657 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14658 cortex-a77 CPU options.
14659
14660 2019-08-23 Martin Liska <mliska@suse.cz>
14661
14662 * profile.c (instrument_values): Do not set
14663 0 as last argument.
14664 * tree-profile.c (gimple_gen_interval_profiler): Remove
14665 last argument.
14666 (gimple_gen_pow2_profiler): Likewise.
14667 (gimple_gen_topn_values_profiler): Likewise.
14668 (gimple_gen_ic_profiler): Likewise.
14669 (gimple_gen_time_profiler): Likewise.
14670 (gimple_gen_average_profiler): Likewise.
14671 (gimple_gen_ior_profiler): Likewise.
14672 * value-prof.c (dump_histogram_value): Use default
14673 in switch statement instead of HIST_TYPE_MAX.
14674 (stream_in_histogram_value): Likewise.
14675 (gimple_duplicate_stmt_histograms): Do not
14676 use NULL for implicitly set arguments.
14677 (gimple_divmod_values_to_profile): Do not use
14678 reserve+quick_push.
14679 (gimple_indirect_call_to_profile): Likewise.
14680 (gimple_find_values_to_profile): Use implicit
14681 function call arguments.
14682 * value-prof.h (gimple_alloc_histogram_value):
14683 Set default values.
14684 (gimple_gen_interval_profiler): Remove last argument.
14685 (gimple_gen_pow2_profiler): Likewise.
14686 (gimple_gen_topn_values_profiler): Likewise.
14687 (gimple_gen_ic_profiler): Likewise.
14688 (gimple_gen_time_profiler): Likewise.
14689 (gimple_gen_average_profiler): Likewise.
14690 (gimple_gen_ior_profiler): Likewise.
14691
14692 2019-08-22 Martin Sebor <msebor@redhat.com>
14693
14694 PR middle-end/91490
14695 * builtins.c (c_strlen): Rename argument and introduce new local.
14696 Set no-warning bit on original argument.
14697 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14698 Fold empty and zero constructors into empty strings.
14699 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14700 for missing initializers.
14701 * tree.c (build_string_literal): Handle optional argument.
14702 * tree.h (build_string_literal): Add defaulted argument.
14703 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14704 no-warning bit on original expression.
14705
14706 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14707
14708 PR target/91481
14709 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14710 and UNSPEC_DARN_RAW.
14711 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14712 UNSPECV_DARN_RAW.
14713 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14714 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14715 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14716
14717 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14718
14719 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14720 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14721 * config/rs6000/rs6000.md (unspec): ... here.
14722 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14723 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14724 cmpeqb, *cmpeqb_internal): Delete, move to...
14725 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14726 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14727 cmpeqb, *cmpeqb_internal): ... here.
14728
14729 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14730
14731 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14732 intrinsics if __ARM_FP.
14733 Use __ARM_FEATURE_CRC32 ifdef guard.
14734
14735 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14736
14737 * config/arm/arm.md (neon_for_64bits): Remove.
14738 (avoid_neon_for_64bits): Remove.
14739 (arm_adddi3): Always split early.
14740 (arm_subdi3): Always split early.
14741 (negdi2): Remove Neon expansion.
14742 (split zero_extend): Split before reload.
14743 (split sign_extend): Split before reload.
14744
14745 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14746
14747 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14748 (qhs_extenddi_cstr): Likewise.
14749 * config/arm/arm.md (ashldi3): Always expand early.
14750 (ashlsi3): Likewise.
14751 (ashrsi3): Likewise.
14752 (zero_extend<mode>di2): Remove Neon variants.
14753 (extend<mode>di2): Likewise.
14754 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14755 (signed_shift_di3_neon): Likewise.
14756 (unsigned_shift_di3_neon): Likewise.
14757 (ashrdi3_neon_imm_noclobber): Likewise.
14758 (lshrdi3_neon_imm_noclobber): Likewise.
14759 (<shift>di3_neon): Likewise.
14760 (split extend): Remove DI extend split patterns.
14761
14762 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14763
14764 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14765 (split not): Add DImode not splitter.
14766 (anddi3): Remove pattern.
14767 (anddi3_insn): Likewise.
14768 (anddi_zesidi_di): Likewise.
14769 (anddi_sesdi_di): Likewise.
14770 (anddi_notdi_di): Likewise.
14771 (anddi_notzesidi_di): Likewise.
14772 (anddi_notsesidi_di): Likewise.
14773 (iordi3): Likewise.
14774 (iordi3_insn): Likewise.
14775 (iordi_zesidi_di): Likewise.
14776 (iordi_sesidi_di): Likewise.
14777 (xordi3): Likewise.
14778 (xordi3_insn): Likewise.
14779 (xordi_sesidi_di): Likewise.
14780 (xordi_zesidi_di): Likewise.
14781 (one_cmpldi2): Likewise.
14782 (one_cmpldi2_insn): Likewise.
14783 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14784 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14785 alternative.
14786 (iwmmxt_xordi3): Likewise.
14787 (iwmmxt_anddi3): Likewise.
14788 * config/arm/neon.md (orndi3_neon): Remove pattern.
14789 (anddi_notdi_di): Likewise.
14790 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14791 (arm_iordi_operand_neon): Likewise.
14792 (arm_xordi_operand_neon): Likewise.
14793 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14794 (iordi_notzesidi_di): Likewise.
14795 (iordi_notdi_zesidi): Likewise.
14796 (iordi_notsesidi_di): Likewise.
14797
14798 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14799
14800 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14801 insn.
14802 (iorsi3_compare0_scratch): Likewise.
14803
14804 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14805
14806 * config/aarch64/aarch64-simd-builtins.def:
14807 (ld1x4): New.
14808 (st1x4): Likewise.
14809 * config/aarch64/aarch64-simd.md:
14810 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14811 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14812 (aarch64_ld1_x4_<mode>): Likewise.
14813 (aarch64_st1_x4_<mode>): Likewise.
14814 * config/aarch64/arm_neon.h:
14815 (vld1_s8_x4): New function.
14816 (vld1q_s8_x4): Likewise.
14817 (vld1_s16_x4): Likewise.
14818 (vld1q_s16_x4): Likewise.
14819 (vld1_s32_x4): Likewise.
14820 (vld1q_s32_x4): Likewise.
14821 (vld1_u8_x4): Likewise.
14822 (vld1q_u8_x4): Likewise.
14823 (vld1_u16_x4): Likewise.
14824 (vld1q_u16_x4): Likewise.
14825 (vld1_u32_x4): Likewise.
14826 (vld1q_u32_x4): Likewise.
14827 (vld1_f16_x4): Likewise.
14828 (vld1q_f16_x4): Likewise.
14829 (vld1_f32_x4): Likewise.
14830 (vld1q_f32_x4): Likewise.
14831 (vld1_p8_x4): Likewise.
14832 (vld1q_p8_x4): Likewise.
14833 (vld1_p16_x4): Likewise.
14834 (vld1q_p16_x4): Likewise.
14835 (vld1_s64_x4): Likewise.
14836 (vld1_u64_x4): Likewise.
14837 (vld1_p64_x4): Likewise.
14838 (vld1q_s64_x4): Likewise.
14839 (vld1q_u64_x4): Likewise.
14840 (vld1q_p64_x4): Likewise.
14841 (vld1_f64_x4): Likewise.
14842 (vld1q_f64_x4): Likewise.
14843 (vst1_s8_x4): Likewise.
14844 (vst1q_s8_x4): Likewise.
14845 (vst1_s16_x4): Likewise.
14846 (vst1q_s16_x4): Likewise.
14847 (vst1_s32_x4): Likewise.
14848 (vst1q_s32_x4): Likewise.
14849 (vst1_u8_x4): Likewise.
14850 (vst1q_u8_x4): Likewise.
14851 (vst1_u16_x4): Likewise.
14852 (vst1q_u16_x4): Likewise.
14853 (vst1_u32_x4): Likewise.
14854 (vst1q_u32_x4): Likewise.
14855 (vst1_f16_x4): Likewise.
14856 (vst1q_f16_x4): Likewise.
14857 (vst1_f32_x4): Likewise.
14858 (vst1q_f32_x4): Likewise.
14859 (vst1_p8_x4): Likewise.
14860 (vst1q_p8_x4): Likewise.
14861 (vst1_p16_x4): Likewise.
14862 (vst1q_p16_x4): Likewise.
14863 (vst1_s64_x4): Likewise.
14864 (vst1_u64_x4): Likewise.
14865 (vst1_p64_x4): Likewise.
14866 (vst1q_s64_x4): Likewise.
14867 (vst1q_u64_x4): Likewise.
14868 (vst1q_p64_x4): Likewise.
14869 (vst1_f64_x4): Likewise.
14870 (vst1q_f64_x4): Likewise.
14871
14872 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14873
14874 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14875
14876 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14877 Richard Sandiford <richard.sandiford@arm.com>
14878
14879 PR target/88839
14880 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14881 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14882
14883 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14884
14885 PR target/90724
14886 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14887 in reg if it fails aarch64_plus_operand predicate.
14888
14889 2019-08-21 Richard Biener <rguenther@suse.de>
14890
14891 PR tree-optimization/91482
14892 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14893 BUILT_IN_ASSUME_ALIGNED calls.
14894
14895 2019-08-21 Richard Biener <rguenther@suse.de>
14896
14897 PR target/91498
14898 PR target/91503
14899 * config/i386/i386-features.c
14900 (general_scalar_chain::make_vector_copies): Copy stack temporary
14901 rtx when using it multiple times.
14902 (general_scalar_chain::convert_reg): Likewise.
14903
14904 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14905
14906 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14907
14908 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14909
14910 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14911 catch more redundant zero initialization cases.
14912 (dse_dom_walker::dse_optimize_stmt): Likewise.
14913
14914 2019-08-20 Richard Biener <rguenther@suse.de>
14915
14916 PR lto/91307
14917 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14918 by collect2 when targetm.have_ctors_dtors which avoids dragging
14919 in temporary filenames from LTO input objects.
14920
14921 2019-08-20 Richard Biener <rguenther@suse.de>
14922
14923 PR tree-optimization/37242
14924 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14925 to (T)a + (T)b if we know that a + b does not overflow.
14926
14927 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14928
14929 PR rtl-optimization/91347
14930 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14931 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14932
14933 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14934
14935 * calls.h (function_arg_info): Add a pass_by_reference field,
14936 defaulting to false.
14937 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14938 when applying pass-by-reference semantics.
14939 (initialize_argument_information): Likewise.
14940 (emit_library_call_value_1): Likewise.
14941 * function.c (assign_parm_data_one): Remove passed_pointer field.
14942 (assign_parm_find_data_types): Don't set it.
14943 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14944 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14945 arg.pass_by_reference instead of passed_pointer.
14946
14947 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14948
14949 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14950 into a single function_arg_info, updating its fields when we
14951 apply pass-by-reference and promotion semantics. Use the
14952 function_arg_info to track the mode rather than keeping it in
14953 a separate local variable.
14954 (initialize_argument_information): Likewise. Base the final
14955 arg_to_skip on this new function_arg_info rather than creating
14956 a new one from scratch.
14957
14958 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14959
14960 * function.c (assign_parm_data_one): Replace passed_type,
14961 promoted_mode and named_arg with a function_arg_info field.
14962 (assign_parm_find_data_types): Remove local variables and
14963 assign directly to "data". Make data->passed_mode shadow
14964 data->arg.mode until promotion, then assign the promoted
14965 mode to data->arg.mode.
14966 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14967 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14968 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14969 (assign_parm_setup_block, assign_parm_setup_reg)
14970 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14971 arg.mode instead of promoted_mode, arg.type instead of passed_type
14972 and arg.named instead of named_arg. Use data->arg for
14973 function_arg_info structures that had the field values passed_type,
14974 promoted_mode and named_arg. Base other function_arg_infos on
14975 data->arg, changing the necessary properties.
14976
14977 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14978
14979 * calls.h (apply_pass_by_reference_rules): Declare.
14980 * calls.c (apply_pass_by_reference_rules): New function.
14981 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14982 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14983 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14984 * function.c (assign_parm_find_data_types): Likewise.
14985 * var-tracking.c (prepare_call_arguments): Likewise.
14986
14987 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14988
14989 * target.def (must_pass_in_stack): Take a function_arg_info instead
14990 of a mode and a type.
14991 * doc/tm.texi: Regenerate.
14992 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14993 instead of a mode and a type.
14994 (must_pass_in_stack_var_size_or_pad): Likewise.
14995 * calls.c (must_pass_in_stack_var_size): Likewise.
14996 (must_pass_in_stack_var_size_or_pad): Likewise.
14997 (initialize_argument_information): Update call to
14998 targetm.calls.must_pass_in_stack.
14999 (must_pass_va_arg_on_stack): Likewise.
15000 * function.c (assign_parm_find_entry_rtl): Likewise.
15001 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15002 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15003 (alpha_function_arg_advance): Likewise.
15004 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15005 (cr16_function_arg_advance): Likewise.
15006 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15007 (cris_arg_partial_bytes): Likewise.
15008 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15009 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15010 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15011 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15012 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15013 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15014 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15015 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15016 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15017 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15018 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15019 instead of a mode and a type.
15020 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15021 (fr30_num_arg_regs): Likewise.
15022 (fr30_setup_incoming_varargs): Update calls accordingly.
15023 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15024 (fr30_function_arg_advance): Likewise.
15025 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15026 instead of a mode and a type.
15027 * config/gcn/gcn.c (num_arg_regs): Likewise.
15028 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15029 num_arg_regs and targetm.calls.must_pass_in_stack.
15030 (gcn_arg_partial_bytes): Likewise.
15031 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15032 function_arg_info instead of a mode and a type.
15033 (classify_argument): Update call accordingly.
15034 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15035 function_arg_info instead of a mode and a type.
15036 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15037 Likewise.
15038 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15039 (rs6000_parm_needs_stack): Update call accordingly.
15040 (setup_incoming_varargs): Likewise.
15041
15042 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15043
15044 * target.def (callee_copies): Take a function_arg_info instead
15045 of a mode, type and named flag.
15046 * doc/tm.texi: Regenerate.
15047 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15048 instead of a mode, type and named flag.
15049 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15050 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15051 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15052 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15053 instead of a mode, type and named flag.
15054 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15055 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15056 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15057 * calls.h (reference_callee_copied): Take a function_arg_info
15058 instead of a mode, type and named flag.
15059 * calls.c (reference_callee_copied): Likewise.
15060 (initialize_argument_information): Update call accordingly.
15061 (emit_library_call_value_1): Likewise.
15062 * function.c (gimplify_parameters): Likewise.
15063 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15064 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15065 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15066 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15067 (TARGET_CALLEE_COPIES): Define to
15068 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15069 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15070 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15071 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15072 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15073 instead of a mode, type and named flag.
15074 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15075 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15076 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15077 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15078 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15079 (TARGET_CALLEE_COPIES): Define to
15080 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15081 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15082 instead of a mode, type and named flag.
15083 * config/sh/sh.c (sh_callee_copies): Likewise.
15084 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15085 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15086 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15087
15088 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15089
15090 * target.def (function_arg_advance): Take a function_arg_info instead
15091 of a mode, type and named flag.
15092 * doc/tm.texi: Regenerate.
15093 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15094 instead of a mode, type and named flag.
15095 * targhooks.c (default_function_arg_advance): Likewise.
15096 * calls.c (initialize_argument_information): Update call to
15097 targetm.calls.function_arg_advance.
15098 (emit_library_call_value_1): Likewise.
15099 * dse.c (get_call_args): Likewise.
15100 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15101 * function.c (assign_parms, gimplify_parameters): Likewise.
15102 * var-tracking.c (prepare_call_arguments): Likewise.
15103 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15104 function_arg_info instead of a mode, type and named flag.
15105 (aarch64_setup_incoming_varargs): Update call accordingly.
15106 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15107 function_arg_info instead of a mode, type and named flag.
15108 (alpha_setup_incoming_varargs): Update call accordingly.
15109 * config/arc/arc.c (arc_function_arg_advance): Take a
15110 function_arg_info instead of a mode, type and named flag.
15111 (arc_setup_incoming_varargs): Update call accordingly.
15112 * config/arm/arm.c (arm_function_arg_advance): Take a
15113 function_arg_info instead of a mode, type and named flag.
15114 (cmse_func_args_or_return_in_stack): Update call accordingly.
15115 (arm_function_ok_for_sibcall): Likewise.
15116 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15117 * config/avr/avr.c (avr_function_arg_advance): Take a
15118 function_arg_info instead of a mode, type and named flag.
15119 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15120 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15121 (c6x_call_saved_register_used): Update call accordingly.
15122 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15123 function_arg_info instead of a mode, type and named flag.
15124 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15125 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15126 (csky_setup_incoming_varargs): Update call accordingly.
15127 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15128 function_arg_info instead of a mode, type and named flag.
15129 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15130 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15131 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15132 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15133 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15134 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15135 (ix86_setup_incoming_varargs): Update call accordingly.
15136 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15137 function_arg_info instead of a mode, type and named flag.
15138 (ia64_setup_incoming_varargs): Update call accordingly.
15139 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15140 function_arg_info instead of a mode, type and named flag.
15141 (iq2000_expand_prologue): Update call accordingly.
15142 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15143 function_arg_info instead of a mode, type and named flag.
15144 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15145 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15146 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15147 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15148 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15149 Likewise.
15150 (microblaze_expand_prologue): Update call accordingly.
15151 * config/mips/mips.c (mips_function_arg_advance): Take a
15152 function_arg_info instead of a mode, type and named flag.
15153 (mips_setup_incoming_varargs): Update call accordingly.
15154 (mips_output_args_xfer): Likewise.
15155 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15156 function_arg_info instead of a mode, type and named flag.
15157 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15158 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15159 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15160 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15161 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15162 (nios2_setup_incoming_varargs): Update call accordingly.
15163 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15164 function_arg_info instead of a mode, type and named flag.
15165 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15166 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15167 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15168 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15169 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15170 (riscv_setup_incoming_varargs): Update call accordingly.
15171 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15172 function_arg_info instead of a mode, type and named flag.
15173 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15174 Likewise.
15175 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15176 (rs6000_parm_needs_stack): Update call accordingly.
15177 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15178 instead of a mode, type and named flag.
15179 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15180 (s390_call_saved_register_used): Update call accordingly.
15181 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15182 instead of a mode, type and named flag.
15183 (sh_output_mi_thunk): Update call accordingly.
15184 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15185 function_arg_info instead of a mode, type and named flag.
15186 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15187 (spu_setup_incoming_varargs): Update call accordingly.
15188 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15189 function_arg_info instead of a mode, type and named flag.
15190 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15191 (tilegx_setup_incoming_varargs): Update call accordingly.
15192 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15193 function_arg_info instead of a mode, type and named flag.
15194 (tilegx_setup_incoming_varargs): Update call accordingly.
15195 * config/v850/v850.c (v850_function_arg_advance): Take a
15196 function_arg_info instead of a mode, type and named flag.
15197 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15198 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15199 (visium_setup_incoming_varargs): Update call accordingly.
15200 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15201 function_arg_info instead of a mode, type and named flag.
15202
15203 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15204
15205 * target.def (function_arg, function_incoming_arg): Take a
15206 function_arg_info instead of a mode, tree and named flag.
15207 * doc/tm.texi: Regenerate.
15208 * targhooks.h (default_function_arg): Take a function_arg_info
15209 instead of a mode, tree and named flag.
15210 (default_function_incoming_arg): Likewise.
15211 * targhooks.c (default_function_arg): Likewise.
15212 (default_function_incoming_arg): Likewise.
15213 * calls.h (function_arg_info::end_marker_p): New function.
15214 (function_arg_info::end_marker): Likewise.
15215 * calls.c (prepare_call_address, initialize_argument_information)
15216 (expand_call, emit_library_call_value_1): Update calls to
15217 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15218 * dse.c: Include calls.h.
15219 (get_call_args): Update call to targetm.calls.function_arg.
15220 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15221 * var-tracking.c (prepare_call_arguments): Likewise.
15222 * function.c (assign_parm_find_entry_rtl): Update call to
15223 targetm.calls.function_incoming_arg.
15224 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15225 function_arg_info instead of a mode, tree and named flag.
15226 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15227 * config/arc/arc.c (arc_function_arg): Likewise.
15228 * config/arm/arm.c (arm_function_arg): Likewise.
15229 (cmse_func_args_or_return_in_stack): Update call accordingly.
15230 (arm_function_ok_for_sibcall): Likewise.
15231 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15232 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15233 instead of a mode, tree and named flag.
15234 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15235 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15236 (c6x_call_saved_register_used): Update call accordingly.
15237 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15238 instead of a mode, tree and named flag.
15239 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15240 (cris_function_arg_1): Likewise.
15241 * config/csky/csky.c (csky_function_arg): Likewise.
15242 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15243 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15244 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15245 (frv_function_arg_1): Likewise.
15246 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15247 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15248 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15249 * config/i386/i386.c (ix86_function_arg): Likewise.
15250 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15251 (ia64_function_arg_1): Likewise.
15252 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15253 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15254 accordingly.
15255 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15256 instead of a mode, tree and named flag.
15257 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15258 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15259 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15260 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15261 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15262 (microblaze_expand_prologue): Update call accordingly.
15263 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15264 instead of a mode, tree and named flag.
15265 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15266 (mmix_function_arg_1): Likewise.
15267 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15268 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15269 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15270 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15271 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15272 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15273 (nvptx_function_incoming_arg): Likewise.
15274 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15275 * config/pa/pa.c (pa_function_arg): Likewise.
15276 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15277 * config/pru/pru.c (pru_function_arg): Likewise.
15278 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15279 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15280 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15281 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15282 (rs6000_parm_needs_stack): Update call accordingly.
15283 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15284 instead of a mode, tree and named flag.
15285 * config/s390/s390.c (s390_function_arg): Likewise.
15286 (s390_call_saved_register_used): Update call accordingly.
15287 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15288 instead of a mode, tree and named flag.
15289 (sh_output_mi_thunk): Update call accordingly.
15290 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15291 (sparc_function_incoming_arg): Take a function_arg_info instead of
15292 a mode, tree and named flag.
15293 * config/spu/spu.c (spu_function_arg): Likewise.
15294 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15295 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15296 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15297 * config/v850/v850.c (v850_function_arg): Likewise.
15298 * config/vax/vax.c (vax_function_arg): Likewise.
15299 * config/visium/visium.c (visium_function_arg): Likewise.
15300 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15301 (xtensa_function_incoming_arg): Likewise.
15302
15303 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15304
15305 * target.def (setup_incoming_varargs): Take a function_arg_info
15306 instead of a mode and tree.
15307 * doc/tm.texi: Regenerate.
15308 * targhooks.h (default_setup_incoming_varargs): Take a
15309 function_arg_info instead of a mode and tree.
15310 * targhooks.c (default_setup_incoming_varargs): Likewise.
15311 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15312 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15313 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15314 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15315 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15316 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15317 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15318 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15319 Likewise.
15320 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15321 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15322 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15323 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15324 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15325 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15326 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15327 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15328 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15329 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15330 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15331 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15332 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15333 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15334 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15335 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15336 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15337 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15338 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15339 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15340 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15341 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15342 * function.c (assign_parms_setup_varargs): Update call to
15343 targetm.calls.setup_incoming_varargs.
15344
15345 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15346
15347 * target.def (pass_by_reference): Take a function_arg_info instead
15348 of a mode, type and named flag.
15349 * doc/tm.texi: Regenerate.
15350 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15351 accordingly.
15352 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15353 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15354 function_arg_info instead of a mode, type and named flag.
15355 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15356 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15357 mode, type and named flag.
15358 * calls.c (pass_by_reference): Likewise.
15359 (pass_va_arg_by_reference): Update call accordingly.
15360 (initialize_argument_information): Likewise.
15361 (emit_library_call_value_1): Likewise.
15362 * function.c (assign_parm_find_data_types): Likewise.
15363 * var-tracking.c (prepare_call_arguments): Likewise.
15364 * stor-layout.c: Include calls.h.
15365 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15366 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15367 function_arg_info instead of a mode, type and named flag.
15368 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15369 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15370 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15371 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15372 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15373 (c6x_call_saved_register_used): Update call to pass_by_reference.
15374 * config/cris/cris.c (cris_pass_by_reference): Take a
15375 function_arg_info instead of a mode, type and named flag.
15376 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15377 function_arg_info instead of a mode, type and named flag.
15378 (epiphany_arg_partial_bytes): Update call accordingly.
15379 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15380 function_arg_info instead of a mode, type and named flag.
15381 (ft32_arg_partial_bytes): Update call accordingly.
15382 * config/i386/i386.c (ix86_pass_by_reference): Take a
15383 function_arg_info instead of a mode, type and named flag.
15384 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15385 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15386 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15387 (m32r_return_in_memory): Update call accordingly.
15388 * config/mips/mips.c (mips_pass_by_reference): Take a
15389 function_arg_info instead of a mode, type and named flag.
15390 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15391 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15392 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15393 (moxie_arg_partial_bytes): Update call accordingly.
15394 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15395 function_arg_info instead of a mode, type and named flag.
15396 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15397 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15398 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15399 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15400 (riscv_return_in_memory): Update call accordingly.
15401 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15402 function_arg_info instead of a mode, type and named flag.
15403 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15404 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15405 * config/s390/s390.c (s390_pass_by_reference): Take a
15406 function_arg_info instead of a mode, type and named flag.
15407 (s390_call_saved_register_used): Update call accordingly.
15408 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15409 instead of a mode, type and named flag.
15410 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15411 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15412 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15413 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15414 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15415 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15416
15417 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15418
15419 * target.def (arg_partial_bytes): Take a function_arg_info instead
15420 of a mode, type and named flag.
15421 * doc/tm.texi: Regenerate.
15422 * target.h (function_arg_info): Declare.
15423 * calls.h (function_arg_info): New class.
15424 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15425 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15426 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15427 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15428 * calls.c (initialize_argument_information): Update call to
15429 targetm.calls.partial_bytes.
15430 (emit_library_call_value_1): Likewise.
15431 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15432 * function.c (assign_parm_find_entry_rtl): Likewise.
15433 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15434 function_arg_info instead of a mode, type and named flag.
15435 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15436 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15437 (cmse_func_args_or_return_in_stack): Update accordingly.
15438 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15439 function_arg_info instead of a mode, type and named flag.
15440 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15441 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15442 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15443 * config/fr30/fr30.c: Include calls.h.
15444 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15445 type and named flag.
15446 * config/frv/frv.c: Include calls.h.
15447 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15448 type and named flag.
15449 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15450 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15451 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15452 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15453 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15454 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15455 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15456 Likewise.
15457 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15458 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15459 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15460 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15461 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15462 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15463 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15464 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15465 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15466 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15467 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15468 (rs6000_parm_needs_stack): Update call accordingly.
15469 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15470 function_arg_info instead of a mode, type and named flag.
15471 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15472 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15473
15474 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15475
15476 * calls.h (must_pass_va_arg_in_stack): Declare.
15477 * calls.c (must_pass_va_arg_in_stack): New function.
15478 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15479 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15480 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15481 Likewise.
15482 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15483
15484 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15485
15486 * calls.h (pass_va_arg_by_reference): Declare.
15487 * calls.c (pass_va_arg_by_reference): New function.
15488 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15489 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15490 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15491 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15492 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15493 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15494 (mips_gimplify_va_arg_expr): Likewise.
15495 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15496 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15497 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15498 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15499 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15500 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15501 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15502 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15503 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15504 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15505 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15506
15507 2019-08-20 Richard Biener <rguenther@suse.de>
15508
15509 PR target/91498
15510 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15511 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15512 (convert_scalars_to_vector): Add timode_p parameter and use it
15513 to guard TImode-only operation.
15514 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15515 (pass_stv::execute): Pass down timode_p.
15516
15517 2019-08-20 Lili Cui <lili.cui@intel.com>
15518
15519 * common/config/i386/i386-common.c
15520 (processor_names): Add tigerlake and cooperlake.
15521 (processor_alias_table): Add tigerlake and cooperlake.
15522 * config.gcc: Add -march=tigerlake and cooperlake.
15523 * config/i386/driver-i386.c
15524 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15525 Add "has_avx" to classify processor.
15526 * config/i386/i386-builtins.c (processor_model) :
15527 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15528 (arch_names_table): Add tigerlake and cooperlake.
15529 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15530 and PROCESSOR_COOPERLAKE.
15531 * config/i386/i386-c.c
15532 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15533 * config/i386/i386-options.c
15534 (m_TIGERLAKE): Define.
15535 (m_COOPERLAKE): Ditto.
15536 (m_CORE_AVX512): Ditto.
15537 (processor_cost_table): Add cascadelake.
15538 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15539 * config/i386/i386.h
15540 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15541 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15542 (PTA_MOVDIRI): Ditto.
15543 (PTA_MOVDIR64B): Ditto.
15544 (PTA_COOPERLAKE): Ditto.
15545 (PTA_TIGERLAKE): Ditto.
15546 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15547 * doc/extend.texi: Add tigerlake and cooperlake.
15548 * doc/invoke.texi: Add tigerlake and cooperlake.
15549
15550 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15551
15552 * doc/install.texi (Specific, alpha): Remove note to use
15553 binutils 2.11.2 or later.
15554
15555 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15556
15557 PR middle-end/89544
15558 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15559 when possible.
15560
15561 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15562
15563 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15564 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15565 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15566 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15567 * config/aarch64/constraints.md (Dt): New constraint
15568 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15569
15570 2019-08-19 Richard Biener <rguenther@suse.de>
15571
15572 PR tree-optimization/91403
15573 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15574 cases we can handle with tail-recursion...
15575 (follow_ssa_edge_expr): ... here. Do so.
15576
15577 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15578
15579 PR target/91441
15580 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15581 implemented for -fsanitize=kernel-address, and merge check logic
15582 with -fsanitize=address.
15583
15584 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15585
15586 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15587 for cpu and machine. Factor 64/32b builtins.
15588
15589 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15590
15591 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15592 gone, point to sourceforge.net.
15593
15594 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15595
15596 * doc/ux.texi (User Experience Guidelines): Update reference.
15597
15598 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15599
15600 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15601 not LGPL".
15602
15603 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15604
15605 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15606 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15607
15608 2019-08-16 Martin Sebor <msebor@redhat.com>
15609
15610 * tree.def (TYPE_SIZE): Clarify.
15611 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15612
15613 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15614
15615 PR tree-optimization/91109
15616 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15617 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15618 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15619
15620 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15621
15622 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15623 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15624 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15625 (uavg<mode>3_ceil): New expander.
15626 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15627 mode iterator when creating CONST1_RTX.
15628 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15629 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15630 mode iterator for const1_operand predicate.
15631
15632 2019-08-16 Richard Biener <rguenther@suse.de>
15633
15634 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15635 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15636 follow_ssa_edge.
15637 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15638 (analyze_evolution_in_loop): Likewise.
15639 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15640 (follow_ssa_edge_expr): ... here. Refactor code.
15641
15642 2019-08-16 Richard Biener <rguenther@suse.de>
15643
15644 PR target/91469
15645 * config/i386/i386-features.c
15646 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15647
15648 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15649
15650 PR other/91255
15651 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15652 only if subst_name matches curr_attr string.
15653
15654 2019-08-16 Richard Biener <rguenther@suse.de>
15655
15656 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15657 stmt at gsi_p, instead replace it with a NOP removed later.
15658 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15659 that became dead because of that.
15660
15661 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15662
15663 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15664 for which we can't represent a range.
15665 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15666 set_varying.
15667 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15668 Set VR_UNDEFINED if type is not supported.
15669 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15670 * tree-vrp.c (value_range_base::check): Assert that a varying has
15671 min/max set.
15672 (value_range_base::equal_p): Early bail for undefines.
15673 (value_range_base::set_varying): Accept a type.
15674 (value_range::set_varying): Same.
15675 (value_range_base::type): VARYING can have a type, while UNDEFINE
15676 is typeless.
15677 (value_range_base::dump): Print type for VARYING nodes.
15678 (value_range_base::set): Add type to VARYING.
15679 (extract_range_from_multiplicative_op): Pass type to set_varying.
15680 (extract_range_from_binary_expr): Same.
15681 (value_range_base::intersect_helper): Same.
15682 (value_range_base::union_helper): Same.
15683 (value_range_base::normalize_symbolics): Same.
15684 (determine_value_range_1): Same.
15685 * tree-vrp.h (class value_range_base): Add type to set_varying.
15686 Add prototype for dump(void).
15687 Add prototype for supports_type_p.
15688 (class value_range): Add type to set_varying.
15689 Add prototype for dump(void).
15690 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15691 set_varying.
15692 (vr_values::get_lattice_entry): Set varying even if propagation
15693 finished.
15694 Pass type to set_varying.
15695 (vr_values::get_value_range): Remove vr_const_varying.
15696 Reallocate the lattice if needed.
15697 (vr_values::update_value_range): Pass type to set_varying.
15698 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15699 (vr_values::extract_range_from_binary_expr): Same.
15700 (vr_values::extract_range_from_unary_expr): Same.
15701 (vr_values::extract_range_from_cond_expr): Same.
15702 (vr_values::check_for_binary_op_overflow): Same.
15703 (vr_values::extract_range_basic): Same.
15704 (vr_values::extract_range_from_assignment): Same.
15705 (vr_values::vr_values): Increase size of num_vr_values.
15706 (vr_values::extract_range_from_phi_node): Pass type to
15707 set_varying.
15708
15709 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15710
15711 PR target/90878
15712 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15713 for costs of hard register moves.
15714 (ix86_register_move_cost): Likewise.
15715 * config/i386/i386.h (processor_costs): Move costs of hard
15716 register moves to hard_register. Add int_load, int_store,
15717 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15718 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15719 for costs of RTL expressions.
15720 * config/i386/x86-tune-costs.h: Move costs of hard register
15721 moves to hard_register. Duplicate int_load, int_store,
15722 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15723 sse_load, sse_store for costs of RTL expressions.
15724
15725 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15726
15727 * target.def (setup_incoming_vararg_bounds): Remove.
15728 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15729 * doc/tm.texi: Regenerate.
15730 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15731 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15732 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15733 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15734
15735 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15736
15737 MSP430: Fix lines over 80 characters long in
15738 config/msp430/*.{c,h} files
15739
15740 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15741 specifier in string.
15742 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15743 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15744 redundant old comment.
15745 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15746 Split line more than 80 characters long.
15747 * config/msp430/msp430.c (msp430_option_override): Likewise.
15748 (msp430_return_in_memory): Likewise.
15749 (msp430_gimplify_va_arg_expr): Likewise.
15750 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15751 (msp430_legitimate_constant): Likewise.
15752 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15753 (msp430_attr): Likewise.
15754 (msp430_data_attr): Likewise.
15755 (msp430_start_function): Likewise.
15756 (gen_prefix): Likewise.
15757 (msp430_init_sections): Likewise.
15758 (msp430_select_section): Likewise.
15759 (msp430_function_section): Likewise.
15760 (msp430_unique_section): Likewise.
15761 (msp430_output_aligned_decl_common): Likewise.
15762 (msp430_do_not_relax_short_jumps): Likewise.
15763 (msp430_init_builtins): Likewise.
15764 (msp430_expand_delay_cycles): Likewise.
15765 (msp430_expand_prologue): Likewise.
15766 (msp430_expand_epilogue): Likewise.
15767 (msp430_expand_helper): Likewise.
15768 (msp430_split_movsi): Likewise.
15769 (msp430_print_operand): Likewise.
15770 (msp430_return_addr_rtx): Likewise.
15771 (msp430x_extendhisi): Likewise.
15772 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15773 (ASM_SPEC): Likewise.
15774 Remove very obvious comments.
15775 (LIB_SPEC): Split line more than 80 characters long.
15776 (EH_RETURN_HANDLER_RTX): Likewise.
15777 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15778
15779 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15780
15781 MSP430: Fix whitespace errors and incorrect indentation in
15782 config/msp430/*.{c,h} files
15783
15784 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15785 (msp430_select_hwmult_lib): Likewise.
15786 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15787 (msp430_extract_mcu_data): Likewise.
15788 (struct t_msp430_mcu_data): Likewise.
15789 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15790 before left square bracket.
15791 (msp430_option_override): Fix indentation.
15792 (msp430_hard_regno_nregs_with_padding): Likewise.
15793 (msp430_initial_elimination_offset): Likewise.
15794 (msp430_special_register_convention_p): Remove whitespace before left
15795 square bracket and after exclamation mark.
15796 (msp430_evaluate_arg): Likewise.
15797 (msp430_callee_copies): Fix indentation.
15798 (msp430_gimplify_va_arg_expr): Likewise.
15799 (msp430_function_arg_advance): Remove whitespace before left square
15800 bracket.
15801 (reg_ok_for_addr): Likewise.
15802 (msp430_preserve_reg_p): Likewise.
15803 (msp430_compute_frame_info): Likewise.
15804 (msp430_asm_output_addr_const_extra): Add space between function name
15805 and open parenthesis.
15806 (has_section_name): Fix indentation.
15807 (msp430_attr): Remove trailing whitespace.
15808 (msp430_section_attr): Likewise.
15809 (msp430_data_attr): Likewise.
15810 (struct msp430_attribute_table): Fix comment and whitespace.
15811 (msp430_start_function): Remove whitespace before left square bracket.
15812 Add space between function name and open parenthesis.
15813 (msp430_select_section): Remove trailing whitespace.
15814 (msp430_section_type_flags): Remove trailing whitespace.
15815 (msp430_unique_section): Remove space before closing parenthesis.
15816 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15817 (msp430_builtins): Remove whitespace before left square bracket.
15818 (msp430_init_builtins): Fix indentation.
15819 (msp430_expand_prologue): Remove whitespace before left square bracket.
15820 Remove space before closing parenthesis.
15821 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15822 (msp430_split_movsi): Remove space before closing parenthesis.
15823 (helper_function_name_mappings): Fix indentation.
15824 (msp430_use_f5_series_hwmult): Fix whitespace.
15825 (use_32bit_hwmult): Likewise.
15826 (msp430_no_hwmult): Likewise.
15827 (msp430_output_labelref): Remove whitespace before left square bracket.
15828 (msp430_print_operand_raw): Likewise.
15829 (msp430_print_operand_addr): Likewise.
15830 (msp430_print_operand): Add two spaces after '.' in comment.
15831 Fix trailing whitespace.
15832 (msp430x_extendhisi): Fix indentation.
15833 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15834 tab.
15835 (PC_REGNUM): Likewise.
15836 (STACK_POINTER_REGNUM): Likewise.
15837 (CC_REGNUM): Likewise.
15838
15839 2019-08-15 Richard Biener <rguenther@suse.de>
15840
15841 PR target/91454
15842 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15843 helper.
15844 (general_scalar_chain::make_vector_copies): Use it.
15845
15846 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15847
15848 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15849
15850 2019-08-15 Martin Liska <mliska@suse.cz>
15851
15852 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15853 operators with no arguments.
15854 (eliminate_unnecessary_stmts): Likewise here.
15855
15856 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15857
15858 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15859 <case COMPARE>: Revert 2019-08-14 change.
15860 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15861 for (TARGET_64BIT || mode != DImode).
15862
15863 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15864
15865 * tree-vrp.c (value_range_base::set): Merge in code from
15866 value_range_base::set_and_canonicalize.
15867 Enforce canonicalization at set time.
15868 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15869 (value_range_base::set_undefined): Inline call to set().
15870 (value_range_base::set_varying): Same.
15871 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15872 (vrp_val_max): New argument handle_pointers.
15873 (vrp_val_min): Same.
15874 (ranges_from_anti_range): Same.
15875 (extract_range_into_wide_ints): Use tree argument instead of sign
15876 and precision.
15877 (extract_range_from_multiplicative_op): Take in tree type instead
15878 of precision and sign. Adapt function for canonicalized ranges.
15879 (extract_range_from_binary_expr): Pass type to
15880 extract_range_from_multiplicative_op.
15881 Adapt for canonicalized ranges.
15882 (extract_range_from_unary_expr): Same.
15883 (value_range_base::intersect_helper): Adjust for canonicalized
15884 ranges.
15885 (value_range_base::union_helper): Same.
15886 (value_range_base::normalize_symbolics): New.
15887 * tree-vrp.h (class value_range_base): Remove
15888 set_and_canonicalize.
15889 New prototype for normalize_symbolics.
15890 (class value_range): Remove set_and_canonicalize.
15891 (vrp_val_min): Adjust prototype.
15892 (vrp_val_max): Same.
15893 * vr-values.c
15894 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15895 instead of set_and_canonicalize.
15896
15897 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15898
15899 PR middle-end/91444
15900 * tree-vect-stmts.c (vectorizable_call): Check that the function
15901 is a BUILT_IN_MD function before passing it to
15902 targetm.vectorize.builtin_md_vectorized_function.
15903
15904 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15905
15906 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15907 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15908 (aarch64_select_early_remat_modes): Use it.
15909
15910 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15911
15912 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15913 16 for SVE predicates even if they are fixed-length.
15914
15915 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15916
15917 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15918 operand order match the MOV /Z alias.
15919
15920 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15921
15922 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15923 the vector pattern as an aarch64_svpattern argument. Update the
15924 overloaded caller accordingly.
15925 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15926 (aarch64_output_sve_vector_inc_dec): Likewise.
15927
15928 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15929
15930 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15931 multiplication case, try to compute VG * (lowest set bit) directly
15932 rather than always basing the multiplication on VG. Use
15933 expand_mult for the multiplication if we can.
15934
15935 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15936
15937 * config/aarch64/aarch64-protos.h
15938 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15939 (aarch64_sve_inc_dec_immediate_p): Rename to...
15940 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15941 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15942 (aarch64_output_sve_scalar_inc_dec): Declare.
15943 (aarch64_output_sve_inc_dec_immediate): Rename to...
15944 (aarch64_output_sve_vector_inc_dec): ...this.
15945 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15946 (aarch64_output_sve_scalar_inc_dec): New functions.
15947 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15948 arguments. Only handle true ADDVL and ADDPL instructions;
15949 don't emit an INC or DEC.
15950 (aarch64_sve_inc_dec_immediate_p): Rename to...
15951 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15952 (aarch64_output_sve_inc_dec_immediate): Rename to...
15953 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15954 aarch64_sve_vector_inc_dec_immediate_p.
15955 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15956 (aarch64_sve_plus_immediate): New predicates.
15957 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15958 rather than aarch64_sve_addvl_addpl_immediate.
15959 (aarch64_sve_inc_dec_immediate): Rename to...
15960 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15961 aarch64_sve_vector_inc_dec_immediate_p.
15962 (aarch64_sve_add_operand): Update accordingly.
15963 * config/aarch64/constraints.md (Uai): New constraint.
15964 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15965 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15966 operand into a register if it satisfies aarch64_sve_plus_immediate.
15967 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15968 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15969 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15970 aarch64_output_sve_vector_inc_dec instead of
15971 aarch64_output_sve_inc_dec_immediate.
15972
15973 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15974
15975 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15976 (UNSPEC_REVW): New constants.
15977 (elem_bits): New mode attribute.
15978 (SVE_INT_UNARY): New int iterator.
15979 (optab): Handle UNSPEC_REV[BHW].
15980 (sve_int_op): New int attribute.
15981 (min_elem_bits): Handle VNx16QI and the predicate modes.
15982 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15983 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15984 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15985 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15986 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15987 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15988 unspecs based on the total width of the reversed data.
15989 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15990 reinterpret followed by a subreg on big-endian targets.
15991
15992 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15993 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15994
15995 * config/aarch64/aarch64-sve.md
15996 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15997 alternatives in which one of the inputs is in the same register
15998 as the output.
15999
16000 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16001
16002 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16003 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16004
16005 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16006
16007 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16008 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16009
16010 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16011 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16012
16013 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16014 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16015 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16016
16017 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16018 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16019
16020 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16021 Add an alternative that uses reversed shifts.
16022
16023 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16024
16025 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16026 struct.
16027
16028 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16029
16030 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16031 a commutativity marker.
16032
16033 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16034 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16035
16036 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16037 (aarch64_prepare_sve_cond_int_fma): Declare.
16038 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16039 (aarch64_prepare_sve_int_fma): New functions.
16040 (aarch64_prepare_sve_cond_int_fma): Likewise.
16041 * config/aarch64/aarch64-sve.md
16042 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16043 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16044 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16045 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16046 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16047 (*madd<mode>): Rename to...
16048 (*fma<mode>4): ...this.
16049 (*msub<mode>): Rename to...
16050 (*fnma<mode>4): ...this.
16051
16052 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16053 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16054
16055 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16056 Print 2.0 naturally.
16057 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16058 * config/aarch64/predicates.md
16059 (aarch64_sve_float_negated_arith_immediate): New predicate,
16060 renamed from aarch64_sve_float_arith_with_sub_immediate.
16061 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16062 positive and negative constants.
16063 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16064 or an aarch64_sve_float_arith_with_sub_immediate.
16065 * config/aarch64/constraints.md (vsN): Use
16066 aarch64_sve_float_negated_arith_immediate.
16067 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16068 iterator.
16069 (sve_pred_fp_rhs2_immediate): New int attribute.
16070 * config/aarch64/aarch64-sve.md
16071 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16072 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16073 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16074 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16075 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16076 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16077
16078 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16079 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16080
16081 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16082 (*aarch64_cond_abd<SVE_F:mode>_3)
16083 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16084
16085 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16086 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16087
16088 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16089 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16090
16091 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16092 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16093
16094 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16095 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16096 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16097 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16098 optabs.
16099 * optabs.h (create_convert_operand_from): Expand comment.
16100 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16101 when mapping scalar rtxes to vector operands.
16102 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16103 ashiftrt and lshiftrt.
16104 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16105 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16106 (*cond_<optab><mode>_any_const): New patterns.
16107
16108 2019-08-15 Martin Liska <mliska@suse.cz>
16109
16110 PR ipa/91438
16111 * cgraph.c (cgraph_node::remove): When setting
16112 n->origin = NULL for all nested functions, reset
16113 also next_nested.
16114
16115 2019-08-15 Martin Liska <mliska@suse.cz>
16116
16117 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16118 and next_nested.
16119
16120 2019-08-15 Martin Liska <mliska@suse.cz>
16121
16122 PR ipa/91404
16123 * passes.c (order): Remove.
16124 (uid_hash_t): Likewise).
16125 (remove_cgraph_node_from_order): Remove from set
16126 of pointers (cgraph_node *).
16127 (insert_cgraph_node_to_order): New.
16128 (duplicate_cgraph_node_to_order): New.
16129 (do_per_function_toporder): Register all 3 cgraph hooks.
16130 Skip removed_nodes now as we know about all of them.
16131
16132 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16133
16134 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16135 <case E_V8QImode>: Use vector_set path for
16136 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16137 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16138 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16139
16140 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16141
16142 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16143
16144 2019-08-14 Martin Sebor <msebor@redhat.com>
16145
16146 PR tree-optimization/91294
16147 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16148 source length as exact.
16149
16150 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16151
16152 * doc/extend.texi: Add "noinit" attribute documentation.
16153 * doc/sourcebuild.texi: Add noinit effective target documentation.
16154 * varasm.c (default_section_type_flags): Add support for "noinit"
16155 section.
16156 (default_elf_select_section): Add support for "noinit" attribute.
16157 * config/msp430/msp430.c (msp430_attribute_table): Remove
16158 "noinit" entry.
16159
16160 2019-08-14 Richard Biener <rguenther@suse.de>
16161 Uroš Bizjak <ubizjak@gmail.com>
16162
16163 PR target/91154
16164 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16165 mode arguments.
16166 (scalar_chain::smode): New member.
16167 (scalar_chain::vmode): Likewise.
16168 (dimode_scalar_chain): Rename to...
16169 (general_scalar_chain): ... this.
16170 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16171 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16172 base with TImode and V1TImode.
16173 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16174 (general_scalar_chain::vector_const_cost): Adjust for SImode
16175 chains.
16176 (general_scalar_chain::compute_convert_gain): Likewise. Add
16177 {S,U}{MIN,MAX} support.
16178 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16179 (general_scalar_chain::make_vector_copies): Likewise. Handle
16180 non-DImode chains appropriately.
16181 (general_scalar_chain::convert_reg): Likewise.
16182 (general_scalar_chain::convert_op): Likewise.
16183 (general_scalar_chain::convert_insn): Likewise. Add
16184 fatal_insn_not_found if the result is not recognized.
16185 (convertible_comparison_p): Pass in the scalar mode and use that.
16186 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16187 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16188 (scalar_to_vector_candidate_p): Remove by inlining into single
16189 caller.
16190 (general_remove_non_convertible_regs): Rename from
16191 dimode_remove_non_convertible_regs.
16192 (remove_non_convertible_regs): Remove by inlining into single caller.
16193 (convert_scalars_to_vector): Handle SImode and DImode chains
16194 in addition to TImode chains.
16195 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16196 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16197 (*<maxmin>di3_doubleword): Likewise.
16198
16199 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16200 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16201
16202 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16203 (*cond_bic<mode>_any): New patterns.
16204
16205 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16206
16207 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16208 take the equivalent mask, as well as a bit count.
16209 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16210 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16211 (aarch64_sve_pred_and_operand): New predicates.
16212 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16213 code attribute.
16214 * config/aarch64/aarch64-sve.md
16215 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16216 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16217
16218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16219
16220 * config/aarch64/aarch64-sve.md
16221 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16222 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16223 New patterns.
16224
16225 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16226 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16227
16228 * config/aarch64/aarch64-sve.md
16229 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16230 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16231
16232 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16233 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16234
16235 * config/aarch64/aarch64-sve.md
16236 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16237 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16238
16239 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16240
16241 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16242 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16243 New pattern.
16244
16245 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16246 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16247
16248 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16249
16250 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16251 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16252
16253 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16254 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16255 (aarch64_print_operand): Add support for %I.
16256 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16257 Bitcast floating-point constants to the corresponding integer constant.
16258 (aarch64_float_const_representable_p): Handle vectors as well
16259 as scalars.
16260 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16261 for the new vcond_mask_<mode><vpred> expander.
16262 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16263 test aarch64_float_const_representable_p.
16264 (aarch64_sve_reg_or_dup_imm): New predicate.
16265 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16266 gen_vcond_mask_<mode><vpred> instead of
16267 gen_aarch64_sve_dup<mode>_const.
16268 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16269 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16270 for operands 1 and 2 respectively. Force operand 2 into a
16271 register if operand 1 is a register. Fold old define_insn...
16272 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16273 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16274 floating-point constants that can be moved as integers. Add
16275 alternatives for MOV /M and FMOV /M.
16276 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16277 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16278 1 and 2 respectively.
16279 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16280 as scalars.
16281 (vss): New constraint.
16282
16283 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16284
16285 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16286 (aarch64_sve_float_maxmin_operand): New predicates.
16287 * config/aarch64/constraints.md (vsB): New constraint.
16288 (vsM): Fix typo.
16289 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16290 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16291 UNSPEC_COND_FMINNM.
16292 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16293 Use aarch64_sve_float_maxmin_operand for operand 2.
16294 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16295 Add alternatives for the constant forms.
16296
16297 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16298
16299 * config/aarch64/constraints.md (vsb): New constraint.
16300 (vsm): Generalize description.
16301 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16302 iterator.
16303 (sve_imm_con): Handle smax, smin, umax and umin.
16304 (sve_imm_prefix): New code attribute.
16305 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16306 (aarch64_sve_vsb_operand): New predicates.
16307 (aarch64_sve_mul_immediate): Rename to...
16308 (aarch64_sve_vsm_immediate): ...this.
16309 (aarch64_sve_mul_operand): Rename to...
16310 (aarch64_sve_vsm_operand): ...this.
16311 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16312 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16313 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16314 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16315 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16316 add movprfx support for the immediate alternatives.
16317 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16318 of the above.
16319 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16320 for operand 3.
16321
16322 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16323
16324 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16325 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16326 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16327
16328 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16329
16330 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16331 (optab, sve_int_op): Handle them.
16332 * config/aarch64/aarch64-sve.md: Expand comment.
16333
16334 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16335
16336 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16337 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16338 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16339
16340 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16341
16342 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16343 (aarch64_expand_sve_const_pred_trn): New functions.
16344 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16345 use the above functions when the parameter is true.
16346 (aarch64_expand_sve_const_pred): Update call accordingly.
16347 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16348 Rename to...
16349 (@aarch64_sve_<perm_insn><mode>): ...this.
16350
16351 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16352
16353 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16354 Declare.
16355 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16356 (aarch64_sve_emit_int_cmp): New functions.
16357 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16358 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16359 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16360 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16361 (UNSPEC_PRED_Z): New unspec.
16362 (set_clobber_cc_nzc): Delete.
16363 * config/aarch64/aarch64-sve.md: Add a block comment about
16364 UNSPEC_PRED_Z.
16365 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16366 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16367 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16368 UNSPEC_MERGE_PTRUE.
16369 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16370 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16371 check for compatible predicates.
16372 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16373 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16374 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16375 comparisons above.
16376
16377 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16378
16379 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16380 * config/aarch64/aarch64-sve.md: Add a section describing it.
16381 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16382 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16383 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16384 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16385 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16386 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16387 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16388 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16389 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16390 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16391 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16392 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16393 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16394 (aarch64_evpc_rev_local): Update accordingly.
16395
16396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16397
16398 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16399 iterators.
16400 (SVE_BHSI, SVE_SDI): Tweak comment.
16401 (SVE_HSDI): Likewise. Fix definition.
16402 (SVE_SDF): New mode iterator.
16403 (elem_bits): New mode attribute.
16404 (SVE_COND_FCVT): New int iterator.
16405 * config/aarch64/aarch64-sve.md
16406 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16407 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16408 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16409 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16410 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16411 ...these new patterns.
16412 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16413 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16414 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16415 Merge into...
16416 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16417 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16418 ...these new patterns.
16419 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16420 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16421 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16422 ...this new pattern.
16423 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16424 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16425 ...this new pattern.
16426 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16427
16428 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16429
16430 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16431 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16432 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16433 unspecs.
16434 (optab, su): Handle them.
16435 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16436 * config/aarch64/aarch64-sve.md
16437 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16438 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16439 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16440 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16441 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16442 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16443 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16444 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16445 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16446 FIXUORS.
16447 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16448 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16449 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16450 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16451 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16452 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16453 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16454 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16455 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16456 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16457 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16458 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16459 of UNSPEC_FLOAT_CONVERT.
16460 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16461 aarch64_sve_extend<mode><Vwide>2.
16462
16463 2019-08-14 Richard Biener <rguenther@suse.de>
16464
16465 PR target/91154
16466 * config/i386/i386-features.c
16467 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16468 individual instruction gain. Fix reg-reg copy GRP cost. Use
16469 ix86_cost->sse_op for vector instruction costs.
16470
16471 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16472
16473 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16474 (cmp_op): Handle it.
16475 (SVE_COND_FP_CMP): Rename to...
16476 (SVE_COND_FP_CMP_I0): ...this.
16477 (SVE_FP_CMP): Remove.
16478 * config/aarch64/aarch64-sve.md
16479 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16480 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16481 using unspecs to represent the comparison.
16482 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16483 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16484 accordingly.
16485 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16486 (aarch64_unspec_cond_code): Move after integer code. Handle
16487 UNORDERED.
16488 (aarch64_emit_sve_predicated_cond): Replace with...
16489 (aarch64_emit_sve_fp_cond): ...this new function.
16490 (aarch64_emit_sve_or_conds): Replace with...
16491 (aarch64_emit_sve_or_fp_conds): ...this new function.
16492 (aarch64_emit_sve_inverted_cond): Replace with...
16493 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16494 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16495
16496 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16497
16498 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16499 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16500 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16501 SVE_HSD instead of SVE_SD.
16502
16503 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16504 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16505
16506 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16507 iterator.
16508 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16509 attributes.
16510 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16511 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16512 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16513 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16514 (*div<SVE_F:mode>3): Generalize to...
16515 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16516
16517 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16518 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16519
16520 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16521 constants.
16522 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16523 predicate.
16524 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16525 Declare.
16526 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16527 function.
16528 * config/aarch64/aarch64-sve.md: Add a block comment about the
16529 handling of predicated FP operations.
16530 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16531 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16532 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16533 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16534 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16535 operand.
16536 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16537 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16538 operand.
16539 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16540 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16541 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16542 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16543 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16544 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16545 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16546 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16547 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16548 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16549 strictness operands. Use aarch64_sve_pred_dominates_p to check
16550 whether the predicate on the conditional operation is suitable
16551 for merging. Split patterns into the canonical equal-predicate form.
16552 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16553 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16554
16555 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16556 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16557
16558 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16559 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16560 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16561 rtx codes.
16562 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16563 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16564 unspecs.
16565
16566 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16567 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16568
16569 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16570 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16571 actually has, rather than relying on REG_EQUAL notes.
16572 Make the insn operand order match the SVE operand order.
16573 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16574 the SVE operand order.
16575
16576 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16577
16578 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16579 (aarch64_emit_set_immediate): Likewise.
16580 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16581 (aarch64_pfalse_reg): Likewise.
16582 (aarch64_convert_sve_data_to_pred): New function.
16583 (aarch64_sve_move_pred_via_while): Take an optional target register
16584 and the required register mode.
16585 (aarch64_expand_sve_const_pred_1): New function.
16586 (aarch64_expand_sve_const_pred): Likewise.
16587 (aarch64_expand_mov_immediate): Build an all-true predicate
16588 if the significant bits of the immediate are all true. Use
16589 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16590 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16591 before register allocation.
16592 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16593 a VNx16BI PTRUE when splitting the memory alternative.
16594 (vec_duplicate<mode>): Update accordingly.
16595 (*pred_cmp<cmp_op><mode>): Rename to...
16596 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16597
16598 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16599
16600 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16601 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16602 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16603 (UNSPEC_PTEST): New unspec.
16604 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16605 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16606 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16607 * config/aarch64/aarch64-sve.md: Add a new section describing the
16608 handling of UNSPEC_PTEST.
16609 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16610 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16611 (ptest_ptrue<mode>): Replace with...
16612 (aarch64_ptest<mode>): ...this new pattern.
16613 (cbranch<mode>4): Update after above changes.
16614 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16615 UNSPEC_PTEST_PTRUE.
16616 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16617 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16618 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16619
16620 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16621
16622 PR lto/91287
16623 * builtins.c (builtin_with_linkage_p): New function.
16624 * builtins.h (builtin_with_linkage_p): New function.
16625 * symtab.c (write_symbol): Remove redundant assert.
16626 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16627 Remove FIXME and use builtin_with_linkage_p.
16628
16629 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16630
16631 PR middle-end/91421
16632 * tree-core.h (function_decl::function_code): Change type to
16633 unsigned int.
16634 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16635 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16636 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16637 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16638 is BUILT_IN_NORMAL.
16639 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16640 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16641 (fndecl_built_in_p): Change the type of the "name" argument to
16642 unsigned int.
16643 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16644 after check for DECL_BUILT_IN_CLASS.
16645 * cgraphclones.c (build_function_decl_skip_args): Use
16646 set_decl_built_in_function.
16647 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16648 * ipa-split.c (split_function): Likewise.
16649 * langhooks.c (add_builtin_function_common): Likewise.
16650 * omp-simd-clone.c (simd_clone_create): Likewise.
16651 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16652 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16653 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16654 DECL_FUNCTION_CODE.
16655 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16656 instead of DECL_FUNCTION_CODE.
16657 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16658 instead of DECL_FUNCTION_CODE.
16659 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16660 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16661 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16662 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16663 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16664 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16665 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16666 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16667 (alpha_gimple_fold_builtin): Likewise.
16668 * config/arc/arc.c (arc_expand_builtin): Likewise.
16669 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16670 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16671 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16672 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16673 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16674 * config/frv/frv.c (frv_expand_builtin): Likewise.
16675 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16676 (gcn_expand_builtin): Likewise.
16677 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16678 (fold_builtin_cpu): Likewise.
16679 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16680 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16681 (ix86_gimple_fold_builtin): Likewise.
16682 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16683 (ia64_expand_builtin): Likewise.
16684 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16685 * config/mips/mips.c (mips_expand_builtin): Likewise.
16686 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16687 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16688 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16689 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16690 * config/pa/pa.c (pa_expand_builtin): Likewise.
16691 * config/pru/pru.c (pru_expand_builtin): Likewise.
16692 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16693 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16694 Likewise.
16695 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16696 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16697 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16698 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16699 (rs6000_builtin_reciprocal): Likewise.
16700 * config/rx/rx.c (rx_expand_builtin): Likewise.
16701 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16702 * config/s390/s390.c (s390_expand_builtin): Likewise.
16703 * config/sh/sh.c (sh_expand_builtin): Likewise.
16704 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16705 (sparc_fold_builtin): Likewise.
16706 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16707 * config/spu/spu.c (spu_expand_builtin): Likewise.
16708 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16709 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16710 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16711 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16712 (xtensa_expand_builtin): Likewise.
16713
16714 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16715
16716 PR middle-end/91421
16717 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16718 before the DECL_FUNCTION_CODE.
16719 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16720 to check for a BUILT_IN_ALLOCA call.
16721 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16722 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16723 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16724 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16725 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16726 for BUILT_IN_NORMAL functions.
16727 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16728 test for BUILT_IN_TM_ABORT.
16729 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16730 to check for a BUILT_IN_STACK_RESTORE call.
16731 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16732 * tree-ssa-threadedge.c
16733 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16734 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16735 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16736 test for a BUILT_IN_NORMAL call instead of a negative test for
16737 an internal function call.
16738
16739 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16740
16741 * tree.h (build_vector_a_then_b): Declare.
16742 * tree.c (build_vector_a_then_b): New function.
16743 * fold-const-call.c (fold_while_ult): Likewise.
16744 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16745 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16746 (aarch64_svpattern): New enum.
16747 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16748 constants through aarch64_expand_mov_immediate.
16749 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16750 than general_operand as the predicate for operand 1.
16751 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16752 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16753 insn_type.
16754 (simd_immediate_info::simd_immediate_info): New overload that
16755 takes a scalar_int_mode and an svpattern.
16756 (simd_immediate_info::u): Add a "pattern" field.
16757 (svpattern_token): New function.
16758 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16759 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16760 (aarch64_sve_move_pred_via_while): New functions.
16761 (aarch64_expand_mov_immediate): Try using
16762 aarch64_sve_move_pred_via_while for predicates that contain N ones
16763 followed by M zeros but that do not correspond to a VLnnn pattern.
16764 (aarch64_sve_pred_valid_immediate): New function.
16765 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16766 with PTRUE and PFALSE.
16767 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16768 forms.
16769
16770 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16771
16772 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16773 flag.
16774 (darwin_override_options): Likewise.
16775 * config/darwin.h: Likewise.
16776 * config/darwin.opt: Likewise.
16777 * config/i386/i386.c (output_pic_addr_const): Likewise.
16778 * config/rs6000/darwin.h: Likewise.
16779 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16780 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16781 ... this TARGET_MACHO_SYMBOL_STUBS.
16782 (FUNCTION_PROFILER):Likewise.
16783 * config/i386/i386.h: Likewise.
16784
16785 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16786
16787 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16788 <case E_V2SImode>: Use vec_extr path for
16789 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16790 <case E_V8QImode>: Ditto.
16791 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16792 Use SWI48 mode iterator. Use %k to output operand 0.
16793 (*mmx_pextrw): New insn pattern.
16794 (*mmx_pextrb): Ditto.
16795 (*mmx_pextrb_zext): Ditto.
16796
16797 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16798
16799 * target.def (libc_has_function, libc_has_fast_function): Improve
16800 documentation strings.
16801 * doc/tm.texi: Regenerate.
16802
16803 2019-08-13 Caroline Tice <cmtice@google.com>
16804
16805 PR other/91396
16806 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16807 vtv_end.o or vtv_end_preinit.o files if !static.
16808
16809 2019-08-13 Olivier Hainque <hainque@adacore.com>
16810
16811 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16812
16813 2019-08-13 Olivier Hainque <hainque@adacore.com>
16814
16815 * rtlanal.c (tablejump_casesi_pattern): New function, to
16816 determine if a tablejump insn is a casesi dispatcher. Extracted
16817 from patch_jump_insn.
16818 * rtl.h (tablejump_casesi_pattern): Declare.
16819 * cfgrtl.c (patch_jump_insn): Use it.
16820 * dwarf2cfi.c (create_trace_edges): Use it.
16821
16822 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16823
16824 PR target/81800
16825 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16826 operand is larger than a long int.
16827
16828 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16829
16830 * machmode.h (opt_mode::else_mode): New function.
16831 (opt_mode::else_blk): Use it.
16832 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16833 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16834 (aarch64_gen_stepped_int_parallel): Likewise.
16835 (aarch64_stepped_int_parallel_p): Likewise.
16836 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16837 argument.
16838 * config/aarch64/aarch64.c
16839 (aarch64_expand_sve_widened_duplicate): Delete.
16840 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16841 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16842 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16843 argument. Use early returns in the !CONST_INT_P handling.
16844 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16845 than handling some inline.
16846 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16847 from...
16848 (aarch64_simd_container_mode): ...here.
16849 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16850 (aarch64_sve_ld1rq_operand_p): New functions.
16851 * config/aarch64/predicates.md (descending_int_parallel)
16852 (aarch64_sve_ld1rq_operand): New predicates.
16853 * config/aarch64/constraints.md (UtQ): New constraint.
16854 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16855 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16856 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16857 (@aarch64_sve_reinterpret<mode>): New expander.
16858 (*aarch64_sve_reinterpret<mode>): New pattern.
16859 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16860 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16861 (*sve_ld1rq<Vesize>): Replace with...
16862 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16863
16864 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16865
16866 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16867 16:12.
16868
16869 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16870
16871 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16872 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16873 (msp430_check_path_for_devices): New.
16874 (parse_devices_csv_1): New.
16875 (parse_devices_csv): New.
16876 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16877 MCU data in devices.csv before using the hard-coded data.
16878 Warn if devices.csv isn't found and the MCU wasn't found in the
16879 hard-coded data either.
16880 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16881 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16882 Search for devices.csv on -I and -L paths.
16883 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16884 msp430_set_driver_var.
16885 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16886 -mdevices-csv-loc=.
16887 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16888 searched for devices.csv.
16889 (mwarn-devices-csv): Document option.
16890
16891 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16892
16893 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16894 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16895 Use a single Dn alternative instead of separate Dz and Dm
16896 alternatives. Use aarch64_output_sve_move_immediate.
16897 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16898 function.
16899 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16900 for predicates too.
16901 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16902 (aarch64_output_ptrue): Delete.
16903
16904 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16905
16906 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16907 INDEX.
16908 (simd_immediate_info::value, simd_immediate_info::step)
16909 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16910 with...
16911 (simd_immediate_info::u): ...this new union.
16912 (simd_immediate_info::simd_immediate_info): Update accordingly.
16913 (aarch64_output_simd_mov_immediate): Likewise.
16914 (aarch64_output_sve_mov_immediate): Likewise.
16915
16916 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16917
16918 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16919 extra_gcc_objs.
16920 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16921 (msp430_select_cpu): New spec function.
16922 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16923 MCU data.
16924 * config/msp430/msp430-devices.c: New file.
16925 * config/msp430/msp430-devices.h: New file.
16926 * config/msp430/msp430.c: Remove msp430_mcu_data.
16927 (msp430_option_override): Use msp430_extract_mcu_data to extract
16928 MCU data.
16929 (msp430_use_f5_series_hwmult): Likewise.
16930 (use_32bit_hwmult): Likewise.
16931 (msp430_no_hwmult): Likewise.
16932 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16933 assembler.
16934 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16935 and -mcpu option.
16936 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16937 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16938 Remove hard-coded MCU multilib data.
16939
16940 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16941
16942 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16943 based on the mode instead of testing properties of it.
16944
16945 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16946
16947 * doc/md.texi: Document the x and y constraints for AArch64.
16948 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16949 (FP_LO8_REGS): New reg_class.
16950 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16951 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16952 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16953 * config/aarch64/predicates.md (aarch64_simd_register): Use
16954 FP_REGNUM_P instead of checking the classes manually.
16955 * config/aarch64/constraints.md (y): New constraint.
16956
16957 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16958
16959 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16960 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16961 * config/aarch64/aarch64-simd.md
16962 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16963 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16964 from the asm template.
16965 * config/aarch64/aarch64-sve.md
16966 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16967 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16968 from the asm template.
16969 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16970 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16971 from the asm template.
16972 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16973
16974 2019-08-13 Martin Liska <mliska@suse.cz>
16975
16976 * value-prof.c (gimple_ic_transform): Add new line.
16977 Print details with MSG_NOTE.
16978
16979 2019-08-13 Martin Liska <mliska@suse.cz>
16980
16981 * doc/invoke.texi: Document automatic detection of jobserver.
16982 * lto-wrapper.c (run_gcc): Detect jobserver always.
16983
16984 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16985
16986 * config/i386/i386-expand.c (ix86_expand_vector_set)
16987 <case E_V2SImode>: Use vec_merge path for
16988 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16989 <case E_V8QImode>: Ditto.
16990 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16991 (*mmx_pinsrb): Ditto.
16992
16993 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16994
16995 PR target/83250
16996 PR target/91340
16997 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16998 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16999 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17000 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17001 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17002
17003 2019-08-12 Richard Biener <rguenther@suse.de>
17004
17005 PR lto/91375
17006 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17007 flag_devirtualize.
17008
17009 2019-08-12 Richard Biener <rguenther@suse.de>
17010
17011 PR driver/91130
17012 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17013 lang_mask option, always use CL_DRIVER.
17014 (get_options_from_collect_gcc_options): Adjust.
17015 (find_and_merge_options): Likewise.
17016 (run_gcc): Likewise.
17017
17018 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17019
17020 * ipa-predicate.c (add_condition): Restore inverted test.
17021
17022 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17023
17024 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17025 (enum omp_clause_device_type_kind): New enum.
17026 (struct tree_omp_clause): Add subcode.device_type_kind.
17027 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17028 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17029 for device_type clause.
17030 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17031 * tree-pretty-print.c (dump_omp_clause): Likewise.
17032
17033 PR target/91408
17034 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17035 vector_operand.
17036
17037 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17038
17039 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17040 handling spilled pseudos.
17041
17042 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17043
17044 PR target/91386
17045 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17046 to preserve the contents of the original insns.
17047
17048 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17049
17050 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17051 (addsi3_compare_op2): Likewise.
17052
17053 2019-08-09 Martin Liska <mliska@suse.cz>
17054
17055 * alias.c (alias_ptr_types_compatible_p): Strengten
17056 type comparison in LTO mode.
17057
17058 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17059
17060 PR middle-end/90313
17061 * tree-tailcall.c (find_tail_calls): Reject calls that might
17062 read from an escaped RESULT_DECL.
17063
17064 2019-08-09 Martin Liska <mliska@suse.cz>
17065
17066 * doc/invoke.texi: Document the option value.
17067 * lto-wrapper.c (run_gcc): Set auto_parallel
17068 only with -flto=auto.
17069
17070 2019-08-09 Martin Liska <mliska@suse.cz>
17071
17072 * opts.c (common_handle_option): Error for an invalid argument
17073 to -flto=.
17074
17075 2019-08-09 Martin Liska <mliska@suse.cz>
17076
17077 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17078 use dump_printf to report optimization.
17079 (sem_variable::merge): Likwise.
17080 (sem_item_optimizer::merge_classes): Use dump_printf to report
17081 ICF hits.
17082
17083 2019-08-09 Martin Liska <mliska@suse.cz>
17084
17085 * value-prof.c (gimple_divmod_fixed_value_transform):
17086 Use dump_printf_loc.
17087 (gimple_mod_pow2_value_transform): Likewise.
17088 (gimple_mod_subtract_transform): Likewise.
17089 (init_node_map): Likewise.
17090 (gimple_ic_transform): Likewise.
17091 (gimple_stringops_transform): Likewise.
17092
17093 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17094
17095 * doc/extend.texi: Add const qualifier to ld intrinsics.
17096
17097 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17098
17099 * config/rs6000/dfp.md (D64_D128): Rename to ...
17100 (DDTD): ... this, throughout.
17101 (dfp_suffix): Rename to ...
17102 (q): ... this, throughout.
17103
17104 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17105
17106 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17107 (dfp_suffix): Ditto.
17108 (adddd3, addtd3): Merge to ...
17109 (add<mode>3 for D64_D128): ... this.
17110 (subdd3, subtd3): Merge to ...
17111 (sub<mode>3 for D64_D128): ... this.
17112 (muldd3, multd3): Merge to ...
17113 (mul<mode>3 for D64_D128): ... this.
17114 (divdd3, divtd3): Merge to ...
17115 (div<mode>3 for D64_D128): ... this.
17116 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17117 (*cmp<mode>_internal1 for D64_D128): ... this.
17118 (ftruncdd2, ftrunctd2): Merge to ...
17119 (ftrunc<mode>2 for D64_D128): ... this.
17120 (fixdddi2, fixtddi2): Merge to ...
17121 (fix<mode>di2 for D64_D128): ... this.
17122
17123 2019-08-08 Jim Wilson <jimw@sifive.com>
17124
17125 PR target/91229
17126 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17127 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17128 Pass into recursive call.
17129 (riscv_flatten_aggregate_argument): New arg. Pass to
17130 riscv_flatten_aggregate_field.
17131 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17132 riscv_flatten_aggregate_argument twice, with false and true as last
17133 arg. Process result twice. Compare results and warn if different.
17134 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17135
17136 2019-08-08 Martin Liska <mliska@suse.cz>
17137
17138 PR bootstrap/91352
17139 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17140 * lto-wrapper.c (jobserver_active_p): Likewise.
17141
17142 2019-08-08 Martin Liska <mliska@suse.cz>
17143
17144 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17145 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17146 (create_version_clone_with_body): Likewise.
17147
17148 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17149
17150 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17151 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17152 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17153 GOVD_EXPLICIT flags.
17154 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17155 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17156 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17157 call install_var_field with mask 11 instead of 3.
17158 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17159 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17160
17161 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17162
17163 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17164 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17165
17166 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17167
17168 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17169 MOVPRFX alternatives. Make the GPR alternatives more expensive
17170 than the FPR ones.
17171
17172 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17173
17174 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17175 Disparage the GPR alternative relative to the FPR one.
17176 Fix handling of 8-bit and 16-bit FPR values.
17177
17178 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17179
17180 * config/aarch64/iterators.md (BITWISEV): Delete.
17181 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17182 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17183 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17184 UNSPEC_FMINNMV, UNSPEC_FMINV.
17185 (bit_reduc_op): Delete.
17186 (sve_int_op): New int attribute.
17187 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17188 UNSPEC_FMINNMV, UNSPEC_FMINV.
17189 * config/aarch64/aarch64-sve.md
17190 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17191 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17192 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17193 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17194 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17195 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17196 new patterns.
17197 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17198 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17199 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17200 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17201 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17202 new patterns.
17203
17204 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17205
17206 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17207 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17208 (fms<mode>4, *fms<mode>4): Replace with...
17209 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17210 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17211 Use unspecs instead of rtx codes.
17212 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17213 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17214
17215 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17216
17217 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17218 int iterator.
17219 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17220 * config/aarch64/aarch64-sve.md
17221 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17222 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17223 use a single unspec for the rhs.
17224 (*<su><maxmin><mode>3): Delete.
17225 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17226
17227 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17228
17229 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17230 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17231 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17232 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17233 (optab, sve_fp_op): Handle them.
17234 (SVE_FP_UNARY): Delete.
17235 (optab): Remove sqrt entry.
17236 (sve_fp_op): Remove neg, abs and sqrt entries.
17237 (SVE_COND_FP_UNARY): New int iterator.
17238 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17239 (*<frint_pattern><mode>2): Delete.
17240 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17241 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17242 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17243 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17244
17245 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17246
17247 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17248
17249 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17250
17251 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17252 (UNSPEC_COND_FADD): ...this.
17253 (UNSPEC_COND_SUB): Rename to...
17254 (UNSPEC_COND_FSUB): ...this.
17255 (UNSPEC_COND_MUL): Rename to...
17256 (UNSPEC_COND_FMUL): ...this.
17257 (UNSPEC_COND_DIV): Rename to...
17258 (UNSPEC_COND_FDIV): ...this.
17259 (UNSPEC_COND_MAX): Rename to...
17260 (UNSPEC_COND_FMAXNM): ...this.
17261 (UNSPEC_COND_MIN): Rename to...
17262 (UNSPEC_COND_FMINNM): ...this.
17263 (UNSPEC_COND_LT): Rename to...
17264 (UNSPEC_COND_FCMLT): ...this.
17265 (UNSPEC_COND_LE): Rename to...
17266 (UNSPEC_COND_FCMLE): ...this.
17267 (UNSPEC_COND_EQ): Rename to...
17268 (UNSPEC_COND_FCMEQ): ...this.
17269 (UNSPEC_COND_NE): Rename to...
17270 (UNSPEC_COND_FCMNE): ...this.
17271 (UNSPEC_COND_GE): Rename to...
17272 (UNSPEC_COND_FCMGE): ...this.
17273 (UNSPEC_COND_GT): Rename to...
17274 (UNSPEC_COND_FCMGT): ...this.
17275 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17276 (sve_fp_op_rev): Update accordingly.
17277 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17278
17279 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17280
17281 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17282 banner comments.
17283 * config/aarch64/check-sve-md.awk: New file.
17284 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17285 (insn-conditions.md): Depend on it.
17286
17287 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17288
17289 PR target/91385
17290 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17291 (*negsi2_cmpz_zext): Ditto.
17292
17293 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17294
17295 * config/aarch64/iterators.md (commutative): Remove.
17296
17297 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17298
17299 PR driver/91130
17300 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17301 processing COLLECT_GCC_OPTIONS.
17302 (run_gcc): Likewise.
17303
17304 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17305
17306 PR tree-optimization/91109
17307 * lra-remat.c (update_scratch_ops): Remove assignment of the
17308 hard register.
17309
17310 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17311
17312 * data-streamer.h (streamer_write_poly_uint64): Declare.
17313 (streamer_read_poly_uint64): Likewise.
17314 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17315 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17316 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17317 (add_condition): Take a poly_int64 size.
17318 * ipa-predicate.c (add_condition): Likewise.
17319 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17320 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17321 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17322 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17323 condition::size as a poly_int64.
17324 (unmodified_parm_1): Take a poly_int64 size pointer.
17325 (unmodified_parm): Likewise.
17326 (unmodified_parm_or_parm_agg_item): Likewise.
17327 (set_cond_stmt_execution_predicate): Update accordingly.
17328 (set_switch_stmt_execution_predicate): Likewise.
17329 (will_be_nonconstant_expr_predicate): Likewise.
17330 (will_be_nonconstant_predicate): Likewise.
17331 (inline_read_section): Stream condition::size as a poly_int.
17332 (ipa_fn_summary_write): Likewise.
17333
17334 2019-08-07 Martin Liska <mliska@suse.cz>
17335
17336 * fold-const.c (twoval_comparison_p): Replace int
17337 with bool as a return type.
17338 (simple_operand_p): Likewise.
17339 (operand_equal_p): Replace int with bool as a return type.
17340 * fold-const.h (operand_equal_p): Likewise.
17341
17342 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17343
17344 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17345 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17346 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17347 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17348 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17349 * tree-pretty-print.c (dump_omp_clause): Likewise.
17350 * tree-nested.c (convert_nonlocal_omp_clauses,
17351 convert_local_omp_clauses): Likewise.
17352 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17353 Likewise.
17354 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17355 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17356 clause with array or reference to array types, no matter what type
17357 except for reference it has.
17358
17359 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17360
17361 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17362
17363 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17364
17365 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17366 (arch_canonicalize): Support rv32g and rv64g and fix error
17367 handling.
17368
17369 2019-08-06 Martin Liska <mliska@suse.cz>
17370
17371 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17372 and DECL_IS_OPERATOR_DELETE_P.
17373
17374 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17375
17376 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17377 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17378 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17379 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17380 (gimplify_omp_for): Don't do C++ random access iterator clause
17381 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17382 don't predetermine the artificial iterator in case of C++ random
17383 access iterators as lastprivate, but private. For OMP_LOOP, force
17384 bind expr around simd body and force for_pre_body before the
17385 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17386 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17387 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17388 diff var of C++ random access iterators. Handle
17389 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17390 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17391 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17392 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17393 * omp-low.c (lower_rec_input_clauses): For
17394 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17395 variables instead of default constructing them.
17396 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17397 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17398 is_taskloop_ctx check from the assert to the guarding condition.
17399
17400 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17401
17402 * config/riscv/multilib-generator: (canonical_order): New.
17403 (arch_canonicalize): Dito.
17404 Apply arch_canonicalize for alts.
17405
17406 2019-08-05 Martin Sebor <msebor@redhat.com>
17407
17408 * doc/extend.texi (Common Variable Attributes): Document alias
17409 attribute.
17410
17411 2019-08-05 Marek Polacek <polacek@redhat.com>
17412
17413 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17414 * doc/invoke.texi: Document -Wcomma-subscript.
17415
17416 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17417
17418 * tree-core.h (tree_function_decl): Make function_code an
17419 independent field. Group the remaining bitfields into bytes
17420 and move decl_type so that it contines to be at a byte boundary.
17421 Leave 12 bits for future expansion.
17422
17423 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17424
17425 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17426 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17427 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17428 IFN_MASK_STORE.
17429
17430 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17431
17432 * gimple.h (gimple_move_vops): Declare.
17433 * gimple.c (gimple_move_vops): New function
17434 * gimple-fold.c (replace_call_with_call_and_fold)
17435 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17436 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17437 (gimple_fold_call): Use it.
17438 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17439 * tree-call-cdce.c (use_internal_fn): Likewise.
17440 * tree-if-conv.c (predicate_load_or_store): Likewise.
17441 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17442 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17443 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17444 (update_call_from_tree): Likewise.
17445 * tree-vect-stmts.c (vectorizable_load): Likewise.
17446 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17447
17448 2019-08-05 Martin Liska <mliska@suse.cz>
17449
17450 PR c++/91334
17451 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17452 with not arguments.
17453 (eliminate_unnecessary_stmts): Likewise.
17454
17455 2019-08-05 Richard Biener <rguenther@suse.de>
17456
17457 PR middle-end/91169
17458 * fold-const.c (get_array_ctor_element_at_index): Create
17459 offset_ints according to the sign of the index type and treat
17460 that as signed if it is obviously so.
17461
17462 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17463
17464 PR target/91341
17465 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17466 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17467 _mm256_storeu2_m128i): New function.
17468
17469 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17470
17471 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17472 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17473
17474 2019-08-05 Alan Modra <amodra@gmail.com>
17475
17476 PR target/91349
17477 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17478 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17479
17480 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17481
17482 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17483 bug that was fixed in Tcl 8.6.1.
17484
17485 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17486
17487 * config/rs6000/future.md: New file.
17488 * config/rs6000/rs6000.md: Include future.md.
17489 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17490
17491 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17492
17493 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17494 check to use targetm.slow_unaligned_access instead.
17495
17496 * function.c (assign_param_data_one): Remove unused data members.
17497
17498 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17499
17500 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17501 build_distinct_type_copy.
17502 (simd_clone_adjust_argument_types): Ditto.
17503 (simd_clone_adjust): Call build_distinct_type_copy here.
17504 (expand_simd_clones): Ditto.
17505
17506 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17507
17508 PR target/91201
17509 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17510
17511 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17512
17513 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17514 from 'const void *'.
17515 (sort_locs_in_loop_postorder_cmp): Likewise.
17516
17517 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17518
17519 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17520 (hot-bb-count-ws-permille): Likewise.
17521 (hot-bb-frequency-fraction): Likewise.
17522 (unlikely-bb-count-fraction): Likewise.
17523 * params.def (hot-bb-count-fraction): Rework description.
17524 (hot-bb-count-ws-permille): Likewise.
17525 (hot-bb-frequency-fraction): Likewise.
17526 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17527 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17528
17529 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17530
17531 PR target/91323
17532 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17533 Return false.
17534
17535 2019-08-02 Richard Biener <rguenther@suse.de>
17536
17537 * vec.h (vec::sort): Add gcc_qsort_r support.
17538 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17539 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17540 to gcc_qsort_r style callback.
17541 (sort_locs_in_loop_postorder_cmp): Likewise.
17542 (analyze_memory_references): Use gcc_sort_r interfaces.
17543 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17544
17545 2019-08-02 Martin Liska <mliska@suse.cz>
17546
17547 PR lto/91313
17548 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17549 to detect working job server.
17550 (driver::detect_jobserver): Test whether jobserver
17551 is active from GCC driver. That will prevent situation where
17552 GCC is invoked from a LD plugin and the linker already uses
17553 file descriptors suggested by make. That leads to a wrong
17554 detection.
17555 * gcc.h (driver): Add detect_jobserver.
17556 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17557 not scanning for --jobserver-auth prefix.
17558
17559 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17560
17561 PR tree-optimization/91201
17562 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17563 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17564 extraction.
17565
17566 2019-08-01 Martin Sebor <msebor@redhat.com>
17567
17568 PR c++/90947
17569 * tree.c (type_initializer_zero_p): Define.
17570 * tree.h (type_initializer_zero_p): New function.
17571
17572 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17573
17574 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17575
17576 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17577
17578 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17579 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17580 * predict.c (maybe_hot_count_p): Likewise.
17581 (maybe_hot_bb_p): Tweak comment.
17582 (maybe_hot_edge_p): Likewise.
17583 (probably_never_executed): Likewise. Minor tweak.
17584 (probably_never_executed_bb_p): Likewise.
17585 (unlikely_executed_edge_p): Likewise.
17586 (probably_never_executed_edge_p): Likewise.
17587 (optimize_function_for_size_p): Likewise.
17588 (optimize_function_for_speed_p): Likewise.
17589 (function_optimization_type): Likewise.
17590 (optimize_bb_for_size_p): Likewise.
17591 (optimize_bb_for_speed_p): Likewise.
17592 (bb_optimization_type): Likewise.
17593 (optimize_edge_for_size_p): Likewise.
17594 (optimize_edge_for_speed_p): Likewise.
17595 (optimize_insn_for_size_p): Likewise.
17596 (optimize_insn_for_speed_p): Likewise.
17597 (optimize_loop_for_size_p): Likewise.
17598 (optimize_loop_for_speed_p): Likewise.
17599 (optimize_loop_nest_for_speed_p): Likewise.
17600 (optimize_loop_nest_for_size_p): Likewise.
17601 (predictable_edge_p): Likewise.
17602 (handle_missing_profiles): Minor tweak.
17603
17604 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17605
17606 * config/rs6000/predicates.md (pcrel_external_address): Update
17607 comment.
17608
17609 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17610
17611 PR target/85693
17612 * config/i386/mmx.md (usadv8qi): New expander.
17613
17614 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17615
17616 PR c++/90590
17617 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17618 with reserved names that are in a system header.
17619
17620 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17621
17622 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17623 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17624 (*vec_extractv2si_0_zext): Ditto.
17625 (*vec_extractv2si_1): Add (rm,x) alternative.
17626 (*vec_extractv2si_1_zext): New insn pattern.
17627 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17628 insn constraint.
17629
17630 2019-08-01 Richard Biener <rguenther@suse.de>
17631
17632 * domwalk.c (bb_postorder): Remove static variable.
17633 (cmp_bb_postorder): Adjust.
17634 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17635 (dom_walker::walk): Adjust.
17636
17637 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17638
17639 * sort.cc (sort_r_ctx): New struct.
17640 (reorder23): Make templated on context type.
17641 (reorder45): Ditto.
17642 (cmp1): Ditto. Adjust signature.
17643 (netsort): Ditto.
17644 (mergesort): Ditto.
17645 [CHECKING_P] (cmp2to3): New static function. Use it...
17646 (gcc_qsort) [CHECKING_P]: ...here.
17647 (gcc_sort_r): New function.
17648 * system.h (sort_r_cmp_fn): New function typedef.
17649 (qsort_chk): Adjust signature.
17650 (gcc_sort_r): Declare.
17651 * vec.c (qsort_chk_error): Adjust.
17652 (qsort_chk): Adjust.
17653
17654 2019-08-01 Richard Biener <rguenther@suse.de>
17655
17656 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17657 (compute_antic): Localize it here.
17658
17659 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17660
17661 * common/config/riscv/riscv-common.c: Check -march string ends
17662 with null.
17663
17664 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17665
17666 * ipa-devirt.c (type_warning_cmp): Make static.
17667 (decl_warning_cmp): Ditto.
17668
17669 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17670
17671 PR target/91050
17672 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17673 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17674 use of deleted rs6000_dejagnu_cpu_index variable.
17675 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17676 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17677 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17678 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17679 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17680 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17681
17682 2019-07-31 Richard Biener <rguenther@suse.de>
17683
17684 PR tree-optimization/91280
17685 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17686 Decompose MEM_REF manually for offset handling.
17687
17688 2019-07-31 Richard Biener <rguenther@suse.de>
17689
17690 PR tree-optimization/91293
17691 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17692 of reduction stmts.
17693
17694 2019-07-31 Matt Thomas <matt@3am-software.com>
17695 Nick Hudson <nick@nthcliff.demon.co.uk>
17696 Matthew Green <mrg@eterna.com.au>
17697 Maya Rashish <coypu@sdf.org>
17698
17699 * config.gcc (hppa*-*-netbsd*): New target.
17700 * config/pa/pa-netbsd.h: New file.
17701 * config/pa/pa32-netbsd.h: New file.
17702
17703 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17704
17705 PR tree-optimization/91201
17706 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17707
17708 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17709
17710 * config/gcn/gcn-valu.md
17711 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17712 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17713 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17714 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17715 struct ilist. Add nops for delayeduse insns.
17716 * config/gcn/gcn.md (delayeduse): New attribute.
17717 (*movbi): Remove s_waitcnt from stores.
17718 (*mov<mode>_insn): Likewise.
17719 (*movti_insn): Likewise. Add delayeduse attribute.
17720 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17721 (atomic_store<mode>): Remove or adjust s_waitcnt.
17722
17723 2019-07-31 Richard Biener <rguenther@suse.de>
17724
17725 * vr-values.h (vr_values::swap_vr_value): New.
17726 (vr_values::free_value_range): likewise.
17727 * vr-values.c (vr_values::swap_vr_value): Implement.
17728 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17729 Do not return a range or take a var.
17730 (evrp_range_analyzer::stack): Change back to recording a non-const
17731 value_range *.
17732 * gimple-ssa-evrp-analyze.c
17733 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17734 value-range.
17735 (evrp_range_analyzer::pop_to_marker): Adjust.
17736 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17737 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17738 no longer needed value-range.
17739
17740 2019-07-31 Martin Liska <mliska@suse.cz>
17741
17742 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17743 have size and (or) alignment as 2nd and later arguments.
17744 Mark all of them as necessary.
17745
17746 2019-07-31 Richard Biener <rguenther@suse.de>
17747
17748 PR tree-optimization/91178
17749 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17750 Use tail-recursion.
17751
17752 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17753
17754 PR tree-optimization/91201
17755 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17756 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17757 TARGET_AVX512F.
17758 (reduc_plus_scal_<mode>): Improve formatting by introducing
17759 a temporary.
17760
17761 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17762
17763 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17764 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17765 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17766 (aarch64_init_tme_builtins): New.
17767 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17768 (aarch64_expand_builtin_tme): New.
17769 (aarch64_expand_builtin): Handle TME builtins.
17770 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17771 __ARM_FEATURE_TME when enabled.
17772 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17773 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17774 (TARGET_TME): New.
17775 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17776 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17777 UNSPECV_TCANCEL.
17778 (tstart, ttest, tcommit, tcancel): New instructions.
17779 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17780 (__tcancel, __ttest): New.
17781 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17782 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17783 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17784 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17785 * config/arm/types.md: Add new tme type attr.
17786 * doc/invoke.texi: Document "tme".
17787
17788 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17789
17790 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17791 warn_unused_result attribute.
17792 (cmse_check_address_range): Add warn_unused_result attribute.
17793
17794 2019-07-31 Richard Biener <rguenther@suse.de>
17795
17796 PR tree-optimization/91257
17797 * tree-vrp.c (union_ranges): Unify equality and less tests
17798 by using compare_values. Re-order cheap tests first.
17799
17800 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17801
17802 PR middle-end/91301
17803 * gimplify.c (gimplify_omp_for): If for class iterator on
17804 distribute parallel for there is no data sharing clause
17805 on inner_for_stmt, look for private clause on combined
17806 parallel too and if found, move it to inner_for_stmt.
17807
17808 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17809
17810 * lra-int.h (lra_operand_data): Remove early_clobber field.
17811 (lra_insn_reg): Likewise.
17812 * lra.c (debug_operand_data): Update accordingly.
17813 (setup_operand_alternative): Likewise.
17814 (new_insn_reg): Likewise. Remove early_clobber parameter.
17815 (collect_non_operand_hard_regs): Update call accordingly.
17816 Don't assign to lra_insn_reg::early_clobber.
17817 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17818 and update calls to new_insn_reg.
17819 (lra_update_insn_regno_info): Update calls accordingly.
17820 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17821 alternative number as a parameter and test whether the operand
17822 is earlyclobbered in that particular alternative.
17823 (process_alt_operands): Update call accordingly. Use per-alternative
17824 checks for earyclobber here too.
17825 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17826 against zero for IRA_UNKNOWN_ALT.
17827
17828 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17829
17830 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17831
17832 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17833
17834 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17835 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17836
17837 2019-07-30 Martin Liska <mliska@suse.cz>
17838
17839 PR ipa/89330
17840 * cgraph.c (cgraph_edge::make_direct): Use
17841 edge->indirect_unknown_callee as edge->resolve_speculation can
17842 deallocate edge which is this pointer.
17843
17844 2019-07-30 Richard Biener <rguenther@suse.de>
17845
17846 PR tree-optimization/91257
17847 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17848
17849 2019-07-30 Martin Liska <mliska@suse.cz>
17850
17851 * doc/invoke.texi: Document new behavior.
17852 * lto-wrapper.c (cpuset_popcount): New function
17853 is a copy of libgomp/config/linux/proc.c.
17854 (init_num_threads): Likewise.
17855 (run_gcc): Automatically detect core count for -flto.
17856 (jobserver_active_p): New function.
17857
17858 2019-07-30 Richard Biener <rguenther@suse.de>
17859
17860 PR tree-optimization/91257
17861 * bitmap.h (bitmap_ior_into_and_free): Declare.
17862 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17863 whether to add the unliked element to the freelist.
17864 (bitmap_list_insert_element_after): Add defaulted param for
17865 an already allocated element.
17866 (bitmap_ior_into_and_free): New function.
17867 * tree-ssa-structalias.c (condense_visit): Reduce the
17868 ponts-to and edge bitmaps of the SCC members in a
17869 logarithmic fashion rather than all to one.
17870
17871 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17872
17873 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17874 parameter. When nonnull, make sure that the addition or subtraction
17875 has the same condition.
17876 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17877 for CFN_COND_MUL too.
17878
17879 2019-07-30 Richard Biener <rguenther@suse.de>
17880
17881 PR tree-optimization/91291
17882 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17883 constant values.
17884
17885 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17886
17887 PR middle-end/91216
17888 * omp-low.c (global_nonaddressable_vars): New variable.
17889 (use_pointer_for_field): For global decls, if they are non-addressable,
17890 remember it in the global_nonaddressable_vars bitmap, if they are
17891 addressable and in the global_nonaddressable_vars bitmap, ignore their
17892 TREE_ADDRESSABLE bit.
17893 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17894 vars in global_nonaddressable_vars bitmap.
17895 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17896
17897 PR target/91150
17898 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17899 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17900 comparison to unsigned HOST_WIDE_INT before shifting it left.
17901
17902 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17903
17904 * config/i386/i386.md (movstrict<mode>): Use register_operand
17905 predicate for operand 0. Add expander condition. Assert that
17906 operand 0 is a SUBREG RTX.
17907 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17908 Update operand constraints and insn condition.
17909 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17910 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17911 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17912 Update operand 0 constraints.
17913 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17914
17915 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17916
17917 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17918 when -m{code,data}-region are used without -mlarge.
17919 * config/msp430/msp430.c (msp430_option_override): Error when a
17920 non-default code or data region is used without -mlarge.
17921 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17922 attributes when they are used without -mlarge.
17923
17924 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17925
17926 PR target/70320
17927 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17928
17929 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17930
17931 PR middle-end/91242
17932 * wide-int.h (generic_wide_int::sext_elt): New function.
17933 * inchash.h (hash::add_wide_int): Use it instead of elt.
17934
17935 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17936
17937 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17938 CODE_FOR_arm_##.
17939 * config/arm/arm.md (<crc_variant>): Rename to...
17940 (arm_<crc_variant>): ... This.
17941 (<cdp>): Rename to...
17942 (arm_<cdp>): ... This.
17943 (<ldc>): Rename to...
17944 (arm_<ldc>): ... This.
17945 (<stc>): Rename to...
17946 (arm_<stc>): ... This.
17947 (<mcr>): Rename to...
17948 (arm_<mcr>): ... This.
17949 (<mrc>): Rename to...
17950 (arm_<mrc>): ... This.
17951 (<mcrr>): Rename to...
17952 (arm_<mcrr>): ... This.
17953 (<mrrc>): Rename to...
17954 (arm_<mrrc>): ... This.
17955
17956 2019-07-29 Richard Biener <rguenther@suse.de>
17957
17958 PR tree-optimization/91257
17959 * tree-ssa-sccvn.h (struct vn_avail): New.
17960 (struct vn_ssa_aux): Add avail member.
17961 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17962 member, add m_avail_freelist one.
17963 (rpo_elim::~rpo_elim): Remove.
17964 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17965 data structure.
17966 (rpo_elim::eliminate_push_avail): Likewise.
17967 (do_unwind): Likewise.
17968 (do_rpo_vn): Likewise.
17969
17970 2019-07-29 Richard Biener <rguenther@suse.de>
17971
17972 PR tree-optimization/91257
17973 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17974 most cases, instead call compare_values which handles the
17975 symbolic ranges we handle specially.
17976 (compare_values_warnv): Do not call operand_less_p but open-code
17977 the effective fold calls. Avoid converting so much.
17978
17979 2019-07-29 Martin Liska <mliska@suse.cz>
17980
17981 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17982 remove LHS of operator new call. It's handled latter.
17983
17984 2019-07-29 Richard Biener <rguenther@suse.de>
17985
17986 PR tree-optimization/91267
17987 * vr-values.c (vr_values::update_value_range): Add early return
17988 for effectively VARYING lattice entry.
17989
17990 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17991
17992 PR debug/86638
17993 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17994 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17995 necessary if keep_all_vdefs_p is true.
17996 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17997 that keep_all_vdefs_p is false.
17998 (mark_all_reaching_defs_necessary): Likewise.
17999 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18000
18001 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18002
18003 * common.opt (Og): Change the initial value of flag_dse to 0.
18004 * opts.c (default_options_table): Move OPT_ftree_dse from
18005 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18006 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18007 entry before the OPT_ftree_sra entry.
18008 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18009 of flags disabled by Og.
18010
18011 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18012
18013 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18014 variables for -Og.
18015
18016 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18017
18018 * doc/sourcebuild.texi (check-function-bodies): Document.
18019
18020 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18021
18022 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18023 VEC_DUPLICATE of a fixed-length vector even if the result
18024 is variable-length. Likewise fold a duplicate of a
18025 variable-length vector if the variable-length vector is
18026 itself a duplicate of a fixed-length sequence.
18027 (test_vector_ops_duplicate): Test more cases.
18028
18029 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18030
18031 * vector-builder.h (vector_builder): Add a shape template parameter.
18032 (vector_builder::new_unary_operation): New function, generalizing
18033 the old tree_vector_builder function.
18034 (vector_builder::new_binary_operation): Likewise.
18035 (vector_builder::binary_encoded_nelts): Likewise.
18036 * int-vector-builder.h (int_vector_builder): Update template
18037 parameters to vector_builder.
18038 (int_vector_builder::shape_nelts): New function.
18039 * rtx-vector-builder.h (rtx_vector_builder): Update template
18040 parameters to vector_builder.
18041 (rtx_vector_builder::shape_nelts): New function.
18042 (rtx_vector_builder::nelts_of): Likewise.
18043 (rtx_vector_builder::npatterns_of): Likewise.
18044 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18045 * tree-vector-builder.h (tree_vector_builder): Update template
18046 parameters to vector_builder.
18047 (tree_vector_builder::shape_nelts): New function.
18048 (tree_vector_builder::nelts_of): Likewise.
18049 (tree_vector_builder::npatterns_of): Likewise.
18050 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18051 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18052 (tree_vector_builder::new_binary_operation): Delete.
18053 (tree_vector_builder::binary_encoded_nelts): Likewise.
18054 * simplify-rtx.c: Include rtx-vector-builder.h.
18055 (distributes_over_addition_p): New function.
18056 (simplify_const_unary_operation)
18057 (simplify_const_binary_operation): Generalize handling of vector
18058 constants to include variable-length vectors.
18059 (test_vector_ops_series): Add more tests.
18060
18061 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18062
18063 PR lto/91222
18064 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18065 than INDENTIFIER_POINTER.
18066
18067 2019-07-28 Martin Liska <mliska@suse.cz>
18068
18069 PR ipa/89330
18070 * cgraph.c (symbol_table::create_edge): Always allocate
18071 a cgraph_edge.
18072 (symbol_table::free_edge): Store summary_id to
18073 edge_released_summary_ids if != -1;
18074 * cgraph.h (NEXT_FREE_NODE): Remove.
18075 (SET_NEXT_FREE_NODE): Likewise.
18076 (NEXT_FREE_EDGE): Likewise.
18077 (symbol_table::release_symbol): Store summary_id to
18078 cgraph_released_summary_ids if != -1;
18079 (symbol_table::allocate_cgraph_symbol): Always allocate
18080 a cgraph_node.
18081
18082 2019-07-28 Alan Modra <amodra@gmail.com>
18083
18084 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18085 gen_sibcall.
18086
18087 2019-07-28 Alan Modra <amodra@gmail.com>
18088
18089 PR target/91135
18090 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18091 define.
18092 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18093 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18094 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18095
18096 2019-07-28 Alan Modra <amodra@gmail.com>
18097
18098 PR target/91050
18099 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18100 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18101 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18102 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18103 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18104 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18105 in asm_default spec.
18106 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18107 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18108
18109 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18110
18111 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18112
18113 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18114
18115 PR target/89517
18116 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18117 * config/aarch64/aarch64-option-extensions.def: Add new comments
18118 and restore easier to read options.
18119
18120 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18121
18122 * convert.c (convert_to_real_1): Move part of conversion code...
18123 * match.pd: ...To here.
18124
18125 2019-07-26 Martin Jambor <mjambor@suse.cz>
18126
18127 PR ipa/89330
18128 * ipa-inline-transform.c (check_speculations_1): New function.
18129 (push_all_edges_in_set_to_vec): Likewise.
18130 (check_speculations): Use check_speculations_1, new parameter
18131 new_edges.
18132 (inline_call): Pass new_edges to check_speculations.
18133 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18134 NULL.
18135 (speculation_useful_p): Early return true if edge is inlined, remove
18136 later checks for inline_failed.
18137
18138 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18139
18140 PR rtl-optimization/91223
18141 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18142 matching with INOUT operand.
18143
18144 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18145
18146 * stmt.c (expand_case): Try to narrow the index type if it's larger
18147 than a word. Tidy up.
18148
18149 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18150
18151 * cif-code.def (NEVER_CALL): New code.
18152 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18153 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18154
18155 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18156
18157 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18158 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18159
18160 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18161
18162 * ipa-devirt.c (add_type_duplicate): Fix return value.
18163
18164 2019-07-25 Richard Biener <rguenther@suse.de>
18165
18166 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18167 type parameter and use it instead of guessing expression
18168 type from the first operand.
18169 (extract_range_from_binary_expr): Pass expr_type down.
18170
18171 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18172
18173 * config/arm/arm.md (SATrev): Change to code attribute.
18174 (*satsi_<SAT:code>): Adjust for the above.
18175 (*satsi_<SAT:code>_shift): Likewise.
18176
18177 2019-07-25 Richard Biener <rguenther@suse.de>
18178
18179 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18180 Make value_range * temporary const.
18181 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18182 Likewise.
18183 (evrp_range_analyzer::record_ranges_from_): Likewise.
18184 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18185 deal with having recorded a const one.
18186 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18187 Return a const value_range *.
18188 (evrp_range_analyzer::pop_value_range): Likewise.
18189 (evrp_range_analyzer::stack): Record const value_range *s.
18190 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18191 Adjust.
18192 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18193 (format_integer): Likewise.
18194 (sprintf_dom_walker::handle_gimple_call): Likewise.
18195 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18196 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18197 (vrp_prop::get_value_range): Adjust.
18198 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18199 modifying the lattice in-place.
18200 (vrp_prop::visit_stmt): Likewise.
18201 * vr-values.c (vr_values::get_lattice_entry): New private method.
18202 (vr_values::get_value_range): Wrap it and return a const
18203 value_range *.
18204 (vr_values::set_def_to_varying): New.
18205 (vr_values::set_defs_to_varying): Use it.
18206 (vr_values::update_value_range): Likewise.
18207 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18208 (values::op_with_constant_singleton_va): Likewise.
18209 (vr_values::extract_range_for_var_from_co): Likewise.
18210 (vr_values::extract_range_from_ssa_name): Likewise.
18211 (vr_values::extract_range_from_cond_expr): Likewise.
18212 (vr_values::extract_range_basic): Likewise.
18213 (compare_ranges): Take const value_range *, adjust.
18214 (compare_range_with_value): Likewise.
18215 (vrp_valueize): Adjust.
18216 (vrp_valueize_1): Likewise.
18217 (vr_values::get_vr_for_comparison): Return a const value_range *.
18218 (vr_values::compare_name_with_value): Adjust.
18219 (vr_values::compare_names): Likewise.
18220 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18221 Likewise.
18222 (vr_values::vrp_evaluate_conditional): Likewise.
18223 (find_case_label_ranges): Take a const value_range *.
18224 (vr_values::vrp_visit_switch_stmt): Adjust.
18225 (vr_values::extract_range_from_phi_node): Likewise.
18226 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18227 (vr_values::simplify_abs_using_ranges): Likewise.
18228 (test_for_singularity): Take a const value_range *.
18229 (range_fits_type_p): Likewise.
18230 (vr_values::simplify_cond_using_ranges_1): Adjust.
18231 (vr_values::simplify_cond_using_ranges_2): Likewise.
18232 (vr_values::simplify_switch_using_ranges): Likewise.
18233 (vr_values::simplify_float_conversion_usi): Likewise.
18234 (vr_values::two_valued_val_range_p): Likewise.
18235 * vr-values.h (vr_values::get_value_range): Return a const
18236 value_range *.
18237 (vr_values::set_def_to_varying): New.
18238 (vr_values::get_lattice_entry): New private method.
18239 (vr_values::get_vr_for_comparison): Return a const value_range *.
18240
18241 2019-07-25 Martin Liska <mliska@suse.cz>
18242 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18243
18244 PR c++/23383
18245 * common.opt: Add -fallocation-dce
18246 * gimple.c (gimple_call_operator_delete_p): New.
18247 * gimple.h (gimple_call_operator_delete_p): Likewise.
18248 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18249 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18250 DECL_IS_OPERATOR_DELETE_P.
18251 (mark_all_reaching_defs_necessary_1): Likewise.
18252 (propagate_necessity): Likewise.
18253 (eliminate_unnecessary_stmts): Handle
18254 gimple_call_operator_delete_p.
18255 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18256 Add packing of OPERATOR_DELETE.
18257 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18258 Similarly here.
18259 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18260 (DECL_SET_IS_OPERATOR_DELETE): New.
18261 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18262
18263 2019-07-25 Martin Liska <mliska@suse.cz>
18264
18265 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18266 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18267 * coverage.c (coverage_begin_function): Likewise.
18268 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18269 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18270 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18271 (sem_item::hash_referenced_symbol_properties): Likewise.
18272 * lto-streamer-out.c (hash_tree): Likewise.
18273 * predict.c (expr_expected_value_1): Likewise.
18274 * tree-inline.c (expand_call_inline): Likewise.
18275 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18276 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18277 * tree-core.h (enum function_decl_type): New enum.
18278 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18279 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18280 (set_function_decl_type): Likewise.
18281 (DECL_IS_OPERATOR_NEW_P): New.
18282 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18283 (DECL_LAMBDA_FUNCTION): Likewise.
18284 (DECL_LAMBDA_FUNCTION_P): Likewise.
18285 (DECL_IS_OPERATOR_NEW): Remove.
18286 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18287
18288 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18289
18290 * ipa-profile.c (get_most_common_single_value): Use
18291 get_nth_most_common_value.
18292 * profile.c (sort_hist_value): New function.
18293 (compute_value_histograms): Call sort_hist_value to sort the
18294 values after loading from disk.
18295 * value-prof.c (get_most_common_single_value): Rename to ...
18296 get_nth_most_common_value. Add input params n, return
18297 the n_th value and count.
18298 (gimple_divmod_fixed_value_transform): Use
18299 get_nth_most_common_value.
18300 (gimple_ic_transform): Likewise.
18301 (gimple_stringops_transform): Likewise.
18302 * value-prof.h (get_most_common_single_value): Add input params
18303 n, default to 0.
18304
18305 2019-07-25 Richard Biener <rguenther@suse.de>
18306
18307 PR tree-optimization/91236
18308 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18309 size of CONSTRUCTOR write. Fix buffer size we pass to
18310 native_encode_expr.
18311
18312 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18313
18314 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18315 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18316 r273773.
18317
18318 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18319
18320 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18321 explicitly disabled with --disable-initfini-array.
18322
18323 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18324
18325 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18326 if-exists.
18327
18328 2019-07-24 Martin Sebor <msebor@redhat.com>
18329
18330 PR tree-optimization/91183
18331 PR tree-optimization/86688
18332 * builtins.c (compute_objsize): Handle MEM_REF.
18333 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18334 (get_min_string_length): Remove.
18335 (count_nonzero_bytes): New function.
18336 (handle_char_store): Rename...
18337 (handle_store): to this. Handle multibyte stores via integer types.
18338 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18339 function name.
18340
18341 2019-07-24 Martin Sebor <msebor@redhat.com>
18342
18343 PR driver/80545
18344 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18345 (diagnostic_report_diagnostic): Same.
18346 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18347 (diagnostic_context::lang_mask): New data member.
18348 * ipa-pure-const.c (suggest_attribute): Use
18349 lang_hooks.option_lang_mask ().
18350 * opts-common.c (option_enabled): Handle new argument.
18351 (get_option_state): Pass an additional argument.
18352 * opts.c (print_filtered_help): Print supported languages for
18353 unsupported options. Adjust printing of current state.
18354 * opts.h (option_enabled): Add argument.
18355 * toplev.c (print_switch_values): Use lang_mask.
18356 (general_init): Set global_dc->lang_mask.
18357
18358 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18359
18360 PR bootstrap/87030
18361 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18362
18363 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18364
18365 * cgraphunit.c (symbol_table::compile): Start and stop
18366 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18367 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18368
18369 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18370
18371 * gimplify.c (flag_instrument_functions_exclude_p): Include
18372 namespace/class information in the printable name.
18373 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18374 to tokens entered into the vector.
18375
18376 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18377
18378 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18379 (get_static_chain): Call it instead of build_simple_mem_ref.
18380 (get_frame_field): Likewise.
18381 (get_nonlocal_debug_decl): Likewise.
18382 (convert_nonlocal_reference_op): Likewise.
18383
18384 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18385
18386 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18387 declaration.
18388 (arc_compute_frame_size): Millicode is disabled when compiling
18389 ISR.
18390 (arc_return_address_register): Likewise.
18391 (arc_compute_function_type): Likewise.
18392 (arc_compute_frame_size): Likewise.
18393 (secondary_reload_info): Likewise.
18394 (arc_get_unalign): Likewise.
18395 (arc_can_use_return_insn): Declare.
18396 * config/arc/arc.c (AUX_LP_START): Define
18397 (AUX_LP_END): Likewise.
18398 (arc_frame_info): Update gmask member to 64-bit datum.
18399 (GMASK_LEN): Update.
18400 (arc_compute_function_type): Make it static, move it forward.
18401 (arc_must_save_register): Update, consider the extra regs.
18402 (arc_compute_millicode_save_restore_regs): Update to use the 64
18403 bit gmask.
18404 (arc_compute_frame_size): Likewise.
18405 (arc_enter_leave_p): Likewise.
18406 (arc_save_callee_saves): Likewise.
18407 (arc_restore_callee_saves): Likewise.
18408 (arc_save_callee_enter): Likewise.
18409 (arc_restore_callee_leave): Likewise.
18410 (arc_save_callee_milli): Likewise.
18411 (arc_restore_callee_milli): Likewise.
18412 (arc_expand_prologue): Add new interrupt handling.
18413 (arc_return_address_register): Make it static, move it forward.
18414 (arc_expand_epilogue): Add new interrupt handling.
18415 (arc_get_unalign): Delete.
18416 (arc_epilogue_uses): Make sure we do not remove the extra
18417 saved/restored registers when interrupt.
18418 (arc_can_use_return_insn): New function.
18419 (push_reg): Likewise.
18420 (pop_reg): Likewise.
18421 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18422 procedures.
18423 (arc_restore_callee_saves): Likewise, but restoring.
18424 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18425 (R33_REG): Likewise.
18426 (R34_REG): Likewise.
18427 (R35_REG): Likewise.
18428 (R36_REG): Likewise.
18429 (R37_REG): Likewise.
18430 (R38_REG): Likewise.
18431 (R39_REG): Likewise.
18432 (R45_REG): Likewise.
18433 (R46_REG): Likewise.
18434 (R47_REG): Likewise.
18435 (R48_REG): Likewise.
18436 (R49_REG): Likewise.
18437 (R50_REG): Likewise.
18438 (R51_REG): Likewise.
18439 (R52_REG): Likewise.
18440 (R53_REG): Likewise.
18441 (R54_REG): Likewise.
18442 (R55_REG): Likewise.
18443 (R56_REG): Likewise.
18444 (R58_REG): Likewise.
18445 (type): Add rtie attribute.
18446 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18447 (movsi_insn): Accept moves to lp_count.
18448 (rtie): Update pattern.
18449 (simple_return): Simplify it, don't use this pattern as a return
18450 from an interrupt.
18451 (arc600_rtie): New pattern.
18452 (p_return_i): Clean up.
18453 (return): Likewise.
18454 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18455 family CPUs.
18456 * config/arc/predicates.md (move_src_operand): Consider lp_count
18457 as a register.
18458
18459 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18460
18461 * config/s390/predicates.md (addv_const_operand): New predicate.
18462 * config/s390/s390-modes.def (CCO): New condition code mode.
18463 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18464 (s390_branch_condition_mask): Likewise.
18465 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18466 ("mulv<mode>4"): New expanders.
18467 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18468 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18469 pattern definitions.
18470
18471 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18472
18473 PR middle-end/91166
18474 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18475 (define_predicates): Add entry for uniform_vector_p.
18476 (vec_same_elem_p): New match pattern.
18477
18478 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18479
18480 PR bootstrap/87030
18481 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18482 * config/i386/darwin32-biarch.h .. to here.
18483 * config/i386/darwin64-biarch.h: Adjust comments.
18484 * config/rs6000/darwin32-biarch.h: Likewise.
18485 * config/rs6000/darwin64-biarch.h: Likewise.
18486 * config.gcc: Missed commit from r273746
18487 (*-*-darwin*): Don't include CPU t-darwin here.
18488 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18489 an error message if i686-darwin configuration is attempted for
18490 Darwin >= 18.
18491
18492 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18493
18494 PR bootstrap/87030
18495 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18496 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18497 an error message if i686-darwin configuration is attempted for
18498 Darwin >= 18.
18499 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18500 (powerpc-*-darwin*): Use biarch files where needed.
18501 (powerpc64-*-darwin*): Likewise.
18502 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18503 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18504 arch case.
18505 * config/i386/darwin32-biarch.h: New.
18506 * config/i386/darwin64.h: Rename.
18507 * config/i386/darwin64-biarch.h: To this.
18508 * config/i386/t-darwin: Rename.
18509 * config/i386/t-darwin32-biarch: To this.
18510 * config/i386/t-darwin64: Rename.
18511 * config/i386/t-darwin64-biarch: To this.
18512 * config/rs6000/darwin32-biarch.h: New.
18513 * config/rs6000/darwin64.h: Rename.
18514 * config/rs6000/darwin64-biarch.h: To this.
18515 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18516 arch case.
18517 * config/rs6000/t-darwin8: Rename.
18518 * config/rs6000/t-darwin32-biarch: To this.
18519 * config/rs6000/t-darwin64 Rename.
18520 * config/rs6000/t-darwin64-biarch: To this.
18521
18522 2019-07-23 Martin Sebor <msebor@redhat.com>
18523
18524 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18525
18526 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18527
18528 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18529 (rh): New alias for it.
18530
18531 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18532
18533 * gdbhooks.py: Pass replace=True to
18534 gdb.printing.register_pretty_printer.
18535
18536 2019-07-23 Richard Biener <rguenther@suse.de>
18537
18538 PR debug/91231
18539 * lto-streamer-in.c (input_function): Drop inline-entry markers
18540 that ended up with an unknown location block.
18541
18542 2019-07-23 Richard Biener <rguenther@suse.de>
18543
18544 PR tree-optimization/83518
18545 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18546 init from a constant even when partial defs are already recorded.
18547
18548 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18549
18550 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18551 * config/i386/znver1.md: Enable patterns for znver2 and add store
18552 variants which use extra AGU unit.
18553
18554 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18555
18556 * config/i386/i386-options.c (ix86_option_override_internal): Default
18557 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18558 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18559 for ZNVER2.
18560
18561 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18562
18563 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18564 (znver2_costs): Update 256 bit SSE costs and multiplication.
18565
18566 2019-07-23 Jan Beulich <jbeulich@suse.com>
18567
18568 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18569 Require only AVX512F.
18570 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18571 alternative expanding to vpternlog.
18572
18573 2019-07-23 Martin Liska <mliska@suse.cz>
18574
18575 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18576 to -flto in dwarf producer string.
18577
18578 2019-07-23 Richard Biener <rguenther@suse.de>
18579
18580 * tree-cfg.c (label_for_bb): Remove global var.
18581 (main_block_label): Take label_for_bb as argument.
18582 (cleanup_dead_labels_eh): Likewise, adjust.
18583 (cleanup_dead_labels): Adjust.
18584
18585 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18586
18587 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18588 Configurations): Add documentation for __builtin_mtfsf.
18589
18590 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18591
18592 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18593 * config/riscv/riscv.c (riscv_constant_alignment): Use
18594 riscv_align_data_type.
18595 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18596 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18597 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18598 * config/riscv/riscv.opt (malign-data): New.
18599 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18600
18601 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18602
18603 * cgraph.c (dump_graphviz): New function.
18604 * cgraph.h (dump_graphviz): New function.
18605 * symtab.c (dump_graphviz): New function.
18606
18607 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18608
18609 * config/aarch64/aarch64-simd.md
18610 (*aarch64_simd_sra<mode>): New.
18611 * config/aarch64/iterators.md
18612 (SHIFTRT): New iterator.
18613 (sra_op): New attribute.
18614
18615 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18616
18617 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18618 callee-saved regs R4->R10 in an interrupt function that calls another
18619 function.
18620
18621 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18622
18623 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18624 (_mm_blendv_epi8): New.
18625
18626 2019-07-22 Richard Biener <rguenther@suse.de>
18627
18628 PR tree-optimization/91221
18629 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18630 restrict partial-def handling of empty constructors and
18631 memset to refs with known offset.
18632
18633 2019-07-22 Jan Beulich <jbeulich@suse.com>
18634
18635 * config/i386/sse.md (ternlogsuffix): New.
18636 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18637 AVX512F is in use.
18638 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18639
18640 2019-07-22 Martin Liska <mliska@suse.cz>
18641
18642 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18643 comment.
18644 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18645
18646 2019-07-22 Martin Liska <mliska@suse.cz>
18647
18648 * lto-section-in.c (lto_get_section_data):
18649 Use new function get_compression.
18650 * lto-streamer-out.c (produce_lto_section): Use
18651 set_compression to encode compression algorithm.
18652 * lto-streamer.h (struct lto_section): Do not
18653 use bitfields in the format.
18654
18655 2019-07-22 Martin Liska <mliska@suse.cz>
18656
18657 PR driver/91172
18658 * opts-common.c (decode_cmdline_option): Decode
18659 argument of -Werror and check it for a wrong language.
18660 * opts-global.c (complain_wrong_lang): Remove such case.
18661
18662 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18663
18664 * config/arc/arc.c (prepare_move_operands): Always use an
18665 intermediate register when storing a TLS symbols.
18666
18667 2019-07-22 Stafford Horne <shorne@gmail.com>
18668
18669 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18670 force_reg.
18671
18672 2019-07-22 Stafford Horne <shorne@gmail.com>
18673
18674 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18675 and munordered-float validations.
18676 * config/or1k/constraints.md (d): New register constraint.
18677 * config/or1k/predicates.md (fp_comparison_operator): New.
18678 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18679 operands.
18680 (or1k_expand_compare): Normalize unordered comparisons.
18681 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18682 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18683 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18684 * config/or1k/or1k.md (type): Add fpu.
18685 (fpu): New instruction reservation.
18686 (F, f, fr, fi, FI, FOP, fop): New.
18687 (<fop><F:mode>3): New ALU instruction definition.
18688 (float<fi><F:mode>2): New conversion instruction definition.
18689 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18690 (fpcmpcc): New code iterator.
18691 (*sf_fp_insn): New instruction definition.
18692 (cstore<F:mode>4): New expand definition.
18693 (cbranch<F:mode>4): New expand definition.
18694 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18695 munordered-float): New options.
18696 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18697 munordered-float.
18698
18699 2019-07-22 Stafford Horne <shorne@gmail.com>
18700
18701 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18702 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18703 documenation to be more clear.
18704 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18705 more clear.
18706 * config/or1k/or1k.opt (mrori): New option.
18707 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18708 msfimm, mshftimm): Rewrite documentation to be more clear.
18709 * config/or1k/or1k.md (insn_support): Add ror and rori.
18710 (enabled): Add conditions for ror and rori.
18711 (rotrsi3): Replace condition for shftimm with ror and rori.
18712
18713 2019-07-22 Stafford Horne <shorne@gmail.com>
18714
18715 PR target/90363
18716 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18717 (extend<mode>si2): Update predicate.
18718 * config/or1k/predicates.md (volatile_mem_operand): New.
18719 (reg_or_mem_operand): New.
18720
18721 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18722
18723 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18724 * config/rs6000/rs6000-call.c: ... to here.
18725
18726 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18727
18728 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18729 memory.
18730
18731 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18732
18733 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18734
18735 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18736
18737 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18738
18739 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18740
18741 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18742 (any_memory_operand): New predicate.
18743 (reg_or_mem_operand): Use it.
18744
18745 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18746
18747 PR target/91204
18748 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18749
18750 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18751
18752 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18753 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18754
18755 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18756
18757 * tree.def (OMP_LOOP): New tree code.
18758 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18759 (enum omp_clause_bind_kind): New enum.
18760 (struct tree_omp_clause): Add subcode.bind_kind.
18761 * tree.h (OMP_LOOP_CHECK): Rename to ...
18762 (OMP_LOOPING_CHECK): ... this.
18763 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18764 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18765 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18766 (OMP_CLAUSE_BIND_KIND): Define.
18767 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18768 bind clause entries.
18769 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18770 * tree-pretty-print.c (dump_omp_clause): Likewise.
18771 (dump_generic_node): Handle OMP_LOOP.
18772 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18773 (in_omp_construct): New variable.
18774 (is_gimple_stmt): Handle OMP_LOOP.
18775 (gimplify_scan_omp_clauses): For lastprivate don't set
18776 check_non_private if code == OMP_LOOP. For reduction clause
18777 on OMP_LOOP combined with parallel or teams propagate as shared
18778 on the combined construct. Handle OMP_CLAUSE_BIND.
18779 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18780 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18781 for constructs from a loop construct to gimplify_scan_omp_clauses.
18782 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18783 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18784 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18785 to match the implicit ORT_TARGET construct around whole body.
18786 Temporarily clear in_omp_construct when processing body.
18787 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18788 etc. temporarily set in_omp_construct when processing body.
18789 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18790 * omp-low.c (struct omp_context): Add loop_p.
18791 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18792 in that the original var might be private.
18793 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18794 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18795 addition of loop construct.
18796 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18797
18798 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18799 lastprivate non-addressable iterator of a collapse(1) simd.
18800
18801 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18802
18803 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18804 as in rs6000.c.
18805
18806 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18807
18808 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18809 refer to default conditions. Warn for the 'y' spec which is ignored
18810 by current linkers.
18811
18812 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18813
18814 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18815 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18816 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18817 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18818 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18819 init_cumulative_args, rs6000_promote_function_mode,
18820 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18821 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18822 rs6000_function_arg_boundary, rs6000_parm_offset,
18823 rs6000_parm_start, rs6000_arg_size,
18824 rs6000_darwin64_record_arg_advance_flush,
18825 rs6000_darwin64_record_arg_advance_recurse,
18826 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18827 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18828 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18829 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18830 rs6000_finish_function_arg, rs6000_function_arg,
18831 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18832 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18833 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18834 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18835 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18836 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18837 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18838 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18839 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18840 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18841 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18842 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18843 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18844 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18845 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18846 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18847 get_element_number, altivec_expand_vec_set_builtin,
18848 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18849 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18850 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18851 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18852 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18853 rs6000_expand_builtin, rs6000_vector_type,
18854 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18855 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18856 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18857 to rs6000-call.c.
18858 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18859 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18860 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18861 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18862 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18863 init_cumulative_args, rs6000_promote_function_mode,
18864 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18865 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18866 rs6000_function_arg_boundary, rs6000_parm_offset,
18867 rs6000_parm_start, rs6000_arg_size,
18868 rs6000_darwin64_record_arg_advance_flush,
18869 rs6000_darwin64_record_arg_advance_recurse,
18870 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18871 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18872 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18873 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18874 rs6000_finish_function_arg, rs6000_function_arg,
18875 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18876 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18877 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18878 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18879 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18880 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18881 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18882 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18883 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18884 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18885 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18886 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18887 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18888 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18889 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18890 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18891 get_element_number, altivec_expand_vec_set_builtin,
18892 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18893 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18894 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18895 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18896 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18897 rs6000_expand_builtin, rs6000_vector_type,
18898 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18899 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18900 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18901 to here from rs6000.c.
18902 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18903 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18904 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18905 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18906 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18907 rs6000_return_in_memory, rs6000_return_in_msb,
18908 rs6000_pass_by_reference, setup_incoming_varargs,
18909 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18910 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18911 rs6000_function_arg_padding, rs6000_function_arg,
18912 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18913 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18914 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18915 rs6000_passes_long_double, rs6000_passes_vector,
18916 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18917 altivec_builtin_mask_for_load) Add declarations.
18918 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18919 * config/config.gcc: Add new source file rs6000-call.c to garbage
18920 collector and extra_objs.
18921
18922 2019-07-19 Jeff Law <law@redhat.com>
18923
18924 PR tree-optimization/86061
18925 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18926 strncpy. Drop some trivial dead code.
18927 (maybe_trim_memstar_call): Handle strncpy.
18928
18929 2019-07-19 Richard Biener <rguenther@suse.de>
18930
18931 PR tree-optimization/91211
18932 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18933 memset encoding size.
18934
18935 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18936
18937 PR target/91204
18938 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18939
18940 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18941
18942 PR ipa/91194
18943 * ipa-inline.c (recursive_inlining): Fix limits check.
18944
18945 2019-07-19 Richard Biener <rguenther@suse.de>
18946
18947 PR tree-optimization/91200
18948 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18949 no PHI nodes in middle-bb.
18950
18951 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18952
18953 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18954 to +sve-bitperm.
18955 * config/aarch64/aarch64-option-extensions.def: Likewise.
18956
18957 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18958
18959 PR middle-end/91190
18960 * function.c (insert_temp_slot_address): Store into the hash table
18961 a copy of address to avoid RTL sharing issues.
18962
18963 2019-07-19 Richard Biener <rguenther@suse.de>
18964
18965 PR tree-optimization/91207
18966 Revert
18967 2019-07-17 Richard Biener <rguenther@suse.de>
18968
18969 PR tree-optimization/91178
18970 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18971 loads with a gap larger than the vector size always use
18972 VMAT_STRIDED_SLP.
18973 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18974 avoid loading vectors that are only contained in the gap
18975 and thus are not needed.
18976
18977 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18978
18979 * config/i386/i386.md (*addqi_2_slp): Remove.
18980 (*<code>qi_2_slp): Ditto.
18981
18982 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18983
18984 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18985 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18986 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18987 Rename function from rs6000_prefixed_address.
18988 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18989 TARGET_HAS_TOC.
18990 (TARGET_TOC): Likewise.
18991 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18992 rs6000.h.
18993 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18994 TARGET_HAS_TOC.
18995 (TARGET_TOC): Likewise.
18996 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18997 rs6000.h.
18998 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18999 TARGET_HAS_TOC.
19000 (TARGET_TOC): Likewise.
19001 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19002 check to require -mcmodel=medium for pc-relative addressing.
19003 (create_TOC_reference): Add assertion for TARGET_TOC.
19004 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19005 TARGET_NO_TOC.
19006 (rs6000_emit_move): Likewise.
19007 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19008 to 'TOC_alias_set'.
19009 (get_TOC_alias_set): Likewise.
19010 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19011 TARGET_NO_TOC.
19012 (rs6000_can_eliminate): Likewise.
19013 (rs6000_prefixed_address_mode_p): Rename function from
19014 rs6000_prefixed_address.
19015 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19016 TARGET_HAS_TOC and not pc-relative.
19017 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19018 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19019 TARGET_HAS_TOC.
19020 (TARGET_TOC): Likewise.
19021 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19022 rs6000.h.
19023
19024 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19025
19026 PR target/91188
19027 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19028 for operand 0. Do not use (match_dup) to match operand 1 with
19029 operand 0. Add check in insn constraint that either input operand
19030 matches operand 0. Use SWI12 mode iterator to also handle
19031 HImode operands.
19032 (*and<mode>_1_slp): Ditto.
19033 (*<code>qi_1_slp): Ditto.
19034 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19035 Do not use (match_dup) to match operand 1 with operand 0. Add
19036 check in insn constraint that operand 1 matches operand 0.
19037 Use SWI12 mode iterator to also handle HImode operands.
19038 (*ashl<mode>3_1_slp): Ditto.
19039 (*<shift_insn><mode>3_1_slp): Ditto.
19040 (*<rotate_insn><mode>3_1_slp): Ditto.
19041
19042 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19043
19044 * config/arm/arm-builtins.c
19045 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19046 (arm_expand_unop_builtin): Likewise.
19047 * config/arm/crypto.md
19048 (crypto_sha1h): Convert from define_insn to define_expand.
19049 (crypto_<crypto_pattern>): Likewise.
19050 (crypto_sha1h_lb): New define_insn.
19051 (crypto_<crypto_pattern>_lb): Likewise.
19052
19053 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19054
19055 PR target/90317
19056 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19057 (vsha1cq_u32): Likewise.
19058 (vsha1pq_u32): Likewise.
19059 (vsha1mq_u32): Likewise.
19060 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19061 vec select.
19062 (crypto_sha1c): Correct vec select.
19063 (crypto_sha1m): Likewise.
19064 (crypto_sha1p): Likewise.
19065
19066 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19067
19068 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19069 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19070 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19071 (subdi_zesidi_zesidi): Likewise.
19072 (negdi2_compare, negdi2_insn): Likewise.
19073 (negdi_extensidi): Likewise.
19074 (negdi_zero_extendsidi): Likewise.
19075 (arm_cmpdi_insn): Likewise.
19076 (subsi3_carryin): Use arm_borrow_operation.
19077 (subsi3_carryin_const): Likewise.
19078 (subsi3_carryin_const0): Likewise.
19079 (subsi3_carryin_compare): Likewise.
19080 (subsi3_carryin_compare_const): Likewise.
19081 (subsi3_carryin_compare_const0): Likewise.
19082 (subsi3_carryin_shift): Likewise.
19083 (rsbsi3_carryin_shift): Likewise.
19084 (negsi2_carryin_compare): Likewise.
19085
19086 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19087
19088 PR tree-optimization/91137
19089 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19090 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19091 Init, use and fini the above new field.
19092 (determine_base_object_1): New function.
19093 (determine_base_object): Reimplement using walk_tree.
19094
19095 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19096
19097 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19098 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19099 CLEANUP_FORCE_FAST_DCE is set.
19100 * ifcvt.c (rest_of_handle_if_conversion): Pass
19101 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19102 if-conversion succeeded.
19103
19104 2019-07-18 Richard Biener <rguenther@suse.de>
19105
19106 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19107 branches to make code less indented.
19108
19109 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19110
19111 PR middle-end/81824
19112 * attribs.c (decls_mismatched_attributes): Simplify the logic
19113 that avoids duplicates and false positives.
19114
19115 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19116
19117 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19118 data into data section when generating PIC code.
19119 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19120 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19121 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19122 return 2 for SOM and 0 for other targets.
19123
19124 2019-07-17 Jeff Law <law@redhat.com>
19125
19126 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19127 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19128 avoid unexpected switch statement fallthru.
19129
19130 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19131
19132 * config/i386/i386.md (*add<dwi>3_doubleword):
19133 Remove redundant constraints.
19134 (*add<mode>_1): Ditto.
19135 (*addhi_1): Ditto.
19136 (*addqi_1): Ditto.
19137 (*addqi_1_slp): Ditto.
19138 (*add<mode>_2): Ditto.
19139 (*addv<mode>4): Ditto.
19140 (*sub<dwi>3_doubleword): Ditto.
19141 (*sub<mode>_1): Ditto.
19142 (*subqi_1_slp): Ditto.
19143 (*sub<mode>_2): Ditto.
19144 (*subv<mode>4): Ditto.
19145 (*sub<mode>_3): Ditto.
19146 (@add<mode>3_carry): Ditto.
19147 (@sub<mode>3_carry): Ditto.
19148 (*add<mode>3_cc_overflow_1): Ditto.
19149 (*add<mode>3_zext_cc_overflow_2): Ditto.
19150 (*anddi_1): Ditto.
19151 (*and<mode>_1): Ditto.
19152 (*andqi_1): Ditto.
19153 (*andqi_1_slp): Ditto.
19154 (*anddi_2): Ditto.
19155 (*andqi_2_maybe_si): Ditto.
19156 (*and<mode>_2): Ditto.
19157 (*andqi_2_slp): Ditto.
19158 (*<code><mode>_1): Ditto.
19159 (*<code>qi_1): Ditto.
19160 (*<code>qi_1_slp): Ditto.
19161 (*<code><mode>_2): Ditto.
19162 (*<code>qi_2_slp): Ditto.
19163
19164 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19165
19166 * alias.c (record_component_aliases): Do not simplify pointed-to
19167 types of ODR types.
19168
19169 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19170
19171 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19172 partial reg stall on alternative 2.
19173
19174 2019-07-17 Richard Biener <rguenther@suse.de>
19175
19176 PR tree-optimization/91178
19177 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19178 lower SSA names to avoid quadratic behavior in the common case.
19179 * tree-data-ref.c (split_constant_offset): Add limit argument
19180 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19181 (split_constant_offset_1): Add limit argument and use it to
19182 limit SSA def walking. Optimize the common plus/minus case.
19183
19184 2019-07-17 Richard Biener <rguenther@suse.de>
19185
19186 PR tree-optimization/91178
19187 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19188 loads with a gap larger than the vector size always use
19189 VMAT_STRIDED_SLP.
19190 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19191 avoid loading vectors that are only contained in the gap
19192 and thus are not needed.
19193
19194 2019-07-17 Richard Biener <rguenther@suse.de>
19195
19196 PR tree-optimization/91180
19197 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19198 computation for memset partial defs.
19199
19200 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19201
19202 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19203 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19204 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19205 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19206 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19207 * omp-grid.c (grid_process_grid_body,
19208 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19209 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19210 == GF_OMP_FOR_KIND_SIMD.
19211 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19212 check_omp_nesting_restrictions, scan_omp_1_stmt,
19213 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19214 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19215 omp_find_scan): Likewise.
19216 * omp-expand.c (expand_omp_for): Likewise.
19217 * omp-general.c (omp_extract_for_data): Likewise.
19218
19219 PR tree-optimization/91157
19220 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19221 a vector boolean with scalar mode.
19222 (expand_vector_condition): Handle first operand being a vector boolean
19223 with scalar mode.
19224 (expand_vector_operations_1): For comparisons, don't bail out early
19225 if the return type is vector boolean with scalar mode, but comparison
19226 operand type is not.
19227
19228 2019-07-17 Richard Biener <rguenther@suse.de>
19229
19230 PR tree-optimization/91181
19231 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19232 IFN_LOADs as calls.
19233
19234 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19235
19236 * config/i386/i386.md (*testdi_1): Match CCZmode for
19237 constants that might have the SImode sign bit set.
19238 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19239 Use correct constraints for pentium pairing.
19240 (*test<mode>_1): Ditto.
19241
19242 2019-07-16 Jeff Law <law@redhat.com>
19243
19244 PR rtl-optimization/91173
19245 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19246 SSA_NAME with a constant value, fold its value into the offset
19247 and clear the base before calling gen_addr_rtx.
19248
19249 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19250
19251 PR rtl-optimization/91164
19252 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19253 invalidate dominance info.
19254
19255 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19256
19257 * read-md.h (md_reader::record_potential_iterator_use): Add a
19258 file_location parameter.
19259 * read-rtl.c (attribute_use::loc): New field.
19260 (map_attr_string): Take a file_location parameter. Report cases
19261 in which attributes map to multiple distinct values.
19262 (apply_attribute_uses): Update call accordingly.
19263 (md_reader::handle_overloaded_name): Likewise.
19264 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19265 nonnull strings.
19266 (record_attribute_use): Take a file_location parameter.
19267 Initialize attribute_use::loc.
19268 (md_reader::record_potential_iterator_use): Take a file_location
19269 parameter. Update call to record_attribute_use.
19270 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19271 (rtx_reader::read_rtx_code): Likewise.
19272 (rtx_reader::read_rtx_operand): Likewise. Record a location
19273 for implicitly-expanded empty strings.
19274
19275 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19276
19277 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19278 Use file_location instead of separate fields.
19279 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19280 separate filename and line number.
19281 * read-md.c (ptr_loc): As above.
19282 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19283 (md_reader::fprint_md_ptr_loc): Likewise.
19284 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19285 instead of a separate filename and line number.
19286 (md_reader::read_string): Update call accordingly.
19287
19288 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19289
19290 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19291 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19292 leaving the choice between SFDF and P implicit.
19293 (*mov<mode>_update2): Likewise.
19294 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19295 rather than leaving the choice betweem IBM128 and GPR implicit.
19296 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19297 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19298 QHSI implicit.
19299 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19300 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19301 * config/rs6000/vsx.md
19302 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19303 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19304 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19305 and VSX_EXTRACT_I implicit.
19306
19307 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19308
19309 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19310 Explicitly use <MOVEP1:MODE> for the mode attribute.
19311
19312 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19313
19314 PR bootstrap/91176
19315 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19316
19317 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19318
19319 PR target/91050
19320 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19321 .machine directive.
19322
19323 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19324
19325 * config/i386/i386.md (@test<mode>_ccno_1):
19326 Rename from test<mode>_ccno_1.
19327 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19328 (*testqi_1_maybe_si): Remove modrm attribute.
19329 (*test<mode>_1): Ditto.
19330 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19331 gen_test_ccno_1 and gen_extend_insn.
19332
19333 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19334
19335 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19336 to 0.
19337
19338 2019-07-15 Richard Biener <rguenther@suse.de>
19339
19340 PR middle-end/91162
19341 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19342 node make sure to replace all uses with something valid.
19343
19344 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19345
19346 PR tree-optimization/88497
19347 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19348 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19349 function undistribute_bitref_for_vector.
19350 (undistribute_bitref_for_vector): New function.
19351 (cleanup_vinfo_map): Likewise.
19352 (sort_by_mach_mode): Likewise.
19353
19354 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19355
19356 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19357 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19358 and testdi_ccno_1 using SWI48 mode attribute.
19359 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19360 x86_64_szext_general_operand.
19361 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19362 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19363 instead of genera_operand mode attribute.
19364
19365 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19366
19367 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19368 fopen and fclose to their respective types.
19369 (DotFn.invoke): Ditto.
19370
19371 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19372
19373 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19374 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19375 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19376 (array_index_predicate): Remove.
19377 (analyze_function_body): Account cost for variable ofsetted array
19378 indexing.
19379 (estimate_node_size_and_time): Do not compute array index hint.
19380 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19381 (inline_read_section): Do not read array index hint.
19382 (ipa_fn_summary_write): Do not write array index hint.
19383 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19384 * ipa-cp.c (hint_time_bonus): Remove.
19385 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19386 (ipa_fnsummary): Remove array_index.
19387 * ipa-inline.c (want_inline_small_function_p): Do not use
19388 array_index.
19389 (edge_badness): Likewise.
19390 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19391
19392 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19393
19394 PR target/91148
19395 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19396 superfluous "builtin function" phrasing.
19397
19398 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19399
19400 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19401 Break out from ...
19402 (aliasing_component_refs_walk): Break out from ...
19403 (aliasing_component_refs_p): ... here.
19404
19405 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19406
19407 PR target/91148
19408 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19409 "builtin function" phrasing.
19410
19411 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19412
19413 PR target/90723
19414 * recog.h (temporary_volatile_ok): New class.
19415 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19416 volatile_ok temporarily to true using temporary_volatile_ok.
19417 * expr.c (emit_block_move_via_cpymem): Likewise.
19418 * optabs.c (maybe_legitimize_operand): Likewise.
19419
19420 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19421
19422 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19423 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19424 uses inside of order(concurrent) constructs.
19425 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19426 OMP_CLAUSE_ORDER is seen.
19427 * omp-low.c (struct omp_context): Add order_concurrent member.
19428 (scan_sharing_clauses): Set ctx->order_concurrent if
19429 OMP_CLAUSE_ORDER is seen.
19430 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19431 of simd order(concurrent). Diagnose constructs not allowed inside of
19432 for order(concurrent).
19433 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19434 complaining about static double setjmp (double); or class static
19435 methods or non-global namespace setjmps.
19436 (omp_runtime_api_call): New function.
19437 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19438 order(concurrent) loops.
19439
19440 2019-07-12 Martin Sebor <msebor@redhat.com>
19441
19442 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19443 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19444 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19445 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19446
19447 2019-07-12 Jan Hubicka <jh@suse.cz>
19448
19449 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19450 (indirect_refs_may_alias_p): ... here.
19451 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19452 mem refs in the access paths.
19453
19454 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19455
19456 PR tree-optimization/89430
19457 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19458 store elimination for local variable without address escape.
19459
19460 2019-07-12 Jeff Law <law@redhat.com>
19461
19462 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19463 for the ".far" section.
19464
19465 2019-07-12 Richard Biener <rguenther@suse.de>
19466
19467 PR tree-optimization/91145
19468 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19469 chain check.
19470
19471 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19472
19473 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19474 rather than this_state as the lowering context for the ELSE
19475 seq in a GIMPLE_EH_ELSE.
19476
19477 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19478
19479 * vector-builder.h (vector_builder::elt): Allow already-supplied
19480 elements to be read back before building is complete.
19481
19482 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19483
19484 PR rtl-optimization/91136
19485 * df-core.c (ACCESSING REFS): Fix typos in comment.
19486 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19487 the beginning of the block to the initial set of live registers.
19488
19489 2019-07-12 Richard Biener <rguenther@suse.de>
19490
19491 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19492 * fold-const.c (get_array_ctor_element_at_index): Add
19493 ctor_idx output parameter informing the caller where in
19494 the constructor the element was (not) found. Add early exit
19495 for when the ctor is sorted.
19496 * gimple-fold.c (fold_array_ctor_reference): Support constant
19497 folding across multiple array elements.
19498
19499 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19500
19501 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19502 doesn't have location, set the current location to the function's end.
19503
19504 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19505
19506 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19507 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19508 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19509 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19510 * config/aarch64/aarch64-simd.md
19511 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19512 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19513 * config/aarch64/aarch64-sve.md
19514 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19515 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19516
19517 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19518
19519 * doc/md.texi: Document that @ patterns can have different
19520 numbers of operands.
19521 * genemit.c (handle_overloaded_gen): Handle this case.
19522 * genopinit.c (handle_overloaded_gen): Likewise.
19523 * gensupport.c (replace_operands_with_dups): Iterate over
19524 the new rtx's format rather than the old one's.
19525
19526 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19527
19528 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19529 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19530 order clause entries.
19531 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19532 * tree-pretty-print.c (dump_omp_clause): Likewise.
19533 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19534 Likewise.
19535 * omp-low.c (scan_sharing_clauses): Likewise.
19536 * tree-nested.c (convert_nonlocal_omp_clauses,
19537 convert_local_omp_clauses): Likewise.
19538
19539 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19540
19541 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19542 fallthrough target of current basic block isn't the placed
19543 right next.
19544
19545 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19546
19547 PR target/90980
19548 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19549 (_mm512_storeu_epi64): Likewise.
19550 (_mm512_loadu_epi32): Likewise.
19551 (_mm512_storeu_epi32): Likewise.
19552 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19553 (_mm_storeu_epi64): Likewise.
19554 (_mm256_storeu_epi32): Likewise.
19555 (_mm_storeu_epi32): Likewise.
19556
19557 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19558
19559 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19560
19561 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19562
19563 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19564 Handle Modula-2.
19565
19566 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19567
19568 PR target/91124
19569 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19570 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19571 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19572 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19573 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19574 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19575 define_insns.
19576 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19577 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19578 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19579 define_insns.
19580 (sse2_cvttpd2dq<mask_name>): Change into ...
19581 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19582 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19583 (*sse2_cvtpd2dq<mask_name>): Change into ...
19584 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19585 Add "C" constraint to const0_operand.
19586 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19587 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19588 changes.
19589
19590 PR target/91124
19591 * config/i386/i386-builtin-types.def
19592 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19593 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19594 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19595 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19596 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19597 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19598 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19599 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19600 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19601 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19602 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19603 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19604 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19605 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19606 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19607 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19608 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19609 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19610 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19611 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19612 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19613 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19614 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19615 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19616 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19617 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19618 __builtin_ia32_vpdpbusd_v4si_maskz,
19619 __builtin_ia32_vpdpbusds_v16si_mask,
19620 __builtin_ia32_vpdpbusds_v16si_maskz,
19621 __builtin_ia32_vpdpbusds_v8si_mask,
19622 __builtin_ia32_vpdpbusds_v8si_maskz,
19623 __builtin_ia32_vpdpbusds_v4si_mask,
19624 __builtin_ia32_vpdpbusds_v4si_maskz,
19625 __builtin_ia32_vpdpwssd_v16si_mask,
19626 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19627 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19628 __builtin_ia32_vpdpwssd_v4si_maskz,
19629 __builtin_ia32_vpdpwssds_v16si_mask,
19630 __builtin_ia32_vpdpwssds_v16si_maskz,
19631 __builtin_ia32_vpdpwssds_v8si_mask,
19632 __builtin_ia32_vpdpwssds_v8si_maskz,
19633 __builtin_ia32_vpdpwssds_v4si_mask,
19634 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19635 suffixed types rather than *_INT.
19636 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19637 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19638 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19639 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19640 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19641 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19642
19643 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19644
19645 * tree-vrp.c (intersect_ranges): If we know the intersection is
19646 empty, there is no need to conservatively add anything else to
19647 the set.
19648
19649 2019-07-11 Richard Biener <rguenther@suse.de>
19650
19651 PR middle-end/91131
19652 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19653 when the object is volatile and we have not cleared it even though
19654 there are no nonzero elements.
19655
19656 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19657
19658 * config/rs6000/predicates.md (cint34_operand): Update
19659 SIGNED_34BIT_OFFSET_P call.
19660 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19661 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19662 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19663 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19664 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19665 argument.
19666 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19667 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19668 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19669 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19670 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19671
19672 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19673
19674 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19675 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19676 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19677 (DEF_MIN_OSX_VERSION): New.
19678
19679 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19680
19681 * fold-const.c (fold_relational_const): Fix folding of
19682 vector-to-scalar NE_EXPRs.
19683 (test_vector_folding): Add more tests.
19684
19685 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19686
19687 PR target/91060
19688 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19689 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19690 (vec_setv2di_internal): Reexpress as...
19691 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19692 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19693 rather than gen_neon_vset_lane<mode>.
19694
19695 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19696
19697 PR target/91102
19698 * lra-constraints.c (process_alt_operands): Don't match user
19699 defined regs only if they are early clobbers.
19700
19701 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19702
19703 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19704
19705 2019-07-10 Richard Biener <rguenther@suse.de>
19706
19707 PR tree-optimization/91126
19708 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19709 native encoding offset for BYTES_BIG_ENDIAN.
19710 (vn_reference_lookup_3): Likewise.
19711
19712 2019-07-10 Richard Biener <rguenther@suse.de>
19713
19714 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19715 LHS whenever possible.
19716
19717 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19718
19719 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19720 from ...; work also on duplicated types.
19721 (nonoverlapping_component_refs_since_match): ... here
19722 (ncr_type_uid): Break out from ...
19723 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19724 available.
19725 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19726 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19727
19728 2019-07-09 Martin Sebor <msebor@redhat.com>
19729
19730 PR tree-optimization/90989
19731 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19732 optimization to just single character stores.
19733
19734 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19735
19736 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19737 Swap operands only once.
19738
19739 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19740
19741 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19742 for both call instructions.
19743
19744 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19745
19746 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19747 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19748
19749 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19750
19751 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19752 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19753 function from rs6000-logue.c back to rs6000.c.
19754 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19755
19756 2019-07-09 Martin Sebor <msebor@redhat.com>
19757
19758 PR c++/61339
19759 * auto-profile.c: Change class-key of PODs to struct and others
19760 to class.
19761 * basic-block.h: Same.
19762 * bitmap.c (bitmap_alloc): Same.
19763 * bitmap.h: Same.
19764 * builtins.c (expand_builtin_prefetch): Same.
19765 (expand_builtin_interclass_mathfn): Same.
19766 (expand_builtin_strlen): Same.
19767 (expand_builtin_mempcpy_args): Same.
19768 (expand_cmpstr): Same.
19769 (expand_builtin___clear_cache): Same.
19770 (expand_ifn_atomic_bit_test_and): Same.
19771 (expand_builtin_thread_pointer): Same.
19772 (expand_builtin_set_thread_pointer): Same.
19773 * caller-save.c (setup_save_areas): Same.
19774 (replace_reg_with_saved_mem): Same.
19775 (insert_restore): Same.
19776 (insert_save): Same.
19777 (add_used_regs): Same.
19778 * cfg.c (get_bb_copy): Same.
19779 (set_loop_copy): Same.
19780 * cfg.h: Same.
19781 * cfganal.h: Same.
19782 * cfgexpand.c (alloc_stack_frame_space): Same.
19783 (add_stack_var): Same.
19784 (add_stack_var_conflict): Same.
19785 (add_scope_conflicts_1): Same.
19786 (update_alias_info_with_stack_vars): Same.
19787 (expand_used_vars): Same.
19788 * cfghooks.c (redirect_edge_and_branch_force): Same.
19789 (delete_basic_block): Same.
19790 (split_edge): Same.
19791 (make_forwarder_block): Same.
19792 (force_nonfallthru): Same.
19793 (duplicate_block): Same.
19794 (lv_flush_pending_stmts): Same.
19795 * cfghooks.h: Same.
19796 * cfgloop.c (flow_loops_cfg_dump): Same.
19797 (flow_loop_nested_p): Same.
19798 (superloop_at_depth): Same.
19799 (get_loop_latch_edges): Same.
19800 (flow_loop_dump): Same.
19801 (flow_loops_dump): Same.
19802 (flow_loops_free): Same.
19803 (flow_loop_nodes_find): Same.
19804 (establish_preds): Same.
19805 (flow_loop_tree_node_add): Same.
19806 (flow_loop_tree_node_remove): Same.
19807 (flow_loops_find): Same.
19808 (find_subloop_latch_edge_by_profile): Same.
19809 (find_subloop_latch_edge_by_ivs): Same.
19810 (mfb_redirect_edges_in_set): Same.
19811 (form_subloop): Same.
19812 (merge_latch_edges): Same.
19813 (disambiguate_multiple_latches): Same.
19814 (disambiguate_loops_with_multiple_latches): Same.
19815 (flow_bb_inside_loop_p): Same.
19816 (glb_enum_p): Same.
19817 (get_loop_body_with_size): Same.
19818 (get_loop_body): Same.
19819 (fill_sons_in_loop): Same.
19820 (get_loop_body_in_dom_order): Same.
19821 (get_loop_body_in_custom_order): Same.
19822 (release_recorded_exits): Same.
19823 (get_loop_exit_edges): Same.
19824 (num_loop_branches): Same.
19825 (remove_bb_from_loops): Same.
19826 (find_common_loop): Same.
19827 (delete_loop): Same.
19828 (cancel_loop): Same.
19829 (verify_loop_structure): Same.
19830 (loop_preheader_edge): Same.
19831 (loop_exit_edge_p): Same.
19832 (single_exit): Same.
19833 (loop_exits_to_bb_p): Same.
19834 (loop_exits_from_bb_p): Same.
19835 (get_loop_location): Same.
19836 (record_niter_bound): Same.
19837 (get_estimated_loop_iterations_int): Same.
19838 (max_stmt_executions_int): Same.
19839 (likely_max_stmt_executions_int): Same.
19840 (get_estimated_loop_iterations): Same.
19841 (get_max_loop_iterations): Same.
19842 (get_max_loop_iterations_int): Same.
19843 (get_likely_max_loop_iterations): Same.
19844 * cfgloop.h (simple_loop_desc): Same.
19845 (get_loop): Same.
19846 (loop_depth): Same.
19847 (loop_outer): Same.
19848 (loop_iterator::next): Same.
19849 (loop_outermost): Same.
19850 * cfgloopanal.c (mark_irreducible_loops): Same.
19851 (num_loop_insns): Same.
19852 (average_num_loop_insns): Same.
19853 (expected_loop_iterations_unbounded): Same.
19854 (expected_loop_iterations): Same.
19855 (mark_loop_exit_edges): Same.
19856 (single_likely_exit): Same.
19857 * cfgloopmanip.c (fix_bb_placement): Same.
19858 (fix_bb_placements): Same.
19859 (remove_path): Same.
19860 (place_new_loop): Same.
19861 (add_loop): Same.
19862 (scale_loop_frequencies): Same.
19863 (scale_loop_profile): Same.
19864 (create_empty_if_region_on_edge): Same.
19865 (create_empty_loop_on_edge): Same.
19866 (loopify): Same.
19867 (unloop): Same.
19868 (fix_loop_placements): Same.
19869 (copy_loop_info): Same.
19870 (duplicate_loop): Same.
19871 (duplicate_subloops): Same.
19872 (loop_redirect_edge): Same.
19873 (can_duplicate_loop_p): Same.
19874 (duplicate_loop_to_header_edge): Same.
19875 (mfb_keep_just): Same.
19876 (has_preds_from_loop): Same.
19877 (create_preheader): Same.
19878 (create_preheaders): Same.
19879 (lv_adjust_loop_entry_edge): Same.
19880 (loop_version): Same.
19881 * cfgloopmanip.h: Same.
19882 * cgraph.h: Same.
19883 * cgraphbuild.c: Same.
19884 * combine.c (make_extraction): Same.
19885 * config/i386/i386-features.c: Same.
19886 * config/i386/i386-features.h: Same.
19887 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19888 (ix86_emit_outlined_ms2sysv_restore): Same.
19889 (ix86_noce_conversion_profitable_p): Same.
19890 (ix86_init_cost): Same.
19891 (ix86_simd_clone_usable): Same.
19892 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19893 Wstruct-not-pod.
19894 * coretypes.h: Same.
19895 * data-streamer-in.c (string_for_index): Change class-key of PODs
19896 to struct and others to class.
19897 (streamer_read_indexed_string): Same.
19898 (streamer_read_string): Same.
19899 (bp_unpack_indexed_string): Same.
19900 (bp_unpack_string): Same.
19901 (streamer_read_uhwi): Same.
19902 (streamer_read_hwi): Same.
19903 (streamer_read_gcov_count): Same.
19904 (streamer_read_wide_int): Same.
19905 * data-streamer.h (streamer_write_bitpack): Same.
19906 (bp_unpack_value): Same.
19907 (streamer_write_char_stream): Same.
19908 (streamer_write_hwi_in_range): Same.
19909 (streamer_write_record_start): Same.
19910 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19911 (add_cross_iteration_register_deps): Same.
19912 (build_intra_loop_deps): Same.
19913 * df-core.c (df_analyze): Same.
19914 (loop_post_order_compute): Same.
19915 (loop_inverted_post_order_compute): Same.
19916 * df-problems.c (df_rd_alloc): Same.
19917 (df_rd_simulate_one_insn): Same.
19918 (df_rd_local_compute): Same.
19919 (df_rd_init_solution): Same.
19920 (df_rd_confluence_n): Same.
19921 (df_rd_transfer_function): Same.
19922 (df_rd_free): Same.
19923 (df_rd_dump_defs_set): Same.
19924 (df_rd_top_dump): Same.
19925 (df_lr_alloc): Same.
19926 (df_lr_reset): Same.
19927 (df_lr_local_compute): Same.
19928 (df_lr_init): Same.
19929 (df_lr_confluence_n): Same.
19930 (df_lr_free): Same.
19931 (df_lr_top_dump): Same.
19932 (df_lr_verify_transfer_functions): Same.
19933 (df_live_alloc): Same.
19934 (df_live_reset): Same.
19935 (df_live_init): Same.
19936 (df_live_confluence_n): Same.
19937 (df_live_finalize): Same.
19938 (df_live_free): Same.
19939 (df_live_top_dump): Same.
19940 (df_live_verify_transfer_functions): Same.
19941 (df_mir_alloc): Same.
19942 (df_mir_reset): Same.
19943 (df_mir_init): Same.
19944 (df_mir_confluence_n): Same.
19945 (df_mir_free): Same.
19946 (df_mir_top_dump): Same.
19947 (df_word_lr_alloc): Same.
19948 (df_word_lr_reset): Same.
19949 (df_word_lr_init): Same.
19950 (df_word_lr_confluence_n): Same.
19951 (df_word_lr_free): Same.
19952 (df_word_lr_top_dump): Same.
19953 (df_md_alloc): Same.
19954 (df_md_simulate_one_insn): Same.
19955 (df_md_reset): Same.
19956 (df_md_init): Same.
19957 (df_md_free): Same.
19958 (df_md_top_dump): Same.
19959 * df-scan.c (df_insn_delete): Same.
19960 (df_insn_rescan): Same.
19961 (df_notes_rescan): Same.
19962 (df_sort_and_compress_mws): Same.
19963 (df_install_mws): Same.
19964 (df_refs_add_to_chains): Same.
19965 (df_ref_create_structure): Same.
19966 (df_ref_record): Same.
19967 (df_def_record_1): Same.
19968 (df_find_hard_reg_defs): Same.
19969 (df_uses_record): Same.
19970 (df_get_conditional_uses): Same.
19971 (df_get_call_refs): Same.
19972 (df_recompute_luids): Same.
19973 (df_get_entry_block_def_set): Same.
19974 (df_entry_block_defs_collect): Same.
19975 (df_get_exit_block_use_set): Same.
19976 (df_exit_block_uses_collect): Same.
19977 (df_mws_verify): Same.
19978 (df_bb_verify): Same.
19979 * df.h (df_scan_get_bb_info): Same.
19980 * doc/tm.texi: Same.
19981 * dse.c (record_store): Same.
19982 * dumpfile.h: Same.
19983 * emit-rtl.c (const_fixed_hasher::equal): Same.
19984 (set_mem_attributes_minus_bitpos): Same.
19985 (change_address): Same.
19986 (adjust_address_1): Same.
19987 (offset_address): Same.
19988 * emit-rtl.h: Same.
19989 * except.c (dw2_build_landing_pads): Same.
19990 (sjlj_emit_dispatch_table): Same.
19991 * explow.c (allocate_dynamic_stack_space): Same.
19992 (emit_stack_probe): Same.
19993 (probe_stack_range): Same.
19994 * expmed.c (store_bit_field_using_insv): Same.
19995 (store_bit_field_1): Same.
19996 (store_integral_bit_field): Same.
19997 (extract_bit_field_using_extv): Same.
19998 (extract_bit_field_1): Same.
19999 (emit_cstore): Same.
20000 * expr.c (emit_block_move_via_cpymem): Same.
20001 (expand_cmpstrn_or_cmpmem): Same.
20002 (set_storage_via_setmem): Same.
20003 (emit_single_push_insn_1): Same.
20004 (expand_assignment): Same.
20005 (store_constructor): Same.
20006 (expand_expr_real_2): Same.
20007 (expand_expr_real_1): Same.
20008 (try_casesi): Same.
20009 * flags.h: Same.
20010 * function.c (try_fit_stack_local): Same.
20011 (assign_stack_local_1): Same.
20012 (assign_stack_local): Same.
20013 (cut_slot_from_list): Same.
20014 (insert_slot_to_list): Same.
20015 (max_slot_level): Same.
20016 (move_slot_to_level): Same.
20017 (temp_address_hasher::equal): Same.
20018 (remove_unused_temp_slot_addresses): Same.
20019 (assign_temp): Same.
20020 (combine_temp_slots): Same.
20021 (update_temp_slot_address): Same.
20022 (preserve_temp_slots): Same.
20023 * function.h: Same.
20024 * fwprop.c: Same.
20025 * gcc-rich-location.h: Same.
20026 * gcov.c: Same.
20027 * genattrtab.c (check_attr_test): Same.
20028 (check_attr_value): Same.
20029 (convert_set_attr_alternative): Same.
20030 (convert_set_attr): Same.
20031 (check_defs): Same.
20032 (copy_boolean): Same.
20033 (get_attr_value): Same.
20034 (expand_delays): Same.
20035 (make_length_attrs): Same.
20036 (min_fn): Same.
20037 (make_alternative_compare): Same.
20038 (simplify_test_exp): Same.
20039 (tests_attr_p): Same.
20040 (get_attr_order): Same.
20041 (clear_struct_flag): Same.
20042 (gen_attr): Same.
20043 (compares_alternatives_p): Same.
20044 (gen_insn): Same.
20045 (gen_delay): Same.
20046 (find_attrs_to_cache): Same.
20047 (write_test_expr): Same.
20048 (walk_attr_value): Same.
20049 (write_attr_get): Same.
20050 (eliminate_known_true): Same.
20051 (write_insn_cases): Same.
20052 (write_attr_case): Same.
20053 (write_attr_valueq): Same.
20054 (write_attr_value): Same.
20055 (write_dummy_eligible_delay): Same.
20056 (next_comma_elt): Same.
20057 (find_attr): Same.
20058 (make_internal_attr): Same.
20059 (copy_rtx_unchanging): Same.
20060 (gen_insn_reserv): Same.
20061 (check_tune_attr): Same.
20062 (make_automaton_attrs): Same.
20063 (handle_arg): Same.
20064 * genextract.c (gen_insn): Same.
20065 (VEC_char_to_string): Same.
20066 * genmatch.c (print_operand): Same.
20067 (lower): Same.
20068 (parser::parse_operation): Same.
20069 (parser::parse_capture): Same.
20070 (parser::parse_c_expr): Same.
20071 (parser::parse_simplify): Same.
20072 (main): Same.
20073 * genoutput.c (output_operand_data): Same.
20074 (output_get_insn_name): Same.
20075 (compare_operands): Same.
20076 (place_operands): Same.
20077 (process_template): Same.
20078 (validate_insn_alternatives): Same.
20079 (validate_insn_operands): Same.
20080 (gen_expand): Same.
20081 (note_constraint): Same.
20082 * genpreds.c (write_one_predicate_function): Same.
20083 (add_constraint): Same.
20084 (process_define_register_constraint): Same.
20085 (write_lookup_constraint_1): Same.
20086 (write_lookup_constraint_array): Same.
20087 (write_insn_constraint_len): Same.
20088 (write_reg_class_for_constraint_1): Same.
20089 (write_constraint_satisfied_p_array): Same.
20090 * genrecog.c (optimize_subroutine_group): Same.
20091 * gensupport.c (process_define_predicate): Same.
20092 (queue_pattern): Same.
20093 (remove_from_queue): Same.
20094 (process_rtx): Same.
20095 (is_predicable): Same.
20096 (change_subst_attribute): Same.
20097 (subst_pattern_match): Same.
20098 (alter_constraints): Same.
20099 (alter_attrs_for_insn): Same.
20100 (shift_output_template): Same.
20101 (alter_output_for_subst_insn): Same.
20102 (process_one_cond_exec): Same.
20103 (subst_dup): Same.
20104 (process_define_cond_exec): Same.
20105 (mnemonic_htab_callback): Same.
20106 (gen_mnemonic_attr): Same.
20107 (read_md_rtx): Same.
20108 * ggc-page.c: Same.
20109 * gimple-loop-interchange.cc (dump_reduction): Same.
20110 (dump_induction): Same.
20111 (loop_cand::~loop_cand): Same.
20112 (free_data_refs_with_aux): Same.
20113 (tree_loop_interchange::interchange_loops): Same.
20114 (tree_loop_interchange::map_inductions_to_loop): Same.
20115 (tree_loop_interchange::move_code_to_inner_loop): Same.
20116 (compute_access_stride): Same.
20117 (compute_access_strides): Same.
20118 (proper_loop_form_for_interchange): Same.
20119 (tree_loop_interchange_compute_ddrs): Same.
20120 (prune_datarefs_not_in_loop): Same.
20121 (prepare_data_references): Same.
20122 (pass_linterchange::execute): Same.
20123 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20124 (unroll_jam_possible_p): Same.
20125 (fuse_loops): Same.
20126 (adjust_unroll_factor): Same.
20127 (tree_loop_unroll_and_jam): Same.
20128 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20129 (loop_versioning::expensive_stmt_p): Same.
20130 (loop_versioning::version_for_unity): Same.
20131 (loop_versioning::dump_inner_likelihood): Same.
20132 (loop_versioning::find_per_loop_multiplication): Same.
20133 (loop_versioning::analyze_term_using_scevs): Same.
20134 (loop_versioning::record_address_fragment): Same.
20135 (loop_versioning::analyze_expr): Same.
20136 (loop_versioning::analyze_blocks): Same.
20137 (loop_versioning::prune_conditions): Same.
20138 (loop_versioning::merge_loop_info): Same.
20139 (loop_versioning::add_loop_to_queue): Same.
20140 (loop_versioning::decide_whether_loop_is_versionable): Same.
20141 (loop_versioning::make_versioning_decisions): Same.
20142 (loop_versioning::implement_versioning_decisions): Same.
20143 * gimple-ssa-evrp-analyze.c
20144 (evrp_range_analyzer::record_ranges_from_phis): Same.
20145 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20146 (count_multiple_uses): Same.
20147 (split_group): Same.
20148 (imm_store_chain_info::output_merged_store): Same.
20149 (pass_store_merging::process_store): Same.
20150 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20151 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20152 (is_max): Same.
20153 (alloca_call_type): Same.
20154 (pass_walloca::execute): Same.
20155 * gimple-streamer-in.c (input_phi): Same.
20156 (input_gimple_stmt): Same.
20157 * gimple-streamer.h: Same.
20158 * godump.c (go_force_record_alignment): Same.
20159 (go_format_type): Same.
20160 (go_output_type): Same.
20161 (go_output_fndecl): Same.
20162 (go_output_typedef): Same.
20163 (keyword_hash_init): Same.
20164 (find_dummy_types): Same.
20165 * graph.c (draw_cfg_nodes_no_loops): Same.
20166 (draw_cfg_nodes_for_loop): Same.
20167 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20168 * hsa-brig.c: Same.
20169 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20170 * hsa-dump.c (dump_hsa_cfun): Same.
20171 * hsa-gen.c (gen_function_def_parameters): Same.
20172 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20173 * input.c (dump_line_table_statistics): Same.
20174 (test_lexer): Same.
20175 * input.h: Same.
20176 * internal-fn.c (get_multi_vector_move): Same.
20177 (expand_load_lanes_optab_fn): Same.
20178 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20179 (expand_GOMP_SIMT_EXIT): Same.
20180 (expand_GOMP_SIMT_LAST_LANE): Same.
20181 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20182 (expand_GOMP_SIMT_VOTE_ANY): Same.
20183 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20184 (expand_GOMP_SIMT_XCHG_IDX): Same.
20185 (expand_addsub_overflow): Same.
20186 (expand_neg_overflow): Same.
20187 (expand_mul_overflow): Same.
20188 (expand_call_mem_ref): Same.
20189 (expand_mask_load_optab_fn): Same.
20190 (expand_scatter_store_optab_fn): Same.
20191 (expand_gather_load_optab_fn): Same.
20192 * ipa-cp.c (ipa_get_parm_lattices): Same.
20193 (print_all_lattices): Same.
20194 (ignore_edge_p): Same.
20195 (build_toporder_info): Same.
20196 (free_toporder_info): Same.
20197 (push_node_to_stack): Same.
20198 (ipcp_lattice<valtype>::set_contains_variable): Same.
20199 (set_agg_lats_to_bottom): Same.
20200 (ipcp_bits_lattice::meet_with): Same.
20201 (set_single_call_flag): Same.
20202 (initialize_node_lattices): Same.
20203 (ipa_get_jf_ancestor_result): Same.
20204 (ipcp_verify_propagated_values): Same.
20205 (propagate_scalar_across_jump_function): Same.
20206 (propagate_context_across_jump_function): Same.
20207 (propagate_bits_across_jump_function): Same.
20208 (ipa_vr_operation_and_type_effects): Same.
20209 (propagate_vr_across_jump_function): Same.
20210 (set_check_aggs_by_ref): Same.
20211 (set_chain_of_aglats_contains_variable): Same.
20212 (merge_aggregate_lattices): Same.
20213 (agg_pass_through_permissible_p): Same.
20214 (propagate_aggs_across_jump_function): Same.
20215 (call_passes_through_thunk_p): Same.
20216 (propagate_constants_across_call): Same.
20217 (devirtualization_time_bonus): Same.
20218 (good_cloning_opportunity_p): Same.
20219 (context_independent_aggregate_values): Same.
20220 (gather_context_independent_values): Same.
20221 (perform_estimation_of_a_value): Same.
20222 (estimate_local_effects): Same.
20223 (value_topo_info<valtype>::add_val): Same.
20224 (add_all_node_vals_to_toposort): Same.
20225 (value_topo_info<valtype>::propagate_effects): Same.
20226 (ipcp_propagate_stage): Same.
20227 (ipcp_discover_new_direct_edges): Same.
20228 (same_node_or_its_all_contexts_clone_p): Same.
20229 (cgraph_edge_brings_value_p): Same.
20230 (gather_edges_for_value): Same.
20231 (create_specialized_node): Same.
20232 (find_more_scalar_values_for_callers_subset): Same.
20233 (find_more_contexts_for_caller_subset): Same.
20234 (copy_plats_to_inter): Same.
20235 (intersect_aggregates_with_edge): Same.
20236 (find_aggregate_values_for_callers_subset): Same.
20237 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20238 (decide_about_value): Same.
20239 (decide_whether_version_node): Same.
20240 (spread_undeadness): Same.
20241 (identify_dead_nodes): Same.
20242 (ipcp_store_vr_results): Same.
20243 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20244 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20245 (redirect_to_unreachable): Same.
20246 (edge_set_predicate): Same.
20247 (evaluate_conditions_for_known_args): Same.
20248 (evaluate_properties_for_edge): Same.
20249 (ipa_fn_summary_t::duplicate): Same.
20250 (ipa_call_summary_t::duplicate): Same.
20251 (dump_ipa_call_summary): Same.
20252 (ipa_dump_fn_summary): Same.
20253 (eliminated_by_inlining_prob): Same.
20254 (set_cond_stmt_execution_predicate): Same.
20255 (set_switch_stmt_execution_predicate): Same.
20256 (compute_bb_predicates): Same.
20257 (will_be_nonconstant_expr_predicate): Same.
20258 (phi_result_unknown_predicate): Same.
20259 (analyze_function_body): Same.
20260 (compute_fn_summary): Same.
20261 (estimate_edge_devirt_benefit): Same.
20262 (estimate_edge_size_and_time): Same.
20263 (estimate_calls_size_and_time): Same.
20264 (estimate_node_size_and_time): Same.
20265 (remap_edge_change_prob): Same.
20266 (remap_edge_summaries): Same.
20267 (ipa_merge_fn_summary_after_inlining): Same.
20268 (ipa_fn_summary_generate): Same.
20269 (inline_read_section): Same.
20270 (ipa_fn_summary_read): Same.
20271 (ipa_fn_summary_write): Same.
20272 * ipa-fnsummary.h: Same.
20273 * ipa-hsa.c (ipa_hsa_read_section): Same.
20274 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20275 * ipa-icf.c (sem_function::param_used_p): Same.
20276 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20277 * ipa-inline.c (edge_badness): Same.
20278 (inline_small_functions): Same.
20279 * ipa-polymorphic-call.c
20280 (ipa_polymorphic_call_context::stream_out): Same.
20281 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20282 (predicate::remap_after_inlining): Same.
20283 (predicate::stream_out): Same.
20284 * ipa-predicate.h: Same.
20285 * ipa-profile.c (ipa_profile_read_summary): Same.
20286 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20287 (count_formal_params): Same.
20288 (ipa_dump_param): Same.
20289 (ipa_alloc_node_params): Same.
20290 (ipa_print_node_jump_functions_for_edge): Same.
20291 (ipa_print_node_jump_functions): Same.
20292 (ipa_load_from_parm_agg): Same.
20293 (get_ancestor_addr_info): Same.
20294 (ipa_compute_jump_functions_for_edge): Same.
20295 (ipa_analyze_virtual_call_uses): Same.
20296 (ipa_analyze_stmt_uses): Same.
20297 (ipa_analyze_params_uses_in_bb): Same.
20298 (update_jump_functions_after_inlining): Same.
20299 (try_decrement_rdesc_refcount): Same.
20300 (ipa_impossible_devirt_target): Same.
20301 (update_indirect_edges_after_inlining): Same.
20302 (combine_controlled_uses_counters): Same.
20303 (ipa_edge_args_sum_t::duplicate): Same.
20304 (ipa_write_jump_function): Same.
20305 (ipa_write_indirect_edge_info): Same.
20306 (ipa_write_node_info): Same.
20307 (ipa_read_edge_info): Same.
20308 (ipa_prop_read_section): Same.
20309 (read_replacements_section): Same.
20310 * ipa-prop.h (ipa_get_param_count): Same.
20311 (ipa_get_param): Same.
20312 (ipa_get_type): Same.
20313 (ipa_get_param_move_cost): Same.
20314 (ipa_set_param_used): Same.
20315 (ipa_get_controlled_uses): Same.
20316 (ipa_set_controlled_uses): Same.
20317 (ipa_get_cs_argument_count): Same.
20318 * ipa-pure-const.c (analyze_function): Same.
20319 (pure_const_read_summary): Same.
20320 * ipa-ref.h: Same.
20321 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20322 * ipa-split.c (test_nonssa_use): Same.
20323 (dump_split_point): Same.
20324 (dominated_by_forbidden): Same.
20325 (split_part_set_ssa_name_p): Same.
20326 (find_split_points): Same.
20327 * ira-build.c (finish_loop_tree_nodes): Same.
20328 (low_pressure_loop_node_p): Same.
20329 * ira-color.c (ira_reuse_stack_slot): Same.
20330 * ira-int.h: Same.
20331 * ira.c (setup_reg_equiv): Same.
20332 (print_insn_chain): Same.
20333 (ira): Same.
20334 * loop-doloop.c (doloop_condition_get): Same.
20335 (add_test): Same.
20336 (record_reg_sets): Same.
20337 (doloop_optimize): Same.
20338 * loop-init.c (loop_optimizer_init): Same.
20339 (fix_loop_structure): Same.
20340 * loop-invariant.c (merge_identical_invariants): Same.
20341 (compute_always_reached): Same.
20342 (find_exits): Same.
20343 (may_assign_reg_p): Same.
20344 (find_invariants_bb): Same.
20345 (find_invariants_body): Same.
20346 (replace_uses): Same.
20347 (can_move_invariant_reg): Same.
20348 (free_inv_motion_data): Same.
20349 (move_single_loop_invariants): Same.
20350 (change_pressure): Same.
20351 (mark_ref_regs): Same.
20352 (calculate_loop_reg_pressure): Same.
20353 * loop-iv.c (biv_entry_hasher::equal): Same.
20354 (iv_extend_to_rtx_code): Same.
20355 (check_iv_ref_table_size): Same.
20356 (clear_iv_info): Same.
20357 (latch_dominating_def): Same.
20358 (iv_get_reaching_def): Same.
20359 (iv_constant): Same.
20360 (iv_subreg): Same.
20361 (iv_extend): Same.
20362 (iv_neg): Same.
20363 (iv_add): Same.
20364 (iv_mult): Same.
20365 (get_biv_step): Same.
20366 (record_iv): Same.
20367 (analyzed_for_bivness_p): Same.
20368 (record_biv): Same.
20369 (iv_analyze_biv): Same.
20370 (iv_analyze_expr): Same.
20371 (iv_analyze_def): Same.
20372 (iv_analyze_op): Same.
20373 (iv_analyze): Same.
20374 (iv_analyze_result): Same.
20375 (biv_p): Same.
20376 (eliminate_implied_conditions): Same.
20377 (simplify_using_initial_values): Same.
20378 (shorten_into_mode): Same.
20379 (canonicalize_iv_subregs): Same.
20380 (determine_max_iter): Same.
20381 (check_simple_exit): Same.
20382 (find_simple_exit): Same.
20383 (get_simple_loop_desc): Same.
20384 * loop-unroll.c (report_unroll): Same.
20385 (decide_unrolling): Same.
20386 (unroll_loops): Same.
20387 (loop_exit_at_end_p): Same.
20388 (decide_unroll_constant_iterations): Same.
20389 (unroll_loop_constant_iterations): Same.
20390 (compare_and_jump_seq): Same.
20391 (unroll_loop_runtime_iterations): Same.
20392 (decide_unroll_stupid): Same.
20393 (unroll_loop_stupid): Same.
20394 (referenced_in_one_insn_in_loop_p): Same.
20395 (reset_debug_uses_in_loop): Same.
20396 (analyze_iv_to_split_insn): Same.
20397 * lra-eliminations.c (lra_debug_elim_table): Same.
20398 (setup_can_eliminate): Same.
20399 (form_sum): Same.
20400 (lra_get_elimination_hard_regno): Same.
20401 (lra_eliminate_regs_1): Same.
20402 (eliminate_regs_in_insn): Same.
20403 (update_reg_eliminate): Same.
20404 (init_elimination): Same.
20405 (lra_eliminate): Same.
20406 * lra-int.h: Same.
20407 * lra-lives.c (initiate_live_solver): Same.
20408 * lra-remat.c (create_remat_bb_data): Same.
20409 * lra-spills.c (lra_spill): Same.
20410 * lra.c (lra_set_insn_recog_data): Same.
20411 (lra_set_used_insn_alternative_by_uid): Same.
20412 (init_reg_info): Same.
20413 (expand_reg_info): Same.
20414 * lto-cgraph.c (output_symtab): Same.
20415 (read_identifier): Same.
20416 (get_alias_symbol): Same.
20417 (input_node): Same.
20418 (input_varpool_node): Same.
20419 (input_ref): Same.
20420 (input_edge): Same.
20421 (input_cgraph_1): Same.
20422 (input_refs): Same.
20423 (input_symtab): Same.
20424 (input_offload_tables): Same.
20425 (output_cgraph_opt_summary): Same.
20426 (input_edge_opt_summary): Same.
20427 (input_cgraph_opt_section): Same.
20428 * lto-section-in.c (lto_free_raw_section_data): Same.
20429 (lto_create_simple_input_block): Same.
20430 (lto_free_function_in_decl_state_for_node): Same.
20431 * lto-streamer-in.c (lto_tag_check_set): Same.
20432 (lto_location_cache::revert_location_cache): Same.
20433 (lto_location_cache::input_location): Same.
20434 (lto_input_location): Same.
20435 (stream_input_location_now): Same.
20436 (lto_input_tree_ref): Same.
20437 (lto_input_eh_catch_list): Same.
20438 (input_eh_region): Same.
20439 (lto_init_eh): Same.
20440 (make_new_block): Same.
20441 (input_cfg): Same.
20442 (fixup_call_stmt_edges): Same.
20443 (input_struct_function_base): Same.
20444 (input_function): Same.
20445 (lto_read_body_or_constructor): Same.
20446 (lto_read_tree_1): Same.
20447 (lto_read_tree): Same.
20448 (lto_input_scc): Same.
20449 (lto_input_tree_1): Same.
20450 (lto_input_toplevel_asms): Same.
20451 (lto_input_mode_table): Same.
20452 (lto_reader_init): Same.
20453 (lto_data_in_create): Same.
20454 * lto-streamer-out.c (output_cfg): Same.
20455 * lto-streamer.h: Same.
20456 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20457 (generate_prolog_epilog): Same.
20458 (mark_loop_unsched): Same.
20459 (dump_insn_location): Same.
20460 (loop_canon_p): Same.
20461 (sms_schedule): Same.
20462 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20463 (expand_omp_for_generic): Same.
20464 (expand_omp_for_static_nochunk): Same.
20465 (expand_omp_for_static_chunk): Same.
20466 (expand_omp_simd): Same.
20467 (expand_omp_taskloop_for_inner): Same.
20468 (expand_oacc_for): Same.
20469 (expand_omp_atomic_pipeline): Same.
20470 (mark_loops_in_oacc_kernels_region): Same.
20471 * omp-offload.c (oacc_xform_loop): Same.
20472 * omp-simd-clone.c (simd_clone_adjust): Same.
20473 * optabs-query.c (get_traditional_extraction_insn): Same.
20474 * optabs.c (expand_vector_broadcast): Same.
20475 (expand_binop_directly): Same.
20476 (expand_twoval_unop): Same.
20477 (expand_twoval_binop): Same.
20478 (expand_unop_direct): Same.
20479 (emit_indirect_jump): Same.
20480 (emit_conditional_move): Same.
20481 (emit_conditional_neg_or_complement): Same.
20482 (emit_conditional_add): Same.
20483 (vector_compare_rtx): Same.
20484 (expand_vec_perm_1): Same.
20485 (expand_vec_perm_const): Same.
20486 (expand_vec_cond_expr): Same.
20487 (expand_vec_series_expr): Same.
20488 (maybe_emit_atomic_exchange): Same.
20489 (maybe_emit_sync_lock_test_and_set): Same.
20490 (expand_atomic_compare_and_swap): Same.
20491 (expand_atomic_load): Same.
20492 (expand_atomic_store): Same.
20493 (maybe_emit_op): Same.
20494 (valid_multiword_target_p): Same.
20495 (create_integer_operand): Same.
20496 (maybe_legitimize_operand_same_code): Same.
20497 (maybe_legitimize_operand): Same.
20498 (create_convert_operand_from_type): Same.
20499 (can_reuse_operands_p): Same.
20500 (maybe_legitimize_operands): Same.
20501 (maybe_gen_insn): Same.
20502 (maybe_expand_insn): Same.
20503 (maybe_expand_jump_insn): Same.
20504 (expand_insn): Same.
20505 * optabs.h (create_expand_operand): Same.
20506 (create_fixed_operand): Same.
20507 (create_output_operand): Same.
20508 (create_input_operand): Same.
20509 (create_convert_operand_to): Same.
20510 (create_convert_operand_from): Same.
20511 * optinfo.h: Same.
20512 * poly-int.h: Same.
20513 * predict.c (optimize_insn_for_speed_p): Same.
20514 (optimize_loop_for_size_p): Same.
20515 (optimize_loop_for_speed_p): Same.
20516 (optimize_loop_nest_for_speed_p): Same.
20517 (get_base_value): Same.
20518 (predicted_by_loop_heuristics_p): Same.
20519 (predict_extra_loop_exits): Same.
20520 (predict_loops): Same.
20521 (predict_paths_for_bb): Same.
20522 (predict_paths_leading_to): Same.
20523 (propagate_freq): Same.
20524 (pass_profile::execute): Same.
20525 * predict.h: Same.
20526 * profile-count.c (profile_count::differs_from_p): Same.
20527 (profile_probability::differs_lot_from_p): Same.
20528 * profile-count.h: Same.
20529 * profile.c (branch_prob): Same.
20530 * regrename.c (free_chain_data): Same.
20531 (mark_conflict): Same.
20532 (create_new_chain): Same.
20533 (merge_overlapping_regs): Same.
20534 (init_rename_info): Same.
20535 (merge_chains): Same.
20536 (regrename_analyze): Same.
20537 (regrename_do_replace): Same.
20538 (scan_rtx_reg): Same.
20539 (record_out_operands): Same.
20540 (build_def_use): Same.
20541 * regrename.h: Same.
20542 * reload.h: Same.
20543 * reload1.c (init_reload): Same.
20544 (maybe_fix_stack_asms): Same.
20545 (copy_reloads): Same.
20546 (count_pseudo): Same.
20547 (count_spilled_pseudo): Same.
20548 (find_reg): Same.
20549 (find_reload_regs): Same.
20550 (select_reload_regs): Same.
20551 (spill_hard_reg): Same.
20552 (fixup_eh_region_note): Same.
20553 (set_reload_reg): Same.
20554 (allocate_reload_reg): Same.
20555 (compute_reload_subreg_offset): Same.
20556 (reload_adjust_reg_for_icode): Same.
20557 (emit_input_reload_insns): Same.
20558 (emit_output_reload_insns): Same.
20559 (do_input_reload): Same.
20560 (inherit_piecemeal_p): Same.
20561 * rtl.h: Same.
20562 * sanopt.c (maybe_get_dominating_check): Same.
20563 (maybe_optimize_ubsan_ptr_ifn): Same.
20564 (can_remove_asan_check): Same.
20565 (maybe_optimize_asan_check_ifn): Same.
20566 (sanopt_optimize_walker): Same.
20567 * sched-deps.c (add_dependence_list): Same.
20568 (chain_to_prev_insn): Same.
20569 (add_insn_mem_dependence): Same.
20570 (create_insn_reg_set): Same.
20571 (maybe_extend_reg_info_p): Same.
20572 (sched_analyze_reg): Same.
20573 (sched_analyze_1): Same.
20574 (get_implicit_reg_pending_clobbers): Same.
20575 (chain_to_prev_insn_p): Same.
20576 (deps_analyze_insn): Same.
20577 (deps_start_bb): Same.
20578 (sched_free_deps): Same.
20579 (init_deps): Same.
20580 (init_deps_reg_last): Same.
20581 (free_deps): Same.
20582 * sched-ebb.c: Same.
20583 * sched-int.h: Same.
20584 * sched-rgn.c (add_branch_dependences): Same.
20585 (concat_insn_mem_list): Same.
20586 (deps_join): Same.
20587 (sched_rgn_compute_dependencies): Same.
20588 * sel-sched-ir.c (reset_target_context): Same.
20589 (copy_deps_context): Same.
20590 (init_id_from_df): Same.
20591 (has_dependence_p): Same.
20592 (change_loops_latches): Same.
20593 (bb_top_order_comparator): Same.
20594 (make_region_from_loop_preheader): Same.
20595 (sel_init_pipelining): Same.
20596 (get_loop_nest_for_rgn): Same.
20597 (make_regions_from_the_rest): Same.
20598 (sel_is_loop_preheader_p): Same.
20599 * sel-sched-ir.h (inner_loop_header_p): Same.
20600 (get_all_loop_exits): Same.
20601 * selftest.h: Same.
20602 * sese.c (sese_build_liveouts): Same.
20603 (sese_insert_phis_for_liveouts): Same.
20604 * sese.h (defined_in_sese_p): Same.
20605 * sreal.c (sreal::stream_out): Same.
20606 * sreal.h: Same.
20607 * streamer-hooks.h: Same.
20608 * target-globals.c (save_target_globals): Same.
20609 * target-globals.h: Same.
20610 * target.def: Same.
20611 * target.h: Same.
20612 * targhooks.c (default_has_ifunc_p): Same.
20613 (default_empty_mask_is_expensive): Same.
20614 (default_init_cost): Same.
20615 * targhooks.h: Same.
20616 * toplev.c: Same.
20617 * tree-affine.c (aff_combination_mult): Same.
20618 (aff_combination_expand): Same.
20619 (aff_combination_constant_multiple_p): Same.
20620 * tree-affine.h: Same.
20621 * tree-cfg.c (build_gimple_cfg): Same.
20622 (replace_loop_annotate_in_block): Same.
20623 (replace_uses_by): Same.
20624 (remove_bb): Same.
20625 (dump_cfg_stats): Same.
20626 (gimple_duplicate_sese_region): Same.
20627 (gimple_duplicate_sese_tail): Same.
20628 (move_block_to_fn): Same.
20629 (replace_block_vars_by_duplicates): Same.
20630 (move_sese_region_to_fn): Same.
20631 (print_loops_bb): Same.
20632 (print_loop): Same.
20633 (print_loops): Same.
20634 (debug): Same.
20635 (debug_loops): Same.
20636 * tree-cfg.h: Same.
20637 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20638 (chrec_fold_multiply_poly_poly): Same.
20639 (chrec_evaluate): Same.
20640 (chrec_component_in_loop_num): Same.
20641 (reset_evolution_in_loop): Same.
20642 (is_multivariate_chrec): Same.
20643 (chrec_contains_symbols): Same.
20644 (nb_vars_in_chrec): Same.
20645 (chrec_convert_1): Same.
20646 (chrec_convert_aggressive): Same.
20647 * tree-chrec.h: Same.
20648 * tree-core.h: Same.
20649 * tree-data-ref.c (dump_data_dependence_relation): Same.
20650 (canonicalize_base_object_address): Same.
20651 (data_ref_compare_tree): Same.
20652 (prune_runtime_alias_test_list): Same.
20653 (get_segment_min_max): Same.
20654 (create_intersect_range_checks): Same.
20655 (conflict_fn_no_dependence): Same.
20656 (object_address_invariant_in_loop_p): Same.
20657 (analyze_ziv_subscript): Same.
20658 (analyze_siv_subscript_cst_affine): Same.
20659 (analyze_miv_subscript): Same.
20660 (analyze_overlapping_iterations): Same.
20661 (build_classic_dist_vector_1): Same.
20662 (add_other_self_distances): Same.
20663 (same_access_functions): Same.
20664 (build_classic_dir_vector): Same.
20665 (subscript_dependence_tester_1): Same.
20666 (subscript_dependence_tester): Same.
20667 (access_functions_are_affine_or_constant_p): Same.
20668 (get_references_in_stmt): Same.
20669 (loop_nest_has_data_refs): Same.
20670 (graphite_find_data_references_in_stmt): Same.
20671 (find_data_references_in_bb): Same.
20672 (get_base_for_alignment): Same.
20673 (find_loop_nest_1): Same.
20674 (find_loop_nest): Same.
20675 * tree-data-ref.h (dr_alignment): Same.
20676 (ddr_dependence_level): Same.
20677 * tree-if-conv.c (fold_build_cond_expr): Same.
20678 (add_to_predicate_list): Same.
20679 (add_to_dst_predicate_list): Same.
20680 (phi_convertible_by_degenerating_args): Same.
20681 (idx_within_array_bound): Same.
20682 (all_preds_critical_p): Same.
20683 (pred_blocks_visited_p): Same.
20684 (predicate_bbs): Same.
20685 (build_region): Same.
20686 (if_convertible_loop_p_1): Same.
20687 (is_cond_scalar_reduction): Same.
20688 (predicate_scalar_phi): Same.
20689 (remove_conditions_and_labels): Same.
20690 (combine_blocks): Same.
20691 (version_loop_for_if_conversion): Same.
20692 (versionable_outer_loop_p): Same.
20693 (ifcvt_local_dce): Same.
20694 (tree_if_conversion): Same.
20695 (pass_if_conversion::gate): Same.
20696 * tree-if-conv.h: Same.
20697 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20698 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20699 (free_rdg): Same.
20700 (stmt_has_scalar_dependences_outside_loop): Same.
20701 (copy_loop_before): Same.
20702 (create_bb_after_loop): Same.
20703 (const_with_all_bytes_same): Same.
20704 (generate_memset_builtin): Same.
20705 (generate_memcpy_builtin): Same.
20706 (destroy_loop): Same.
20707 (build_rdg_partition_for_vertex): Same.
20708 (compute_access_range): Same.
20709 (data_ref_segment_size): Same.
20710 (latch_dominated_by_data_ref): Same.
20711 (compute_alias_check_pairs): Same.
20712 (fuse_memset_builtins): Same.
20713 (finalize_partitions): Same.
20714 (find_seed_stmts_for_distribution): Same.
20715 (prepare_perfect_loop_nest): Same.
20716 * tree-parloops.c (lambda_transform_legal_p): Same.
20717 (loop_parallel_p): Same.
20718 (reduc_stmt_res): Same.
20719 (add_field_for_name): Same.
20720 (create_call_for_reduction_1): Same.
20721 (replace_uses_in_bb_by): Same.
20722 (transform_to_exit_first_loop_alt): Same.
20723 (try_transform_to_exit_first_loop_alt): Same.
20724 (transform_to_exit_first_loop): Same.
20725 (num_phis): Same.
20726 (gen_parallel_loop): Same.
20727 (gather_scalar_reductions): Same.
20728 (get_omp_data_i_param): Same.
20729 (try_create_reduction_list): Same.
20730 (oacc_entry_exit_single_gang): Same.
20731 (parallelize_loops): Same.
20732 * tree-pass.h: Same.
20733 * tree-predcom.c (determine_offset): Same.
20734 (last_always_executed_block): Same.
20735 (split_data_refs_to_components): Same.
20736 (suitable_component_p): Same.
20737 (valid_initializer_p): Same.
20738 (find_looparound_phi): Same.
20739 (insert_looparound_copy): Same.
20740 (add_looparound_copies): Same.
20741 (determine_roots_comp): Same.
20742 (predcom_tmp_var): Same.
20743 (initialize_root_vars): Same.
20744 (initialize_root_vars_store_elim_1): Same.
20745 (initialize_root_vars_store_elim_2): Same.
20746 (finalize_eliminated_stores): Same.
20747 (initialize_root_vars_lm): Same.
20748 (remove_stmt): Same.
20749 (determine_unroll_factor): Same.
20750 (execute_pred_commoning_cbck): Same.
20751 (base_names_in_chain_on): Same.
20752 (combine_chains): Same.
20753 (pcom_stmt_dominates_stmt_p): Same.
20754 (try_combine_chains): Same.
20755 (prepare_initializers_chain_store_elim): Same.
20756 (prepare_initializers_chain): Same.
20757 (prepare_initializers): Same.
20758 (prepare_finalizers_chain): Same.
20759 (prepare_finalizers): Same.
20760 (insert_init_seqs): Same.
20761 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20762 (compute_overall_effect_of_inner_loop): Same.
20763 (add_to_evolution_1): Same.
20764 (add_to_evolution): Same.
20765 (follow_ssa_edge_binary): Same.
20766 (follow_ssa_edge_expr): Same.
20767 (backedge_phi_arg_p): Same.
20768 (follow_ssa_edge_in_condition_phi_branch): Same.
20769 (follow_ssa_edge_in_condition_phi): Same.
20770 (follow_ssa_edge_inner_loop_phi): Same.
20771 (follow_ssa_edge): Same.
20772 (analyze_evolution_in_loop): Same.
20773 (analyze_initial_condition): Same.
20774 (interpret_loop_phi): Same.
20775 (interpret_condition_phi): Same.
20776 (interpret_rhs_expr): Same.
20777 (interpret_expr): Same.
20778 (interpret_gimple_assign): Same.
20779 (analyze_scalar_evolution_1): Same.
20780 (analyze_scalar_evolution): Same.
20781 (analyze_scalar_evolution_for_address_of): Same.
20782 (get_instantiated_value_entry): Same.
20783 (loop_closed_phi_def): Same.
20784 (instantiate_scev_name): Same.
20785 (instantiate_scev_poly): Same.
20786 (instantiate_scev_binary): Same.
20787 (instantiate_scev_convert): Same.
20788 (instantiate_scev_not): Same.
20789 (instantiate_scev_r): Same.
20790 (instantiate_scev): Same.
20791 (resolve_mixers): Same.
20792 (initialize_scalar_evolutions_analyzer): Same.
20793 (scev_reset_htab): Same.
20794 (scev_reset): Same.
20795 (derive_simple_iv_with_niters): Same.
20796 (simple_iv_with_niters): Same.
20797 (expression_expensive_p): Same.
20798 (final_value_replacement_loop): Same.
20799 * tree-scalar-evolution.h (block_before_loop): Same.
20800 * tree-ssa-address.h: Same.
20801 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20802 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20803 (record_edge_info): Same.
20804 * tree-ssa-live.c (var_map_base_fini): Same.
20805 (remove_unused_locals): Same.
20806 * tree-ssa-live.h: Same.
20807 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20808 (pass_ch_vect::execute): Same.
20809 (pass_ch::process_loop_p): Same.
20810 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20811 (movement_possibility): Same.
20812 (outermost_invariant_loop): Same.
20813 (stmt_cost): Same.
20814 (determine_max_movement): Same.
20815 (invariantness_dom_walker::before_dom_children): Same.
20816 (move_computations): Same.
20817 (may_move_till): Same.
20818 (force_move_till_op): Same.
20819 (force_move_till): Same.
20820 (memref_free): Same.
20821 (record_mem_ref_loc): Same.
20822 (set_ref_stored_in_loop): Same.
20823 (mark_ref_stored): Same.
20824 (sort_bbs_in_loop_postorder_cmp): Same.
20825 (sort_locs_in_loop_postorder_cmp): Same.
20826 (analyze_memory_references): Same.
20827 (mem_refs_may_alias_p): Same.
20828 (find_ref_loc_in_loop_cmp): Same.
20829 (rewrite_mem_ref_loc::operator): Same.
20830 (first_mem_ref_loc_1::operator): Same.
20831 (sm_set_flag_if_changed::operator): Same.
20832 (execute_sm_if_changed_flag_set): Same.
20833 (execute_sm): Same.
20834 (hoist_memory_references): Same.
20835 (ref_always_accessed::operator): Same.
20836 (refs_independent_p): Same.
20837 (record_dep_loop): Same.
20838 (ref_indep_loop_p_1): Same.
20839 (ref_indep_loop_p): Same.
20840 (can_sm_ref_p): Same.
20841 (find_refs_for_sm): Same.
20842 (loop_suitable_for_sm): Same.
20843 (store_motion_loop): Same.
20844 (store_motion): Same.
20845 (fill_always_executed_in): Same.
20846 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20847 (estimated_unrolled_size): Same.
20848 (loop_edge_to_cancel): Same.
20849 (remove_exits_and_undefined_stmts): Same.
20850 (remove_redundant_iv_tests): Same.
20851 (unloop_loops): Same.
20852 (estimated_peeled_sequence_size): Same.
20853 (try_peel_loop): Same.
20854 (canonicalize_loop_induction_variables): Same.
20855 (canonicalize_induction_variables): Same.
20856 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20857 (name_info): Same.
20858 (stmt_after_inc_pos): Same.
20859 (contains_abnormal_ssa_name_p): Same.
20860 (niter_for_exit): Same.
20861 (find_bivs): Same.
20862 (mark_bivs): Same.
20863 (find_givs_in_bb): Same.
20864 (find_induction_variables): Same.
20865 (find_interesting_uses_cond): Same.
20866 (outermost_invariant_loop_for_expr): Same.
20867 (idx_find_step): Same.
20868 (add_candidate_1): Same.
20869 (add_iv_candidate_derived_from_uses): Same.
20870 (alloc_use_cost_map): Same.
20871 (prepare_decl_rtl): Same.
20872 (generic_predict_doloop_p): Same.
20873 (computation_cost): Same.
20874 (determine_common_wider_type): Same.
20875 (get_computation_aff_1): Same.
20876 (get_use_type): Same.
20877 (determine_group_iv_cost_address): Same.
20878 (iv_period): Same.
20879 (difference_cannot_overflow_p): Same.
20880 (may_eliminate_iv): Same.
20881 (determine_set_costs): Same.
20882 (cheaper_cost_pair): Same.
20883 (compare_cost_pair): Same.
20884 (iv_ca_cand_for_group): Same.
20885 (iv_ca_recount_cost): Same.
20886 (iv_ca_set_remove_invs): Same.
20887 (iv_ca_set_no_cp): Same.
20888 (iv_ca_set_add_invs): Same.
20889 (iv_ca_set_cp): Same.
20890 (iv_ca_add_group): Same.
20891 (iv_ca_cost): Same.
20892 (iv_ca_compare_deps): Same.
20893 (iv_ca_delta_reverse): Same.
20894 (iv_ca_delta_commit): Same.
20895 (iv_ca_cand_used_p): Same.
20896 (iv_ca_delta_free): Same.
20897 (iv_ca_new): Same.
20898 (iv_ca_free): Same.
20899 (iv_ca_dump): Same.
20900 (iv_ca_extend): Same.
20901 (iv_ca_narrow): Same.
20902 (iv_ca_prune): Same.
20903 (cheaper_cost_with_cand): Same.
20904 (iv_ca_replace): Same.
20905 (try_add_cand_for): Same.
20906 (get_initial_solution): Same.
20907 (try_improve_iv_set): Same.
20908 (find_optimal_iv_set_1): Same.
20909 (create_new_iv): Same.
20910 (rewrite_use_compare): Same.
20911 (remove_unused_ivs): Same.
20912 (determine_scaling_factor): Same.
20913 * tree-ssa-loop-ivopts.h: Same.
20914 * tree-ssa-loop-manip.c (create_iv): Same.
20915 (compute_live_loop_exits): Same.
20916 (add_exit_phi): Same.
20917 (add_exit_phis): Same.
20918 (find_uses_to_rename_use): Same.
20919 (find_uses_to_rename_def): Same.
20920 (find_uses_to_rename_in_loop): Same.
20921 (rewrite_into_loop_closed_ssa): Same.
20922 (check_loop_closed_ssa_bb): Same.
20923 (split_loop_exit_edge): Same.
20924 (ip_end_pos): Same.
20925 (ip_normal_pos): Same.
20926 (copy_phi_node_args): Same.
20927 (gimple_duplicate_loop_to_header_edge): Same.
20928 (can_unroll_loop_p): Same.
20929 (determine_exit_conditions): Same.
20930 (scale_dominated_blocks_in_loop): Same.
20931 (niter_for_unrolled_loop): Same.
20932 (tree_transform_and_unroll_loop): Same.
20933 (rewrite_all_phi_nodes_with_iv): Same.
20934 * tree-ssa-loop-manip.h: Same.
20935 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20936 (number_of_iterations_ne): Same.
20937 (assert_no_overflow_lt): Same.
20938 (assert_loop_rolls_lt): Same.
20939 (number_of_iterations_lt): Same.
20940 (adjust_cond_for_loop_until_wrap): Same.
20941 (tree_simplify_using_condition): Same.
20942 (simplify_using_initial_conditions): Same.
20943 (simplify_using_outer_evolutions): Same.
20944 (loop_only_exit_p): Same.
20945 (ssa_defined_by_minus_one_stmt_p): Same.
20946 (number_of_iterations_popcount): Same.
20947 (number_of_iterations_exit): Same.
20948 (find_loop_niter): Same.
20949 (finite_loop_p): Same.
20950 (chain_of_csts_start): Same.
20951 (get_val_for): Same.
20952 (loop_niter_by_eval): Same.
20953 (derive_constant_upper_bound_ops): Same.
20954 (do_warn_aggressive_loop_optimizations): Same.
20955 (record_estimate): Same.
20956 (get_cst_init_from_scev): Same.
20957 (record_nonwrapping_iv): Same.
20958 (idx_infer_loop_bounds): Same.
20959 (infer_loop_bounds_from_ref): Same.
20960 (infer_loop_bounds_from_array): Same.
20961 (infer_loop_bounds_from_pointer_arith): Same.
20962 (infer_loop_bounds_from_signedness): Same.
20963 (bound_index): Same.
20964 (discover_iteration_bound_by_body_walk): Same.
20965 (maybe_lower_iteration_bound): Same.
20966 (estimate_numbers_of_iterations): Same.
20967 (estimated_loop_iterations): Same.
20968 (estimated_loop_iterations_int): Same.
20969 (max_loop_iterations): Same.
20970 (max_loop_iterations_int): Same.
20971 (likely_max_loop_iterations): Same.
20972 (likely_max_loop_iterations_int): Same.
20973 (estimated_stmt_executions_int): Same.
20974 (max_stmt_executions): Same.
20975 (likely_max_stmt_executions): Same.
20976 (estimated_stmt_executions): Same.
20977 (stmt_dominates_stmt_p): Same.
20978 (nowrap_type_p): Same.
20979 (loop_exits_before_overflow): Same.
20980 (scev_var_range_cant_overflow): Same.
20981 (scev_probably_wraps_p): Same.
20982 (free_numbers_of_iterations_estimates): Same.
20983 * tree-ssa-loop-niter.h: Same.
20984 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20985 (idx_analyze_ref): Same.
20986 (analyze_ref): Same.
20987 (gather_memory_references_ref): Same.
20988 (mark_nontemporal_store): Same.
20989 (emit_mfence_after_loop): Same.
20990 (may_use_storent_in_loop_p): Same.
20991 (mark_nontemporal_stores): Same.
20992 (should_unroll_loop_p): Same.
20993 (volume_of_dist_vector): Same.
20994 (add_subscript_strides): Same.
20995 (self_reuse_distance): Same.
20996 (insn_to_prefetch_ratio_too_small_p): Same.
20997 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20998 (patch_loop_exit): Same.
20999 (find_or_create_guard_phi): Same.
21000 (easy_exit_values): Same.
21001 (connect_loop_phis): Same.
21002 (connect_loops): Same.
21003 (compute_new_first_bound): Same.
21004 (split_loop): Same.
21005 (tree_ssa_split_loops): Same.
21006 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21007 (is_maybe_undefined): Same.
21008 (tree_may_unswitch_on): Same.
21009 (simplify_using_entry_checks): Same.
21010 (tree_unswitch_single_loop): Same.
21011 (tree_unswitch_loop): Same.
21012 (tree_unswitch_outer_loop): Same.
21013 (empty_bb_without_guard_p): Same.
21014 (used_outside_loop_p): Same.
21015 (get_vop_from_header): Same.
21016 (hoist_guard): Same.
21017 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21018 (get_lsm_tmp_name): Same.
21019 * tree-ssa-loop.h: Same.
21020 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21021 (build_and_add_sum): Same.
21022 (no_side_effect_bb): Same.
21023 (get_ops): Same.
21024 (linearize_expr): Same.
21025 (should_break_up_subtract): Same.
21026 (linearize_expr_tree): Same.
21027 * tree-ssa-scopedtables.c: Same.
21028 * tree-ssa-scopedtables.h: Same.
21029 * tree-ssa-structalias.c (condense_visit): Same.
21030 (label_visit): Same.
21031 (dump_pred_graph): Same.
21032 (perform_var_substitution): Same.
21033 (move_complex_constraints): Same.
21034 (remove_preds_and_fake_succs): Same.
21035 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21036 (determine_bb_domination_status): Same.
21037 (duplicate_thread_path): Same.
21038 (thread_through_all_blocks): Same.
21039 * tree-ssa-threadupdate.h: Same.
21040 * tree-streamer-in.c (streamer_read_string_cst): Same.
21041 (input_identifier): Same.
21042 (unpack_ts_type_common_value_fields): Same.
21043 (unpack_ts_block_value_fields): Same.
21044 (unpack_ts_translation_unit_decl_value_fields): Same.
21045 (unpack_ts_omp_clause_value_fields): Same.
21046 (streamer_read_tree_bitfields): Same.
21047 (streamer_alloc_tree): Same.
21048 (lto_input_ts_common_tree_pointers): Same.
21049 (lto_input_ts_vector_tree_pointers): Same.
21050 (lto_input_ts_poly_tree_pointers): Same.
21051 (lto_input_ts_complex_tree_pointers): Same.
21052 (lto_input_ts_decl_minimal_tree_pointers): Same.
21053 (lto_input_ts_decl_common_tree_pointers): Same.
21054 (lto_input_ts_decl_non_common_tree_pointers): Same.
21055 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21056 (lto_input_ts_field_decl_tree_pointers): Same.
21057 (lto_input_ts_function_decl_tree_pointers): Same.
21058 (lto_input_ts_type_common_tree_pointers): Same.
21059 (lto_input_ts_type_non_common_tree_pointers): Same.
21060 (lto_input_ts_list_tree_pointers): Same.
21061 (lto_input_ts_vec_tree_pointers): Same.
21062 (lto_input_ts_exp_tree_pointers): Same.
21063 (lto_input_ts_block_tree_pointers): Same.
21064 (lto_input_ts_binfo_tree_pointers): Same.
21065 (lto_input_ts_constructor_tree_pointers): Same.
21066 (lto_input_ts_omp_clause_tree_pointers): Same.
21067 (streamer_read_tree_body): Same.
21068 * tree-streamer.h: Same.
21069 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21070 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21071 (vect_analyze_possibly_independent_ddr): Same.
21072 (vect_analyze_data_ref_dependence): Same.
21073 (vect_compute_data_ref_alignment): Same.
21074 (vect_enhance_data_refs_alignment): Same.
21075 (vect_analyze_data_ref_access): Same.
21076 (vect_check_gather_scatter): Same.
21077 (vect_find_stmt_data_reference): Same.
21078 (vect_create_addr_base_for_vector_ref): Same.
21079 (vect_setup_realignment): Same.
21080 (vect_supportable_dr_alignment): Same.
21081 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21082 (adjust_phi_and_debug_stmts): Same.
21083 (vect_set_loop_mask): Same.
21084 (add_preheader_seq): Same.
21085 (vect_maybe_permute_loop_masks): Same.
21086 (vect_set_loop_masks_directly): Same.
21087 (vect_set_loop_condition_masked): Same.
21088 (vect_set_loop_condition_unmasked): Same.
21089 (slpeel_duplicate_current_defs_from_edges): Same.
21090 (slpeel_add_loop_guard): Same.
21091 (slpeel_can_duplicate_loop_p): Same.
21092 (create_lcssa_for_virtual_phi): Same.
21093 (iv_phi_p): Same.
21094 (vect_update_ivs_after_vectorizer): Same.
21095 (vect_gen_vector_loop_niters_mult_vf): Same.
21096 (slpeel_update_phi_nodes_for_loops): Same.
21097 (slpeel_update_phi_nodes_for_guard1): Same.
21098 (find_guard_arg): Same.
21099 (slpeel_update_phi_nodes_for_guard2): Same.
21100 (slpeel_update_phi_nodes_for_lcssa): Same.
21101 (vect_do_peeling): Same.
21102 (vect_create_cond_for_alias_checks): Same.
21103 (vect_loop_versioning): Same.
21104 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21105 (vect_inner_phi_in_double_reduction_p): Same.
21106 (vect_analyze_scalar_cycles_1): Same.
21107 (vect_fixup_scalar_cycles_with_patterns): Same.
21108 (vect_get_loop_niters): Same.
21109 (bb_in_loop_p): Same.
21110 (vect_get_max_nscalars_per_iter): Same.
21111 (vect_verify_full_masking): Same.
21112 (vect_compute_single_scalar_iteration_cost): Same.
21113 (vect_analyze_loop_form_1): Same.
21114 (vect_analyze_loop_form): Same.
21115 (vect_active_double_reduction_p): Same.
21116 (vect_analyze_loop_operations): Same.
21117 (neutral_op_for_slp_reduction): Same.
21118 (vect_is_simple_reduction): Same.
21119 (vect_model_reduction_cost): Same.
21120 (get_initial_def_for_reduction): Same.
21121 (get_initial_defs_for_reduction): Same.
21122 (vect_create_epilog_for_reduction): Same.
21123 (vectorize_fold_left_reduction): Same.
21124 (vectorizable_reduction): Same.
21125 (vectorizable_induction): Same.
21126 (vectorizable_live_operation): Same.
21127 (loop_niters_no_overflow): Same.
21128 (vect_get_loop_mask): Same.
21129 (vect_transform_loop_stmt): Same.
21130 (vect_transform_loop): Same.
21131 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21132 (vect_determine_precisions): Same.
21133 (vect_pattern_recog_1): Same.
21134 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21135 * tree-vect-stmts.c (stmt_vectype): Same.
21136 (process_use): Same.
21137 (vect_init_vector_1): Same.
21138 (vect_truncate_gather_scatter_offset): Same.
21139 (get_group_load_store_type): Same.
21140 (vect_build_gather_load_calls): Same.
21141 (vect_get_strided_load_store_ops): Same.
21142 (vectorizable_simd_clone_call): Same.
21143 (vectorizable_store): Same.
21144 (permute_vec_elements): Same.
21145 (vectorizable_load): Same.
21146 (vect_transform_stmt): Same.
21147 (supportable_widening_operation): Same.
21148 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21149 (vec_info::free_stmt_vec_info): Same.
21150 (vect_free_loop_info_assumptions): Same.
21151 (vect_loop_vectorized_call): Same.
21152 (set_uid_loop_bbs): Same.
21153 (vectorize_loops): Same.
21154 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21155 * tree.c (add_tree_to_fld_list): Same.
21156 (fld_type_variant_equal_p): Same.
21157 (fld_decl_context): Same.
21158 (fld_incomplete_type_of): Same.
21159 (free_lang_data_in_binfo): Same.
21160 (need_assembler_name_p): Same.
21161 (find_decls_types_r): Same.
21162 (get_eh_types_for_runtime): Same.
21163 (find_decls_types_in_eh_region): Same.
21164 (find_decls_types_in_node): Same.
21165 (assign_assembler_name_if_needed): Same.
21166 * value-prof.c (stream_out_histogram_value): Same.
21167 * value-prof.h: Same.
21168 * var-tracking.c (use_narrower_mode): Same.
21169 (prepare_call_arguments): Same.
21170 (vt_expand_loc_callback): Same.
21171 (resolve_expansions_pending_recursion): Same.
21172 (vt_expand_loc): Same.
21173 * varasm.c (const_hash_1): Same.
21174 (compare_constant): Same.
21175 (tree_output_constant_def): Same.
21176 (simplify_subtraction): Same.
21177 (get_pool_constant): Same.
21178 (output_constant_pool_2): Same.
21179 (output_constant_pool_1): Same.
21180 (mark_constants_in_pattern): Same.
21181 (mark_constant_pool): Same.
21182 (get_section_anchor): Same.
21183 * vr-values.c (compare_range_with_value): Same.
21184 (vr_values::extract_range_from_phi_node): Same.
21185 * vr-values.h: Same.
21186 * web.c (unionfind_union): Same.
21187 * wide-int.h: Same.
21188
21189 2019-07-09 Martin Sebor <msebor@redhat.com>
21190
21191 PR c++/61339
21192 * align.h: Change class-key from class to struct and vice versa
21193 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21194 * alloc-pool.h: Same.
21195 * asan.c (shadow_mem_size): Same.
21196 * auto-profile.c: Same.
21197 * basic-block.h: Same.
21198 * bitmap.h: Same.
21199 * cfgexpand.c (set_rtl): Same.
21200 (expand_one_stack_var_at): Same.
21201 * cfghooks.h: Same.
21202 * cfgloop.h: Same.
21203 * cgraph.h: Same.
21204 * config/i386/i386.h: Same.
21205 * df-problems.c (df_print_bb_index): Same.
21206 * df-scan.c: Same.
21207 * df.h (df_single_use): Same.
21208 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21209 (layout::annotation_line_showed_range_p): Same.
21210 (get_printed_columns): Same.
21211 (correction::ensure_terminated): Same.
21212 (line_corrections::~line_corrections): Same.
21213 * dojump.h: Same.
21214 * dse.c: Same.
21215 * dump-context.h: Same.
21216 * dumpfile.h: Same.
21217 * dwarf2out.c: Same.
21218 * edit-context.c: Same.
21219 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21220 * flags.h: Same.
21221 * function.c (assign_stack_local): Same.
21222 * function.h: Same.
21223 * gcc.c: Same.
21224 * gcov.c (block_info::block_info): Same.
21225 * genattrtab.c: Same.
21226 * genextract.c: Same.
21227 * genmatch.c (comparison_code_p): Same.
21228 (id_base::id_base): Same.
21229 (decision_tree::print): Same.
21230 * genoutput.c: Same.
21231 * genpreds.c (write_one_predicate_function): Same.
21232 * genrecog.c (validate_pattern): Same.
21233 (find_operand_positions): Same.
21234 (optimize_subroutine_group): Same.
21235 (merge_pattern_transition::merge_pattern_transition): Same.
21236 (merge_pattern_info::merge_pattern_info): Same.
21237 (merge_state_result::merge_state_result): Same.
21238 (merge_into_state): Same.
21239 * gensupport.c: Same.
21240 * gensupport.h: Same.
21241 * ggc-common.c (init_ggc_heuristics): Same.
21242 * ggc-tests.c (test_union): Same.
21243 * gimple-loop-interchange.cc (dump_induction): Same.
21244 * gimple-loop-versioning.cc: Same.
21245 * gimple-match.h (gimple_match_cond::any_else): Same.
21246 * gimple-ssa-backprop.c: Same.
21247 * gimple-ssa-sprintf.c: Same.
21248 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21249 Same.
21250 (store_immediate_info::store_immediate_info): Same.
21251 (merged_store_group::apply_stores): Same.
21252 (get_location_for_stmts): Same.
21253 * gimple-ssa-strength-reduction.c: Same.
21254 * gimple-ssa-warn-alloca.c: Same.
21255 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21256 * godump.c (go_type_decl): Same.
21257 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21258 * hash-map.h: Same.
21259 * hash-set-tests.c (test_set_of_strings): Same.
21260 * hsa-brig.c: Same.
21261 * hsa-common.h: Same.
21262 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21263 * input.c (assert_loceq): Same.
21264 * input.h: Same.
21265 * ipa-cp.c: Same.
21266 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21267 * ipa-fnsummary.h: Same.
21268 * ipa-inline.h: Same.
21269 * ipa-prop.h: Same.
21270 * ipa-split.c (visit_bb): Same.
21271 * ira-int.h (minmax_set_iter_next): Same.
21272 * loop-invariant.c: Same.
21273 * loop-iv.c: Same.
21274 * lra-eliminations.c: Same.
21275 * lra-int.h: Same.
21276 * lra-lives.c (mark_regno_dead): Same.
21277 * lra-remat.c: Same.
21278 * lra-spills.c: Same.
21279 * lto-streamer.h: Same.
21280 * mem-stats.h: Same.
21281 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21282 * omp-low.c (omp_clause_aligned_alignment): Same.
21283 * optabs-query.h (get_vcond_eq_icode): Same.
21284 * optabs.h: Same.
21285 * opts.c (wrap_help): Same.
21286 * poly-int.h: Same.
21287 * predict.c (predict_paths_leading_to_edge): Same.
21288 * pretty-print.h: Same.
21289 * profile-count.h: Same.
21290 * read-md.h: Same.
21291 * read-rtl-function.c: Same.
21292 * ree.c: Same.
21293 * reginfo.c: Same.
21294 * regrename.c: Same.
21295 * regrename.h: Same.
21296 * reload.h: Same.
21297 * rtl-iter.h: Same.
21298 * rtl.h (costs_add_n_insns): Same.
21299 * sanopt.c: Same.
21300 * sched-int.h: Same.
21301 * sel-sched-ir.h: Same.
21302 * selftest.h: Same.
21303 * sese.h (vec_find): Same.
21304 * stmt.c: Same.
21305 * target-globals.h: Same.
21306 * tree-affine.c (aff_combination_find_elt): Same.
21307 * tree-affine.h: Same.
21308 * tree-data-ref.h: Same.
21309 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21310 * tree-predcom.c: Same.
21311 * tree-scalar-evolution.c (find_var_scev_info): Same.
21312 * tree-ssa-alias.h: Same.
21313 * tree-ssa-ccp.c: Same.
21314 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21315 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21316 (rewrite_mem_refs): Same.
21317 (execute_sm_if_changed): Same.
21318 (hoist_memory_references): Same.
21319 * tree-ssa-loop-ivopts.c (operator<=): Same.
21320 * tree-ssa-loop.h: Same.
21321 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21322 * tree-ssa-structalias.c: Same.
21323 * tree-switch-conversion.h (cluster::cluster): Same.
21324 (simple_cluster::simple_cluster): Same.
21325 * tree-vect-patterns.c (type_conversion_p): Same.
21326 * tree-vectorizer.c (dump_stmt_cost): Same.
21327 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21328 * tree.c (protected_set_expr_location): Same.
21329 * tree.h (desired_pro_or_demotion_p): Same.
21330 (fndecl_built_in_p): Same.
21331 * unique-ptr-tests.cc: Same.
21332 * var-tracking.c (delete_variable_part): Same.
21333 * varasm.c (assemble_real): Same.
21334 (tree_output_constant_def): Same.
21335 * vec.c: Same.
21336 * wide-int-bitmask.h: Same.
21337 * wide-int.h (decompose): Same.
21338
21339 2019-07-09 Richard Biener <rguenther@suse.de>
21340
21341 PR tree-optimization/91114
21342 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21343 find a vector type isn't fatal.
21344
21345 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21346
21347 * config/aarch64/aarch64-simd.md
21348 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21349 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21350 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21351 (*aarch64_crypto_aese_fused,
21352 *aarch64_crypto_aesd_fused): Update to new definition.
21353 * config/aarch64/aarch64.c
21354 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21355
21356 2019-07-09 Richard Biener <rguenther@suse.de>
21357
21358 * gimple-match.h (gimple_match_op::resimplify): New.
21359 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21360 gimple_resimplify4, gimple_resimplify5): Remove.
21361 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21362 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21363 Make static.
21364 (gimple_match_op::resimplify): New.
21365 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21366 according to availability. Use gimple_match_op::resimplify.
21367
21368 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21369
21370 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21371
21372 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21373
21374 * config/arm/crypto.md:
21375 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21376 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21377 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21378 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21379 * config/arm/arm.c
21380 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21381 * config/arm/aarch-common-protos.h
21382 (aarch_crypto_can_dual_issue): Remove.
21383 * config/arm/aarch-common.c
21384 (aarch_crypto_can_dual_issue): Likewise.
21385 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21386 * config/arm/cortex-a53.md: Likewise.
21387 * config/arm/cortex-a57.md: Likewise.
21388 * config/arm/iterators.md:
21389 (CRYPTO_BINARY): Redefine.
21390 (CRYPTO_UNARY): Removed.
21391 (CRYPTO_AES, CRYPTO_AESMC): New.
21392
21393 2019-07-09 Richard Biener <rguenther@suse.de>
21394
21395 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21396 (vn_reference_lookup_3): If the main ref has no access path recorded
21397 but orig_ref has use it to do access-path based disambiguation.
21398 (vn_reference_lookup_pieces): Adjust.
21399 (vn_reference_lookup): Pass down original ref if we valueized.
21400
21401 2019-07-09 Martin Liska <mliska@suse.cz>
21402
21403 * doc/extend.texi: Document influence on loop
21404 optimizers.
21405
21406 2019-07-09 Martin Liska <mliska@suse.cz>
21407
21408 * lto-compress.c (lto_normalized_zstd_level): Do not use
21409 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21410 of libzstd. One can use 0 as a default compression level.
21411
21412 2019-07-09 Martin Liska <mliska@suse.cz>
21413
21414 * doc/invoke.texi: Add link from -fprofile-dir option.
21415 Use better wording for 'gcno filename'.
21416
21417 2019-07-08 Martin Sebor <msebor@redhat.com>
21418
21419 PR middle-end/71924
21420 PR middle-end/90549
21421 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21422 comment.
21423 (args_loc_t): New type.
21424 (args_loc_t, locmap_t): same.
21425 (diag_returned_locals): New function.
21426 (is_addr_local): Same.
21427 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21428 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21429 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21430
21431 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21432
21433 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21434 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21435 and casts in offset when different, both through gimple stmts
21436 and through trees. Rewritten using loops to minimize code duplication
21437 for each operand.
21438
21439 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21440
21441 * emit-rtl.c (set_insn_locations): New function moved from...
21442 * function.c (set_insn_locations): ...here.
21443 * ira-emit.c (emit_moves): Propagate location of the first instruction
21444 to the inserted move instructions.
21445 * reg-stack.c (compensate_edge): Set the location if the sequence is
21446 inserted on the edge.
21447 * rtl.h (set_insn_locations): Declare.
21448
21449 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21450
21451 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21452 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21453 .machine string.
21454
21455 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21456
21457 PR rtl-optimization/88233
21458 * common.opt (fsplit-wide-types-early): New option.
21459 * common/config/rs6000/rs6000-common.c
21460 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21461 OPT_LEVELS_ALL.
21462 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21463 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21464 flag_split_wide_types_early.
21465 (pass_data_lower_subreg3): New.
21466 (pass_lower_subreg3): New.
21467 (make_pass_lower_subreg3): New.
21468 * passes.def (pass_lower_subreg2): Move after the loop passes.
21469 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21470 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21471 the pass pipeline; its previous place is taken by ...
21472 (make_pass_lower_subreg3): ... this.
21473
21474 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21475
21476 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21477 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21478
21479 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21480
21481 * config/s390/constraints.md: Add new jsc constraint.
21482 * config/s390/predicates.md: New predicates.
21483 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21484 * config/s390/s390.c (s390_valid_shift_count): New function.
21485 (print_shift_count_operand): Use s390_valid_shift_count.
21486 (print_operand): Likewise.
21487 * config/s390/s390.md: Use new predicate.
21488 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21489 * config/s390/vector.md: Use new predicate.
21490
21491 2019-07-08 Andrew Waterman <andrew@sifive.com>
21492 Jim Wilson <jimw@sifive.com>
21493
21494 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21495 bitsize instead of BITS_PER_WORD.
21496
21497 2019-07-08 Martin Liska <mliska@suse.cz>
21498
21499 * collect2.c (defined): Revert to before r254460.
21500 (scan_prog_file): Revert to before r254460.
21501
21502 2019-07-08 Richard Biener <rguenther@suse.de>
21503
21504 PR tree-optimization/83518
21505 * tree-ssa-sccvn.c: Include splay-tree.h.
21506 (struct pd_range, struct pd_data): New.
21507 (struct vn_walk_cb_data): Add data to track partial definitions.
21508 (vn_walk_cb_data::~vn_walk_cb_data): New.
21509 (vn_walk_cb_data::push_partial_def): New.
21510 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21511 (vn_reference_lookup_2): When partial defs are registered give up.
21512 (vn_reference_lookup_3): Track partial defs for memset and
21513 constructor zeroing and for defs from constants.
21514
21515 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21516
21517 * doc/install.texi (bootstrap-Og): Document.
21518
21519 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21520
21521 * config/riscv/pic.md (*local_pic_load_s<mode>)
21522 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21523 referenced by <mode>, giving...
21524 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21525 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21526 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21527 use <X:MODE> for the mode attribute.
21528
21529 2019-07-07 Jeff Law <law@redhat.com>
21530
21531 PR tree-optimization/91090
21532 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21533 in handling of ranges to simplify switch statements.
21534
21535 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21536
21537 * config/darwin.c (darwin_override_options): Make a final check on PIC
21538 options.
21539
21540 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21541
21542 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21543 on for kernel code.
21544
21545 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21546
21547 PR target/91068
21548 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21549 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21550 instead of matching them to "l" output operands.
21551
21552 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21553
21554 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21555 and check whether addr.reg is nonnull before using it.
21556
21557 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21558
21559 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21560 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21561 variable(s). For conditional lastprivate look through outer
21562 GIMPLE_OMP_SCAN context.
21563 (lower_omp_1): For conditional lastprivate look through outer
21564 GIMPLE_OMP_SCAN context.
21565
21566 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21567 member to combined_into_simd_safelen1.
21568 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21569 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21570 clauses if ctx->combined_into_simd_safelen1 put statements after the
21571 predicate conditionalized block rather than into it.
21572
21573 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21574
21575 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21576 operand 1.
21577 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21578 Make the choice of <mode> explicit, giving...
21579 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21580
21581 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21582
21583 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21584 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21585 of .md attributes.
21586 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21587 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21588 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21589 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21590 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21591 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21592 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21593 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21594 (*avx512f_scatterdi<mode>): Likewise.
21595 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21596
21597 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21598
21599 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21600 specify the mode iterator referenced by <mode>, giving...
21601 (*push1_h8300hs_<QHI:mode>): ...this.
21602
21603 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21604
21605 * config/gcn/gcn-valu.md
21606 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21607 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21608 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21609 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21610 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21611 but using the _exec comparison patterns.
21612 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21613 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21614 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21615 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21616 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21617 but using the _exec comparison patterns.
21618
21619 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21620
21621 * config/arm/sync.md
21622 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21623 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21624 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21625 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21626 <SIDI:cas_cmp_str>.
21627
21628 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21629
21630 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21631 (maybe_lookup_ctx): Add forward declaration.
21632 (omp_find_scan): Likewise. Walk into body of simd if composited
21633 with worksharing loop.
21634 (scan_omp_simd_scan): New function.
21635 (scan_omp_1_stmt): Call it.
21636 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21637 ctx->for_simd_scan_phase.
21638 (lower_rec_input_clauses): Do much less work for inscan reductions
21639 in ctx->for_simd_scan_phase is_simd regions.
21640 (lower_omp_scan): Set is_simd also on simd constructs composited
21641 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21642 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21643 emit their body after in simd constructs composited with worksharing
21644 loop.
21645 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21646
21647 * omp-low.c (omp_find_scan): Make static.
21648 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21649 the second loop, var2 represents the first partial sum and so needs
21650 to go before rprivb[ivar].
21651
21652 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21653
21654 * config/rs6000/rs6000-logue.c: Remove unused code.
21655
21656 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21657
21658 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21659
21660 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21661
21662 PR target/90712
21663 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21664 check with a frame laid out check.
21665
21666 2019-07-05 Richard Biener <rguenther@suse.de>
21667
21668 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21669 when comparing against a store with possibly the same value.
21670
21671 2019-07-05 Richard Biener <rguenther@suse.de>
21672
21673 PR tree-optimization/91091
21674 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21675 (walk_non_aliased_vuses): Likewise.
21676 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21677 (get_continuation_for_phi): New tbaa_p parameter and pass
21678 it down.
21679 (walk_non_aliased_vuses): Likewise.
21680 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21681 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21682 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21683 Likewise.
21684 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21685 (adjust_offsets_for_equal_base_address): New function.
21686 (vn_reference_lookup_3): Use it to catch more base equivalences.
21687 Handle and pass down tbaa_p flag.
21688 (vn_reference_lookup_pieces): Adjust.
21689 (vn_reference_lookup): Remove alias-set altering, instead pass
21690 down false as tbaa_p.
21691
21692 2019-07-05 Richard Biener <rguenther@suse.de>
21693
21694 PR tree-optimization/91091
21695 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21696 accesses can happen with -fno-strict-aliasing.
21697
21698 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21699
21700 * tree-ssa-alias.c (alias_stats): Add
21701 nonoverlapping_component_refs_since_match_p_must_overlap.
21702 (dump_alias_stats): Print it.
21703 (nonoverlapping_component_refs_since_match_p): Add early exit.
21704 (nonoverlapping_component_refs_p): Do not account early exit.
21705
21706 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21707
21708 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21709 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21710 (emit_eh_dispatch): Delete.
21711 (lower_catch): Emit the eh_dispatch manually and set the location of
21712 the first catch statement onto it.
21713 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21714 (lower_eh_dispatch): Propagate location.
21715 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21716 (eliminate_build): Likewise.
21717
21718 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21719
21720 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21721 phi nodes if possible.
21722 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21723 location info on the newly created statement.
21724 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21725 newly created increment if needed.
21726
21727 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21728
21729 PR middle-end/78884
21730 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21731 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21732 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21733 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21734 ctx->add_safelen1 is set.
21735
21736 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21737 GOMP_loop_start at the start of second worksharing loop in a scan.
21738 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21739 worksharing loop in a scan even if there are conditional lastprivates,
21740 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21741
21742 2019-07-04 Jan Hubicka <jh@suse.cz>
21743
21744 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21745 Fix check for match in the ref walk.
21746
21747 2019-07-04 Martin Liska <mliska@suse.cz>
21748
21749 * tree-ssa-loop-niter.c
21750 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21751 (estimate_numbers_of_iterations):
21752 Support __builtin_expect_with_probability for analysis
21753 of # of loop iterations.
21754
21755 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21756
21757 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21758 * except.c: Likewise.
21759 * expr.c (expand_expr_real_1): Reject it.
21760 * gimplify.c (gimplify_expr): Gimplify it, within
21761 TRY_FINALLY_EXPR.
21762 * tree-dump.c (dequeue_and_dump): Dump it.
21763 * tree-pretty-print.c (dump_generic_node): Likewise.
21764 * tree.c (block_may_fallthru): Handle it.
21765 * tree.def (EH_ELSE_EXPR): Introduce it.
21766 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21767 with GIMPLE_EH_ELSE as try/finally/else.
21768
21769 2019-07-04 Richard Biener <rguenther@suse.de>
21770
21771 PR ipa/91062
21772 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21773 parameter whether to disable GC collection.
21774 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21775 honor it.
21776 (execute_all_ipa_transforms): Likewise and pass it down.
21777 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21778 collection from applying IPA transforms.
21779 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21780 from applying IPA transforms.
21781
21782 2019-07-04 Richard Biener <rguenther@suse.de>
21783
21784 PR tree-optimization/90911
21785 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21786 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21787 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21788 scalar_loop_scaling.
21789 (vect_transform_loop): Scale scalar loop profile if needed.
21790 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21791 the loop copy from if-conversion adjust edge probabilities
21792 and scale the vectorized loop body profile, queue the scalar
21793 profile for updating after peeling.
21794
21795 2019-07-04 Jan Hubicka <jh@suse.cz>
21796
21797 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21798 parameters; return early for must-alias.
21799 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21800 outer types match, try nonoverlapping_component_refs
21801 if must-alias is not obvious.
21802 (indirect_refs_may_alias_p): Likewise.
21803 (refs_may_alias_p_2): Likewise.
21804
21805 2019-07-04 Richard Biener <rguenther@suse.de>
21806
21807 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21808 argument.
21809 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21810 globals into...
21811 (struct vn_walk_cb_data): New callback data struct.
21812 (vn_reference_lookup_2): Adjust.
21813 (vn_reference_lookup_3): Likewise.
21814 (vn_reference_lookup_pieces): Likewise.
21815 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21816 (visit_reference_op_load): Adjust.
21817
21818 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21819
21820 PR tree-optimization/91063
21821 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21822 stmt from stmts sequence before calling vect_init_vector_1.
21823 Formatting fix.
21824
21825 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21826
21827 PR target/88833
21828 * fwprop.c (reg_single_def_p): New function.
21829 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21830 (forward_propagate_into): New parameter reg_prop_only
21831 with default value false.
21832 Propagate def's src into loop only if SET_SRC and SET_DEST
21833 of def_set have single definitions.
21834 Likewise if reg_prop_only is set to true.
21835 (fwprop): New param fwprop_addr_p.
21836 Integrate fwprop_addr into fwprop.
21837 (fwprop_addr): Remove.
21838 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21839 to true.
21840 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21841 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21842 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21843
21844 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21845
21846 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21847 in worksharing loop scans.
21848
21849 PR tree-optimization/91074
21850 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21851 temporary.
21852
21853 PR rtl-optimization/90756
21854 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21855 for VECTOR_TYPE_P.
21856
21857 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21858
21859 * config/aarch64/aarch64.md: Remove redundant constraints from
21860 define_expand but keep some patterns untouched if they are
21861 specially selected by TARGET_SECONDARY_RELOAD hook.
21862 * config/aarch64/aarch64-sve.md: Likewise.
21863 * config/aarch64/atomics.md: Remove redundant constraints from
21864 define_expand.
21865 * config/aarch64/aarch64-simd.md: Likewise.
21866
21867 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21868
21869 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21870 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21871 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21872 clauses.
21873 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21874 DARWIN_NOPIE_SPEC.
21875
21876 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21877
21878 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21879 (STARTFILE_SPEC): Split crt3 into a separate spec.
21880 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21881 (DARWIN_CRT2_SPEC): New.
21882 (DARWIN_CRT3_SPEC): New.
21883 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21884 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21885 (DARWIN_CRT3_SPEC): New.
21886
21887 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21888
21889 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21890 Change the RTL attribute "length" from "4" to "*" to allow the
21891 length attribute to be adjusted automatically for prefixed load,
21892 store, and add immediate instructions.
21893 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21894 Likewise.
21895 (extendsi<mode>2, EXTSI iterator): Likewise.
21896 (movsi_internal1): Likewise.
21897 (movsi_from_sf): Likewise.
21898 (movdi_from_sf_zero_ext): Likewise.
21899 (mov<mode>_internal): Likewise.
21900 (movcc_internal1, QHI iterator): Likewise.
21901 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21902 (movsf_from_si): Likewise.
21903 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21904 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21905 (mov<mode>, FMOVE128 iterator): Likewise.
21906 (movdi_internal64): Likewise.
21907 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21908 Likewise.
21909 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21910 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21911 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21912 (vsx_splat_v4sf): Likewise.
21913
21914 2019-07-03 Mark Wielaard <mark@klomp.org>
21915
21916 PR debug/90981
21917 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21918 DW_AT_addr_base if there is actually a .debug_addr section with
21919 addresses.
21920 (output_addr_table): Add DWARF5 table header generation here after
21921 checking there are actually any addresses from...
21922 (dwarf2out_finish): ...here.
21923
21924 2019-07-03 Richard Biener <rguenther@suse.de>
21925
21926 PR middle-end/91069
21927 * match.pd (vec_perm -> bit_insert): Fix element read from
21928 first vector.
21929
21930 2019-07-03 Martin Liska <mliska@suse.cz>
21931
21932 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21933 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21934 condition.
21935 * generic-match-head.c: Include dbgcnt.h.
21936 * gimple-match-head.c: Likewise.
21937
21938 2019-07-03 Martin Liska <mliska@suse.cz>
21939
21940 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21941 (GCOV_COUNTER_V_TOPN): New.
21942 (GCOV_COUNTER_V_INDIR): Use _topn.
21943 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21944 (GCOV_TOPN_VALUES): New.
21945 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21946 (GCOV_TOPN_VALUES_COUNTERS): New.
21947 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21948 * tree-profile.c:
21949 (gimple_init_gcov_profiler): Rename variables from one_value
21950 to topn_values.
21951 (gimple_gen_one_value_profiler): Remove.
21952 (gimple_gen_topn_values_profiler): New function.
21953 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21954 names instead of SINGLE_VALUE.
21955 (stream_out_histogram_value): Likewise.
21956 (stream_in_histogram_value): Likewise.
21957 (get_most_common_single_value): Likewise.
21958 (gimple_divmod_fixed_value_transform): Likewise.
21959 (gimple_stringops_transform): Likewise.
21960 (gimple_divmod_values_to_profile): Likewise.
21961 (gimple_stringops_values_to_profile): Likewise.
21962 (gimple_find_values_to_profile): Likewise.
21963 * value-prof.h (enum hist_type): Rename to TOPN.
21964 (gimple_gen_one_value_profiler): Remove.
21965 (gimple_gen_topn_values_profiler): New.
21966
21967 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21968
21969 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21970 if it has the DW_AT_data_member_location attribute.
21971
21972 2019-07-03 Richard Biener <rguenther@suse.de>
21973
21974 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21975 dumping.
21976
21977 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21978
21979 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21980 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21981 (tlsdesc_small_sve_<mode>): Likewise.
21982
21983 2019-07-03 Martin Liska <mliska@suse.cz>
21984
21985 * Makefile.in: Define ZSTD_LIB.
21986 * common.opt: Adjust compression level
21987 to support also zstd levels.
21988 * config.in: Regenerate.
21989 * configure: Likewise.
21990 * configure.ac: Add --with-zstd and --with-zstd-include options
21991 and detect ZSTD.
21992 * doc/install.texi: Mention zstd dependency.
21993 * gcc.c: Print supported LTO compression algorithms.
21994 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21995 (lto_compression_zstd): Likewise.
21996 (lto_uncompression_zstd): Likewise.
21997 (lto_end_compression): Dispatch in between zlib and zstd.
21998 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21999 (lto_uncompression_zlib): Make it static.
22000 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22001 * lto-section-in.c (lto_get_section_data): Pass info
22002 about used compression.
22003 * lto-streamer-out.c: By default use zstd when possible.
22004 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22005 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22006
22007 2019-07-03 Martin Liska <mliska@suse.cz>
22008
22009 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22010 * lto-section-out.c (lto_destroy_simple_output_block): Never
22011 compress LTO_section_lto section.
22012 * lto-streamer-out.c (produce_asm): Do not set major_version
22013 and minor_version.
22014 (lto_output_toplevel_asms): Likewise.
22015 (produce_lto_section): New function.
22016 (lto_output): Call produce_lto_section.
22017 (lto_write_mode_table): Do not set major_version and
22018 minor_version.
22019 (produce_asm_for_decls): Likewise.
22020 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22021 type.
22022 (struct lto_header): Remove.
22023 (struct lto_section): New struct.
22024 (struct lto_simple_header): Do not inherit from lto_header.
22025 (struct lto_file_decl_data): Add lto_section_header field.
22026
22027 2019-07-03 Martin Liska <mliska@suse.cz>
22028
22029 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22030 dead assignemts.
22031 * reg-stack.c (check_asm_stack_operands): Likewise.
22032 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22033 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22034 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22035 force_expand_binop.
22036
22037 2019-07-03 Martin Liska <mliska@suse.cz>
22038
22039 PR tree-optimization/90892
22040 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22041 in string constants.
22042
22043 2019-07-03 Martin Liska <mliska@suse.cz>
22044
22045 PR middle-end/90899
22046 * multiple_target.c (create_dispatcher_calls): Add to comdat
22047 group only if set for ifunc.
22048
22049 2019-07-03 Martin Liska <mliska@suse.cz>
22050
22051 PR target/88056
22052 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22053 Define local_object_name in outer scope in order to handle
22054 use-after-scope issue.
22055
22056 2019-07-03 Martin Liska <mliska@suse.cz>
22057
22058 * common.opt: Add fprofile-note.
22059 * coverage.c (coverage_init): Append the option
22060 to bbg_file_name.
22061 * doc/invoke.texi: Document -fprofile-note.
22062
22063 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22064
22065 PR tree-optimization/91033
22066 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22067 vect_analyze_data_refs): Add bool * arguments.
22068 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22069 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22070 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22071 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22072 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22073 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22074 vect_analyze_data_refs caller.
22075
22076 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22077 clause.
22078 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22079 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22080 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22081 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22082 OMP_CLAUSE__SCANTEMP_ entry.
22083 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22084 * tree-pretty-print.c (dump_omp_clause): Likewise.
22085 * tree-nested.c (convert_nonlocal_omp_clauses,
22086 convert_local_omp_clauses): Likewise.
22087 * omp-general.h (struct omp_for_data): Add have_scantemp and
22088 have_nonctrl_scantemp members.
22089 * omp-general.c (omp_extract_for_data): Initialize them.
22090 * omp-low.c (struct omp_context): Add scan_exclusive member.
22091 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22092 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22093 ctx->scan_exclusive.
22094 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22095 of !ctx->scan_inclusive.
22096 (lower_rec_input_clauses): Simplify gimplification of dtors using
22097 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22098 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22099 loops. Don't add barrier for reduction_omp_orig_ref if
22100 ctx->scan_??xclusive.
22101 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22102 (lower_omp_scan): Use ctx->scan_exclusive instead
22103 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22104 reductions. Use new_vard != new_var instead of repeated
22105 omp_is_reference calls.
22106 (omp_find_scan, lower_omp_for_scan): New functions.
22107 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22108 inscan reductions.
22109 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22110 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22111 and fd->have_scantemp.
22112
22113 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22114 on worksharing loop propagate it as shared clause to containing
22115 combined parallel.
22116
22117 * omp-expand.c (expand_omp_for_static_nochunk,
22118 expand_omp_for_static_chunk): For nowait worksharing loop with
22119 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22120 at the end.
22121
22122 2019-07-02 qing zhao <qing.zhao@oracle.com>
22123
22124 PR preprocessor/90581
22125 * doc/cppopts.texi: Add document for -fmax-include-depth.
22126 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22127
22128 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22129
22130 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22131 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22132 (mmx_packssdw): Ditto.
22133 (mmx_punpckhbw): Ditto.
22134 (mmx_punpcklbw): Ditto.
22135 (mmx_punpckhwd): Ditto.
22136 (mmx_punpcklwd): Ditto.
22137 (mmx_punpckhdq): Ditto.
22138 (mmx_punpckldq): Ditto.
22139 (*vec_dupv4hi): Ditto.
22140 (*vec_dupv2si): Ditto.
22141 (mmx_pmovmskb): Ditto.
22142 * config/i386/sse.md (sse_cvtpi2ps): Use
22143 TARGET_SSE2 && SSE_REG_P in split condition.
22144 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22145 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22146 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22147 (ssse3_pshufbv8qi3): Ditto.
22148 (ssse3_palignrdi): Ditto.
22149
22150 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22151
22152 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22153 with inlined save and restore.
22154
22155 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22156
22157 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22158 to be inserted on single successor edge of the entry block. Then call
22159 commit_edge_insertions instead of inserting the instructions manually.
22160 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22161 RTL expansion and rebuild jump labels chain.
22162
22163 2019-07-02 Richard Biener <rguenther@suse.de>
22164
22165 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22166 TI_CHREC_KNOWN.
22167 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22168 Define here.
22169 * tree.c (build_common_tree_nodes): Initialize them.
22170 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22171 Make declarations comments.
22172 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22173 chrec_known): Remove definitions.
22174 (initialize_scalar_evolutions_analyzer): Remove.
22175 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22176 * tree-streamer.c (preload_common_nodes): Do not preload
22177 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22178
22179 2019-07-02 Jan Hubicka <jh@suse.cz>
22180
22181 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22182 sanity check.
22183
22184 2019-07-02 Jan Hubicka <jh@suse.cz>
22185
22186 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22187 to ..
22188 (nonoverlapping_component_refs_since_match_p): ... this one;
22189 handle also non-decl bases; return -1 if search gave up.
22190 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22191 nonoverlapping_component_refs_of_decl_p_no_alias to
22192 nonoverlapping_component_refs_since_match_p_may_alias,
22193 nonoverlapping_component_refs_since_match_p_no_alias.
22194 (dump_alias_stats): Update dumping.
22195 (aliasing_matching_component_refs_p): Break out from ...;
22196 dispatch to nonoverlapping_component_refs_for_decl_p
22197 and nonoverlapping_component_refs_since_match_p.
22198 (aliasing_component_refs_p): ... here; call
22199 nonoverlapping_component_refs_p in scenarios where we can not
22200 precisely determine base match.
22201 (decl_refs_may_alias_p): Use
22202 nonoverlapping_component_refs_since_match_p.
22203 (indirect_ref_may_alias_decl_p): Do not call
22204 nonoverlapping_component_refs_p.
22205 (indirect_refs_may_alias_p): Likewise.
22206
22207 2019-07-02 Jan Hubicka <jh@suse.cz>
22208
22209 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22210 to clobber of return value.
22211
22212 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22213
22214 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22215 for is_neon_type instructions that have not already been categorized.
22216
22217 2019-07-02 Richard Biener <rguenther@suse.de>
22218
22219 PR tree-optimization/58483
22220 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22221 for MEM_REF base hashing.
22222 (equal_mem_array_ref_p): Likewise for base comparison.
22223
22224 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22225
22226 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22227 parameterized name.
22228 (signbit<mode>2): Use that name. Simplify.
22229
22230 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22231
22232 PR middle-end/66726
22233 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22234 Tune heuristic from PR71016 to allow MIN / MAX.
22235
22236 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22237
22238 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22239 parameterized name.
22240 (abs<mode>2): Use that name. Simplify.
22241
22242 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22243
22244 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22245 parameterized name.
22246 (neg<mode>2): Use that name. Simplify.
22247
22248 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22249
22250 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22251 name.
22252 (abs<mode>2): Use that name. Simplify.
22253
22254 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22255
22256 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22257 name.
22258 (neg<mode>2): Use that name. Simplify.
22259
22260 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22261
22262 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22263 ("enabled" attribute): Handle sse_noavx isa attribute.
22264 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22265 Use TARGET_SSE && SSE_REGNO_P in split condition.
22266 (*vec_dupv2sf): Ditto.
22267
22268 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22269
22270 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22271 name.
22272 (floatsi<mode>2): Use that name. Simplify.
22273
22274 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22275
22276 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22277 parameterized name.
22278 (extenddf<mode>2_vsx): Make this a parameterized name.
22279 (extenddf<mode>2): Use those names. Simplify.
22280
22281 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22282
22283 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22284 name.
22285 (eh_return): Use that name. Simplify.
22286
22287 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22288
22289 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22290 (doloop_end): Use that name. Simplify.
22291
22292 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22293
22294 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22295 parameterized name.
22296 (indirect_jump): Use that name. Simplify.
22297
22298 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22299
22300 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22301 parameterized name.
22302 (abs<mode>2): Use that name. Simplify.
22303
22304 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22305
22306 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22307 parameterized name.
22308 (fix_trunc<mode>si2): Use that name. Simplify.
22309
22310 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22311
22312 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22313 (allocate_stack): Use that name. Simplify.
22314
22315 2019-07-01 Martin Sebor <msebor@redhat.com>
22316
22317 PR middle-end/90923
22318 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22319 (hash_map::get_or_insert): Same. Reformat comment.
22320 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22321 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22322 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22323 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22324 (hash_table::hash_table (const hash_table&)): Use copy ctor
22325 instead of assignment to copy elements.
22326
22327 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22328 John David Anglin <danglin@gcc.gnu.org>
22329
22330 PR target/90963
22331 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22332 using saved frame pointer.
22333
22334 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22335
22336 PR middle-end/64242
22337 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22338 Add frame clobber and schedule blockage.
22339
22340 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22341
22342 * doc/invoke.texi (Link Options): Further editorial changes to
22343 -flinker-output docs.
22344
22345 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22346
22347 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22348 Load both operands of a PLUS into registers separately.
22349
22350 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22351
22352 * config/s390/vector.md: Fix shift count operand printing.
22353
22354 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22355
22356 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22357
22358 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22359
22360 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22361 Use recog_data to test for an output operand.
22362
22363 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22364
22365 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22366 exclude any others that are disparaged or that are bound to need
22367 a reload or spill.
22368 (ira_get_dup_out_num): Expand comment.
22369
22370 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22371
22372 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22373 constraint string for each operand/alternative combo. Only handle
22374 '%' at the start of constraint strings, and look for it outside
22375 the main loop.
22376
22377 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22378
22379 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22380 alternative_mask instead of HARD_REG_SET to represent a
22381 bitmask of alternatives.
22382 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22383 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22384
22385 2019-07-01 Martin Liska <mliska@suse.cz>
22386
22387 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22388 use () for a constructor call.
22389 (test_applying_fixits_line_out_of_range): Likewise.
22390 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22391 argument.
22392 (free_page): Likewise.
22393
22394 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22395
22396 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22397 parameter names to match usage (no functional change).
22398 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22399
22400 2019-07-01 Richard Biener <rguenther@suse.de>
22401
22402 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22403 pass parameter.
22404 (pass_fre::execute): Honor it.
22405 * passes.def: Adjust pass_fre invocations to allow iterating,
22406 add non-iterating pass_fre before late threading/dom.
22407
22408 2019-07-01 Richard Biener <rguenther@suse.de>
22409
22410 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22411 TARGET_MEM_REF handling to also handle address-taken ones.
22412
22413 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22414
22415 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22416 hardware attributes): Document avx512vp2intersect.
22417
22418 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22419
22420 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22421 (abs<mode>2): New expander.
22422 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22423 Use CODE_FOR_ssse3_absv8qi2.
22424 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22425 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22426
22427 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22428
22429 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22430 to sse, sse_noavx and avx. Update all uses.
22431
22432 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22433
22434 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22435 (*mmx_<plusminus_insn><mode>3): Ditto.
22436 (*mmx_mulv4hi3"): Ditto.
22437 (*mmx_smulv4hi3_highpart): Ditto.
22438 (*mmx_umulv4hi3_highpart): Ditto.
22439 (*mmx_pmaddwd): Ditto.
22440 (*sse2_umulv1siv1di3): Ditto.
22441 (*mmx_<code>v4hi3): Ditto.
22442 (*mmx_<code>v8qi3): Ditto.
22443 (mmx_ashr<mode>3): Ditto.
22444 ("mmx_<shift_insn><mode>3): Ditto.
22445 (*mmx_eq<mode>3): Ditto.
22446 (mmx_gt<mode>3): Ditto.
22447 (mmx_andnot<mode>3): Ditto.
22448 (*mmx_<code><mode>3): Ditto.
22449 (*mmx_pinsrw): Ditto.
22450 (*mmx_pextrw): Ditto.
22451 (mmx_pshufw_1): Ditto.
22452 (*mmx_uavgv8qi3): Ditto.
22453 (*mmx_uavgv4hi3): Ditto.
22454 ("mmx_psadbw): Ditto.
22455 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22456 (sse_cvttps2pi): Ditto.
22457 (ssse3_pmaddubsw): Ditto.
22458 (*ssse3_pmulhrswv4hi3): Ditto.
22459 (ssse3_psign<mode>3): Ditto.
22460
22461 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22462
22463 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22464 adjustment for bit-fields to all aggregate types.
22465
22466 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22467
22468 * config/rs6000/predicates.md (pcrel_address): Use
22469 SYMBOL_REF_LOCAL_P to determine if a label is local.
22470 (pcrel_external_address): New predicate.
22471 (non_prefixed_mem_operand): Delete, predicate not used.
22472 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22473 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22474 addressing.
22475 (SYMBOL_REF_PCREL_P): Likewise.
22476
22477 PR target/91009
22478 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22479 alternative.
22480 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22481 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22482 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22483
22484 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22485
22486 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22487 override on extra_headers.
22488
22489 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22490
22491 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22492 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22493 from warning.
22494 (darwin_driver_init): Likewise.
22495
22496 2019-06-28 Jan Beulich <jbeulich@suse.com>
22497
22498 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22499 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22500 Eliminate redundant alternative.
22501
22502 2019-06-28 Jan Beulich <jbeulich@suse.com>
22503
22504 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22505 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22506 Use vector_operand.
22507
22508 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22509
22510 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22511 having a lower cost regardless of the speed option.
22512
22513 2019-06-28 Jan Beulich <jbeulich@suse.com>
22514
22515 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22516 vector_operand plus, on both alternatives, "Bm" constraint.
22517
22518 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22519
22520 * config/arm/arm.md: Remove redundant constraints from
22521 define_expand but leave reload_inm and reload_outm patterns
22522 untouched since they need special constraints to work.
22523 * config/arm/arm-fixed.md: Remove redundant constraints from
22524 define_expand.
22525 * config/arm/iwmmxt.md: Likewise.
22526 * config/arm/neon.md: Likewise.
22527 * config/arm/sync.md: Likewise.
22528 * config/arm/thumb1.md: Likewise.
22529 * config/arm/vec-common.md: Likewise.
22530
22531 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22532
22533 * doc/install.texi: Document --disable-tm-clone-registry.
22534
22535 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22536
22537 PR c++/91024
22538 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22539 statements.
22540
22541 PR tree-optimization/91010
22542 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22543 return true. Otherwise, don't call operand_equal_p if offset1 or
22544 offset2 is NULL and just return false.
22545
22546 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22547
22548 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22549 user-specified float mode choice for kernel mode code.
22550
22551 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22552
22553 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22554 spec.
22555
22556 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22557
22558 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22559 use longcall for 64b code.
22560
22561 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22562
22563 * builtins.c (get_memory_rtx): Fix comment.
22564 * optabs.def (movmem_optab): Change to cpymem_optab.
22565 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22566 (emit_block_move_hints): Change movmem to cpymem.
22567 * defaults.h: Change movmem to cpymem.
22568 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22569 (default_use_by_pieces_infrastructure_p): Ditto.
22570 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22571 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22572 to cpymem.
22573 * config/aarch64/aarch64.h: Change movmem to cpymem.
22574 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22575 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22576 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22577 movmem to cpymem.
22578 * config/arc/arc-protos.h: Change movmem to cpymem.
22579 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22580 * config/arc/arc.h: Change movmem to cpymem in comment.
22581 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22582 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22583 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22584 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22585 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22586 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22587 * config/avr/avr-protos.h: Change movmem to cpymem.
22588 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22589 avr_out_movmem): Change movmem to cpymem.
22590 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22591 Change movmem to cpymem.
22592 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22593 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22594 Change movmem to cpymem.
22595 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22596 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22597 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22598 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22599 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22600 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22601 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22602 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22603 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22604 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22605 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22606 expand_small_cpymem_or_setmem,
22607 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22608 expand_set_or_cpymem_constant_prologue,
22609 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22610 * config/i386/i386-protos.h: Change movmem to cpymem.
22611 * config/i386/i386.h: Change movmem to cpymem in comment.
22612 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22613 (setmem<mode>): Change expansion function name.
22614 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22615 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22616 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22617 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22618 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22619 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22620 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22621 to cpymem.
22622 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22623 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22624 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22625 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22626 Change movmem to cpymem.
22627 * config/mips/mips.h: Change movmem to cpymem.
22628 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22629 * config/nds32/nds32-memory-manipulation.c
22630 (nds32_expand_movmemsi_loop_unknown_size,
22631 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22632 nds32_expand_movmemsi_unroll,
22633 nds32_expand_movmemsi): Change movmem to cpymem.
22634 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22635 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22636 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22637 (pa_adjust_insn_length): Change call to compute_movmem_length.
22638 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22639 movmemdi, movmemdi_prereload,
22640 movmemdi_postreload): Change movmem to cpymem.
22641 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22642 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22643 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22644 * config/riscv/riscv.h: Change movmem to cpymem.
22645 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22646 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22647 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22648 movmem to cpymem.
22649 * config/s390/s390-protos.h: Change movmem to cpymem.
22650 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22651 s390_expand_insv): Change movmem to cpymem.
22652 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22653 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22654 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22655 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22656 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22657 for nonexistent function.
22658 * config/vax/vax.h: Change movmem to cpymem in comment.
22659 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22660 * config/visium/visium.h: Change movmem to cpymem in comment.
22661 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22662 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22663 * doc/md.texi: Change movmem to cpymem and update description to match.
22664 * doc/rtl.texi: Change movmem to cpymem.
22665 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22666 * doc/tm.texi: Regenerate.
22667
22668 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22669
22670 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22671 -fvariable-expansion-in-unroller by default.
22672 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22673 default for Power.
22674
22675 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22676
22677 Revert
22678 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22679 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22680
22681 * config.gcc(rs6000-*-*): Define target_gtfiles.
22682
22683 2019-06-27 Jan Hubicka <jh@suse.cz>
22684
22685 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22686 (add_type_duplicate): When odr hash is not allocated, to nothing.
22687 (odr_based_tbaa_p): New function.
22688 (set_type_canonical_for_odr_type): New function.
22689 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22690 set_type_canonical_for_odr_type): New.
22691 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22692 ODR based TBAA are not equivalent to non-ODR types.
22693
22694 2019-06-27 Martin Liska <mliska@suse.cz>
22695
22696 PR tree-optimization/90974
22697 PR rtl-optimization/90975
22698 PR rtl-optimization/90976
22699 PR target/91016
22700 PR tree-optimization/91017
22701 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22702 unused tmp.
22703 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22704 initial commit of IRA.
22705 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22706 of op0 and op1.
22707 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22708 Remove unused mode1.
22709 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22710 to new_stmt_info.
22711
22712 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22713
22714 PR target/90991
22715 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22716 instead of register_operand for operands[1], add m to its constraints
22717 if operands[2] uses "C" constraint. Ensure in condition that if
22718 operands[2] is not 0, then operands[1] is not a MEM. For last two
22719 alternatives, use unaligned loads instead of aligned if operands[1] is
22720 misaligned_operand.
22721
22722 2019-06-27 Martin Liska <mliska@suse.cz>
22723
22724 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22725 dead assignments.
22726 * bt-load.c (move_btr_def): Likewise.
22727 * builtins.c (expand_builtin_apply_args_1): Likewise.
22728 (expand_builtin_apply): Likewise.
22729 * cfgexpand.c (expand_asm_stmt): Likewise.
22730 (construct_init_block): Likewise.
22731 * cfghooks.c (verify_flow_info): Likewise.
22732 * cfgloopmanip.c (remove_path): Likewise.
22733 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22734 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22735 * combine.c (simplify_if_then_else): Likewise.
22736 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22737 (choose_basereg): Likewise.
22738 (ix86_expand_prologue): Likewise.
22739 (ix86_preferred_output_reload_class): Likewise.
22740 * cselib.c (cselib_record_sets): Likewise.
22741 * df-scan.c (df_scan_alloc): Likewise.
22742 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22743 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22744 * emit-rtl.c (try_split): Likewise.
22745 * graphite-scop-detection.c (assign_parameter_index_in_region):
22746 Likewise.
22747 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22748 * ira-color.c (setup_profitable_hard_regs): Likewise.
22749 * ira.c (rtx_moveable_p): Likewise.
22750 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22751 * read-rtl.c (read_subst_mapping): Likewise.
22752 * regrename.c (scan_rtx): Likewise.
22753 * reorg.c (fill_slots_from_thread): Likewise.
22754 * tree-inline.c (tree_function_versioning): Likewise.
22755 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22756 * tree-ssa-sink.c (statement_sink_location): Likewise.
22757 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22758 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22759 (vect_create_epilog_for_reduction): Likewise.
22760 * tree.c (build_nonstandard_integer_type): Likewise.
22761
22762 2019-06-27 Richard Biener <rguenther@suse.de>
22763
22764 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22765
22766 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22767
22768 PR tree-optimization/89772
22769 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22770 out-of-bound accesses checking.
22771
22772 2019-06-27 Martin Liska <mliska@suse.cz>
22773
22774 PR tree-optimization/91014
22775 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22776 when LHS is NULL_TREE.
22777
22778 2019-06-27 Martin Liska <mliska@suse.cz>
22779
22780 * symbol-summary.h (traverse): Pass
22781 argument a to the call of callback.
22782 (gt_ggc_mx): Mark arguments as unused.
22783 (gt_pch_nx): Likewise.
22784
22785 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22786
22787 PR target/62147
22788 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22789 finiteness.
22790
22791 2019-06-26 Jeff Law <law@redhat.com>
22792
22793 PR tree-optimization/90883
22794 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22795 (delete_dead_or_redundant_assignment): Likewise.
22796
22797 PR tree-optimization/90883
22798 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22799 * tree-ssa-dse.c: Update various comments to distinguish between
22800 dead and redundant stores.
22801 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22802 (dse_optimize_redundant_stores): New function.
22803 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22804 Distinguish between dead and redundant calls in dump output. All
22805 callers updated.
22806 (delete_dead_or_redundant_assignment): Similarly for assignments.
22807 (dse_optimize_stmt): Handle _CHK variants. For statements which
22808 store 0 into multiple memory locations, try to prove a subsequent
22809 store is redundant.
22810
22811 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22812
22813 PR target/89021
22814 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22815 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22816
22817 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22818
22819 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22820 (branch_islands): New extern.
22821 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22822 * config/rs6000/rs6000.c: .. here.
22823
22824 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22825
22826 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22827 (powerpc*-*-*) ... to here.
22828
22829 2019-06-26 Jeff Law <law@redhat.com>
22830
22831 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22832 memcpy, memmove and memset builtins.
22833 (maybe_trim_memstar_call): Likewise.
22834
22835 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22836
22837 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22838
22839 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22840
22841 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22842
22843 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22844
22845 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22846 declaration.
22847 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22848 "static".
22849 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22850 declaration.
22851
22852 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22853
22854 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22855
22856 2019-06-26 Richard Biener <rguenther@suse.de>
22857
22858 PR ipa/90982
22859 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22860
22861 2019-06-26 Richard Biener <rguenther@suse.de>
22862
22863 * lto-streamer.h (lto_bitmap_alloc): Remove.
22864 (lto_bitmap_free): Likewise.
22865 * lto-streamer.c (lto_bitmap_alloc): Remove.
22866 (lto_bitmap_free): Likewise.
22867 (lto_obstack): Likewise.
22868 (lto_obstack_initialized): Likewise.
22869 * lto-streamer-out.c (lto_output): Use own obstack for local
22870 bitmap, free it consistently.
22871
22872 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22873
22874 PR target/90991
22875 * config/i386/sse.md
22876 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22877 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22878 insns if operands[2] is misaligned_operand.
22879
22880 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22881
22882 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22883 TARGET_POWERPC64.
22884 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22885 to GPR.
22886
22887 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22888
22889 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22890
22891 2019-06-26 Martin Liska <mliska@suse.cz>
22892
22893 PR tree-optimization/90973
22894 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22895 epilogue_cost_vec instead of prologue_cost_vec for
22896 a epilogue cost.
22897
22898 2019-06-26 Martin Liska <mliska@suse.cz>
22899
22900 * bb-reorder.c (connect_better_edge_p): Add missing else
22901 statement in the middle of if-else statements.
22902
22903 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22904 H.J. Lu <hongjiu.lu@intel.com>
22905 Olga Makhotina <olga.makhotina@intel.com>
22906
22907 * common/config/i386/i386-common.c
22908 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22909 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22910 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22911 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22912 (ix86_handle_option): Handle -mavx512vp2intersect.
22913 * config/i386/avx512vp2intersectintrin.h: New.
22914 * config/i386/avx512vp2intersectvlintrin.h: New.
22915 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22916 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22917 AVX512VP2INTERSECT.
22918 * config/i386/i386-builtin-types.def: Add new types.
22919 * config/i386/i386-builtin.def: Add new builtins.
22920 * config/i386/i386-builtins.c: (enum processor_features): Add
22921 F_AVX512VP2INTERSECT.
22922 (static const _isa_names_table isa_names_table): Ditto.
22923 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22924 __AVX512VP2INTERSECT__.
22925 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22926 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22927 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22928 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22929 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22930 * config/i386/i386-options.c (ix86_target_string): Add
22931 -mavx512vp2intersect.
22932 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22933 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22934 P2HImode and P2QImode.
22935 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22936 number for P2QImode and P2HImode.
22937 (ix86_regmode_natural_size): New function.
22938 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22939 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22940 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22941 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22942 * config/i386/i386.opt: Add -mavx512vp2intersect.
22943 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22944 avx512vp2intersectvlintrin.h.
22945 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22946 (define_mode_iterator VI48_AVX512VP2VL): New.
22947 (avx512vp2intersect_2intersect<mode>,
22948 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22949 * config.gcc: Add avx512vp2intersectvlintrin.h and
22950 avx512vp2intersectintrin.h to extra_headers.
22951 * doc/invoke.texi: Document -mavx512vp2intersect.
22952
22953 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22954
22955 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22956
22957 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22958
22959 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22960 savres_routine_syms, savres_routine_name, morestack_ref,
22961 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22962 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22963 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22964 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22965 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22966 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22967 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22968 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22969 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22970 get_stack_clash_protection_probe_interval,
22971 get_stack_clash_protection_guard_size,
22972 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22973 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22974 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22975 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22976 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22977 gen_frame_mem_offset, rs6000_savres_routine_name,
22978 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22979 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22980 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22981 rs6000_global_entry_point_prologue_needed_p,
22982 rs6000_get_separate_components, rs6000_components_for_bb,
22983 rs6000_disqualify_components, rs6000_emit_prologue_components,
22984 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22985 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22986 rs6000_output_savres_externs, rs6000_output_function_prologue,
22987 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22988 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22989 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22990 rs6000_output_function_epilogue, gen_add3_const,
22991 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22992 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22993 to rs6000-logue.c.
22994 (machine_function): Moved to rs6000.h.
22995 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22996 rs6000-internal.h.
22997 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22998 savres_routine_syms, savres_routine_name, morestack_ref,
22999 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23000 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23001 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23002 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23003 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23004 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23005 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23006 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23007 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23008 get_stack_clash_protection_probe_interval,
23009 get_stack_clash_protection_guard_size,
23010 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23011 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23012 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23013 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23014 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23015 gen_frame_mem_offset, rs6000_savres_routine_name,
23016 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23017 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23018 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23019 rs6000_global_entry_point_prologue_needed_p,
23020 rs6000_get_separate_components, rs6000_components_for_bb,
23021 rs6000_disqualify_components, rs6000_emit_prologue_components,
23022 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23023 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23024 rs6000_output_savres_externs, rs6000_output_function_prologue,
23025 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23026 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23027 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23028 rs6000_output_function_epilogue, gen_add3_const,
23029 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23030 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23031 to here from rs6000.c.
23032 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23033 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23034 quad_address_offset_p) Moved to here from rs6000.c.
23035 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23036 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23037 collector.
23038
23039 2019-06-25 Martin Liska <mliska@suse.cz>
23040
23041 * hash-table.c (hashtab_chk_error): Move here from ...
23042 * hash-table.h (hashtab_chk_error): ... here.
23043
23044 2019-06-25 Martin Liska <mliska@suse.cz>
23045
23046 PR tree-optimization/90978
23047 * df-scan.c (df_update_entry_block_defs): Remove dead else
23048 branch.
23049 (df_update_exit_block_uses): Likewise.
23050
23051 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23052 Andrew Stubbs <ams@codesourcery.com>
23053
23054 * config.gcc (thread_file): Set to gcn for AMD GCN.
23055 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23056 (TARGET_EMUTLS_VAR_INIT): New hook.
23057
23058 2019-06-25 Martin Jambor <mjambor@suse.cz>
23059
23060 PR ipa/90939
23061 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23062
23063 2019-06-25 Richard Biener <rguenther@suse.de>
23064
23065 PR tree-optimization/90930
23066 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23067 into parallel form in the last pass instance.
23068
23069 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23070
23071 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23072 (arc_legitimize_pic_address): Simplify and cleanup the function.
23073 (SYMBOLIC_CONST): Remove.
23074 (prepare_pic_move): Likewise.
23075 (prepare_move_operands): Handle complex mov cases here.
23076 (arc_legitimize_address_0): Remove call to
23077 arc_legitimize_pic_address.
23078 (arc_legitimize_address): Remove call to
23079 arc_legitimize_tls_address.
23080 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23081 (movhi_insn): Likewise.
23082
23083 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23084
23085 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23086 PTRDIFF_TYPE.
23087 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23088 format of "__intN" types for UINTMAX_TYPE.
23089 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23090 format of "__intN" types for SIZETYPE.
23091 * tree.c (build_common_tree_nodes): Accept "__intN__"
23092 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23093 * doc/invoke.texi: Document that __intN__ disables pedantic
23094 warnings.
23095
23096 2019-06-25 Jan Hubicka <jh@suse.cz>
23097
23098 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23099 base2_alias_set is non-zero before doing TBAA based disambiguation.
23100
23101 2019-06-25 Martin Liska <mliska@suse.cz>
23102
23103 PR tree-optimization/90973
23104 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23105 of prologue and epilogue.
23106
23107 2019-06-24 Jan Hubicka <jh@suse.cz>
23108
23109 * ipa-utils.h (type_with_linkage_p): Verify that type is
23110 CXX_ODR_P.
23111 (odr_type_p): Remove extra return.
23112 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23113 hash STRING_FLAG only for arrays and integers.
23114 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23115 Update analogously.
23116 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23117 Likewise.
23118 * print-tree.c (print_node): Print cxx-odr-p
23119 and string-flag.
23120 * tree.c (need_assembler_name_p): Also check that type
23121 is CXX_ODR_TYPE_P
23122 (verify_type_variant): Update verification of SRING_FLAG;
23123 also check CXX_ODR_P.
23124 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23125 (TYPE_STRING_FLAG): Use it.
23126 (TYPE_CXX_ODR_P): New macro.
23127 * dwarf2out.c (gen_array_type_die): First check that type
23128 is an array and then test string flag.
23129
23130 2019-06-24 Richard Biener <rguenther@suse.de>
23131
23132 PR tree-optimization/90972
23133 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23134 in common code, dealing with STRING_CST properly.
23135
23136 2019-06-24 Richard Biener <rguenther@suse.de>
23137
23138 PR tree-optimization/90930
23139 PR tree-optimization/90316
23140 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23141 decrement of limit.
23142
23143 2019-06-24 Martin Sebor <msebor@redhat.com>
23144
23145 * tree-pretty-print.h: Remove unnecessary punctuation characters
23146 from a diagnostic.
23147 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23148
23149 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23150
23151 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23152 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23153 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23154
23155 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23156
23157 * config/rs6000/darwin.h: Handle GCC target pragma.
23158
23159 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23160
23161 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23162
23163 2019-06-22 Jeff Law <law@redhat.com>
23164
23165 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23166
23167 2019-06-22 Jan Hubicka <jh@suse.cz>
23168
23169 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23170 give up on bitfields; continue searching for different refs
23171 appearing later.
23172
23173 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23174
23175 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23176 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23177 containing the offset as possible simd lane access. Look through
23178 widening conversion. Move the
23179 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23180
23181 2019-06-21 Richard Biener <rguenther@suse.de>
23182
23183 PR tree-optimization/90930
23184 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23185 flag on new stmts to avoid re-processing them.
23186
23187 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23188
23189 PR c++/90875 - added -Wswitch-outside-range option
23190 * doc/invoke.texi (Wswitch-outside-range): Document.
23191
23192 2019-06-21 Jeff Law <law@redhat.com>
23193
23194 PR tree-optimization/90949
23195 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23196 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23197
23198 2019-06-21 Richard Biener <rguenther@suse.de>
23199
23200 PR debug/90914
23201 * dwarf2out.c (prune_unused_types_walk): Always consider
23202 function-local extern declarations as used.
23203
23204 2019-06-21 Richard Biener <rguenther@suse.de>
23205
23206 PR tree-optimization/90913
23207 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23208 the scalar variant of if-conversion versioning.
23209
23210 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23211
23212 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23213 create another "omp scan inscan exclusive" array if
23214 !ctx->scan_inclusive.
23215 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23216 (lower_omp_scan): Likewise.
23217 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23218 2-bit bitfield for simd_lane_access_p member.
23219 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23220 aux == (void *)-4 as simd lane access.
23221 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23222 comment with permutations to show the canonical permutation order.
23223 (vectorizable_scan_store): Handle exclusive scan.
23224 (vectorizable_store): Call vectorizable_scan_store even for
23225 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23226
23227 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23228 "omp simd array" arrays with one byte elements.
23229
23230 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23231
23232 * config/alpha/alpha.md (@unaligned_store<mode>):
23233 Rename from unaligned_store<mode>.
23234 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23235 * config/alpha/sync.md (@load_locked_<mode>): Rename
23236 from load_locked_<mode>.
23237 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23238 (@atomic_compare_and_swap<mode>_1): Rename
23239 from atomic_compare_and_swap<mode>_1.
23240 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23241 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23242 Use gen_reload_in_aligned and gen_unaligned_store.
23243 (emit_load_locked): Remove.
23244 (emit_store_conditional): Ditto.
23245 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23246 (alpha_split_compare_and_swap): Ditto.
23247 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23248 (alpha_split_compare_and_swap_12): Use gen_load_locked
23249 and gen_store_conditional.
23250 (alpha_split_atomic_exchange): Ditto.
23251 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23252 (alpha_split_atomic_exchange_12): Use gen_load_locked
23253 and gen_store_conditional.
23254
23255 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23256
23257 * config/aarch64/aarch64-errata.h: New file.
23258 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23259 (CA53_ERR_843419_SPEC): Delete.
23260 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23261 * config/aarch64/aarch64-linux.h: Likewise.
23262 * config/aarch64/aarch64-netbsd.h: Likewise.
23263 * config/aarch64/aarch64-freebsd.h: Likewise.
23264
23265 2019-06-20 Marek Polacek <polacek@redhat.com>
23266
23267 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23268
23269 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23270
23271 * config/rs6000/rs6000.md (isa attribute): Add support for
23272 for a future processor.
23273
23274 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23275
23276 PR target/54855
23277 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23278 standard scalar operation pattern for V2DF.
23279 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23280 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23281 (*ieee_<ieee_maxmin><mode>3): Likewise.
23282 (vec_setv2df_0): Likewise.
23283
23284 2019-06-20 Jan Hubicka <jh@suse.cz>
23285
23286 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23287 parameter; it has no use in gimple memory model.
23288 (indirect_ref_may_alias_decl_p): Update.
23289
23290 2019-06-20 Martin Liska <mliska@suse.cz>
23291
23292 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23293 to 10.
23294
23295 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23296
23297 * tree-vect-stmts.c (enum scan_store_kind): New type.
23298 (scan_store_can_perm_p): Change last argument from int * to
23299 vec<enum scan_store_kind> *, record precisely which permutations
23300 need whole vector left shift or that plus VEC_COND_EXPR.
23301 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23302 and additional VEC_COND_EXPR only for those iterations that need it.
23303
23304 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23305
23306 * config.gcc: Fix ARM --with-fpu checking and error message.
23307
23308 2019-06-19 Marek Polacek <polacek@redhat.com>
23309
23310 PR c++/60364 - noreturn after first decl not diagnosed.
23311 * attribs.c (get_attribute_namespace): No longer static.
23312 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23313 attributes.
23314 (attr_noreturn_exclusions): Make it extern.
23315 * attribs.h (get_attribute_namespace): Declare.
23316 * tree-inline.c (function_attribute_inlinable_p): Use
23317 get_attribute_name.
23318
23319 2019-06-19 Martin Sebor <msebor@redhat.com>
23320
23321 PR tree-optimization/90626
23322 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23323
23324 PR tree-optimization/90626
23325 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23326 (handle_builtin_string_cmp): Call it.
23327
23328 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23329
23330 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23331 and DARWIN_NOPIE_SPEC.
23332 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23333 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23334 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23335 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23336 (DARWIN_EXPORT_DYNAMIC): Delete.
23337 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23338 and pie options processing to darwin.h.
23339 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23340
23341 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23342
23343 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23344 in computing the number of options to be moved.
23345
23346 2019-06-19 Maya Rashish <coypu@sdf.org>
23347
23348 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23349 (CLEAR_INSN_CACHE) Use it.
23350
23351 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23352
23353 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23354
23355 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23356
23357 PR middle-end/84521
23358 * builtins.c (expand_builtin_setjmp_setup): Save
23359 hard_frame_pointer_rtx.
23360 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23361 restore fp.
23362 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23363 non-local goto.
23364 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23365 elimination code.
23366 (remove_reg_equal_offset_note): Remove unused function.
23367 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23368 code.
23369 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23370 (arc_builtin_setjmp_frame_value): Remove function.
23371 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23372 (avr_builtin_setjmp_frame_value): Remove function.
23373 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23374 (ix86_builtin_setjmp_frame_value): Remove function.
23375 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23376 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23377 (sparc_builtin_setjmp_frame_value): Remove function.
23378 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23379 (vax_builtin_setjmp_frame_value): Remove function.
23380 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23381 pointer if has_nonlocal_label.
23382
23383 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23384
23385 * doc/md.texi: Document vec_shl_<mode> pattern.
23386 * optabs.def (vec_shl_optab): New optab.
23387 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23388 argument, if == vec_shl_optab, check for left whole vector shift
23389 pattern rather than right shift.
23390 (expand_vec_perm_const): Add vec_shl_optab support.
23391 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23392 in the comment.
23393 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23394 can be handled by vec_shl_optab.
23395 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23396 (check_scan_store): Use it.
23397 (vectorizable_scan_store): If target can't do normal permutations,
23398 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23399 after it.
23400 * config/i386/sse.md (vec_shl_<mode>): New expander.
23401
23402 * omp-low.c (lower_rec_input_clauses): Handle references properly
23403 in inscan clauses.
23404 (lower_omp_scan): Likewise.
23405
23406 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23407
23408 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23409 mem_mode is BLKmode.
23410
23411 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23412
23413 PR target/90922
23414 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23415 pointer adjustment for the case of no callee-saved registers and
23416 stack frame bigger than 128 bytes.
23417
23418 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23419
23420 PR middle-end/90862
23421 * omp-low.c (check_omp_nesting_restrictions): Handle
23422 GF_OMP_TARGET_KIND_OACC_DECLARE.
23423
23424 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23425
23426 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23427 (@add<mode>3_carry): Rename from add<mode>3_carry.
23428 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23429 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23430 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23431 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23432 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23433 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23434 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23435 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23436 (cmpstrnsi): Use gen_cmp_1.
23437 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23438 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23439 (@umonitor_<mode>): Rename from umonitor_<mode>.
23440 * config/i386/i386-expand.c (ix86_expand_copysign):
23441 Use gen_copysign3_const and gen_copysign3_var.
23442 (ix86_expand_xorsign): Use gen_xorsign3_1.
23443 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23444 gen_sub3_carry_ccgz and gen_cmp1.
23445 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23446 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23447 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23448 (ix86_split_lshr): Ditto.
23449 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23450
23451 2019-06-18 Jason Merrill <jason@redhat.com>
23452
23453 * tree.c (build_constructor): Add MEM_STAT_DECL.
23454
23455 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23456
23457 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23458 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23459 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23460 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23461 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23462 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23463 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23464 Use CC_NZC instead of CC.
23465 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23466 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23467 (aarch64_print_operand): Handle E_CC_NZCmode.
23468 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23469 of gen_set_clobber_cc.
23470
23471 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23472
23473 * config/aarch64/aarch64-sve.md: Tabify file.
23474
23475 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23476
23477 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23478 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23479 * config/aarch64/aarch64-sve.md: Use it.
23480
23481 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23482
23483 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23484 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23485 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23486 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23487 (aarch64_expand_sve_vec_cmp_int): Use it.
23488 (aarch64_expand_sve_vec_cmp_float): Likewise.
23489 * config/aarch64/aarch64-sve.md: Likewise throughout.
23490
23491 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23492 Kugan Vivekanandarajah <kuganv@linaro.org>
23493
23494 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23495 (*cond_<optab><mode>_z): Fold into...
23496 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23497 operand 4 can be tied to operand 0 (either inherently or via RA).
23498
23499 2019-06-18 Richard Biener <rguenther@suse.de>
23500
23501 PR debug/90900
23502 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23503 as if optimized away.
23504
23505 2019-06-18 Tom de Vries <tdevries@suse.de>
23506
23507 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23508 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23509 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23510 Rename to ...
23511 (define_insn "@set_softstack_<mode>"): ... this.
23512 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23513 (define_insn "@omp_simt_enter_<mode>"): ... this.
23514 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23515 (define_insn "@omp_simt_exit_<mode>"): ... this.
23516
23517 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23518
23519 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23520 vf parameter. Restore the previous iv step of nscalars_step,
23521 but give it iv_type rather than compare_type. Tweak code order
23522 to match the comments.
23523 (vect_set_loop_condition_masked): Update accordingly.
23524 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23525 for iv_precision. Tweak comment formatting.
23526
23527 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23528
23529 * config/darwin.c: Strip trailing whitespace.
23530
23531 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23532
23533 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23534 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23535
23536 2019-06-18 Martin Jambor <mjambor@suse.cz>
23537
23538 PR ipa/90889
23539 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23540 caller does not have flag_ipa_cp set.
23541
23542 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23543
23544 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23545 from "*fold_left_plus_<mode>", updated operands order.
23546 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23547 * internal-fn.c (mask_fold_left_direct): New define.
23548 (expand_mask_fold_left_optab_fn): Likewise.
23549 (direct_mask_fold_left_optab_supported_p): Likewise.
23550 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23551 * optabs.def (mask_fold_left_plus_optab): New optab.
23552 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23553 masked internal_fn for a reduction ifn.
23554 (vectorize_fold_left_reduction): Add support for masking reductions.
23555
23556 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23557
23558 PR middle-end/80791
23559 * target.def (predict_doloop_p): New hook.
23560 * targhooks.h (default_predict_doloop_p): New declaration.
23561 * targhooks.c (default_predict_doloop_p): New function.
23562 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23563 * doc/tm.texi: Regenerate.
23564 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23565 (TARGET_PREDICT_DOLOOP_P): New macro.
23566 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23567
23568 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23569
23570 * omp-low.c (struct omp_context): Add scan_inclusive field.
23571 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23572 if inclusive scan.
23573 (struct omplow_simd_context): Add lastlane member.
23574 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23575 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23576 1 or 2 argument.
23577 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23578 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23579 (lower_omp_scan): New function.
23580 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23581 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23582 check 3rd argument if present rather than 2nd.
23583 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23584 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23585 2-bit bitfield.
23586 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23587 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23588 than 2nd.
23589 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23590 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23591 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23592 init.
23593 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23594 IFN_GOMP_SIMD_LANE argument.
23595 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23596 encoded ->aux value.
23597 * tree-vect-stmts.c: Include attribs.h.
23598 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23599 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23600 functions.
23601 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23602 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23603
23604 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23605
23606 PR target/62055
23607 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23608 (*nabs<mode>2_1): Ditto.
23609 (nabs sse-reg splitter): New splitter.
23610 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23611
23612 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23613
23614 PR bootstrap/90873.
23615 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23616 TMR index check.
23617
23618 2019-06-17 Tom de Vries <tdevries@suse.de>
23619
23620 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23621 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23622 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23623 ...
23624 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23625 match_operand 0.
23626 (define_insn "omp_simt_enter_insn"): Rename to ...
23627 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23628 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23629 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23630 gen_omp_simt_enter_si.
23631 (define_expand "omp_simt_exit"): New.
23632 (define_insn "omp_simt_exit"): Rename to ...
23633 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23634 match_operand 0.
23635
23636 2019-06-17 Matthew Green <mrg@eterna.com.au>
23637 Maya Rashish <coypu@sdf.org>
23638
23639 * config.gcc (aarch64*-*-netbsd*): New target.
23640 * config/aarch64/aarch64-netbsd.h: New file.
23641 * config/aarch64/t-aarch64-netbsd: Likewise.
23642
23643 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23644
23645 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23646 the access path from base to first VIEW_CONVERT_EXPR or
23647 BIT_FIELD_REF.
23648
23649 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23650
23651 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23652 access path on BIT_FIELD_REFs.
23653
23654 2019-06-17 Martin Liska <mliska@suse.cz>
23655
23656 PR ipa/90874
23657 * ipa-utils.h (odr_type_p): Remove dead code.
23658
23659 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23660
23661 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23662 alternative Solaris 11.4 format.
23663 * configure: Regenerate.
23664
23665 2019-06-17 Tom de Vries <tdevries@suse.de>
23666
23667 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23668 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23669 match_operand 0.
23670 (define_insn "call_value_insn"): Rename to ...
23671 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23672 match_operand 0.
23673 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23674 DI.
23675
23676 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23677
23678 PR middle-end/64242
23679 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23680 frame clobbers and schedule block.
23681 (builtin_longjmp): Likewise.
23682
23683 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23684
23685 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23686 describe how to perform MSPABI compliant 64-bit shift.
23687 * config/msp430/msp430.md (ashldi3): New define_expand.
23688 (ashrdi3): New define_expand.
23689 (lshrdi3): New define_expand.
23690
23691 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23692
23693 * doc/sourcebuild.texi: Document new effective target keyword
23694 longlong64.
23695
23696 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23697
23698 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23699 indirect_refs_may_alias_p): Revert accidental commits.
23700
23701 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23702 at the end of structures.
23703
23704 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23705
23706 * config/darwin.c (machopic_indirect_call_target): Use renamed
23707 darwin_picsymbol_stubs to decide on output.
23708 (darwin_override_options): Handle darwin_picsymbol_stubs.
23709 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23710 (LD64_VERSION): Revise default.
23711 * config/darwin.opt: (mpic-symbol-stubs): New option.
23712 (darwin_picsymbol_stubs): New variable.
23713 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23714 rename to TARGET_MACHO_PICSYM_STUBS.
23715 * config/i386/i386.c (output_pic_addr_const): Likewise.
23716 * config/i386/i386.h Likewise.
23717 * config/rs6000/darwin.h: Likewise.
23718 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23719 darwin_picsymbol_stubs.
23720
23721 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23722
23723 * config/darwin.opt (prebind, noprebind, seglinkedit,
23724 noseglinkedit): Add RejectNegative.
23725
23726 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23727
23728 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23729 in my previous patch.
23730
23731 2019-06-16 Tom de Vries <tdevries@suse.de>
23732
23733 PR tree-optimization/89376
23734 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23735
23736 2019-06-15 Maya Rashish <coypu@sdf.org>
23737
23738 * doc/invoke.texi (Spec Files): Update location of the
23739 Fortran spec file.
23740
23741 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23742
23743 * doc/extend.texi (Common Function Attributes): Clarify
23744 no_sanitize. Fix grammar.
23745
23746 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23747
23748 * tree-ssa-alias.c (alias_stats): Add
23749 nonoverlapping_component_refs_p_may_alias,
23750 nonoverlapping_component_refs_p_no_alias,
23751 nonoverlapping_component_refs_of_decl_p_may_alias,
23752 nonoverlapping_component_refs_of_decl_p_no_alias.
23753 (dump_alias_stats): Dump them.
23754 (nonoverlapping_component_refs_of_decl_p): Add stats.
23755 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23756 ARRAY_REF.
23757
23758 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23759
23760 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23761 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23762 only.
23763 (*anddi3_doubleword): Split before reload. Merge with
23764 anddi->zext pre-reload splitter.
23765 (*andndi3_doubleword): Split before reload.
23766 (*<code>di3_doubleword): Ditto.
23767 (*one_cmpldi2_doubleword): Ditto.
23768
23769 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23770
23771 PR middle-end/90779
23772 * gimplify.c: Include omp-offload.h and context.h.
23773 (gimplify_bind_expr): Add "omp declare target" attributes
23774 to static block scope variables inside of target region or target
23775 functions.
23776
23777 2019-06-15 Tom de Vries <tdevries@suse.de>
23778
23779 PR tree-optimization/90009
23780 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23781 Return NULL if bb contains IFN_UNIQUE.
23782
23783 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23784
23785 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23786 (un): New define_mode_attr.
23787 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23788 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23789 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23790 merge into ...
23791 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23792
23793 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23794
23795 * config/darwin.opt: Add RejectNegative where needed, reorder
23796 and add minimal functional descriptions.
23797
23798 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23799
23800 PR rtl-optimization/90765
23801 * calls.c (update_stack_alignment_for_call): New function.
23802 (expand_call): Call update_stack_alignment_for_call when
23803 outgoing parameter is passed in the stack.
23804 (emit_library_call_value_1): Likewise.
23805 * function.c (locate_and_pad_parm): Don't update
23806 stack_alignment_needed and preferred_stack_boundary.
23807
23808 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23809
23810 PR target/90877
23811 * config/i386/i386-features.c
23812 (dimode_scalar_chain::compute_convert_gain): Replace
23813 mmxsse_to_integer with sse_to_integer.
23814 * config/i386/i386.c (ix86_register_move_cost): Verify that
23815 moves between MMX and non-MMX units require secondary memory.
23816 Correct costs of moves between SSE and integer units.
23817 * config/i386/i386.h (processor_costs): Rename cost of moving
23818 SSE register to integer to sse_to_integer. Rename cost of
23819
23820 2019-06-14 Matt Thomas <matt@3am-software.com>
23821 Matthew Green <mrg@eterna.com.au>
23822 Nick Hudson <skrll@netbsd.org>
23823 Maya Rashish <coypu@sdf.org>
23824 Richard Earnshaw <rearnsha@arm.com>
23825
23826 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23827 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23828 * config/arm/netbsd-eabi.h: New file.
23829 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23830 redefining.
23831 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23832 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23833 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23834 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23835
23836 2019-06-14 Richard Biener <rguenther@suse.de>
23837
23838 * tree-loop-distribution.c (classify_partition): Return
23839 whether a reduction appeared in all partitions and do not
23840 stop builtin detection because of this.
23841 (distribute_loop): Sort a non-builtin partition last if
23842 there's a reduction in all partitions and make sure the
23843 partition prevailing as last is not a builtin.
23844
23845 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23846
23847 PR ipa/90401
23848 * ipa-prop.c (add_to_agg_contents_list): New function.
23849 (clobber_by_agg_contents_list_p): Likewise.
23850 (extract_mem_content): Likewise.
23851 (get_place_in_agg_contents_list): Delete.
23852 (determine_known_aggregate_parts): Renamed from
23853 determine_locally_known_aggregate_parts. New parameter
23854 aa_walk_budget_p.
23855
23856 2019-06-13 Martin Sebor <msebor@redhat.com>
23857
23858 PR tree-optimization/90662
23859 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23860 to the same type.
23861
23862 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23863
23864 PR bootstrap/90873
23865 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23866 dbase is not TARGET_MEM_REF.
23867
23868 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23869
23870 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23871 Update all uses.
23872 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23873 Do not generate DImode extends for 32bit targets.
23874 (and->zext post-reload splitter): Use gen_extend_insn
23875 instead of indirect functions.
23876 (anddi->zext pre-reload splitter): New.
23877 (*zext<mode>_doubleword_and): Remove.
23878 (*zext<mode>_doubleword): Ditto.
23879 (*zextsi_doubleword): Dittto.
23880
23881 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23882
23883 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23884 Use gen_sub3_insn instead of indirect function.
23885 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23886 indirect function.
23887 (ix86_adjust_counter): Ditto.
23888
23889 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23890 Lijia He <helijia@linux.ibm.com>
23891
23892 PR tree-optimization/77820
23893 * tree-ssa-threadedge.c
23894 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23895 function.
23896 (thread_across_edge): Add call to
23897 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23898
23899 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23900
23901 * config/darwin-driver.c (validate_macosx_version_min): New.
23902 (darwin_default_min_version): Cleanup and validate supplied version.
23903 (darwin_driver_init): Likewise and push cleaned version into opts.
23904
23905 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23906
23907 PR tree-optimization/90869
23908 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23909 converts in MEM_REF referencing decl rather than view converts
23910 from decl type to MEM_REF type.
23911
23912 2019-06-13 Richard Biener <rguenther@suse.de>
23913
23914 PR tree-optimization/90856
23915 * tree-sra.c (build_ref_for_model): Only use
23916 build_reconstructed_reference when address-spaces are the same.
23917
23918 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23919
23920 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23921 wrap ei variable name in the declaration in ()s.
23922 (nvptx_single): Actually use mode_label variable. Formatting fix.
23923
23924 2019-06-13 Richard Biener <rguenther@suse.de>
23925
23926 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23927 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23928 also return the condition stmt.
23929 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23930 loop we can version and version that, reusing the loop version
23931 created by if-conversion instead of versioning again.
23932
23933 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23934
23935 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23936 may_contain_p.
23937 * tree-vrp (value_range_base::may_contain_p): Call into
23938 value_inside_range.
23939 (value_inside_range): Make private inside value_range_base class.
23940 Take min/max from *this.
23941 (range_includes_p): Remove.
23942 * tree-vrp.h (value_range_base): Add value_inside_range.
23943 (range_includes_p): Remove.
23944 (range_includes_zero_p): Call may_contain_p.
23945 * vr-values.c (compare_range_with_value): Same.
23946
23947 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23948
23949 * doc/extend.texi (ARC Function Attributes): Update info.
23950
23951 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23952
23953 PR tree-optimization/89713
23954 * doc/invoke.texi (-ffinite-loops): Document new option.
23955 * common.opt (-ffinite-loops): New option.
23956 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23957 IFN_GOACC_LOOP calls as necessary.
23958 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23959 is finite.
23960 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23961 IFN_GOACC_LOOP call is not used.
23962 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23963
23964 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23965
23966 PR target/88838
23967 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23968 compare_type is not with Pmode size, we will create an IV with
23969 Pmode size with truncated use (i.e. converted to the correct type).
23970 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23971 (vect_iv_limit_for_full_masking): New. Factored out of
23972 vect_set_loop_condition_masked.
23973 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23974 (vect_iv_limit_for_full_masking): Declare.
23975
23976 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23977
23978 PR target/88834
23979 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23980 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23981 (get_alias_ptr_type_for_ptr_address): Likewise.
23982 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23983 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23984 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23985 allow_reg_index_p.
23986
23987 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23988
23989 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23990
23991 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23992
23993 * common/config/pru/pru-common.c: New file.
23994 * config.gcc: Add PRU target.
23995 * config/pru/alu-zext.md: New file.
23996 * config/pru/constraints.md: New file.
23997 * config/pru/predicates.md: New file.
23998 * config/pru/pru-opts.h: New file.
23999 * config/pru/pru-passes.c: New file.
24000 * config/pru/pru-pragma.c: New file.
24001 * config/pru/pru-protos.h: New file.
24002 * config/pru/pru.c: New file.
24003 * config/pru/pru.h: New file.
24004 * config/pru/pru.md: New file.
24005 * config/pru/pru.opt: New file.
24006 * config/pru/t-pru: New file.
24007 * doc/extend.texi: Document PRU pragmas.
24008 * doc/invoke.texi: Document PRU-specific options.
24009 * doc/md.texi: Document PRU asm constraints.
24010
24011 2019-06-12 Martin Sebor <msebor@redhat.com>
24012
24013 PR middle-end/90676
24014 * tree-pretty-print.c (dump_mem_ref): New function. Include
24015 MEM_REF type in output when different size than operand.
24016 (dump_generic_node): Move code to dump_mem_ref and call it.
24017
24018 2019-06-12 Martin Sebor <msebor@redhat.com>
24019
24020 PR tree-optimization/90662
24021 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24022 to arrays.
24023
24024 2019-06-12 Tom de Vries <tdevries@suse.de>
24025
24026 PR tree-optimization/90009
24027 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24028
24029 2019-06-12 Martin Liska <mliska@suse.cz>
24030
24031 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24032 the created map.
24033 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24034 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24035 Do not sanitize created maps.
24036
24037 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24038
24039 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24040 value_range::singleton_p.
24041 * tree-vrp.c (value_range_constant_singleton): Remove.
24042 * tree-vrp.h (value_range_constant_singleton): Remove.
24043 * vr-values.c (vr_values::singleton): Use
24044 value_range::singleton_p.
24045
24046 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24047
24048 PR target/90811
24049 * cfgexpand.c (align_local_variable): Add really_expand argument,
24050 don't SET_DECL_ALIGN if it is false.
24051 (add_stack_var): Add really_expand argument, pass it through to
24052 align_local_variable.
24053 (expand_one_stack_var_1): Pass true as really_expand to
24054 align_local_variable.
24055 (expand_one_ssa_partition): Pass true as really_expand to
24056 add_stack_var.
24057 (expand_one_var): Pass really_expand through to add_stack_var.
24058
24059 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24060
24061 * config/arm/iterators.md (VABAL): New int iterator.
24062 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24063 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24064 UNSPEC_VABAL_U values.
24065
24066 2019-06-12 Martin Liska <mliska@suse.cz>
24067
24068 * value-prof.c (stream_out_histogram_value): Only first value
24069 can't be negative.
24070
24071 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24072
24073 PR c/90760
24074 * symtab.c (symtab_node::set_section): Allow being called on aliases
24075 as long as they aren't analyzed yet.
24076
24077 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24078
24079 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24080 to `mips_set_text_contents_type' to indicate whether a
24081 non-debug insn follows.
24082
24083 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24084
24085 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24086 enabling -mpcrel by default.
24087 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24088 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24089 that the test against -mcpu=future is done first. Then test if
24090 -mprefixed-addr is on for -mpcrel.
24091 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24092
24093 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24094
24095 PR target/90811
24096 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24097 instead of and.u%d.
24098
24099 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24100
24101 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24102
24103 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24104
24105 PR c++/90449 - add -Winaccessible-base option.
24106 * doc/invoke.texi (Winaccessible-base): Document.
24107
24108 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24109
24110 PR tree-optimization/62041
24111 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24112
24113 2019-06-11 Jason Merrill <jason@redhat.com>
24114
24115 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24116 * tree.c (get_tree_code_name): Likewise.
24117 * print-tree.c (print_node): Only briefly print a node with an
24118 invalid code.
24119
24120 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24121
24122 PR bootstrap/90819
24123 * trans-mem.c (tm_memopt_compute_available): Add assertion
24124 that blocks is not empty. Formatting fix.
24125
24126 2019-06-11 Martin Liska <mliska@suse.cz>
24127
24128 PR c++/87847
24129 * hash-table.h: Extend create_gcc, add one parameter
24130 that is passed into hash_table::hash_table.
24131
24132 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24133
24134 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24135 New prototype.
24136 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24137 Emit clobber also for non-sse operations.
24138 (ix86_split_fp_absneg_operator): New function.
24139 * config/i386/i386.md (SSEMODEF): New mode iterator.
24140 (ssevecmodef): New mode attribute.
24141 (<code>tf2): Use absneg code iterator.
24142 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24143 Add three-operand AVX alternatives.
24144 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24145 Use absneg code iterator and X87MODEF mode iterator.
24146 (absneg fp_reg non-sse splitter): Call absneg code iterator
24147 and X87MODEF mode iterator.
24148 (absneg general_reg non-sse splitter): Use absneg code iterator
24149 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24150 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24151 code iterator. Add three-operand AVX alternative.
24152 (absneg sse_reg splitter): Use absneg code iterator
24153 and SSEMODEF mode iterator. Handle AVX operands.
24154 (absneg fp_reg splitter): Use absneg code iterator
24155 and MODEF mode iterator.
24156 (absneg general_reg splitter): Merge splitters using MODEF mode
24157 iterator. Use absneg code iterator. Call
24158 ix86_split_fp_absneg_operator.
24159 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24160 Do not enable for non-sse modes before reload.
24161 (CSGNMODE): Remove.
24162 (CSGNVMODE): Ditto.
24163 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24164 ssevecmodef mode attribute instaed of CSGNVMODE.
24165 (copysign<mode>3_const): Ditto.
24166 (copysign<mode>3_var): Ditto.
24167 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24168 Use absneg code iterator. Simplify code using std::swap.
24169 * config/i386/predicates.md (absneg_operator): Remove.
24170
24171 2019-06-10 Martin Sebor <msebor@redhat.com>
24172
24173 * gimple-fold.c (get_range_strlen): Update comment that didn't
24174 make it into r267503 or related commits.
24175
24176 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24177
24178 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24179 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24180
24181 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24182
24183 * tree.def (OMP_SCAN): New tree code.
24184 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24185 OMP_CLAUSE_EXCLUSIVE.
24186 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24187 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24188 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24189 OMP_CLAUSE_{IN,EX}CLUSIVE.
24190 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24191 * tree-nested.c (convert_nonlocal_reference_stmt,
24192 convert_local_reference_stmt, convert_gimple_call): Handle
24193 GIMPLE_OMP_SCAN.
24194 * tree-pretty-print.c (dump_omp_clause): Handle
24195 OMP_CLAUSE_{IN,EX}CLUSIVE.
24196 (dump_generic_node): Handle OMP_SCAN.
24197 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24198 * gimple.h (gomp_scan): New type.
24199 (is_a_helper <gomp_scan *>::test,
24200 is_a_helper <const gomp_scan *>::test): New templates.
24201 (gimple_build_omp_scan): Declare.
24202 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24203 gimple_omp_scan_set_clauses): New inline functions.
24204 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24205 * gimple.c (gimple_build_omp_scan): New function.
24206 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24207 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24208 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24209 GIMPLE_OMP_TASKGROUP.
24210 (dump_gimple_omp_scan): New function.
24211 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24212 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24213 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24214 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24215 (is_gimple_stmt): Handle OMP_SCAN.
24216 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24217 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24218 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24219 mentioned in nested #pragma omp scan. Handle
24220 OMP_CLAUSE_{IN,EX}CLUSIVE.
24221 (gimplify_expr): Handle OMP_SCAN.
24222 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24223 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24224 simd constructs.
24225 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24226 GIMPLE_OMP_SCAN.
24227
24228 2019-06-10 Martin Liska <mliska@suse.cz>
24229
24230 * ipa-cp.c (ignore_edge_p): New function.
24231 (build_toporder_info): Use it.
24232 * ipa-inline.c (ignore_edge_p): New function.
24233 (inline_small_functions): Use it.
24234 * ipa-pure-const.c (ignore_edge_for_nothrow):
24235 Verify opt_for_fn for caller and callee.
24236 (ignore_edge_for_pure_const): Likewise.
24237 * ipa-reference.c (ignore_edge_p): Extend to check
24238 for opt_for_fn.
24239 * ipa-utils.c (searchc): Refactor.
24240 * ipa-utils.h: Fix coding style.
24241
24242 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24243
24244 * config/arc/arc.c (arc_rtx_costs): Update costs.
24245
24246 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24247
24248 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24249 (arc_split_ior): Likewise.
24250 (arc_check_mov_const): Likewise.
24251 (arc_split_mov_const): Likewise.
24252 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24253 (arc_rtx_costs): Replace check Crr with Cax constraint.
24254 (prepare_move_operands): Cleanup, remove unused code.
24255 (arc_split_ior): New function.
24256 (arc_check_ior_const): Likewise.
24257 (arc_split_mov_const): Likewise.
24258 (arc_check_mov_const): Likewise.
24259 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24260 in define_insn_and_split pattern.
24261 (iorsi3): Likewise.
24262 (mulsi3_v2): Add new matching variant.
24263 (andsi3_i): Cleanup pattern.
24264 (rotrsi3_cnt1): Update pattern.
24265 (rotrsi3_cnt8): New pattern.
24266 (ashlsi2_cnt8): Likewise.
24267 (ashlsi2_cnt16): Likewise.
24268 * config/arc/constraints.md (C0p): Update constraint.
24269 (Crr): Remove it.
24270 (C0x): New pattern.
24271 (Cax): New pattern.
24272
24273 2019-06-10 Martin Liska <mliska@suse.cz>
24274
24275 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24276 Update coding style.
24277 (sem_item_optimizer::dump_cong_classes):
24278 Print how many items are in a non-singular class. Improve
24279 coding style.
24280
24281 2019-06-10 Martin Liska <mliska@suse.cz>
24282
24283 * value-prof.c (dump_histogram_value): Change dump format.
24284 (gimple_mod_subtract_transform): Remove legacy comment.
24285
24286 2019-06-10 Martin Liska <mliska@suse.cz>
24287
24288 * value-prof.c (dump_histogram_value): Print histogram values
24289 only if present.
24290
24291 2019-06-10 Martin Liska <mliska@suse.cz>
24292
24293 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24294 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24295 * ipa-profile.c (ipa_profile_generate_summary):
24296 Use get_most_common_single_value.
24297 * tree-profile.c (gimple_init_gcov_profiler):
24298 Instrument with __gcov_one_value_profiler_v2
24299 and __gcov_indirect_call_profiler_v4.
24300 * value-prof.c (dump_histogram_value):
24301 Print all values for HIST_TYPE_SINGLE_VALUE.
24302 (stream_out_histogram_value): Update assert for
24303 N values.
24304 (stream_in_histogram_value): Set number of
24305 counters for HIST_TYPE_SINGLE_VALUE.
24306 (get_most_common_single_value): New.
24307 (gimple_divmod_fixed_value_transform):
24308 Use get_most_common_single_value.
24309 (gimple_ic_transform): Likewise.
24310 (gimple_stringops_transform): Likewise.
24311 (gimple_find_values_to_profile): Set number
24312 of counters for HIST_TYPE_SINGLE_VALUE.
24313 * value-prof.h (get_most_common_single_value): New.
24314
24315 2019-06-10 Martin Liska <mliska@suse.cz>
24316
24317 * hash-map.h: Pass default value to hash_table ctor.
24318 * hash-table.h: Add default value to call of a ctor.
24319
24320 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24321
24322 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24323 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24324
24325 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24326
24327 PR target/90751
24328 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24329 Call pa_output_function_label.
24330 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24331 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24332 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24333 to declaration.
24334 (pa_linux_output_function_prologue): Declare.
24335 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24336 (pa_output_function_label): New.
24337 (pa_output_function_prologue): Revise to use pa_output_function_label.
24338 (pa_linux_output_function_prologue): New.
24339 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24340
24341 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24342
24343 * tree-vrp.h (value_range_base::intersect): New.
24344 (value_range::intersect_helper): Move from here...
24345 (value_range_base::intersect_helper): ...to here.
24346 * tree-vrp.c (value_range::intersect_helper): Rename to...
24347 (value_range_base::intersect_helper): ...this, and rewrite to
24348 return a value instead of modifying THIS in place.
24349 Also, move equivalence handling...
24350 (value_range::intersect): ...here, while calling intersect_helper.
24351 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24352 calling intersect.
24353 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24354 Same.
24355 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24356
24357 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24358
24359 * Makefile.in (genprogerr): Add condmd.
24360 (genprog): Remove it here.
24361
24362 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24363
24364 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24365
24366 2019-06-07 Richard Biener <rguenther@suse.de>
24367
24368 PR debug/90574
24369 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24370 that appear after user labels.
24371
24372 2019-06-07 Martin Liska <mliska@suse.cz>
24373
24374 * cselib.c (cselib_init): Disable hash table
24375 sanitization.
24376 * hash-set.h: Pass new default argument to m_table.
24377 * hash-table.c: Add global variable with hash table
24378 sanitization limit.
24379 * hash-table.h (Allocator>::hash_table): Add new argument
24380 to ctor.
24381 (hashtab_chk_error): New.
24382 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24383 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24384 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24385
24386 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24387
24388 * common.opt (flto-odr-type-merging): Ignore.
24389 * invoke.texi (-flto-odr-type-merging): Remove.
24390 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24391 (can_be_vtable_hashed_p): Remove.
24392 (hash_odr_vtable): Remove.
24393 (odr_vtable_hasher::hash): Remove.
24394 (types_same_for_odr): Remove.
24395 (types_odr_comparable): Remove.
24396 (odr_vtable_hasher::equal): Remove.
24397 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24398 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24399 (get_odr_type): Do not use vtable hash.
24400 (dump_odr_type): Remove commented out code.
24401 (build_type_inheritance_graph): Do not allocate vtable hash.
24402 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24403 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24404 (odr_type_p): Likewise.
24405 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24406 test.
24407
24408 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24409
24410 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24411 immediately after same_types_for_tbaa_p returns -1 and continue
24412 looking for possible exact match; if matching types are arrays
24413 watch for partial overlaps.
24414 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24415 (indirect_refs_may_alias_p): Do type based disambiguation first;
24416 update comment.
24417
24418 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24419
24420 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24421
24422 2019-06-07 Martin Liska <mliska@suse.cz>
24423
24424 * doc/invoke.texi: Remove param.
24425 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24426 Remove.
24427 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24428 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24429 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24430 * profile.c (instrument_values): Remove
24431 HIST_TYPE_INDIR_CALL_TOPN.
24432 * tree-profile.c (init_ic_make_global_vars):
24433 Always build __gcov_indirect_call only.
24434 (gimple_init_gcov_profiler): Remove usage
24435 of PARAM_INDIR_CALL_TOPN_PROFILE.
24436 (gimple_gen_ic_profiler): Likewise.
24437 * value-prof.c (dump_histogram_value): Likewise.
24438 (stream_in_histogram_value): Likewise.
24439 (gimple_indirect_call_to_profile): Likewise.
24440 (gimple_find_values_to_profile): Likewise.
24441 * value-prof.h (enum hist_type): Likewise.
24442
24443 2019-06-07 Martin Liska <mliska@suse.cz>
24444
24445 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24446 function.
24447
24448 2019-06-07 Martin Liska <mliska@suse.cz>
24449
24450 PR tree-optimization/78902
24451 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24452 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24453 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24454 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24455 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24456 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24457 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24458 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24459 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24460 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24461 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24462 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24463 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24464 New.
24465 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24466 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24467 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24468 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24469 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24470 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24471 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24472 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24473 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24474 warn_unused_result attribute.
24475 (BUILT_IN_STRDUP): Likewise.
24476 (BUILT_IN_STRNDUP): Likewise.
24477 (BUILT_IN_ALLOCA): Likewise.
24478 (BUILT_IN_CALLOC): Likewise.
24479 (BUILT_IN_MALLOC): Likewise.
24480 (BUILT_IN_REALLOC): Likewise.
24481
24482 2019-06-06 Jim Wilson <jimw@sifive.com>
24483
24484 PR target/89955
24485 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24486 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24487 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24488
24489 2019-06-06 Martin Sebor <msebor@redhat.com>
24490
24491 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24492 (handle_builtin_malloc): Remove trailing spaces.
24493 (handle_builtin_memset): Same.
24494 (handle_builtin_memcmp): Same.
24495 (compute_string_length): Same.
24496 (determine_min_objsize): Same.
24497 (handle_builtin_string_cmp): Same.
24498 (handle_char_store): Same. Break up excessively long line.
24499
24500 2019-06-06 Martin Jambor <mjambor@suse.cz>
24501
24502 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24503 check.
24504
24505 2019-06-06 Martin Jambor <mjambor@suse.cz>
24506
24507 * tree-sra.c (struct access): New field grp_same_access_path.
24508 (dump_access): Dump it.
24509 (build_reconstructed_reference): New function.
24510 (build_ref_for_model): Use it if possible.
24511 (path_comparable_for_same_access): New function.
24512 (same_access_path_p): Likewise.
24513 (sort_and_splice_var_accesses): Set the new flag.
24514 (analyze_access_subtree): Likewise.
24515 (propagate_subaccesses_across_link): Propagate zero value of the new
24516 flag down the access tree.
24517
24518 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24519
24520 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24521 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24522 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24523 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24524 Add gfx906.
24525
24526 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24527
24528 PR tree-optimization/90332
24529 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24530 Handle VALS containing two vectors.
24531 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24532 to...
24533 (@aarch64_combinez<mode>): ... This.
24534 (*aarch64_combinez_be<mode>): Rename to...
24535 (@aarch64_combinez_be<mode>): ... This.
24536 (vec_init<mode><Vhalf>): New define_expand.
24537 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24538
24539 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24540
24541 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24542 library functions only when not optimizing for size.
24543 (ashlsi3): Likewise.
24544 (ashrhi3): Likewise.
24545 (ashrsi3): Likewise.
24546 (lshrhi3): Likewise.
24547 (lshrsi3): Likewise.
24548
24549 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24550
24551 PR rtl-optimization/88751
24552 * ira.c (ira): Use the number of the actually referenced registers
24553 when calculating the threshold.
24554
24555 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24556
24557 * configure: Regenerate.
24558
24559 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24560
24561 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24562 register if it is in memory, so the shift can be emulated with a rotate
24563 instruction.
24564 (ashrhi3): Likewise.
24565 (lshrhi3): Likewise.
24566
24567 2019-06-06 Martin Liska <mliska@suse.cz>
24568
24569 PR tree-optimization/87954
24570 * match.pd: Simplify mult where both arguments are 0 or 1.
24571
24572 2019-06-06 Richard Biener <rguenther@suse.de>
24573
24574 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24575 put equivalences on UNDEFINED ranges.
24576 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24577 Make sure to drop defs of stmts added during simplification
24578 to VARYING.
24579
24580 2019-06-06 Richard Biener <rguenther@suse.de>
24581
24582 * tree-ssa-structalias.c: Include tree-cfg.h.
24583 (make_heapvar): Do not make heap vars artificial.
24584 (find_func_aliases_for_builtin_call): Handle stack allocation
24585 functions.
24586 (find_func_aliases): Delay processing of simple enough returns
24587 in non-IPA mode.
24588 (set_uids_in_ptset): Adjust.
24589 (find_what_var_points_to): Likewise.
24590 (solve_constraints): Do not dump points-to sets here.
24591 (compute_points_to_sets): Post-process return statements,
24592 amending the escaped solution. Dump points-to sets afterwards.
24593 (ipa_pta_execute): Dump points-to sets.
24594
24595 2019-06-06 Martin Liska <mliska@suse.cz>
24596
24597 PR web/87933
24598 * doc/install.texi: Fix HTML headers and
24599 titles for 'Installing GCC' pages.
24600
24601 2019-06-06 Martin Liska <mliska@suse.cz>
24602
24603 * ipa-icf-gimple.h (dump_message_1): Remove.
24604 (dump_message): Likewise.
24605 (return_false_with_message_1): Print also file.
24606 (return_false_with_msg): Likewise.
24607 (return_with_result): Likewise.
24608 (return_with_debug): Likewise.
24609 * ipa-icf.c (sem_function::equals_private): Remove call
24610 to dump_message.
24611
24612 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24613
24614 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24615 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24616 memory operand for it.
24617 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24618
24619 2019-06-05 Martin Sebor <msebor@redhat.com>
24620
24621 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24622 Adjust quoting and hyphenation.
24623 * convert.c (convert_to_real_1): Same.
24624 * gcc.c (driver_wrong_lang_callback): Same.
24625 (driver::handle_unrecognized_options): Same.
24626 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24627 * opts-common.c (cmdline_handle_error): Same.
24628 (read_cmdline_option): Same.
24629 * opts-global.c (complain_wrong_lang): Same.
24630 (print_ignored_options): Same.
24631 (handle_common_deferred_options): Same.
24632 * pretty-print.h: Same.
24633 * print-rtl.c (debug_bb_n_slim): Same.
24634 * sched-rgn.c (make_pass_sched_fusion): Same.
24635 * tree-cfg.c (verify_gimple_assign_unary): Same.
24636 (verify_gimple_label): Same.
24637 * tree-ssa-operands.c (verify_ssa_operands): Same.
24638 * varasm.c (do_assemble_alias): Same.
24639 (assemble_alias): Same.
24640
24641 2019-06-05 Richard Henderson <rth@twiddle.net>
24642
24643 * config/alpha/alpha.c (direct_return): Move down after
24644 struct machine_function definition; use saved frame_size;
24645 return bool.
24646 (struct machine_function): Add sa_mask, sa_size, frame_size.
24647 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24648 (alpha_compute_frame_layout): ... new function.
24649 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24650 (alpha_initial_elimination_offset): Use saved sa_size.
24651 (alpha_vms_initial_elimination_offset): Likewise.
24652 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24653 (alpha_expand_prologue): Use saved frame data. Merge integer
24654 and fp register save loops.
24655 (alpha_expand_epilogue): Likewise.
24656 (alpha_start_function): Use saved frame data.
24657 * config/alpha/alpha-protos.h (direct_return): Update.
24658 (alpha_sa_size): Remove.
24659
24660 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24661
24662 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24663 multiplication by a power-of-two value.
24664 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24665 and turn the modulo operation into a masking operation.
24666
24667 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24668
24669 PR debug/90733
24670 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24671 with VOIDmode inner operands.
24672
24673 2019-06-05 Richard Biener <rguenther@suse.de>
24674
24675 PR middle-end/90726
24676 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24677 turn an expression graph into a tree.
24678
24679 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24680
24681 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24682 member.
24683 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24684 treat it like explicit monotonic schedule modifier.
24685 (expand_omp_for): Initialize has_lastprivate_conditional.
24686 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24687 schedule modifier.
24688
24689 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24690 references, lookup in in hash map MEM_REF operand instead of the
24691 MEM_REF itself.
24692 (lower_omp_1): When looking for lastprivate conditional assignments,
24693 handle MEM_REFs with REFERENCE_TYPE operands.
24694
24695 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24696 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24697 and references a VLA. Handle references to non-VLAs if is_simd
24698 all privatization clauses like reductions.
24699 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24700 If omp_is_reference, use always omp simd arrays and set
24701 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24702 fails, emit reference initialization.
24703
24704 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24705
24706 PR target/89803
24707 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24708 _mm_mask_fpclass_sd_mask): New intrinsics.
24709 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24710 * config/i386/i386-builtin.def
24711 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24712 New builtins.
24713 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24714 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24715 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24716 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24717 case QI_FTYPE_V2SF_INT): Ditto.
24718 * config/i386/sse.md
24719 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24720 Extended to insnstructions with mask operands.
24721
24722 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24723
24724 * config/rs6000/constraints.md (define_register_constraint "wp"):
24725 Delete.
24726 (define_register_constraint "wq"): Delete.
24727 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24728 (rs6000_init_hard_regno_mode_ok): Adjust.
24729 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24730 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24731 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24732 (define_mode_attr VSa): Delete.
24733 (define_mode_attr VSisa): New.
24734 (rest of file): Adjust.
24735 * doc/md.texi (Machine Constraints): Adjust.
24736
24737 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24738
24739 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24740 (define_attr "enabled"): Handle those new isa values.
24741
24742 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24743
24744 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24745 (define_mode_attr VSr5): Delete.
24746 (define_mode_attr VStype_sqrt): Delete.
24747 (define_mode_iterator VSX_SPDP): Delete.
24748 (define_mode_attr VS_spdp_res): Delete.
24749 (define_mode_attr VS_spdp_insn): Delete.
24750 (define_mode_attr VS_spdp_type): Delete.
24751 (*vsx_sqrt<mode>2): Adjust.
24752 (vsx_<VS_spdp_insn>): Delete, split to...
24753 (vsx_xscvdpsp): ... this. New. And...
24754 (vsx_xvcvspdp): ... this. New. And...
24755 (vsx_xvcvdpsp): ... this. New.
24756
24757 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24758
24759 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24760 and V2DF.
24761 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24762 (rest of file): Adjust.
24763
24764 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24765
24766 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24767 (vsx_extract_<mode>_var): Ditto.
24768
24769 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24770
24771 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24772 with just "wa".
24773
24774 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24775
24776 * config/rs6000/constraints.md (define_register_constraint "ww"):
24777 Delete.
24778 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24779 (rs6000_init_hard_regno_mode_ok): Adjust.
24780 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24781 RS6000_CONSTRAINT_ww.
24782 * config/rs6000/rs6000.md: Adjust.
24783 * config/rs6000/vsx.md: Adjust.
24784 * doc/md.texi (Machine Constraints): Adjust.
24785
24786 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24787
24788 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24789 (define_mode_attr sd): New.
24790 (define_mode_attr s): New.
24791 (define_mode_attr Ftrad): Delete.
24792 (define_mode_attr Fvsx): Delete.
24793 (define_mode_attr Fs): Delete.
24794 (rest of file): Use the new mode attributes.
24795 * config.rs6000/vsx.md: Use the new mode attributes.
24796
24797 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24798
24799 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24800 with just "wa".
24801
24802 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24803
24804 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24805 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24806 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24807
24808 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24809
24810 PR target/78263
24811 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24812 C++ with strict ANSI requirements.
24813
24814 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24815
24816 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24817 computations when step is 1.
24818
24819 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24820
24821 * config/rs6000/constraints.md (define_register_constraint "wf"):
24822 Delete.
24823 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24824 (rs6000_init_hard_regno_mode_ok): Adjust.
24825 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24826 RS6000_CONSTRAINT_wf.
24827 * config/rs6000/rs6000.md: Adjust.
24828 * config/rs6000/vsx.md: Adjust.
24829 * doc/md.texi (Machine Constraints): Adjust.
24830
24831 2019-06-04 Andrew Pinski <apinski@marvell.com>
24832
24833 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24834 Fix ILP32 value.
24835
24836 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24837
24838 * config/rs6000/constraints.md (define_register_constraint "wd"):
24839 Delete.
24840 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24841 (rs6000_init_hard_regno_mode_ok): Adjust.
24842 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24843 RS6000_CONSTRAINT_wd.
24844 * config/rs6000/rs6000.md: Adjust.
24845 * config/rs6000/vsx.md: Adjust.
24846 * doc/md.texi (Machine Constraints): Adjust.
24847
24848 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24849
24850 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24851 (rest of file): Adjust.
24852
24853 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24854
24855 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24856 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24857 (vsx_splat_<mode>_reg): Adjust.
24858
24859 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24860
24861 * config/rs6000/constraints.md (define_register_constraint "ws"):
24862 Delete.
24863 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24864 (rs6000_init_hard_regno_mode_ok): Adjust.
24865 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24866 RS6000_CONSTRAINT_ws.
24867 * config/rs6000/rs6000.md: Adjust.
24868 * config/rs6000/vsx.md: Adjust.
24869 * doc/md.texi (Machine Constraints): Adjust.
24870
24871 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24872
24873 * config/rs6000/constraints.md (define_register_constraint "wv"):
24874 Delete.
24875 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24876 (rs6000_init_hard_regno_mode_ok): Adjust.
24877 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24878 RS6000_CONSTRAINT_wv.
24879 * config/rs6000/rs6000.md: Adjust.
24880 * config/rs6000/vsx.md: Adjust.
24881 * doc/md.texi (Machine Constraints): Adjust.
24882
24883 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24884
24885 * config/rs6000/constraints.md (define_register_constraint "wi"):
24886 Delete.
24887 (define_register_constraint "wt"): 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_wi and RS6000_CONSTRAINT_wt.
24892 * config/rs6000/rs6000.md: Adjust.
24893 * config/rs6000/vsx.md: Adjust.
24894 * doc/md.texi (Machine Constraints): Adjust.
24895
24896 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24897
24898 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24899 const.
24900 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24901 default_elf_asm_output_external.
24902
24903 2019-06-04 Martin Liska <mliska@suse.cz>
24904
24905 * ipa-icf.c (INCLUDE_LIST): Remove.
24906 (sem_item_optimizer::execute): Remove call to init_wpa.
24907 * ipa-icf.h (init_wpa): Remove.
24908
24909 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24910
24911 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24912 conditional on combined for simd.
24913 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24914 member.
24915 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24916 constructs, don't remove lastprivate_conditional_map, but instead set
24917 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24918 to parent construct temporaries.
24919 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24920 like !ctx->lastprivate_conditional_map.
24921 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24922 use up->outer context instead of up.
24923 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24924 gimple_omp_for_combined_p.
24925 (expand_omp_for_static_nochunk): Likewise.
24926 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24927 probably moved over into expand_omp_for_generic rather than being copied
24928 there.
24929
24930 2019-06-04 Martin Liska <mliska@suse.cz>
24931
24932 * value-prof.c (dump_histogram_value): Fix typo.
24933 (gimple_mod_subtract_transform): Likewise.
24934
24935 2019-06-04 Richard Biener <rguenther@suse.de>
24936
24937 PR middle-end/90726
24938 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24939 (tree_contains_chrecs): Likewise.
24940 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24941 exponential behaivor from ...
24942 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24943 ... here.
24944 (expression_expensive_p): Avoid exponential behavior and compute
24945 expanded size, rejecting any expansion.
24946 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24947 (idx_contains_abnormal_ssa_name_p): Likewise.
24948 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24949 (contains_abnormal_ssa_name_p): Simplify and use
24950 walk_tree_without_duplicates.
24951
24952 2019-06-04 Richard Biener <rguenther@suse.de>
24953
24954 PR tree-optimization/90738
24955 Revert
24956 2019-06-03 Richard Biener <rguenther@suse.de>
24957
24958 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24959 full reference tree and record in ref->ref.
24960 (vn_reference_lookup_3): Pass in original ref to
24961 ao_ref_init_from_vn_reference.
24962 (vn_reference_lookup): Likewise.
24963 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24964 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24965 Handle non-decl bases in the original reference.
24966
24967 2019-06-04 Martin Liska <mliska@suse.cz>
24968
24969 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24970 number of references.
24971 (sem_item_optimizer::do_congruence_step):
24972 (sem_item_optimizer::worklist_push): Dump how references
24973 a class has.
24974 (sem_item_optimizer::worklist_pop): Use heap.
24975 (sem_item_optimizer::process_cong_reduction): Likewise.
24976 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24977
24978 2019-06-04 Martin Liska <mliska@suse.cz>
24979
24980 * ipa-icf.h (struct sem_usage_pair_hash): New.
24981 (sem_usage_pair_hash::hash): Likewise.
24982 (sem_usage_pair_hash::equal): Likewise.
24983 (struct sem_usage_hash): Likewise.
24984 * ipa-icf.c (sem_item::sem_item): Initialize
24985 referenced_by_count.
24986 (sem_item::add_reference): Register a reference
24987 in ref_map and not in target->usages.
24988 (sem_item::setup): Remove initialization of
24989 dead vectors.
24990 (sem_item::~sem_item): Remove usage of dead vectors.
24991 (sem_item::dump): Remove dump of references.
24992 (sem_item_optimizer::sem_item_optimizer): Initialize
24993 m_references.
24994 (sem_item_optimizer::read_section): Remove useless
24995 dump.
24996 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24997 (sem_item_optimizer::build_graph): Pass m_references
24998 to ::add_reference.
24999 (sem_item_optimizer::verify_classes): Remove usage of dead
25000 vectors.
25001 (sem_item_optimizer::traverse_congruence_split): Return true
25002 when a class is split.
25003 (sem_item_optimizer::do_congruence_step_for_index): Use
25004 hash_map for look up of (sem_item *, index). That brings
25005 significant speed up.
25006 (sem_item_optimizer::do_congruence_step): Return true
25007 when a split is done.
25008 (congruence_class::is_class_used): Use referenced_by_count.
25009
25010 2019-06-04 Alan Modra <amodra@gmail.com>
25011
25012 PR target/90689
25013 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25014 error.
25015
25016 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25017
25018 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25019 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25020 (rs6000_secondary_reload_simple_move): Adjust.
25021 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25022 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25023 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25024 comment.
25025 (power6x): Adjust.
25026 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25027 (floatunssi<mode>2_lfiwzx): Adjust.
25028 (fix_trunc<mode>si2_stfiwx): Adjust.
25029 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25030 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25031 (mfpgpr): Mark as deprecated.
25032 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25033 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25034 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25035
25036 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25037
25038 * config/rs6000/constraints.md (define_register_constraint "wg"):
25039 Delete.
25040 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25041 RS6000_CONSTRAINT_wg.
25042 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25043 (rs6000_init_hard_regno_mode_ok): Adjust.
25044 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25045 Delete "wg" alternatives.
25046 * doc/md.texi (Machine Constraints): Adjust.
25047
25048 2019-06-03 Alan Modra <amodra@gmail.com>
25049
25050 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25051 (get_uncond_jump_length): Assert length less than INT_MAX and
25052 non-negative.
25053
25054 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25055
25056 PR middle-end/64242
25057 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25058 block.
25059 (expand_builtin_nonlocal_goto): Likewise.
25060
25061 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25062
25063 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25064 (aarch64_asm_output_external): Declare.
25065 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25066 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25067 (aarch64_asm_output_alias): New.
25068 (aarch64_asm_output_external): New.
25069 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25070 (ASM_OUTPUT_EXTERNAL): Define.
25071
25072 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25073 * tree-vrp.h (value_range_base::nonzero_p): New.
25074 (value_range_base::set_nonnull): Rename to...
25075 (value_range_base::set_nonzero): ...this.
25076 (value_range_base::set_null): Rename to...
25077 (value_range_base::set_zero): ...this.
25078 (value_range::set_nonnull): Remove.
25079 (value_range::set_null): Remove.
25080 * tree-vrp.c (range_is_null): Remove.
25081 (range_is_nonnull): Remove.
25082 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25083 instead of range_is_*null.
25084 (extract_range_from_unary_expr): Same.
25085 (value_range_base::set_nonnull): Rename to...
25086 (value_range_base::set_nonzero): ...this.
25087 (value_range::set_nonnull): Remove.
25088 (value_range_base::set_null): Rename to...
25089 (value_range_base::set_zero): ...this.
25090 (value_range::set_null): Remove.
25091 (extract_range_from_binary_expr): Rename set_*null uses to
25092 set_*zero.
25093 (extract_range_from_unary_expr): Same.
25094 (union_helper): Same.
25095 * vr-values.c (get_value_range): Use set_*zero instead of
25096 set_*null.
25097 (vr_values::extract_range_from_binary_expr): Same.
25098 (vr_values::extract_range_basic): Same.
25099
25100 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25101
25102 PR driver/90684
25103 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25104
25105 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25106
25107 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25108 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25109 Rename to...
25110 (aarch64_<su>abd<mode>_3): ... This.
25111 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25112
25113 2019-06-03 Richard Biener <rguenther@suse.de>
25114
25115 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25116 full reference tree and record in ref->ref.
25117 (vn_reference_lookup_3): Pass in original ref to
25118 ao_ref_init_from_vn_reference.
25119 (vn_reference_lookup): Likewise.
25120 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25121 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25122 Handle non-decl bases in the original reference.
25123
25124 2019-06-03 Martin Liska <mliska@suse.cz>
25125
25126 * doc/generic.texi: Remove Java Trees.
25127
25128 2019-06-03 Martin Liska <mliska@suse.cz>
25129
25130 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25131 returns 0 when operands are equal.
25132
25133 2019-06-03 Richard Biener <rguenther@suse.de>
25134
25135 PR tree-optimization/90716
25136 * tree-loop-distribution.c (destroy_loop): Process blocks in
25137 correct order.
25138
25139 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25140
25141 PR target/88837
25142 * vector-builder.h (vector_builder::count_dups): New method.
25143 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25144 Declare prototype.
25145 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25146 (vec_init<mode><Vel>): New pattern.
25147 * config/aarch64/aarch64.c (emit_insr): New function.
25148 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25149 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25150 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25151 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25152
25153 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25154
25155 PR tree-optimization/90681
25156 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25157 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25158 special case for SLP, but fail on non-groupped loads.
25159
25160 2019-06-03 Martin Liska <mliska@suse.cz>
25161
25162 * cfg.c (debug): Use TDF_DETAILS for debug and
25163 print edge info only once.
25164
25165 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25166
25167 PR fortran/90539
25168 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25169
25170 2019-06-01 Martin Sebor <msebor@redhat.com>
25171
25172 PR middle-end/90694
25173 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25174
25175 2019-05-31 Jan Hubicka <jh@suse.cz>
25176
25177 * alias.c: Include ipa-utils.h.
25178 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25179 * ipa-devirt.c (prevailing_odr_type): New.
25180 * ipa-utils.h (previaling_odr_type): Declare.
25181
25182 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25183 Hongtao Liu <hongtao.liu@intel.com>
25184
25185 PR target/89355
25186 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25187 NOTE_INSN_DELETED_LABEL check.
25188
25189 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25190 Robert Suchanek <robert.suchanek@mips.com>
25191
25192 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25193 and 3rd operands of the fmadd/fmsub/maddv builtin.
25194
25195 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25196
25197 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25198 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25199 on OMP_SIMD if not nested inside of worksharing loop that also has
25200 lastprivate conditional clause for the same decl.
25201 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25202 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25203 on simd.
25204 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25205 on simd construct.
25206 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25207 on simd construct.
25208 (lower_lastprivate_clauses): Likewise.
25209 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25210 calling lower_rec_input_clauses.
25211 (lower_omp_for): Likewise.
25212 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25213 clause on simd construct.
25214 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25215 OMP_CLAUSE__CONDTEMP_ clause is present.
25216
25217 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25218 ivar and lvar.
25219
25220 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25221
25222 PR c/43673
25223 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25224 TEX_D32, TEX_D64 or TEX_D128.
25225
25226 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25227
25228 * match.pd (~(vec?cst1:cst2)): New transformation.
25229
25230 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25231
25232 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25233 ((size_t)(A /[ex] B) CMP C): New transformation.
25234
25235 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25236
25237 * doc/md.texi: Document define_insn_and_rewrite.
25238 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25239 * gensupport.c (queue_elem): Update comment.
25240 (replace_operands_with_dups): New function.
25241 (gen_rewrite_sequence): Likewise.
25242 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25243 * read-rtl.c (apply_subst_iterator): Likewise.
25244 (add_condition_to_rtx, named_rtx_p): Likewise.
25245 (rtx_reader::read_rtx_operand): Likewise.
25246 * config/aarch64/aarch64-sve.md
25247 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25248 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25249 define_insn_and_rewrite.
25250 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25251 Remove separate define_split.
25252
25253 2019-05-31 Jan Hubicka <jh@suse.cz>
25254
25255 * tree-ssa-alias.c (type_has_components_p): New function.
25256 (aliasing_component_refs_p): Use it.
25257
25258 2019-05-31 Martin Liska <mliska@suse.cz>
25259
25260 * gdbhooks.py: Add const_tree to TreePrinter.
25261
25262 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25263
25264 PR debug/86964
25265 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25266 * doc/invoke.texi (Debugging Options): Document new default of
25267 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25268
25269 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25270
25271 PR tree-optimization/90671
25272 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25273 template_block used to be empty on the first call, don't use
25274 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25275 seq with bb_seq and set it with set_bb_seq.
25276
25277 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25278
25279 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25280
25281 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25282 Michael Meissner <meissner@linux.ibm.com>
25283
25284 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25285 (prefixed_mem_operand): Likewise.
25286 (non_prefixed_mem_operand): Likewise.
25287 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25288 prototype.
25289 * config/rs6000/rs6000.c (print_operand_address): Handle
25290 PC-relative addresses.
25291 (mode_supports_prefixed_address_p): New function.
25292 (rs6000_prefixed_address): New function.
25293 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25294 (SYMBOL_REF_PCREL_P): Likewise.
25295
25296 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25297
25298 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25299 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25300 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25301 is nested inside of parallel region, add _condtemp_ clause to both.
25302 * tree-nested.c (convert_nonlocal_omp_clauses,
25303 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25304 assertion failure.
25305 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25306 member.
25307 * omp-general.c (omp_extract_for_data): Compute it.
25308 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25309 (lower_rec_input_clauses): Likewise.
25310 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25311 clause is already present, just add one further one after it.
25312 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25313 (lower_send_shared_vars): Clear _condtemp_ vars.
25314 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25315 or section or taskgroup.
25316 * omp-expand.c (determine_parallel_type): Disallow combining only if
25317 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25318 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25319 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25320 expand_omp_for_static_chunk, expand_omp_for): Use
25321 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25322 determine if a special set of API routines are needed and if condtemp
25323 needs to be initialized, while always initialize cond_var if
25324 fd->lastprivate_conditional is non-zero.
25325
25326 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25327 Michael Meissner <meissner@linux.ibm.com>
25328
25329 * config/rs6000/constraints.md (eI): New constraint.
25330 * config/rs6000/predicates.md (cint34_operand): New predicate.
25331 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25332 (SIGNED_34BIT_OFFSET_P): Likewise.
25333 * doc/md.texi (eI): Document constraint.
25334
25335 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25336
25337 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25338
25339 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25340 Michael Meissner <meissner@linux.ibm.com>
25341
25342 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25343 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25344 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25345 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25346 (OTHER_FUTURE_MASKS): Likewise.
25347 (POWERPC_MASKS): Likewise.
25348 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25349 specified without -mprefixed-addr or -mcpu=future. Error if
25350 -mprefixed-addr is specified without -mcpu=future.
25351 (rs6000_opt_masks): Add entry for prefixed-addr.
25352 * rs6000.opt (mprefixed-addr): New option.
25353
25354 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25355
25356 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25357 cfun->is_thunk check.
25358
25359 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25360
25361 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25362 to length.
25363
25364 2019-05-30 Martin Liska <mliska@suse.cz>
25365
25366 * gdbinit.in: Fix 'ptc' command. Add trt
25367 that prints TREE_TYPE($).
25368
25369 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25370 Alan Modra <amodra@gmail.com>
25371
25372 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25373 calls here...
25374 (rs6000_indirect_call_template_1): ...and here.
25375 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25376 plt16_ha, plt16_lo, mtctr indirect calls. Use
25377 rs6000_pltseq_enum.
25378 (rs6000_decl_ok_for_sibcall): New function.
25379 (rs6000_function_ok_for_sibcall): Refactor.
25380 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25381 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25382 when pcrel. Reorganize.
25383 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25384 * rs6000.h (rs6000_pltseq_enum): New enum.
25385 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25386 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25387 (*pltseq_plt16_ha): Likewise.
25388 (*pltseq_plt16_lo): Likewise.
25389 (*pltseq_mtctr): Likewise.
25390 (*pltseq_plt_pcrel): New insn.
25391 (*call_local_aix): Handle @notoc calls.
25392 (*call_value_local_aix): Likewise.
25393 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25394 (*call_value_nonlocal_aix): Likewise.
25395 (*call_indirect_pcrel): New insn.
25396 (*call_value_indirect_pcrel): Likewise.
25397
25398 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25399
25400 * config/i386/sse.md (*save_multiple<mode>): Rename from
25401 save_multiple<mode>.
25402 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25403 (*restore_multiple_and_return<mode>): Rename from
25404 restore_multiple_and_return<mode>.
25405 (*restore_multiple_leave_return<mode>): Rename from
25406 restore_multiple_leave_return<mode>.
25407
25408 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25409
25410 * config.gcc (rx-*-linux*): New target.
25411 * config/rx/elf.opt: New file.
25412 * config/rx/linux.h: Likewise.
25413 * config/rx/t-linux: Likewise.
25414 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25415 make it zero.
25416 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25417 (ASM_APP_OFF): Likewise.
25418 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25419 moved elsewhere.
25420
25421 2019-05-29 Jan Hubicka <jh@suse.cz>
25422
25423 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25424 variants are pointer equivalent.
25425
25426 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25427
25428 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25429 * config/aarch64/aarch64-sve2.md: New file.
25430 (<u>avg<mode>3_floor): New pattern.
25431 (<u>avg<mode>3_ceil): Likewise.
25432 (*<sur>h<addsub><mode>): Likewise.
25433 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25434 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25435
25436 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25437
25438 PR bootstrap/90543
25439 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25440 for var_opt_string printing. In cl_optimization_print_diff, print
25441 (null) instead of invoking undefined behavior if one of the
25442 var_opt_string pointers is NULL and use && instead of first || in the
25443 guarding condition. For var_target_other options, handle const char *
25444 target variables similarly to const char * optimize node variables.
25445
25446 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25447
25448 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25449 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25450 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25451 Add autib1716 and pacib1716 initialisation.
25452 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25453 for autib1716 and pacib1716.
25454 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25455 aarch64_post_cfi_startproc): Define.
25456 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25457 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25458 aarch64_handle_pac_ret_protection): Set default sign key to A.
25459 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25460 aarch64_expand_prologue): Add check for b-key.
25461 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25462 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25463 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25464 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25465 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25466 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25467 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25468 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25469 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25470 pauth_hint_num_a with pauth_hint_num.
25471 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25472 pauth_hint_num_a with pauth_hint_num.
25473 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25474 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25475 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25476 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25477 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25478 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25479 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25480 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25481 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25482 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25483 UNSPEC_AUTIA1716 respectively.
25484 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25485 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25486 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25487 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25488 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25489 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25490
25491 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25492
25493 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25494 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25495 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25496 explicit clause on combined parallel into implicit shared clause.
25497 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25498 and firstprivate if the decl has one too from combined parallel to
25499 the worksharing construct.
25500
25501 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25502 Michael Meissner <meissner@linux.ibm.com>
25503
25504 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25505
25506 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25507
25508 * rtl.h (LABEL_REF_P): New #define.
25509
25510 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25511
25512 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25513
25514 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25515
25516 * internal-fn.c: Marked mask_load_direct as vectorizable.
25517 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25518 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25519 combined even if masks different with allow_slp_p param.
25520 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25521 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25522 dissolve SLP-only vectorizable groups when SLP has been discarded.
25523 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25524 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25525 masks.
25526 (vect_build_slp_tree_1): Fixed comment typo.
25527 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25528 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25529 loads for SLP only.
25530 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25531 vectorizable.
25532 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25533
25534 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25535
25536 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25537 Remove obsolete use_thunk reference.
25538 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25539 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25540 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25541 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25542 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25543 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25544 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25545 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25546 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25547
25548 2019-05-28 Nathan Sidwell <nathan@acm.org>
25549
25550 * tree.h (IDENTIFIER_ANON_P): New.
25551 (anon_aggrname_format, anon_aggname_p): Don't declare.
25552 (make_anon_name): Declare.
25553 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25554 (hash_tree): Likewise.
25555 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25556 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25557 (anon_cnt, make_anon_name): New.
25558
25559 2019-05-28 Martin Liska <mliska@suse.cz>
25560
25561 PR other/90315
25562 * opts-global.c (decode_options): Print help for all
25563 help_option_arguments.
25564 * opts.c (print_help): Add new argument.
25565 (common_handle_option): Remember all values into
25566 help_option_arguments.
25567 * opts.h (print_help): Add new argument.
25568
25569 2019-05-28 Martin Liska <mliska@suse.cz>
25570
25571 PR ipa/90555
25572 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25573 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25574 (func_checker::compare_bb): Call compare_loops.
25575
25576 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25577
25578 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25579 on sections construct.
25580 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25581 construct.
25582 (lower_omp_sections): Handle lastprivate conditional.
25583 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25584 lastprivate_conditional_map.
25585 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25586
25587 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25588 critical, taskgroup and section regions when looking for a region
25589 with non-NULL lastprivate_conditional_map.
25590
25591 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25592
25593 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25594 (*ix86_gen_sub3): Ditto.
25595 (*ix86_gen_sub3_carry): Ditto.
25596 (*ix86_gen_one_cmpl2): Ditto.
25597 (*ix86_gen_andsp): Ditto.
25598 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25599 (gen_and2_insn): New static function.
25600 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25601 Use gen_add3_insn instead of ix86_gen_add3.
25602 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25603 instead of ix86_gen_add3.
25604 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25605 Use gen_sub3_insn instead of ix86_gen_sub3.
25606 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25607 instead of ix86_gen_add3.
25608 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25609 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25610 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25611 * config/i386/i386-options.c (ix86_option_override_internal):
25612 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25613 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25614
25615 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25616
25617 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25618 and DW_OP_GNU_const_index opcodes.
25619
25620 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25621
25622 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25623
25624 2019-05-27 Richard Biener <rguenther@suse.de>
25625
25626 PR tree-optimization/90637
25627 * tree-ssa-sink.c (statement_sink_location): Honor the
25628 computed sink location for single-uses.
25629
25630 2019-05-27 Richard Biener <rguenther@suse.de>
25631
25632 PR middle-end/90610
25633 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25634 a bit-insert.
25635
25636 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25637
25638 * config/i386/i386.md (@sub<mode>3_carry): Rename
25639 from sub<mode>3_carry.
25640 (@leave_<mode>): New expander.
25641 (*leave): Rename from leave.
25642 (*leave_rex64): Rename from leave_rex64.
25643 (@monitorx_<mode>): Rename from monitorx_<mode>.
25644 (@clzero_<mode>): Rename from clzero_<mode>.
25645 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25646 from sse3_monitor_<mode>.
25647 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25648 (*ix86_gen_leave): Ditto.
25649 (*ix86_gen_monitor): Ditto.
25650 (*ix86_gen_monitorx): Ditto.
25651 (*ix86_gen_clzero): Ditto.
25652 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25653 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25654 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25655 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25656 Use gen_sse3_monitor instead of ix86_gen_monitor.
25657 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25658 instead of ix86_gen_monitorx.
25659 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25660 instead of ix86_gen_clzero.
25661 * config/i386/i386-options.c (ix86_option_override_internal):
25662 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25663 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25664
25665 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25666
25667 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25668 Rename from tls_global_dynamic_64_<mode>.
25669 (@tls_local_dynamic_base_64_<mode>): Rename from
25670 tls_local_dynamic_base_64_<mode>.
25671 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25672 Remove indirect function.
25673 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25674 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25675 instead of ix86_gen_tls_global_dynamic_64.
25676 Use gen_tls_local_dynamic_base_64 instead of
25677 ix86_gen_tls_local_dynamic_base_64.
25678 * config/i386/i386-options.c (ix86_option_override_internal):
25679 Do not initialize ix86_gen_tls_global_dynamic_64 and
25680 ix86_gen_tls_local_dynamic_base_64.
25681
25682 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25683
25684 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25685 Rename from pro_epilogue_adjust_stack_<mode>_add.
25686 (@pro_epilogue_adjust_stack_sub_<mode>)
25687 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25688 (@allocate_stack_worker_probe_<mode>):
25689 Rename from allocate_stack_worker_probe_<mode>.
25690 (allocate_stack): Use gen_allocate_stack_worker_probe.
25691 (probe_stack): Use gen_probe_stack_1.
25692 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25693 (@adjust_stack_and_probe_<mode>): Rename from
25694 adjust_stack_and_probe<mode>.
25695 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25696 (stack_protect_set): Use gen_stack_protect_set_1.
25697 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25698 (stack_protect_test): Use gen_stack_protect_test_1.
25699 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25700 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25701 Remove indirect function.
25702 (*ix86_gen_adjust_stack_and_probe): Ditto.
25703 (*ix86_gen_probe_stack_range): Ditto.
25704 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25705 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25706 (ix86_adjust_stack_and_probe_stack_clash): Use
25707 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25708 (ix86_adjust_stack_and_probe): Ditto.
25709 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25710 of ix86_gen_probe_stack_range.
25711 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25712 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25713 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25714 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25715 CODE_FOR_stack_protect_test_{si,di}.
25716 * config/i386/i386-options.c (ix86_option_override_internal):
25717 Do not initialize ix86_gen_allocate_stack_worker,
25718 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25719
25720 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25721
25722 * doc/invoke.texi (Link Options): Many editorial changes around
25723 -flinker-output.
25724
25725 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25726
25727 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25728 pre-Solaris 11 referene and most Studio compiler details.
25729
25730 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25731
25732 PR target/90530
25733 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25734 DImode to SImode in floating-point registers on 64-bit target.
25735 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25736 register_operand in xmpyu patterns.
25737
25738 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25739
25740 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25741 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25742 OMP_CLAUSE__REDUCTEMP_.
25743 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25744 OMP_CLAUSE__CONDTEMP_.
25745 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25746 * tree-pretty-print.c (dump_omp_clause): Likewise.
25747 * tree-nested.c (convert_nonlocal_omp_clauses,
25748 convert_local_omp_clauses): Likewise.
25749 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25750 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25751 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25752 on OMP_FOR.
25753 (gimplify_omp_for): Warn and disable conditional modifier from
25754 lastprivate on loop iterators.
25755 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25756 member.
25757 * omp-general.c (omp_extract_for_data): Initialize it.
25758 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25759 member.
25760 (delete_omp_context): Delete it.
25761 (lower_lastprivate_conditional_clauses): New function.
25762 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25763 handle lastprivate conditional clauses.
25764 (lower_reduction_clauses): Add CLIST argument, emit it into
25765 the critical section if any.
25766 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25767 lower_reduction_clauses callers.
25768 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25769 to lower_lastprivate_clauses.
25770 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25771 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25772 clist into a critical section if not emitted there already by
25773 lower_reduction_clauses.
25774 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25775 callers.
25776 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25777 conditional variables.
25778 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25779 clause is present.
25780 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25781 expand_omp_for_static_chunk): Handle lastprivate conditional.
25782 (expand_omp_for): Handle fd.lastprivate_conditional like
25783 fd.have_reductemp.
25784
25785 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25786
25787 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25788 kernel does not exit cleanly.
25789 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25790
25791 2019-05-24 Jason Merrill <jason@redhat.com>
25792
25793 Revert:
25794 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25795
25796 2019-05-24 Richard Biener <rguenther@suse.de>
25797
25798 PR testsuite/90607
25799 * tree-loop-distribution.c (struct partition): Add location
25800 member.
25801 (partition_alloc): Initialize all fields.
25802 (generate_memset_builtin): Use the location recorded in the
25803 partition for the generated call.
25804 (generate_memcpy_builtin): Likewise.
25805 (classify_partition): Record the location of a single store
25806 as location for the partition.
25807
25808 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25809
25810 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25811 for lo-part.
25812
25813 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25814
25815 PR target/90588
25816 * common/config/aarch64/aarch64-common.c
25817 (aarch64_rewrite_selected_cpu): Change local temporary variable
25818 type from unsigned long to uint64_t.
25819 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25820 aarch64_get_extension_string_for_isa_flags): Change declaration to
25821 match new definition by replacing unsigned long with uint64_t.
25822
25823 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25824
25825 PR target/90568
25826 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25827 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25828 Handle stack_protect_test_<mode> codegen similarly to corresponding
25829 sub instruction.
25830
25831 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25832
25833 * config/i386/darwin.h: Reject -mfentry*.
25834 * doc/sourcebuild.texi: Document mfentry target support.
25835
25836 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25837
25838 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25839 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25840 false for PC-relative functions.
25841 (rs6000_output_function_prologue): Change called function name to
25842 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25843 name,1" for PC-relative functions.
25844 (rs6000_elf_declare_function_name): Change called function name to
25845 rs6000_global_entry_point_prologue_needed_p.
25846
25847 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25848
25849 PR target/90552
25850 * config/i386/i386.c (gen_rtx_cost):
25851 Use ix86_tune_cost instead of ix86_cost.
25852
25853 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25854 Michael Meissner <meissner@linux.ibm.com>
25855 Segher Boessenkool <segher@kernel.crashing.org>
25856
25857 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25858 OPTION_MASK_PCREL.
25859 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25860 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25861 (rs6000_fndecl_pcrel_p): Likewise.
25862 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25863 error if -mpcrel is requested without -mcpu=future.
25864 (rs6000_opt_masks): Add entry for pcrel.
25865 (rs6000_fndecl_pcrel_p): New function.
25866 (rs6000_pcrel_p): Likewise.
25867 * config/rs6000/rs6000.opt (mpcrel): New option.
25868 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25869
25870 2019-05-23 Jan Hubicka <jh@suse.cz>
25871 Martin Liska <mliska@suse.cz>
25872
25873 PR tree-optimization/90576
25874 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25875 poly_int_tree_p.
25876 (aliasing_component_refs_p): Fix three way size compare conditional;
25877 give up earlier in case we can not decide on equivalence.
25878
25879 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25880 Michael Meissner <meissner@linux.ibm.com>
25881 Segher Boessenkool <segher@kernel.crashing.org>
25882
25883 * config.gcc: Add future cpu.
25884 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25885 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25886 #define.
25887 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25888 (RS6000_CPU): New instantiation for future cpu.
25889 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25890 PROCESSOR_FUTURE.
25891 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25892 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25893 * config/rs6000/rs6000-tables.opt: Regenerate.
25894 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25895 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25896 (rs6000_machine_from_flags): Handle future cpu.
25897 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25898 PROCESSOR_POWER9 for now.
25899 (rs6000_adjust_cost): Likewise.
25900 (rs6000_issue_rate): Likewise.
25901 (rs6000_register_move_cost): Likewise.
25902 (rs6000_opt_masks): Add entry for future.
25903 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25904 (MASK_FUTURE): New #define.
25905 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25906 * config/rs6000/rs6000.opt (mfuture): New target option.
25907 * doc/invoke.texi (mcpu): Add future cpu.
25908
25909 2019-05-23 Martin Liska <mliska@suse.cz>
25910
25911 PR c++/90587
25912 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25913 operation points to a temporary (pointed via tree_to_wide_ref)
25914 that is out of scope after the &.
25915
25916 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25917
25918 PR c++/90592
25919 * doc/extend.texi (Function Names): Add missing word.
25920
25921 2019-05-23 Richard Biener <rguenther@suse.de>
25922
25923 PR tree-optimization/88440
25924 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25925 at -O[2s]+.
25926 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25927 generated call.
25928 (generate_memcpy_builtin): Likewise.
25929 (distribute_loop): Pass in whether to only distribute patterns.
25930 (prepare_perfect_loop_nest): Also allow size optimization.
25931 (pass_loop_distribution::execute): When optimizing a loop
25932 nest for size allow pattern replacement.
25933
25934 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25935
25936 PR target/90568
25937 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25938 of xor.
25939
25940 2019-05-23 Martin Liska <mliska@suse.cz>
25941
25942 PR sanitizer/90570
25943 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25944 expression similarly to gimplify_decl_expr.
25945
25946 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25947
25948 * cse.c (cse_dump_path): s/dump_file/f.
25949
25950 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25951
25952 PR c++/90462
25953 * diagnostic-format-json.cc: Include "selftest.h".
25954 (json_from_expanded_location): Only add "file" key for non-NULL
25955 file strings.
25956 (json_from_location_range): Don't add "start" and "finish"
25957 children if they are UNKNOWN_LOCATION.
25958 (selftest::test_unknown_location): New selftest.
25959 (selftest::test_bad_endpoints): New selftest.
25960 (selftest::diagnostic_format_json_cc_tests): New function.
25961 * json.cc (json::object::get): New function.
25962 (selftest::test_object_get): New selftest.
25963 (selftest::json_cc_tests): Call it.
25964 * json.h (json::object::get): New decl.
25965 * selftest-run-tests.c (selftest::run_tests): Call
25966 selftest::diagnostic_format_json_cc_tests.
25967 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25968 decl.
25969
25970 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25971 Andrew Stubbs <amd@codesourcery.com>
25972
25973 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25974 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25975 (kernel): Rename to...
25976 (main_kernel): ... this.
25977 (load_image): Load _init_array and _fini_array kernels.
25978 (run): Add argument for kernel to run.
25979 (main): Run init_array_kernel before main_kernel, and
25980 fini_array_kernel after.
25981 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25982 amdgpu_hsa_kernel attribute on functions.
25983 (gcn_disable_constructors): Delete.
25984 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25985 * config/gcn/crt0.c (size_t): Define.
25986 (_init_array, _fini_array): New.
25987 (__preinit_array_start, __preinit_array_end,
25988 __init_array_start, __init_array_end,
25989 __fini_array_start, __fini_array_end): Declare weak references.
25990
25991 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25992
25993 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25994
25995 2019-05-22 Jason Merrill <jason@redhat.com>
25996
25997 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25998
25999 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26000
26001 PR target/88483
26002 * config/i386/i386-options.c (ix86_init_machine_status): Set
26003 stack_frame_required to true.
26004 * config/i386/i386.c (ix86_get_frame_size): New function.
26005 (ix86_frame_pointer_required): Replace get_frame_size with
26006 ix86_get_frame_size.
26007 (ix86_compute_frame_layout): Likewise.
26008 (ix86_find_max_used_stack_alignment): Changed to void. Set
26009 stack_frame_required.
26010 (ix86_finalize_stack_frame_flags): Always call
26011 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26012 ix86_get_frame_size.
26013 * config/i386/i386.h (machine_function): Add stack_frame_required.
26014
26015 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26016
26017 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26018
26019 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26020
26021 * common/config/aarch64/aarch64-common.c
26022 (struct aarch64_option_extension, struct processor_name_to_arch,
26023 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26024 aarch64_contains_opt,
26025 aarch64_get_extension_string_for_isa_flags): Change type of
26026 variables storing flags to uint64_t.
26027 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26028 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26029 * config/aarch64/aarch64.c (struct processor,
26030 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26031 aarch64_validate_march, aarch64_override_options,
26032 aarch64_option_print, aarch64_handle_attr_isa_flags,
26033 aarch64_declare_function_name, aarch64_start_file): Make flag
26034 variables uint64_t.
26035 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26036 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26037 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26038 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26039 * config/aarch64/driver-aarch64.c
26040 (struct aarch64_arch_extension, struct aarch64_core_data,
26041 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26042 flag variables uint64_t.
26043 * doc/invoke.texi: Add documentation for new arguments.
26044
26045 2019-05-22 Richard Biener <rguenther@suse.de>
26046
26047 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26048 rewrite ...
26049 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26050
26051 2019-05-22 Martin Liska <mliska@suse.cz>
26052
26053 PR lto/90500
26054 * doc/extend.texi: Document the change.
26055
26056 2019-05-22 Richard Biener <rguenther@suse.de>
26057
26058 PR tree-optimization/90450
26059 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26060 (mem_ref_hasher::equal): Check it.
26061 (mem_ref_alloc): Initialize it.
26062 (gather_mem_refs_stmt): Set it.
26063
26064 2019-05-22 Richard Biener <rguenther@suse.de>
26065
26066 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26067 Add ABS_EXPR.
26068 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26069 as ABSU_EXPR.
26070
26071 2019-05-22 Alan Modra <amodra@gmail.com>
26072
26073 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26074 (ASM_CPU_SPEC): Conditionally add -many.
26075 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26076 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26077 (rs6000_file_start): ..extracted from here, and modified to
26078 test all ISA bits.
26079 (rs6000_output_function_prologue): Emit .machine as necessary.
26080
26081 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26082
26083 PR middle-end/90553
26084 * ira-lives.c (process_bb_node_lives): Consider defs
26085 for a call insn to be die before the call, not after.
26086
26087 * function.c (assign_parm_setup_block): Raise alignment of
26088 stacked parameter only for STRICT_ALIGNMENT targets.
26089
26090 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26091
26092 * config/rs6000/constraints.md (define_register_constraint "wz"):
26093 Delete.
26094 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26095 RS6000_CONSTRAINT_wz.
26096 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26097 (rs6000_init_hard_regno_mode_ok): Adjust.
26098 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26099 * doc/md.texi (Machine Constraints): Adjust.
26100
26101 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26102
26103 * config/rs6000/constraints.md (define_register_constraint "wl"):
26104 Delete.
26105 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26106 RS6000_CONSTRAINT_wl.
26107 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26108 (rs6000_init_hard_regno_mode_ok): Adjust.
26109 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26110 * doc/md.texi (Machine Constraints): Adjust.
26111
26112 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26113
26114 * config/rs6000/constraints.md (define_register_constraint "wm"):
26115 Delete.
26116 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26117 RS6000_CONSTRAINT_wm.
26118 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26119 (rs6000_init_hard_regno_mode_ok): Adjust.
26120 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26121 * doc/md.texi (Machine Constraints): Adjust.
26122
26123 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26124
26125 * config/rs6000/constraints.md (define_register_constraint "wk"):
26126 Delete.
26127 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26128 RS6000_CONSTRAINT_wk.
26129 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26130 (rs6000_init_hard_regno_mode_ok): Adjust.
26131 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26132 * doc/md.texi (Machine Constraints): Adjust.
26133
26134 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26135
26136 * config/rs6000/constraints.md (define_register_constraint "wj"):
26137 Delete.
26138 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26139 RS6000_CONSTRAINT_wj.
26140 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26141 (rs6000_init_hard_regno_mode_ok): Adjust.
26142 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26143 (VS_64dm): Delete.
26144 * config/rs6000/vsx.md: Ditto.
26145 * doc/md.texi (Machine Constraints): Adjust.
26146
26147 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26148
26149 * config/rs6000/constraints.md (define_register_constraint "wh"):
26150 Delete.
26151 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26152 RS6000_CONSTRAINT_wh.
26153 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26154 (rs6000_init_hard_regno_mode_ok): Adjust.
26155 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26156 * doc/md.texi (Machine Constraints): Adjust.
26157
26158 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26159
26160 PR target/90547
26161 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26162 Avoid calling gen_lowpart with CONST operand.
26163
26164 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26165
26166 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26167 field template_last_to_copy.
26168 (ssa_create_duplicates): Set it, and use it. Attempt to
26169 preserve more debug stmts.
26170
26171 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26172
26173 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26174 (signbit<mode>2): New expander
26175
26176 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26177
26178 PR bootstrap/87338
26179 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26180 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26181
26182 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26183
26184 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26185 %ebx and %ecx bafore calling cpuid with leaf 1 or
26186 non-constant leaf argument.
26187
26188 2019-05-21 Alan Modra <amodra@gmail.com>
26189
26190 PR target/90545
26191 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26192 power9 direct move cost.
26193
26194 2019-05-21 Richard Biener <rguenther@suse.de>
26195
26196 PR middle-end/90510
26197 * fold-const.c (fold_read_from_vector): New function.
26198 * fold-const.h (fold_read_from_vector): Declare.
26199 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26200 single-element insert permutations. Canonicalize selector
26201 further and fix issue with last commit.
26202
26203 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26204
26205 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26206 parameter with default value false to declaration.
26207 (split_edges_for_insertion): New inline function. Wrapper for
26208 split_critical_edges with for_edge_insertion_p = true.
26209 * tree-cfg.c (split_critical_edges): Don't split non-critical
26210 edges if for_edge_insertion_p is false. Fix whitespace.
26211 * tree-ssa-pre.c (pass_pre::execute): Call
26212 split_edges_for_insertion instead of split_critical_edges.
26213 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26214 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26215 (pass_data_sink_code): Update function name in the comment.
26216
26217 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26218
26219 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26220 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26221 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26222 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26223 positives.
26224
26225 2019-05-21 Martin Liska <mliska@suse.cz>
26226
26227 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26228 an extra newline.
26229 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26230 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26231 vec_lvsr.
26232 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26233 Quote a C type.
26234 (rs6000_function_arg): Likewise.
26235 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26236 (rs6000_expand_ternop_builtin): Use interval syntax.
26237 (get_element_number): Likewise.
26238 (altivec_expand_builtin): Likewise.
26239 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26240
26241 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26242
26243 PR c++/59813
26244 PR target/90418
26245 * function.h (struct function): Add calls_eh_return member.
26246 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26247 gimplifying __builtin_eh_return call.
26248 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26249 to cfun.
26250 (expand_call_inline): Or in src_cfun->calls_eh_return into
26251 dst_cfun->calls_eh_return.
26252 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26253 cfun->calls_eh_return.
26254 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26255 * lto-streamer-out.c (output_struct_function_base): Write
26256 calls_eh_return.
26257
26258 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26259
26260 PR rtl-optimization/43147
26261 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26262 IX86_BUILTIN_SHUFPD.
26263
26264 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26265
26266 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26267 (refs_may_alias_p_1): ... here; update stats.
26268 (refs_may_alias_p): Do not update stats here.
26269
26270 2019-05-20 Richard Biener <rguenther@suse.de>
26271
26272 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26273 doesn't produce pointers.
26274 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26275 the first operand points to.
26276
26277 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26278
26279 * tree-ssa-alias.c (compare_sizes): New function.
26280 (sompare_type_sizes): New function
26281 (aliasing_component_refs_p): Use it.
26282 (indirect_ref_may_alias_decl_p): Likewise.
26283
26284 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26285
26286 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26287
26288 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26289
26290 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26291 (LIBLSAN_EARLY_SPEC): Likewise.
26292 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26293
26294 2019-05-20 Martin Liska <mliska@suse.cz>
26295
26296 * config/i386/i386.c (ix86_libc_has_fast_function):
26297 Add ATTRIBUTE_UNUSED for the argument.
26298
26299 2019-05-20 Richard Biener <rguenther@suse.de>
26300
26301 * gimple-match-head.c: Include vec-perm-indices.h.
26302 * generic-match-head.c: Likewise.
26303 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26304 is included.
26305 * fold-const.c (fold_vec_perm): Export.
26306 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26307 (match.pd): ...here.
26308
26309 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26310
26311 * cfgloop.h (struct loop): Add simdlen member.
26312 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26313 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26314 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26315 as new argument to autovectorize_vector_sizes target hook. If
26316 loop->simdlen, pick up vector size where the vectorization factor
26317 is equal to loop->simd, and if there is none, fall back to the first
26318 successful one.
26319 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26320 caller.
26321 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26322 * omp-general.c (omp_max_vf): Likewise.
26323 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26324 * tree-vect-slp.c (vect_slp_bb): Likewise.
26325 * target.def (autovectorize_vector_sizes): Add ALL argument and
26326 document it.
26327 * doc/tm.texi: Adjust documentation.
26328 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26329 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26330 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26331 bool argument.
26332 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26333 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26334 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26335 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26336 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26337 preferred vector size is not 512-bit or 256-bit, just put those
26338 unpreferred ones last.
26339
26340 2019-05-20 Martin Liska <mliska@suse.cz>
26341
26342 * targhooks.c (default_libc_has_fast_function): New function.
26343 * targhooks.h (default_libc_has_fast_function): Likewise.
26344
26345 2019-05-20 Martin Liska <mliska@suse.cz>
26346
26347 PR middle-end/90263
26348 * builtins.c (expand_builtin_memory_copy_args): When having a
26349 target with fast mempcpy implementation do now use memcpy.
26350 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26351 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26352 * doc/tm.texi: Likewise.
26353 * doc/tm.texi.in: Likewise.
26354 * target.def:
26355 * expr.c (emit_block_move_hints): Add 2 new arguments.
26356 * expr.h (emit_block_move_hints): Bail out when libcall
26357 to memcpy would be used.
26358
26359 2019-05-20 Martin Liska <mliska@suse.cz>
26360
26361 * profile-count.c: Add vertical spacing in order
26362 to separate functions.
26363 * profile-count.h: Likewise.
26364
26365 2019-05-20 Martin Liska <mliska@suse.cz>
26366
26367 * profile-count.h: Do not use full qualified
26368 names if possible.
26369 * profile-count.c (profile_count::to_frequency): Likewise.
26370
26371 2019-05-20 Martin Liska <mliska@suse.cz>
26372
26373 * profile-count.h (enum profile_quality): Use capital letters
26374 for enum value names. Use the adjusted names.
26375 * profile-count.c: Use the adjusted names.
26376
26377 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26378
26379 * config/rs6000/constraints.md (define_register_constraint "wH"):
26380 Delete.
26381 (define_register_constraint "wI"): Delete.
26382 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26383 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26384 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26385 (rs6000_init_hard_regno_mode_ok): Adjust.
26386 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26387 resp. "d", or with "wa" as appropriate, all with "p8v".
26388 * config/rs6000/vsx.md: Ditto.
26389 * doc/md.texi (Machine Constraints): Adjust.
26390
26391 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26392
26393 * config/rs6000/constraints.md (define_register_constraint "wy"):
26394 Delete.
26395 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26396 RS6000_CONSTRAINT_wy.
26397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26398 (rs6000_init_hard_regno_mode_ok): Adjust.
26399 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26400 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26401 (define_mode_attr Fisa): New.
26402 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26403 * doc/md.texi (Machine Constraints): Adjust.
26404
26405 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26406
26407 * config/rs6000/constraints.md (define_register_constraint "wu"):
26408 Delete.
26409 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26410 RS6000_CONSTRAINT_wu.
26411 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26412 (rs6000_init_hard_regno_mode_ok): Adjust.
26413 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26414 both with "p8v".
26415 (define_mode_attr Fa): Delete.
26416 * config/rs6000/vsx.md: Ditto.
26417 * doc/md.texi (Machine Constraints): Adjust.
26418
26419 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26420
26421 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26422 Delete.
26423 (define_register_constraint "wK"): Delete.
26424 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26425 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26426 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26427 (rs6000_init_hard_regno_mode_ok): Adjust.
26428 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26429 Replace "wK" constraint by "wH" with "p9v".
26430 * config/rs6000/vsx.md: Ditto.
26431 * doc/md.texi (Machine Constraints): Adjust.
26432
26433 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26434
26435 * config/rs6000/constraints.md (define_register_constraint "wb"):
26436 Delete.
26437 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26438 RS6000_CONSTRAINT_wb.
26439 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26440 (rs6000_init_hard_regno_mode_ok): Adjust.
26441 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26442 * config/rs6000/vsx.md: Ditto.
26443 * doc/md.texi (Machine Constraints): Adjust.
26444
26445 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26446
26447 * config/rs6000/constraints.md (define_register_constraint "wo"):
26448 Delete.
26449 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26450 RS6000_CONSTRAINT_wo.
26451 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26452 (rs6000_init_hard_regno_mode_ok): Adjust.
26453 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26454 * config/rs6000/altivec.md: Ditto.
26455 * doc/md.texi (Machine Constraints): Adjust.
26456
26457 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26458
26459 * config/darwin-c.c (darwin_register_objc_includes): Do not
26460 prepend the sysroot when building gnu-runtime header search
26461 paths.
26462
26463 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26464
26465 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26466 instead of direct output of the asm.
26467
26468 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26469
26470 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26471 argument to be type bool (was int before).
26472 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26473 at first use. Use type bool for some variables. Fix a theoretical
26474 eh_return bug for svr4.
26475
26476 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26477
26478 * config/rs6000/rs6000.md (isa): New attribute.
26479 (enabled): New attribute.
26480
26481 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26482
26483 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26484 assemble_start_function and assemble_end_function.
26485
26486 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26487
26488 PR middle-end/89433
26489 * omp-general.c (oacc_verify_routine_clauses): Change formal
26490 parameters. Add checking if already marked with an OpenACC
26491 'routine' directive. Adjust all users.
26492
26493 PR middle-end/89433
26494 * omp-general.c (oacc_build_routine_dims): Move some of its
26495 processing into...
26496 (oacc_verify_routine_clauses): ... this new function.
26497 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26498
26499 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26500
26501 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26502 formating of picbase labels to match other ports.
26503
26504 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26505
26506 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26507 in the generated code.
26508
26509 2019-05-16 Martin Sebor <msebor@redhat.com>
26510
26511 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26512 identifiers, keywords, operators, and types in diagnostics. Correct
26513 quoting, spelling, and sentence capitalization issues.
26514 (expand_builtin_atomic_is_lock_free): Same.
26515 (fold_builtin_next_arg): Same.
26516 * cfgexpand.c (expand_one_var): Same.
26517 (tree_conflicts_with_clobbers_p): Same.
26518 (expand_asm_stmt): Same.
26519 (verify_loop_structure): Same.
26520 * cgraphunit.c (process_function_and_variable_attributes): Same.
26521 * collect-utils.c (collect_execute): Same.
26522 * collect2.c (maybe_run_lto_and_relink): Same.
26523 (is_lto_object_file): Same.
26524 (scan_prog_file): Same.
26525 * convert.c (convert_to_real_1): Same.
26526 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26527 * except.c (verify_eh_tree): Same.
26528 * gcc.c (execute): Same.
26529 (eval_spec_function): Same.
26530 (run_attempt): Same.
26531 (driver::set_up_specs): Same.
26532 (compare_debug_auxbase_opt_spec_function): Same.
26533 * gcov-tool.c (unlink_gcda_file): Same.
26534 (do_merge): Same.
26535 (do_rewrite): Same.
26536 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26537 * gimplify.c (gimplify_asm_expr): Same.
26538 (gimplify_adjust_omp_clauses): Same.
26539 * hsa-gen.c (gen_hsa_addr_insns): Same.
26540 (gen_hsa_insns_for_load): Same.
26541 (gen_hsa_cmp_insn_from_gimple): Same.
26542 (gen_hsa_insns_for_operation_assignment): Same.
26543 (gen_get_level): Same.
26544 (gen_hsa_alloca): Same.
26545 (omp_simple_builtin::generate): Same.
26546 (gen_hsa_atomic_for_builtin): Same.
26547 (gen_hsa_insns_for_call): Same.
26548 * input.c (dump_location_info): Same.
26549 * ipa-devirt.c (compare_virtual_tables): Same.
26550 * ira.c (ira_setup_eliminable_regset): Same.
26551 * lra-assigns.c (lra_assign): Same.
26552 * lra-constraints.c (lra_constraints): Same.
26553 * lto-streamer-in.c (lto_input_mode_table): Same.
26554 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26555 (merge_and_complain): Same.
26556 (compile_offload_image): Same.
26557 (compile_images_for_offload_targets): Same.
26558 (debug_objcopy): Same.
26559 (run_gcc): Same.
26560 (main): Same.
26561 * opts.c (print_specific_help): Same.
26562 (parse_no_sanitize_attribute): Same.
26563 (print_help): Same.
26564 (handle_param): Same.
26565 * plugin.c (add_new_plugin): Same.
26566 (parse_plugin_arg_opt): Same.
26567 (try_init_one_plugin): Same.
26568 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26569 operators, and types in diagnostics. Correct quoting and spelling
26570 issues.
26571 * read-rtl-function.c (parse_edge_flag_token): Same.
26572 (function_reader::parse_enum_value): Same.
26573 * reg-stack.c (check_asm_stack_operands): Same.
26574 * regcprop.c (validate_value_data): Same.
26575 * sched-rgn.c (make_pass_sched_fusion): Same.
26576 * stmt.c (check_unique_operand_names): Same.
26577 * targhooks.c (default_target_option_pragma_parse): Same.
26578 * tlink.c (recompile_files): Same.
26579 * toplev.c (process_options): Same.
26580 (do_compile): Same.
26581 * trans-mem.c (diagnose_tm_1): Same.
26582 (ipa_tm_scan_irr_block): Same.
26583 (ipa_tm_diagnose_transaction): Same.
26584 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26585 format a tree code name in a diagnostic.
26586 (verify_types_in_gimple_min_lval): Same.
26587 (verify_types_in_gimple_reference): Same.
26588 (verify_gimple_call): Same.
26589 (verify_gimple_assign_unary): Same.
26590 (verify_gimple_assign_binary): Same.
26591 (verify_gimple_assign_ternary): Same.
26592 (verify_gimple_assign_single): Same.
26593 (verify_gimple_switch): Same.
26594 (verify_gimple_label): Same.
26595 (verify_gimple_phi): Same.
26596 (verify_gimple_in_seq): Same.
26597 (verify_eh_throw_stmt_node): Same.
26598 (collect_subblocks): Same.
26599 (gimple_verify_flow_info): Same.
26600 (do_warn_unused_result): Same.
26601 * tree-inline.c (expand_call_inline): Same.
26602 * tree-into-ssa.c (update_ssa): Same.
26603 * tree.c (tree_int_cst_elt_check_failed): Same.
26604 (tree_vec_elt_check_failed): Same.
26605 (omp_clause_operand_check_failed): Same.
26606 (verify_type_variant): Same.
26607 (verify_type): Same.
26608 * value-prof.c (verify_histograms): Same.
26609 * varasm.c (assemble_start_function): Same.
26610
26611 2019-05-16 Martin Sebor <msebor@redhat.com>
26612
26613 * config/i386/i386-expand.c (get_element_number): Quote keywords
26614 and other internal names in diagnostics. Adjust other diagnostic
26615 formatting issues noted by -Wformat-diag.
26616 * config/i386/i386-features.c
26617 (ix86_mangle_function_version_assembler_name): Same.
26618 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26619 * config/i386/i386.c (ix86_function_type_abi): Same.
26620 (ix86_function_ms_hook_prologue): Same.
26621 (classify_argument): Same.
26622 (ix86_expand_prologue): Same.
26623 (ix86_md_asm_adjust): Same.
26624 (ix86_memmodel_check): Same.
26625
26626 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26627
26628 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26629 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26630 and fpxx modes.
26631
26632 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26633
26634 PR target/90497
26635 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26636 intrinsics without SSE/SSE2/SSSE3.
26637 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26638 check.
26639 (*mmx_uavgv8qi3): Likewise.
26640
26641 2019-05-17 Richard Biener <rguenther@suse.de>
26642
26643 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26644 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26645
26646 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26647
26648 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26649 vec_sldw insn pattern.
26650
26651 2019-05-17 Richard Biener <rguenther@suse.de>
26652
26653 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26654
26655 2019-05-17 Martin Liska <mliska@suse.cz>
26656
26657 PR driver/90496
26658 * toplev.c (output_stack_usage): With LTO and sanitizer it
26659 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26660 has no file location.
26661
26662 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26663
26664 PR c++/90484
26665 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26666 sz0 is equal to sz1, instead return false in that case.
26667
26668 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26669 has non-constant expression, force sctx.lane and use two
26670 argument IFN_GOMP_SIMD_LANE instead of single argument.
26671 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26672 two argument IFN_GOMP_SIMD_LANE without lhs.
26673 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26674 member.
26675 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26676 Define.
26677 (LOOP_REQUIRES_VERSIONING): Or in
26678 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26679 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26680 simd_if_cond.
26681 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26682 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26683 from simd if clause if needed.
26684
26685 2019-05-16 Richard Biener <rguenther@suse.de>
26686
26687 * tree-affine.c (expr_to_aff_combination): New function split
26688 out from...
26689 (tree_to_aff_combination): ... here.
26690 (aff_combination_expand): Avoid building a GENERIC tree.
26691
26692 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26693
26694 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26695 assemble_start_function and assemble_end_function calls.
26696 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26697 assemble_start_function and assemble_end_function.
26698 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26699 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26700 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26701 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26702 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26703 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26704 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26705 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26706 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26707 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26708 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26709 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26710 Likewise.
26711 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26712 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26713 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26714 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26715 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26716 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26717 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26718 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26719 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26720 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26721 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26722 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26723 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26724 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26725 Likewise.
26726 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26727 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26728 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26729
26730 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26731
26732 * tree-ssa-alias.c (alias_stats): Add
26733 aliasing_component_refs_p_may_alias and
26734 aliasing_component_refs_p_no_alias.
26735 (dump_alias_stats): Print aliasing_component_refs_p stats.
26736 (aliasing_component_refs_p): Update stats.
26737
26738 2019-05-16 Martin Liska <mliska@suse.cz>
26739
26740 PR lto/90500
26741 * multiple_target.c (expand_target_clones): Do not allow
26742 target_clones being used with a symbol that is an alias.
26743
26744 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26745
26746 PR tree-optimization/90394
26747 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26748 positives rather than ICE for cases where (code2 == NE_EXPR
26749 && code1 == BIT_AND_EXPR).
26750
26751 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26752
26753 PR fortran/90329
26754 * tree-core.h (struct tree_decl_common): Document
26755 decl_nonshareable_flag for PARM_DECLs.
26756 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26757 * calls.c (expand_call): Don't try tail call if caller
26758 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26759 passed on the stack and callee needs to pass any arguments on the
26760 stack.
26761 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26762 else if instead of series of mutually exclusive ifs. Handle
26763 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26764 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26765
26766 * lto-streamer.h (LTO_major_version): Bump to 9.
26767
26768 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26769
26770 PR tree-optimization/90106
26771 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26772 new parameter as new internal function call, also move it to new
26773 basic block.
26774 (use_internal_fn): Pass internal function call to
26775 shrink_wrap_one_built_in_call_with_conds.
26776
26777 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26778
26779 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26780 max_vf to 1.
26781 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26782 safelen_int and set loop->dont_vectorize.
26783
26784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26785
26786 PR target/89021
26787 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26788 SSE/SSE2/SSSE3.
26789 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26790 Likewise.
26791 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26792 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26793 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26794 is defined.
26795
26796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26797
26798 PR target/89021
26799 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26800 define_insn_and_split to support SSE emulation.
26801 (*vec_extractv2sf_0): Likewise.
26802 (*vec_extractv2sf_1): Likewise.
26803 (*vec_extractv2si_0): Likewise.
26804 (*vec_extractv2si_1): Likewise.
26805 (*vec_extractv2si_zext_mem): Likewise.
26806 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26807 (vec_extractv2sf_1 splitter): Likewise.
26808 (vec_extractv2sfsf): Likewise.
26809 (vec_setv2si): Likewise.
26810 (vec_extractv2si_1 splitter): Likewise.
26811 (vec_extractv2sisi): Likewise.
26812 (vec_setv4hi): Likewise.
26813 (vec_extractv4hihi): Likewise.
26814 (vec_setv8qi): Likewise.
26815 (vec_extractv8qiqi): Likewise.
26816 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26817 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26818 (vec_extractv2sisi): Likewise.
26819 (vec_extractv4hihi): Likewise.
26820 (vec_extractv8qiqi): Likewise.
26821 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26822 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26823 (vec_initv2sisi): Likewise.
26824 (vec_initv4hihi): Likewise.
26825 (vec_initv8qiqi): Likewise.
26826 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26827 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26828 (vec_setv4hi): Likewise.
26829 (vec_setv8qi): Likewise.
26830
26831 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 PR target/89021
26834 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26835 TARGET_MMX_WITH_SSE.
26836 (MMXMODE:*mov<mode>_internal): Likewise.
26837 (MMXMODE:movmisalign<mode>): Likewise.
26838
26839 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26840
26841 PR target/89021
26842 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26843 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26844 (sse2_cvtpd2pi): Ditto.
26845 (sse2_cvttpd2pi): Ditto.
26846 (*vec_concatv2sf_sse4_1): Ditto.
26847 (*vec_concatv2sf_sse): Ditto.
26848 (*vec_concatv2si_sse4_1): Ditto.
26849 (*vec_concatv2si): Ditto.
26850 (*vec_concatv4si_0): Ditto.
26851 (*vec_concatv2di_0): Ditto.
26852
26853 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26854
26855 PR target/89021
26856 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26857
26858 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26859
26860 PR target/89021
26861 * config/i386/sse.md (ssse3_palignrdi): Changed to
26862 define_insn_and_split to support SSE emulation.
26863
26864 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26865
26866 PR target/89021
26867 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26868
26869 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26870
26871 PR target/89021
26872 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26873 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26874 SSE emulation.
26875
26876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26877
26878 PR target/89021
26879 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26880 or TARGET_MMX_WITH_SSE.
26881 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26882
26883 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26884
26885 PR target/89021
26886 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26887
26888 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26889
26890 PR target/89021
26891 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26892 Changed to define_insn_and_split to support SSE emulation.
26893
26894 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26895
26896 PR target/89021
26897 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26898 Changed to define_insn_and_split to support SSE emulation.
26899
26900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26901
26902 PR target/89021
26903 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26904 (*mmx_<emms>): This.
26905 (mmx_<emms>): New expander.
26906
26907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26908
26909 PR target/89021
26910 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26911 support.
26912 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26913
26914 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26915
26916 PR target/89021
26917 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26918
26919 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26920
26921 PR target/89021
26922 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26923
26924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26925
26926 PR target/89021
26927 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26928 TARGET_MMX_WITH_SSE.
26929 (*mmx_uavgv4hi3): Add SSE emulation.
26930
26931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26932
26933 PR target/89021
26934 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26935 and TARGET_MMX_WITH_SSE.
26936 (*mmx_uavgv8qi3): Add SSE emulation.
26937
26938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26939
26940 PR target/89021
26941 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26942 maskmovdqu for __MMX_WITH_SSE__.
26943
26944 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26945
26946 PR target/89021
26947 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26948 TARGET_MMX and TARGET_MMX_WITH_SSE.
26949 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26950
26951 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26952
26953 PR target/89021
26954 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26955 define_insn_and_split to support SSE emulation.
26956
26957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26958
26959 PR target/89021
26960 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26961 and TARGET_MMX_WITH_SSE.
26962 (mmx_<code>v8qi3): Likewise.
26963 (smaxmin:<code>v4hi3): New.
26964 (umaxmin:<code>v8qi3): Likewise.
26965 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26966 (umaxmin:*mmx_<code>v8qi3): Likewise.
26967
26968 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26969
26970 PR target/89021
26971 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26972 TARGET_MMX_WITH_SSE.
26973 (*mmx_pinsrw): Add SSE emulation.
26974
26975 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26976
26977 PR target/89021
26978 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26979
26980 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26981
26982 PR target/89021
26983 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26984 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26985 SSE emulation.
26986
26987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26988
26989 PR target/89021
26990 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26991 (sse_cvttps2pi): Likewise.
26992
26993 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26994
26995 PR target/89021
26996 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26997 TARGET_MMX_WITH_SSE.
26998 (mmx_pshufw_1): Add SSE emulation.
26999 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27000 TARGET_MMX_WITH_SSE to support SSE emulation.
27001
27002 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27003
27004 PR target/89021
27005 * config/i386/constraints.md (Yw): New constraint.
27006 * config/i386/mmx.md (*vec_dupv2si): Changed to
27007 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27008 support SSE emulation.
27009
27010 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27011
27012 PR target/89021
27013 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27014 TARGET_MMX_WITH_SSE.
27015 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27016 support.
27017 (mmx_gt<mode>3): Likewise.
27018
27019 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27020
27021 PR target/89021
27022 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27023 TARGET_MMX_WITH_SSE. Add SSE support.
27024
27025 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27026
27027 PR target/89021
27028 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27029 TARGET_MMX_WITH_SSE.
27030 (any_logic:<code><mode>3): New.
27031 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27032 Add SSE support.
27033
27034 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27035
27036 PR target/89021
27037 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27038 TARGET_MMX_WITH_SSE. Add SSE emulation.
27039 (mmx_<shift_insn><mode>3): Likewise.
27040 (ashr<mode>3): New.
27041 (<shift_insn><mode>3): Likewise.
27042
27043 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27044
27045 PR target/89021
27046 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27047 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27048
27049 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27050
27051 PR target/89021
27052 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27053 TARGET_MMX_WITH_SSE.
27054 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27055 SSE support.
27056
27057 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27058
27059 PR target/89021
27060 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27061 TARGET_MMX_WITH_SSE.
27062 (mulv4hi3): New.
27063 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27064 support.
27065
27066 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27067
27068 PR target/89021
27069 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27070 (plusminus:mmx_<plusminus_insn><mode>3): Check
27071 TARGET_MMX_WITH_SSE.
27072 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27073 (<plusminus_insn><mode>3): New.
27074 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27075 (*mmx_<plusminus_insn><mode>3): Likewise.
27076
27077 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27078
27079 PR target/89021
27080 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27081 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27082 prototype.
27083 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27084 define_insn_and_split to support SSE emulation.
27085 (mmx_punpcklbw): Likewise.
27086 (mmx_punpckhwd): Likewise.
27087 (mmx_punpcklwd): Likewise.
27088 (mmx_punpckhdq): Likewise.
27089 (mmx_punpckldq): Likewise.
27090
27091 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27092 Uros Bizjak <ubizjak@gmail.com>
27093
27094 PR target/89021
27095 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27096 New function.
27097 (ix86_split_mmx_pack): Likewise.
27098 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27099 New prototype.
27100 (ix86_split_mmx_pack): Likewise.
27101 * config/i386/i386.md (mmx_isa): New.
27102 (enabled): Also check mmx_isa.
27103 * config/i386/mmx.md (any_s_truncate): New code iterator.
27104 (s_trunsuffix): New code attr.
27105 (mmx_packsswb): Removed.
27106 (mmx_packssdw): Likewise.
27107 (mmx_packuswb): Likewise.
27108 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27109 MMX packsswb/packuswb with SSE2.
27110 (mmx_packssdw): Likewise.
27111 * config/i386/predicates.md (register_mmxmem_operand): New.
27112
27113 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27114
27115 PR target/89021
27116 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27117 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27118 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27119 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27120 (ix86_vector_mode_supported_p): Likewise.
27121 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27122
27123 2019-05-15 Martin Liska <mliska@suse.cz>
27124
27125 PR middle-end/90478
27126 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27127 Check for overflow.
27128
27129 2019-05-15 Richard Biener <rguenther@suse.de>
27130
27131 * tree-into-ssa.c (pass_build_ssa::execute): Run
27132 update_address_taken before going into SSA.
27133
27134 2019-05-15 Richard Biener <rguenther@suse.de>
27135
27136 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27137 as __BIT_FIELD_REF with type with -gimple.
27138
27139 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27140
27141 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27142 semantically equivalent branches (left over after prior refactorings).
27143
27144 2019-05-15 Richard Biener <rguenther@suse.de>
27145
27146 PR tree-optimization/88828
27147 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27148 bogus check.
27149
27150 2019-05-14 Richard Biener <rguenther@suse.de>
27151
27152 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27153 as __VIEW_CONVERT with -gimple.
27154
27155 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27156
27157 PR target/82920
27158 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27159 Darwin.
27160
27161 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27162
27163 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27164 define_split to become a define_insn_and_split.
27165
27166 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27167
27168 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27169 arguments.
27170 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27171 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27172 (sibcall_epilogue): Adjust.
27173 (epilogue): Adjust.
27174
27175 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27176
27177 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27178 to unsupported ones.
27179 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27180 * config.host: Likewise.
27181 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27182 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27183 __svr4__]: Remove "brand" fallback.
27184 [!KSTAT_DATA_STRING]: Remove.
27185 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27186 to *-*-solaris2*.
27187 (comdat_group): Likewise.
27188 (set_have_as_tls): Likewise.
27189 (gcc_cv_target_dl_iterate_phdr): Likewise.
27190 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27191 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27192 * configure: Regenerate.
27193 * doc/install.texi: Simplify Solaris target triplets.
27194 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27195 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27196 Remove Solaris 10 references.
27197 Remove obsolete Solaris bug reference.
27198 (Specific, sparc-sun-solaris2.10): Remove.
27199
27200 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27201
27202 * config/i386/i386.md (any_div): New code iterator.
27203 (paired_mod): New code attribute.
27204 (sgnprefix): Handle DIV and UDIV RTXes.
27205 (u): Ditto.
27206 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27207 and udivmod<mode>4 patterns using any_div code iterator.
27208 (divmod splitters): Macroize splitters using any_div code iterator.
27209 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27210 (*udivmodsi4_pow2_zext_2): Ditto.
27211 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27212 and *udivmod<mode>4_noext patterns using any_div code iterator.
27213 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27214 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27215 patterns using any_div code iterator.
27216 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27217 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27218 patterns using any_div code iterator.
27219 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27220 udivmodhiqi3 patterns using any_extend code iterator.
27221
27222 2019-05-14 Richard Biener <rguenther@suse.de>
27223 H.J. Lu <hongjiu.lu@intel.com>
27224
27225 PR tree-optimization/88828
27226 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27227 permuting in a single non-constant element not extracted
27228 from a vector.
27229
27230 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27231
27232 * internal-fn.def (SIGNBIT): New.
27233 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27234 defined.
27235 (signbitv4sf2): Likewise.
27236
27237 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27238
27239 PR target/90357
27240 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27241 next insn when the SRC reg is dead.
27242
27243 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27244
27245 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27246 (alloc_cand_and_find_basis): Ditto.
27247 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27248 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27249 (create_add_imm_cand, slsr_process_cast): Ditto.
27250 (slsr_process_copy, replace_mult_candidate): Ditto.
27251 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27252 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27253 (pass_strength_reduction::execute): Init the first NULL element.
27254
27255 2019-05-13 Nathan Sidwell <nathan@acm.org>
27256
27257 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27258 (run_attempt): Reformat line break.
27259
27260 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27261
27262 PR target/90418
27263 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27264 data registers in sibcall epilogues.
27265 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27266
27267 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27268
27269 PR target/89221
27270 * configure.ac (--enable-frame-pointer):
27271 Disable by default for cygwin and mingw.
27272 * configure: Regenerate.
27273
27274 2019-05-13 Nathan Sidwell <nathan@acm.org>
27275
27276 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27277 piece of code.
27278 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27279 (gen_member_die): Move abstract origin check earlier. Only VARs
27280 can be static_inline_p. Simplify splicing control flow.
27281
27282 2019-05-13 Richard Biener <rguenther@suse.de>
27283
27284 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27285 VIEW_CONVERT_EXPR.
27286 (vect_build_slp_tree_1): Likewise.
27287
27288 2019-05-13 Richard Biener <rguenther@suse.de>
27289
27290 PR tree-optimization/90402
27291 * tree-if-conv.c (tree_if_conversion): Value number only
27292 the loop body by making the latch an exit of the region
27293 as well.
27294 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27295 processing PHIs.
27296 (do_rpo_vn): Deal with multiple edges into the entry block
27297 that are not backedges inside the region by skipping PHIs
27298 of the entry block.
27299
27300 2019-05-13 Richard Biener <rguenther@suse.de>
27301
27302 PR tree-optimization/90316
27303 * tree-ssa-pre.c (insert_aux): Fold into ...
27304 (insert): ... this function. Use a RPO walk to reduce the
27305 number of required iterations.
27306
27307 2019-05-13 Martin Liska <mliska@suse.cz>
27308
27309 PR tree-optimization/90416
27310 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27311 string instead of passing the second part as va_arg argument.
27312
27313 2019-05-13 Martin Liska <mliska@suse.cz>
27314
27315 PR gcov-profile/90380
27316 * gcov.c (handle_cycle): Do not support zero cycle count,
27317 it should not be possible.
27318 (path_contains_zero_cycle_arc): New function.
27319 (circuit): Ignore zero cycle arc counts.
27320
27321 2019-05-13 Martin Liska <mliska@suse.cz>
27322
27323 PR gcov-profile/90380
27324 * gcov.c (enum loop_type): Remove the enum and
27325 the operator.
27326 (handle_cycle): Assert that we should not reach
27327 a negative count.
27328 (circuit): Use loop_found instead of a tri-state loop_type.
27329 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27330 happen.
27331
27332 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27333
27334 PR target/82920
27335 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27336 (ix86_output_indirect_branch_via_reg): Use output mechanism
27337 accounting for __USER_LABEL_PREFIX__.
27338 (ix86_output_indirect_branch_via_push): Likewise.
27339 (ix86_output_function_return): Likewise.
27340 (ix86_output_indirect_function_return): Likewise.
27341
27342 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27343
27344 * doc/md.texi: Document use of code attributes in rtx patterns.
27345 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27346 * read-rtl.c (find_code): Split out search loops into...
27347 (maybe_find_code): ...this new function.
27348 (check_code_iterator): Make the error message more informative.
27349 (check_code_attribute): New function.
27350 (rtx_reader::rtx_alloc_for_name): Likewise.
27351 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27352 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27353 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27354 <max_opp> directly as an rtx code instead of via a match_operator.
27355 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27356 (<su>abd<mode>_3): Update accordingly.
27357
27358 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27359
27360 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27361 is given, print the state of the EH "save world" computation for
27362 Darwin.
27363
27364 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27365
27366 PR c++/59813
27367 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27368 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27369
27370 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27371
27372 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27373 Use pinsrd for TARGET_SSE4_1.
27374 * config/i386/sse.md (movdi_to_sse): Ditto.
27375
27376 2019-05-10 Richard Biener <rguenther@suse.de>
27377
27378 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27379 (do_rpo_vn): Initialize next_value_id.
27380
27381 2019-05-10 Martin Liska <mliska@suse.cz>
27382
27383 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27384 Fix plural form.
27385
27386 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27387
27388 PR tree-optimization/90385
27389 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27390 arguments of the exit phis.
27391
27392 PR c++/90383
27393 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27394 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27395 id->do_not_fold.
27396 (copy_tree_body_r): Likewise.
27397 (copy_fn): Set id.do_not_fold to true.
27398
27399 2019-05-10 Martin Liska <mliska@suse.cz>
27400
27401 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27402 Reapply changes from r269790.
27403
27404 2019-05-10 Martin Liska <mliska@suse.cz>
27405
27406 PR middle-end/90340
27407 * doc/invoke.texi: New params.
27408 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27409 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27410 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27411 Use it.
27412 * tree-switch-conversion.h (struct jump_table_cluster):
27413 Likewise.
27414
27415 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27416
27417 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27418
27419 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27420
27421 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27422
27423 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27424
27425 PR rtl-optimization/88879
27426 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27427
27428 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27429
27430 PR target/90405
27431 * config/arm/arm.c (callee_saved_reg_p): Move before
27432 thumb_find_work_register.
27433 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27434 thumb_find_work_register. Only call df_get_live_out once.
27435 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27436 (thumb_find_work_register): Use
27437 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27438 algorithms to locate a spare call clobbered reg.
27439
27440 2019-05-09 Martin Liska <mliska@suse.cz>
27441
27442 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27443 and MAX_EXPR in GIMPLE FE format.
27444
27445 2019-05-09 Martin Liska <mliska@suse.cz>
27446
27447 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27448 * gimple-pretty-print.c (dump_gimple_bb_header):
27449 Dump BB count.
27450 (pp_cfg_jump): Dump edge probability.
27451 * profile-count.c (profile_quality_as_string): Simplify
27452 with a static array.
27453 (parse_profile_quality): New function.
27454 (profile_count::dump): Simplify with a static array.
27455 (profile_count::from_gcov_type): Add new argument.
27456 * profile-count.h (parse_profile_quality): Likewise.
27457 * predict.h (set_hot_bb_threshold): New.
27458 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27459 New param.
27460 * predict.c (get_hot_bb_threshold): Set from the new param.
27461 (set_hot_bb_threshold): New.
27462
27463 2019-05-09 Richard Biener <rguenther@suse.de>
27464
27465 PR tree-optimization/90395
27466 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27467 rewrite vector stores that throw internally.
27468
27469 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27470
27471 * cif-code.def (CHKP): Remove.
27472
27473 PR target/89221
27474 * configure.ac (--enable-frame-pointer): Disable by default for
27475 GNU systems.
27476 * configure: Regenerate.
27477
27478 2019-05-09 Alan Modra <amodra@gmail.com>
27479
27480 PR target/89271
27481 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27482 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27483 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27484 cost for general <-> vsx when direct moves are available.
27485 Cost union classes at minimal cost for any reg in the class.
27486 Correct calculation for moves between vsx, float, and altivec.
27487 Don't return a low cost for moves between special regs. Don't
27488 use hard coded register numbers.
27489 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27490 (rs6000_ira_change_pseudo_allocno_class): New function.
27491 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27492 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27493 alternatives.
27494 (movsi_internal1): Don't disparage vector alternatives.
27495 (mov<mode>_internal): Likewise, excepting alternative that
27496 will be split.
27497 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27498 we <- b alternative.
27499
27500 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27501
27502 PR c++/59813
27503 PR tree-optimization/89060
27504 * tree-ssa-live.h (live_vars_map): New typedef.
27505 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27506 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27507 (struct compute_live_vars_data): New type.
27508 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27509 live_vars_at_stmt, destroy_live_vars): New functions.
27510 * tree-tailcall.c: Include tree-ssa-live.h.
27511 (live_vars, live_vars_vec): New global variables.
27512 (find_tail_calls): Perform variable life analysis before punting.
27513 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27514 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27515 member.
27516 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27517 Perform variable life analysis to select variables that really need
27518 clobbers added.
27519 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27520 instead set id->eh_landing_pad_dest and assert it is the same.
27521 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27522
27523 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27524 Richard Earnshaw <rearnsha@arm.com>
27525
27526 PR target/88167
27527 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27528 function.
27529 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27530 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27531 register if both the epilogue and prologue can use call-clobbered
27532 regs.
27533 (thumb1_unexpanded_epilogue): Use
27534 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27535 picking temporaries for restoring high regs to match that of the
27536 prologue where possible.
27537 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27538 the list of work registers. Detect if the return address is still live
27539 at the end of the prologue and avoid using it for a work register if so.
27540 If the return address is not live, add LR to the list of pushable regs
27541 after the first pass.
27542
27543 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27544
27545 PR tree-optimization/90078
27546 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27547 (INFTY): Increase the value for infinite cost.
27548 (struct comp_cost): Promote type of members to int64_t.
27549 (infinite_cost): Don't set complexity in initialization.
27550 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27551 overflows to infinite_cost.
27552 (adjust_setup_cost): Promote type of parameter and cost computation
27553 to int64_t.
27554 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27555 int64_t.
27556 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27557 cost computation to int64_t.
27558 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27559 int64_t's format specifier in dump.
27560
27561 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27562
27563 PR tree-optimization/90240
27564 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27565 with respect to scaling factor pre-computed for each basic block.
27566 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27567 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27568 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27569 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27570 live range for array of loop's basic blocks. Cleanup aux field of
27571 loop's basic blocks.
27572
27573 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27574
27575 PR tree-optimization/90356
27576 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27577
27578 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27579
27580 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27581 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27582 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27583 (ix86_handle_option): Handle -mavx512bf16.
27584 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27585 to extra_headers.
27586 * config/i386/avx512bf16vlintrin.h: New.
27587 * config/i386/avx512bf16intrin.h: New.
27588 * config/i386/cpuid.h (bit_AVX512BF16): New.
27589 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27590 * config/i386/i386-builtin-types.def: Add new types.
27591 * config/i386/i386-builtin.def: Add new builtins.
27592 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27593 __AVX512BF16__.
27594 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27595 (ix86_option_override_internal): Handle BF16.
27596 (ix86_valid_target_attribute_inner_p): Ditto.
27597 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27598 * config/i386/i386-builtin.c (enum processor_features): Add
27599 F_AVX512BF16.
27600 (static const _isa_names_table isa_names_table): Ditto.
27601 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27602 (PTA_AVX512BF16): Ditto.
27603 * config/i386/i386.opt: Add -mavx512bf16.
27604 * config/i386/immintrin.h: Include avx512bf16intrin.h
27605 and avx512bf16vlintrin.h.
27606 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27607 avx512f_cvtneps2bf16_<mode><mask_name>,
27608 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27609 * config/i386/subst.md (mask_half): Add new subst.
27610 * doc/invoke.texi: Document -mavx512bf16.
27611
27612 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27613
27614 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27615 Delete declaration.
27616 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27617 (rs6000_debug_legitimize_reload_address): Delete.
27618 (rs6000_legitimize_reload_address_ptr): Delete.
27619 (rs6000_option_override_internal): Adjust.
27620 (mem_operand_gpr): Adjust comment.
27621 (legitimate_lo_sum_address_p): Ditto.
27622 (rs6000_legitimize_reload_address): Delete.
27623 (rs6000_debug_legitimize_reload_address): Delete.
27624 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27625
27626 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27627
27628 PR target/89765
27629 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27630 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27631 to compute vector element selector for both constant and variable
27632 operands.
27633
27634 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27635
27636 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27637 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27638 ashrdi3_cvt using SWI48 mode iterator.
27639
27640 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27641
27642 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27643 (aarch64_<su>abd<mode>_3): Likewise.
27644 (*aarch64_<su>abd<mode>_3): New define_insn.
27645 (<sur>sad<vsi2qi>): New define_expand.
27646 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27647 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27648 (build_vect_cond_expr): Likewise.
27649
27650 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27651
27652 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27653 clobbers outside of accessible_reg_set.
27654 * config/i386/i386.c (ix86_conditional_register_usage):
27655 Disable register sets by clearing corresponding bits in
27656 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27657 call_used_regs and don't clear corresponding reg_names array members.
27658
27659 2019-05-07 Richard Biener <rguenther@suse.de>
27660
27661 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27662 not specified still compute a comp_vectype for invariant
27663 compares.
27664
27665 2019-05-07 Richard Biener <rguenther@suse.de>
27666
27667 PR tree-optimization/90316
27668 * tree-ssa-pre.c (translate_vuse_through_block): When
27669 same_valid is NULL do not bother to search for a virtual
27670 PHI continuation.
27671 (phi_translate_1): When operands changed we cannot keep
27672 the same value-number so do not bother to ask whether
27673 that's possible from translate_vuse_through_block.
27674
27675 2019-05-07 Martin Liska <mliska@suse.cz>
27676
27677 * bitmap.c (bitmap_register): Come up with
27678 alloc_descriptor_max_uid and assign it for
27679 a new bitmap.
27680 (register_overhead): Use get_descriptor as
27681 a descriptor.
27682 (release_overhead): New.
27683 (bitmap_elem_to_freelist): Call it.
27684 (bitmap_elt_clear_from): Likewise.
27685 (bitmap_obstack_free): Likewise.
27686 (bitmap_move): Sensitively release memory.
27687 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27688 (bitmap_initialize): Initialize alloc_descriptor to zero.
27689 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27690
27691 2019-05-07 Richard Biener <rguenther@suse.de>
27692
27693 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27694 we build a SLP node. Remove max_size and limiting.
27695 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27696
27697 2019-05-07 Richard Biener <rguenther@suse.de>
27698
27699 PR tree-optimization/90316
27700 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27701 limit by reference.
27702 (walk_non_aliased_vuses): Take walking limit argument.
27703 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27704 walking if it is reached instead of just counting.
27705 (get_continuation_for_phi): Likewise.
27706 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27707 limiting to the callback.
27708 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27709 (vn_reference_lookup_3): Likewise.
27710 (vn_reference_lookup_pieces): Likewise.
27711 (vn_reference_lookup): Likewise.
27712 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27713 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27714 (avail_exprs_stack::lookup_avail_expr): Likewise.
27715
27716 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27717
27718 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27719 for comparaible types in the second direction even if first one
27720 hits incomparable type.
27721
27722 2019-05-07 Richard Biener <rguenther@suse.de>
27723
27724 PR lto/90369
27725 * lto-wrapper.c (debug_objcopy): Use the original filename
27726 including archive offset for the filename used for -save-temps.
27727
27728 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27729
27730 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27731 detection.
27732
27733 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27734 Hongtao Liu <hongtao.liu@intel.com>
27735
27736 PR target/89750
27737 PR target/86444
27738 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27739 Modified, original implementation isn't correct.
27740
27741 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27742
27743 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27744 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27745 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27746 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27747 (FRAME_POINTER_REGNUM): Change numbering.
27748 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27749 (alt_reg_names): Adjust.
27750 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27751 fixed.
27752 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27753 (DWARF_FRAME_REGISTERS): Delete.
27754 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27755 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27756 Adjust.
27757 (REG_ALLOC_ORDER): Adjust.
27758 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27759 (REG_CLASS_CONTENTS): Adjust.
27760 (RETURN_ADDR_RTX): Change comment.
27761 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27762 instead of 67.
27763 (REGISTER_NAMES): Adjust.
27764 (ADDITIONAL_REGISTER_NAMES): Adjust.
27765 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27766
27767 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27768
27769 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27770 Delete.
27771 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27772 (DWARF_FRAME_REGISTERS): Adjust.
27773 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27774 Adjust.
27775 (REG_ALLOC_ORDER): Adjust.
27776 (enum reg_class): Delete SPR_REGS.
27777 (REG_CLASS_NAMES): Delete SPR_REGS.
27778 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27779 (REGISTER_NAMES): Adjust.
27780 (ADDITIONAL_REGISTER_NAMES): Adjust.
27781 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27782 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27783 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27784 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27785 (htm_spr_regno): Delete.
27786 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27787 argument.
27788 (rs6000_dbx_register_number): Adjust.
27789
27790 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27791
27792 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27793
27794 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27795
27796 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27797 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27798
27799 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27800
27801 PR tree-optimization/88709
27802 PR tree-optimization/90271
27803 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27804 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27805 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27806 variable.
27807 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27808 of the store merging group is larger than
27809 PARAM_STORE_MERGING_MAX_SIZE parameter.
27810 (split_group): Add bzero_first argument. If set, always emit first
27811 the first store which must be = {} of the whole area and then for the
27812 rest of the stores consider all zero bytes as paddings.
27813 (imm_store_chain_info::output_merged_store): Check if first store
27814 is = {} of the whole area and if yes, determine which setting of
27815 bzero_first for split_group gives smaller number of stores. Adjust
27816 split_group callers.
27817 (lhs_valid_for_store_merging_p): Allow decls.
27818 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27819 no elts.
27820 (pass_store_merging::process_store): Likewise.
27821
27822 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27823
27824 PR target/89424
27825 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27826 handling of V1TImode.
27827
27828 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27829
27830 PR target/89221
27831 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27832 and enable_frame_pointer ...
27833 * configure.ac: ... here. Update help strings for
27834 --enable-frame-pointer.
27835 * configure: Regenerate.
27836 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27837 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27838 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27839 (USE_X86_64_FRAME_POINTER): Ditto.
27840
27841 2019-05-06 Martin Liska <mliska@suse.cz>
27842
27843 * config.gcc: Append to target_gtfiles and fix indentation.
27844
27845 2019-05-06 Richard Biener <rguenther@suse.de>
27846
27847 PR tree-optimization/90358
27848 * tree-vect-stmts.c (get_group_load_store_type): Properly
27849 detect unused upper half of load.
27850 (vectorizable_load): Likewise.
27851
27852 2019-05-06 Richard Biener <rguenther@suse.de>
27853
27854 PR tree-optimization/88828
27855 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27856 (simplify_vector_constructor): ...here. Handle constants in
27857 the constructor.
27858
27859 2019-05-06 Richard Biener <rguenther@suse.de>
27860
27861 PR tree-optimization/90328
27862 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27863 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27864 is valid in the loop nest before using it.
27865 (initialize_data_dependence_relation): Adjust.
27866 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27867 loop as loop-nest to dr_may_alias_p.
27868
27869 2019-05-06 Richard Biener <rguenther@suse.de>
27870
27871 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27872
27873 2019-05-06 Richard Biener <rguenther@suse.de>
27874
27875 PR tree-optimization/90316
27876 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27877 compute target on demand.
27878 (get_continuation_for_phi): Remove code walking stmts to
27879 get to a target virtual operand which could end up being
27880 quadratic.
27881
27882 2019-05-06 Martin Liska <mliska@suse.cz>
27883
27884 PR sanitizer/90312
27885 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27886 when -mabi is selected to a non-default version.
27887
27888 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27889 Martin Liska <mliska@suse.cz>
27890
27891 * Makefile.in: Add lto-dump.texi.
27892 * cgraph.h: Add new functions get_visibility_string and
27893 get_symtab_type_string.
27894 * doc/gcc.texi: Include lto-dump section.
27895 * doc/lto-dump.texi: New file.
27896 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27897 (parse_dump_option): Factor out this function.
27898 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27899 (parse_dump_option): Export the function.
27900 * symtab.c (symtab_node::get_visibility_string): New function.
27901 (symtab_node::get_symtab_type_string): Likewise.
27902
27903 2019-05-06 Martin Liska <mliska@suse.cz>
27904
27905 * config/i386/i386-builtins.c: New file.
27906 * config/i386/i386-builtins.h: New file.
27907 * config/i386/i386-expand.c: New file.
27908 * config/i386/i386-expand.h: New file.
27909 * config/i386/i386-features.c: New file.
27910 * config/i386/i386-features.h: New file.
27911 * config/i386/i386-options.c: New file.
27912 * config/i386/i386-options.h: New file.
27913 * config.gcc: Add new files into extra_objs and
27914 target_gtfiles.
27915 * config/i386/i386.c: Split content of the file
27916 into newly introduced files.
27917 * config/i386/i386.h: Declare common variables
27918 and macros.
27919 * config/i386/t-i386: Define dependencies for new files.
27920
27921 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27922
27923 PR target/89400
27924 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27925 Restrict 'all' variant to 32-bit configurations.
27926 (unaligned_loadhiu): Likewise.
27927 (unaligned_storehi): Likewise.
27928 (unaligned_storesi): Likewise.
27929 (unaligned_loadhis): Disable when compiling for thumb1.
27930
27931 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27932
27933 PR tree-optimization/90269
27934 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27935 Ignore clobbers.
27936
27937 2019-05-03 Martin Liska <mliska@suse.cz>
27938
27939 * hash-map.h: Add is_empty function.
27940 * hash-set.h: Likewise.
27941 * hash-table.h: Likewise.
27942 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27943 elements () == 0 (and similar usages).
27944 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27945 * gimplify.c (gimplify_bind_expr): Likewise.
27946 (gimplify_switch_expr): Likewise.
27947 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27948 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27949 * postreload-gcse.c (dump_hash_table): Likewise.
27950 (gcse_after_reload_main): Likewise.
27951 * predict.c (combine_predictions_for_bb): Likewise.
27952 * tree-parloops.c (reduction_phi): Likewise.
27953 (separate_decls_in_region): Likewise.
27954 (transform_to_exit_first_loop): Likewise.
27955 (gen_parallel_loop): Likewise.
27956 (gather_scalar_reductions): Likewise.
27957 (try_create_reduction_list): Likewise.
27958 * var-tracking.c (dump_vars): Likewise.
27959 (emit_notes_for_changes): Likewise.
27960 (vt_emit_notes): Likewise.
27961
27962 2019-05-03 Richard Biener <rguenther@suse.de>
27963
27964 PR tree-optimization/90316
27965 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27966 before running VN.
27967
27968 2019-05-03 Richard Biener <rguenther@suse.de>
27969
27970 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27971 peeling for gaps by loading only lower halves of vectors
27972 if possible.
27973 (vectorizable_load): Likewise.
27974
27975 2019-05-03 Richard Biener <rguenther@suse.de>
27976
27977 PR middle-end/89518
27978 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27979
27980 2019-05-03 Richard Biener <rguenther@suse.de>
27981
27982 PR middle-end/87314
27983 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27984 Handle STRING_CST vs DECL or STRING_CST.
27985
27986 2019-05-03 Richard Biener <rguenther@suse.de>
27987
27988 PR tree-optimization/88963
27989 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27990 vector loads feeding only BIT_FIELD_REFs to component
27991 loads. Rewrite stores fed by CONSTRUCTORs to component
27992 stores.
27993
27994 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27995
27996 * opts.h (finish_options): Remove lang_mask argument.
27997 (print_help, help_option_argument): Declare.
27998 * opts.c (print_help): Remove forward declaration, no longer static.
27999 (finish_options): Remove lang_mask argument, don't call print_help
28000 here.
28001 * opts-global.c (decode_options): Adjust finish_option caller, call
28002 print_help here.
28003
28004 PR tree-optimization/90303
28005 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28006 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28007
28008 2019-05-03 Richard Biener <rguenther@suse.de>
28009
28010 PR tree-optimization/89698
28011 * gimple-fold.c (canonicalize_constructor_val): Early out
28012 for constants, handle unfolded INTEGER_CSTs as they appear in
28013 C++ virtual table ctors.
28014
28015 2019-05-03 Richard Biener <rguenther@suse.de>
28016
28017 * passes.c (execute_function_todo): Remove dead code.
28018
28019 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28020
28021 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28022 the internal register number, for any "real" register.
28023
28024 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28025
28026 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28027 correct numbers for TFHAR, TFIAR, TEXASR.
28028
28029 2019-05-02 Richard Biener <rguenther@suse.de>
28030
28031 PR tree-optimization/89653
28032 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28033 update-address-taken before the pass.
28034 * passes.def (pass_tree_loop_init): Put comment before it.
28035
28036 2019-05-02 Richard Biener <rguenther@suse.de>
28037
28038 PR tree-optimization/89509
28039 * tree-ssa-structalias.c (compute_dependence_clique): Look
28040 at the first subvar when determining whether it is restrict.
28041
28042 2019-05-02 Richard Biener <rguenther@suse.de>
28043
28044 PR tree-optimization/90273
28045 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28046 useless debug stmts.
28047
28048 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28049
28050 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28051 ACLE branch.
28052 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28053 SVE ACLE branch.
28054 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28055 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28056 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28057 (vectorizable_reduction): Use the functions above to vectorize in a
28058 fully masked loop codes that don't have a conditional internal
28059 function.
28060
28061 2019-05-02 Martin Liska <mliska@suse.cz>
28062
28063 * cgraphclones.c: Call valid_attribute_p with 1 for
28064 target_clone.
28065 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28066 it's for target attribute.
28067 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28068 Add new boolean argument.
28069 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28070 Likewise.
28071 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28072 to ix86_valid_target_attribute_inner_p.
28073 (ix86_valid_target_attribute_p): Pass flags argument to
28074 ix86_valid_target_attribute_inner_p.
28075 (get_builtin_code_for_version): Use 0 as it's target attribute.
28076
28077 2019-05-02 Martin Liska <mliska@suse.cz>
28078
28079 * gcc.c (process_command): Add dummy file only
28080 if n_infiles == 0.
28081 * opts-global.c (decode_options): Pass lang_mask.
28082 * opts.c (print_help): New function.
28083 (finish_options): Print --help if help_option_argument
28084 is set.
28085 (common_handle_option): Factor out content of OPT__help_
28086 into print_help.
28087 * opts.h (finish_options): Add new argument.
28088
28089 2019-05-02 Martin Liska <mliska@suse.cz>
28090
28091 PR target/88809
28092 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28093 With -minline-all-stringops use inline expansion using 4B loop.
28094 * doc/invoke.texi: Document the change of
28095 -minline-all-stringops.
28096
28097 2019-05-01 Jeff Law <law@redhat.com>
28098
28099 PR tree-optimization/88797
28100 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28101 PHI feeds a conditional on the RHS of an assignment.
28102
28103 2019-04-30 Andrew Waterman <andrew@sifive.com>
28104 Jim Wilson <jimw@sifive.com>
28105
28106 * config/riscv/constraints.md (L): New.
28107 * config/riscv/predicates.md (lui_operand): New.
28108 (sfb_alu_operand): New.
28109 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28110 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28111 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28112 * config/riscv/risc.md (type): Add sfb_alu.
28113 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28114 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28115 (branch_zero<mode>): Delete.
28116 (mov<mode>cc): New.
28117 (mov<GPR:mode><X:mode>cc): Likewise.
28118 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28119
28120 2019-04-30 Nathan Sidwell <nathan@acm.org>
28121
28122 * tree.h (MARK_TS_EXP): New.
28123
28124 2019-04-30 Martin Liska <mliska@suse.cz>
28125
28126 * opts.c (enable_warning_as_error): Provide hints
28127 for unknown options.
28128
28129 2019-04-30 Martin Liska <mliska@suse.cz>
28130
28131 PR debug/90288
28132 * doc/invoke.texi: Add missing dash for gas-locview-support
28133 and gno-as-locview-support.
28134
28135 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28136
28137 PR target/89093
28138 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28139 whitespace at the start of target attribute string.
28140
28141 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28142
28143 PR target/86538
28144 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28145 Define __ARM_FEATURE_ATOMICS.
28146
28147 2019-04-30 Martin Liska <mliska@suse.cz>
28148
28149 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28150 into built_in_function enum. Remove code for endp == 2 and
28151 use BUILT_IN_* constants.
28152 (gimple_fold_builtin): Call the function with fcode.
28153
28154 2019-04-30 Martin Liska <mliska@suse.cz>
28155
28156 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28157 DECL_FUNCTION_CODE into ix86_builtins enum before
28158 the switch statement.
28159
28160 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28161
28162 PR tree-optimization/89475
28163 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28164 calls.
28165
28166 2019-04-30 Martin Liska <mliska@suse.cz>
28167
28168 PR translation/90274
28169 * opts.c (print_filtered_help): Wrap string in _(...).
28170
28171 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28172
28173 PR tree-optimization/90240
28174 Revert:
28175 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28176
28177 PR tree-optimization/90078
28178 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28179 checks for infinite_cost overflow.
28180
28181 2019-04-29 Jeff Law <law@redhat.com>
28182
28183 * passes.def: Move -Wrestrict pass after copy propagation.
28184
28185 2019-04-29 Maya Rashish <coypu@sdf.org>
28186
28187 * config.gcc (default_gnu_indirect_function): Default to yes
28188 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28189 sparc*-*-netbsd*, x86_64-*-netbsd*.
28190
28191 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28192
28193 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28194 where cond2 is NE_EXPR.
28195 (is_value_included_in): Update comment.
28196
28197 2019-04-29 Richard Biener <rguenther@suse.de>
28198
28199 PR tree-optimization/90278
28200 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28201 EH on comparison simplification.
28202
28203 2019-04-29 Jason Merrill <jason@redhat.com>
28204
28205 PR c++/82081 - tail call optimization breaks noexcept
28206 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28207 nothrow function to a might-throw function into a tail call.
28208
28209 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28210
28211 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28212 (DDR_INNER_LOOP): Likewise.
28213 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28214 (initialize_data_dependence_relation): Likewise.
28215 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28216
28217 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28218
28219 PR rtl-optimization/90257
28220 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28221 return value.
28222
28223 Revert the revert:
28224 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28225
28226 PR target/90178
28227 Revert:
28228 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28229
28230 Revert the revert:
28231 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28232
28233 Revert:
28234 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28235
28236 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28237
28238 2019-04-29 Richard Biener <rguenther@suse.de>
28239
28240 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28241 rhs issue a reset.
28242
28243 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28244
28245 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28246 varasm.h, and netbsd-protos.h.
28247
28248 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28249
28250 PR target/89261
28251 * config/i386/i386-protos.h (ix86_data_alignment): Change
28252 the second argument type to unsigned int.
28253 * config/i386/i386.c (ix86_data_alignment): Change "align"
28254 argument type to unsigned int.
28255
28256 2019-04-27 Martin Liska <mliska@suse.cz>
28257
28258 PR middle-end/90258
28259 * opt-suggestions.c (option_proposer::build_option_suggestions):
28260 When get_valid_option_values returns empty values, add the
28261 misspelling candidate.
28262
28263 2019-04-26 Jim Wilson <jimw@sifive.com>
28264
28265 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28266 parameter.
28267 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28268 Pass orig_mode to riscv_build_integer.
28269 (riscv_split_integer): Pass mode to riscv_move_integer.
28270 (riscv_legitimize_const_move): Likewise.
28271 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28272 promoted_mode. Replace force_reg call with code to load constant into
28273 promoted reg and then subreg it for the store.
28274 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28275 riscv_move_integer.
28276
28277 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28278
28279 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28280 corrupt codes.
28281
28282 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28283
28284 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28285 commentary about the encoding of precision.
28286
28287 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28288
28289 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28290 * config/i386/t-freebsd64: New file.
28291 * config.gcc: Add the t-freebsd64 for multilib support.
28292
28293 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28294
28295 * doc/extend.texi (vector_size): Add missing comma after @xref.
28296
28297 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28298
28299 * BASE-VER: Set to 10.0.0.
28300
28301 2019-04-25 Richard Biener <rguenther@suse.de>
28302
28303 PR middle-end/89765
28304 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28305 VIEW_CONVERT_EXPR into one operating on an rvalue.
28306
28307 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28308
28309 PR target/89929
28310 * config/i386/i386.c (feature_priority): Moved to file scope.
28311 (processor_features): Likewise.
28312 (processor_model): Likewise.
28313 (_arch_names_table): Likewise.
28314 (arch_names_table): Likewise.
28315 (_feature_list): Removed.
28316 (feature_list): Likewise.
28317 (_isa_names_table): Moved to file scope. Add priority.
28318 (isa_names_table): Likewise.
28319 (get_builtin_code_for_version): Replace feature_list with
28320 isa_names_table. Update error message for P_ZERO priority.
28321
28322 2019-04-25 Richard Biener <rguenther@suse.de>
28323
28324 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28325 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28326
28327 2019-04-24 Jeff Law <law@redhat.com>
28328
28329 PR tree-optimization/90037
28330 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28331 * passes.def: Replace all instance of phi-only cprop with the
28332 lattice propagator. Move propagation pass from after erroneous
28333 path isolation to before erroneous path isolation.
28334 * tree-ssa-phionlycprop.c: Remove.
28335
28336 2019-04-24 Richard Biener <rguenther@suse.de>
28337
28338 PR middle-end/90213
28339 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28340 by size and BITS_PER_UNIT on poly-wide-ints.
28341
28342 2019-04-25 Richard Biener <rguenther@suse.de>
28343
28344 PR middle-end/90194
28345 * match.pd: Add pattern to simplify view-conversion of an
28346 empty constructor.
28347
28348 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28349
28350 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28351 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28352 for Go on 32 bit AIX.
28353 * config/rs6000/aix72.h: Likewise.
28354
28355 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28356
28357 PR target/90193
28358 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28359 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28360
28361 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28362
28363 PR target/89952
28364 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28365 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28366 for restored hard frame pointer.
28367 (s390_sched_dependencies_evaluation): Implement new target hook.
28368 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28369
28370 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28371
28372 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28373 * config/arc/arc.c (arc_init): Cleanup warning message.
28374 (arc_override_options): Likewise.
28375
28376 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28377
28378 PR target/90187
28379 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28380 a register if both if_true and if_false are MEMs.
28381
28382 PR tree-optimization/90208
28383 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28384 after labels of new_bb, not before them.
28385
28386 PR tree-optimization/90211
28387 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28388 which are not SSA_NAMEs.
28389
28390 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28391
28392 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28393 AArch64.
28394 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28395
28396 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28397
28398 PR rtl-optimization/87979
28399 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28400 not equal zero.
28401
28402 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28403
28404 PR rtl-optimization/84032
28405 * modulo-sched.c (ps_insn_find_column): Change condition so that
28406 branch will always be the last insn in a row inside partial
28407 schedule.
28408
28409 2019-04-23 Richard Biener <rguenther@suse.de>
28410
28411 PR debug/90131
28412 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28413 dest_single_pred_p argument.
28414 (remove_forwarder_block): Adjust.
28415 (remove_forwarder_block_with_phi): Likewise.
28416
28417 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28418 Bernd Edlinger <bernd.edlinger@hotmail.de>
28419 Jakub Jelinek <jakub@redhat.com>
28420
28421 PR target/89093
28422 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28423 if used with general-regs-only.
28424 (arm_conditional_register_usage): Don't add non-general regs if
28425 general-regs-only.
28426 (arm_valid_target_attribute_rec): Handle general-regs-only.
28427 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28428 general-regs-only.
28429 (TARGET_HARD_FLOAT_SUB): Define.
28430 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28431 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28432 (TARGET_REALLY_IWMMXT2): Likewise.
28433 * config/arm/arm.opt: Add -mgeneral-regs-only.
28434 * doc/extend.texi: Document ARM general-regs-only target.
28435 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28436
28437 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28438
28439 PR tree-optimization/90078
28440 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28441 checks for infinite_cost overflow.
28442
28443 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28444
28445 PR tree-optimization/90021
28446 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28447 and check univariate against it.
28448 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28449 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28450
28451 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28452
28453 PR target/90178
28454 Revert:
28455 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28456
28457 Revert the revert:
28458 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28459
28460 Revert:
28461 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28462
28463 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28464
28465 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28466
28467 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28468 names using operand format, rather than hard-wired.
28469 (speculation_barrier): Likewise.
28470
28471 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28472
28473 PR tree-optimization/88055
28474 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28475 (gen_one_condition): Use it if !HONOR_NANS.
28476
28477 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28478
28479 PR middle-end/90139
28480 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28481 assign_temp instead of gen_reg_rtx.
28482
28483 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28484
28485 PR translation/90118
28486 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28487 Add missing space before %<.
28488
28489 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28490
28491 PR rtl-optimization/87871
28492 * ira-lives.c (make_object_dead): Don't add conflicts to
28493 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28494
28495 2019-04-18 Martin Sebor <msebor@redhat.com>
28496
28497 PR middle-end/89797
28498 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28499 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28500 assuming type size fits in SHWI.
28501
28502 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28503
28504 PR ipa/85051
28505 * ipa-inline.c (flatten_function): New parameter UPDATE.
28506 (ipa_inline, early_inliner): Use it.
28507
28508 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28509
28510 * fold-const.c (int_const_binop): Return early on failure.
28511
28512 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28513
28514 PR middle-end/85164
28515 * combine.c (force_int_to_mode): Cast the argument rather than
28516 the result of known_alignment.
28517 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28518
28519 2019-04-18 Richard Biener <rguenther@suse.de>
28520
28521 PR debug/90131
28522 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28523 out from ...
28524 (remove_forwarder_block): ... here.
28525 (remove_forwarder_block_with_phi): Also move debug stmts here.
28526
28527 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28528
28529 PR translation/79183
28530 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28531 inform where appropriate.
28532
28533 2019-04-18 Richard Biener <rguenther@suse.de>
28534
28535 * tree.c (get_qualified_type): Put found type variants at the
28536 head of the variant list.
28537
28538 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28539
28540 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28541
28542 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28543
28544 PR target/90125
28545 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28546 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28547 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28548 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28549 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28550
28551 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28552
28553 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28554 even for allocno's with no conflicts.
28555 (print_conflicts): Print an extra newline.
28556
28557 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28558
28559 * auto-inc-dec.c (attempt_change): Set the alignment of the
28560 temporary memory to that of the original.
28561
28562 2019-04-17 Joao Moreira <jmoreira@suse.de>
28563
28564 * targhooks.c (default_print_patchable_function_entry): Emit
28565 __patchable_function_entries section with writable flags to allow
28566 relocation resolution.
28567
28568 2019-04-17 Jonny Grant <jg@jguk.org>
28569
28570 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28571
28572 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28573
28574 PR middle-end/90095
28575 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28576 on lowpart SUBREGs.
28577
28578 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28579
28580 * config/arc/arc.c (arc_init): Format diagnostic string.
28581 (arc_override_options): Likewise.
28582 (check_if_valid_regno_const): Likewise.
28583 (arc_reorg): Likewise.
28584
28585 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28586
28587 PR target/17108
28588 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28589 name.
28590 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28591 name.
28592 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28593 (*movdi_update1): Use Pmode.
28594 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28595 (movdi_<mode>_update_stack): Rename to ...
28596 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28597 use Pmode.
28598 (*movsi_update1): Use Pmode.
28599 (*movsi_update2): Use Pmode.
28600 (movsi_update): Rename to ...
28601 (movsi_<mode>_update): ... this. Use Pmode.
28602 (movsi_update_stack): Fix condition.
28603 (*movhi_update1): Use Pmode. Fix argument to
28604 avoiding_indexed_address_p.
28605 (*movhi_update2): Ditto.
28606 (*movhi_update3): Ditto.
28607 (*movhi_update4): Ditto.
28608 (*movqi_update1): Ditto.
28609 (*movqi_update2): Ditto.
28610 (*movqi_update3): Ditto.
28611 (*movsf_update1, *movdf_update1): Merge, rename to...
28612 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28613 avoiding_indexed_address_p. Add "size" attribute.
28614 (*movsf_update2, *movdf_update2): Merge, rename to...
28615 (*mov<mode>_update2): This. Ditto.
28616 (*movsf_update3): Use Pmode. Fix argument to
28617 avoiding_indexed_address_p.
28618 (*movsf_update4): Ditto.
28619 (allocate_stack): Simplify condition. Adjust pattern names.
28620
28621 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28622
28623 PR target/89093
28624 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28625 whitespace at the start of target attribute string.
28626
28627 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28628
28629 PR target/84369
28630 * config/rs6000/power9.md: Add store forwarding bypass.
28631
28632 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28633
28634 PR debug/89528
28635 * valtrack.c (dead_debug_insert_temp): Reset debug references
28636 to the return value of a call being removed.
28637
28638 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28639
28640 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28641 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28642 implement target hook.
28643 (arc_memory_move_cost): New function.
28644 (TARGET_REGISTER_MOVE_COST): Define.
28645 (TARGET_MEMORY_MOVE_COST): Likewise.
28646 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28647 (MEMORY_MOVE_COST): Likewise.
28648
28649 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28650
28651 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28652 (sibcall_value_insn): Likewise.
28653 * config/arc/constraints.md (Rs5): Remove.
28654
28655 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28656
28657 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28658 for last two fake registers.
28659 (arc_conditional_register_usage): Make sure fake frame and arg
28660 pointer regs are in general regs class.
28661 (FRAME_POINTER_MASK): Remove.
28662 (RETURN_ADDR_MASK): Remove.
28663 (arc_must_save_register): Use hard frame regnum.
28664 (frame_restore_reg): Use hard_frame_pointer_rtx.
28665 (arc_save_callee_saves): Likewise.
28666 (arc_restore_callee_saves): Likewise.
28667 (arc_save_callee_enter): Likewise.
28668 (arc_restore_callee_leave): Likewise.
28669 (arc_save_callee_milli): Likewise.
28670 (arc_eh_return_address_location): Likewise.
28671 (arc_check_multi): Use hard frame regnum.
28672 (arc_can_eliminate): Likewise.
28673 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28674 for register allocator.
28675 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28676 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28677 (FRAME_POINTER_REGNUM): Change it to a fake register.
28678 (HARD_FRAME_POINTER_REGNUM): Defined.
28679 (ARG_POINTER_REGNUM): Change it to a new fake register.
28680 (ELIMINABLE_REGS): Update.
28681 (REGISTER_NAMES): Update names.
28682 * config/arc/arc.md (LP_START): Remove.
28683 (LP_END): Likewise.
28684 (shift_si3_loop): Update pattern.
28685
28686 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28687
28688 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28689 to avoid delay slot scheduling.
28690 (arc_must_save_register): Don't save SP.
28691 * config/arc/arc.md (stack_tie): Remove.
28692 (UNSPEC_ARC_STKTIE): Likewise.
28693
28694 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28695 Shiva Chen <shiva0217@gmail.com>
28696
28697 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28698 code gen with large shift amount.
28699
28700 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28701
28702 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28703 subreg.
28704
28705 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28706
28707 PR target/90096
28708 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28709 print -m64/-mx32/-m32 if it is true.
28710 (ix86_debug_options, ix86_function_specific_print): Pass true as
28711 ADD_ABI_P to ix86_target_string.
28712 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28713 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28714 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28715
28716 PR rtl-optimization/90082
28717 * dce.c (can_delete_call): New function.
28718 (deletable_insn_p, mark_insn): Use it.
28719
28720 PR tree-optimization/90090
28721 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28722 throw internally.
28723 (is_division_by_square): Likewise. Formatting fix.
28724
28725 2019-04-16 Richard Biener <rguenther@suse.de>
28726
28727 PR tree-optimization/56049
28728 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28729 equality check if alias-set zero will prevail.
28730
28731 2019-04-15 Jeff Law <law@redhat.com>
28732
28733 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28734 size and alignment as unsigned.
28735
28736 2019-04-15 Richard Biener <rguenther@suse.de>
28737
28738 PR debug/90074
28739 * tree-loop-distribution.c (destroy_loop): Preserve correct
28740 debug info.
28741
28742 2019-04-15 Richard Biener <rguenther@suse.de>
28743
28744 PR tree-optimization/90071
28745 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28746 abnormal operands from def stmts.
28747
28748 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28749
28750 PR rtl-optimization/89794
28751 * combine.c (count_auto_inc): New function.
28752 (try_combine): Count how many auto_inc expressions there were in the
28753 original instructions. Ensure we have the same number in the new
28754 instructions. Remove the code that tried to ensure auto_inc side
28755 effects on i1 and i0 are not lost.
28756
28757 2019-04-15 Richard Biener <rguenther@suse.de>
28758
28759 PR ipa/88936
28760 * tree.h (auto_var_p): Declare.
28761 * tree.c (auto_var_p): New function, split out from ...
28762 (auto_var_in_fn_p): ... here.
28763 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28764 member.
28765 (new_var_info): Initialize it.
28766 (set_uids_in_ptset): Also set the shadow variable uid if required.
28767 (ipa_pta_execute): Postprocess points-to solutions assigning
28768 shadow variable uids for locals that may reach their containing
28769 function recursively.
28770 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28771 assert but instead check whether the points-to solution is
28772 a singleton.
28773
28774 2019-04-15 Martin Jambor <mjambor@suse.cz>
28775
28776 PR ipa/pr89693
28777 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28778 the thunk chain.
28779
28780 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28781
28782 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28783
28784 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28785 Kito Cheng <kito.cheng@gmail.com>
28786 Shiva Chen <shiva0217@gmail.com>
28787
28788 * config/nds32/nds32-md-auxiliary.c
28789 (nds32_legitimize_pic_address): Use new PIC pattern.
28790 (nds32_legitimize_tls_address): Use new TLS pattern.
28791 (nds32_output_symrel): New.
28792 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28793 (nds32_alloc_relax_group_id): Ditto.
28794 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28795 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28796 relax_group_id.
28797 (nds32_group_tls_insn): Ditto.
28798 (nds32_group_float_insns): Ditto.
28799 * config/nds32/nds32.md (tls_le): New.
28800 (sym_got): Ditto.
28801
28802 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28803
28804 * configure: Add nds32 target for dwarf2 debug_line checking.
28805 * configure.ac: Regenerated.
28806
28807 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28808
28809 PR lto/89358
28810 * ipa-devirt.c (skip_in_fields_list_p): New.
28811 (odr_types_equivalent_p): Use it.
28812
28813 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28814
28815 PR target/89093
28816 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28817 instead of strncmp when checking for thumb and arm. Formatting fixes.
28818
28819 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28820
28821 * doc/install.texi: Document --with-target-system-zlib.
28822
28823 2019-04-12 Martin Sebor <msebor@redhat.com>
28824
28825 PR c/88383
28826 PR c/89288
28827 PR c/89798
28828 PR c/89797
28829 * targhooks.c (default_vector_alignment): Avoid assuming
28830 argument fits in SHWI.
28831 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28832 a shift expression.
28833 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28834
28835 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28836
28837 PR rtl-optimization/89965
28838 * dce.c: Include rtl-iter.h.
28839 (struct check_argument_load_data): New type.
28840 (check_argument_load): New function.
28841 (find_call_stack_args): Check for loads from stack slots still tracked
28842 in sp_bytes and punt if any is found.
28843
28844 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28845
28846 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28847
28848 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28849 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28850
28851 2019-04-12 Martin Liska <mliska@suse.cz>
28852
28853 PR middle-end/89970
28854 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28855 in error message.
28856 (separate_attrs): Handle multiple 'default's.
28857 (expand_target_clones): Rework error handling code.
28858
28859 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28860
28861 PR target/87532
28862 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28863 mode of vector rather than mode of destination for move instruction.
28864 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28865 Use QI inner mode with V16QI vector mode.
28866
28867 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28868
28869 PR target/52726
28870 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28871 "invalid %%t operand" in output_operand_lossage message.
28872
28873 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28874
28875 * config/s390/predicates.md (permute_pattern_operand): New
28876 predicate.
28877 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28878 operand for the permute pattern.
28879 ("*vec_perm<mode>"): New insn definition.
28880 ("bswap<mode>"): Generate the permute pattern operand in the
28881 expander and perform the operand reloads for pre arch13 level
28882 already.
28883 ("*bswap<mode>_emu"): Rename to ...
28884 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28885 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28886 Add the USE operand for the permute pattern.
28887 ("*vec_set_bswap_vec<mode>"): Likewise.
28888
28889 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28890
28891 PR c/89946
28892 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28893 and gcc_unreachable if it fails, just call tree_to_uhwi which
28894 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28895 Start warning message with a lower-case letter. Formatting fixes.
28896
28897 PR rtl-optimization/90026
28898 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28899 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28900 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28901 in cfglayout mode, use emit_barrier_after_bb.
28902
28903 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28904
28905 PR rtl-optimization/87763
28906 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28907 New Instruction.
28908
28909 2019-04-11 Tom de Vries <tdevries@suse.de>
28910
28911 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28912 max macro using statement expression.
28913
28914 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28915
28916 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28917 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28918 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28919 read_only_private_data_section using xcoff_private_rodata_section_name.
28920 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28921
28922 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28923
28924 PR target/90016
28925 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28926
28927 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28928
28929 PR rtl-optimization/89965
28930 * dce.c (sp_based_mem_offset): New function.
28931 (find_call_stack_args): Use sp_based_mem_offset.
28932
28933 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28934
28935 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28936
28937 2019-04-11 Richard Biener <rguenther@suse.de>
28938
28939 PR tree-optimization/90020
28940 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28941 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28942 * tree-ssa-pre.c (compute_avail): Use it to not put
28943 possibly trapping references after a call that might not
28944 return into EXP_GEN.
28945 * gcse.c (compute_hash_table_work): Do not elide
28946 marking a block containing a call if the call might not
28947 return.
28948
28949 2019-04-11 Richard Biener <rguenther@suse.de>
28950
28951 PR tree-optimization/90018
28952 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28953 Test both SLP and interleaving variants.
28954
28955 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28956
28957 * config/s390/8561.md: New file.
28958 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28959 Add arch13 cpu model.
28960 * config/s390/s390-opts.h (enum processor_type): Likewise.
28961 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28962 (s390_get_unit_mask): Likewise.
28963 (s390_is_fpd): Likewise.
28964 (s390_is_fxd): Likewise.
28965 * config/s390/s390.h (s390_tune_attr): Likewise.
28966 * config/s390/s390.md: Include arch13 pipeline description.
28967 * config/s390/s390.opt: Add arch13.
28968
28969 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28970
28971 PR rtl-optimization/87763
28972 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28973 New prototype.
28974 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28975 New function.
28976 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28977 New instruction.
28978 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28979 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28980 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28981 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28982
28983 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28984
28985 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28986 "Although" in -fipa-icf documentation.
28987
28988 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28989 of using multiple -g options.
28990
28991 2019-04-10 Martin Liska <mliska@suse.cz>
28992
28993 PR gcov-profile/89959
28994 * doc/gcov.texi: Make documentation of -x option
28995 more precise.
28996
28997 2019-04-10 Richard Biener <rguenther@suse.de>
28998
28999 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29000 member.
29001 (DR_GROUP_SAME_DR_STMT): Remove.
29002 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29003 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29004 replace with assert.
29005 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29006 (vect_record_grouped_load_vectors): Remove unreachable code.
29007
29008 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29009
29010 PR target/90016
29011 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29012 obsolete reference to N.
29013
29014 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29015
29016 PR middle-end/90025
29017 * expr.c (store_expr): Set properly size on the MEM passed to
29018 clear_storage.
29019
29020 PR c++/90010
29021 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29022 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29023 translation is needed, and when translation is needed, only append
29024 ... if the string length is hostsz or more bytes long. Avoid using
29025 strncpy or strcat.
29026
29027 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29028
29029 PR target/90024
29030 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29031 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29032 into three.
29033 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29034 differences directly.
29035 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29036
29037 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29038
29039 PR translation/90011
29040 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29041 from diagnostics.
29042 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29043 diagnostics.
29044 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29045 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29046 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29047 trailing space from -gsplit-dwarf diagnostics.
29048
29049 PR tree-optimization/89998
29050 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29051 instead of integer_type_node if possible, don't add ranges if return
29052 type is not compatible with int.
29053 * gimple-fold.c (gimple_fold_builtin_sprintf,
29054 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29055 integer_type_node.
29056
29057 2019-04-09 Martin Liska <mliska@suse.cz>
29058
29059 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29060 * doc/install.texi: Document the new config.
29061
29062 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29063
29064 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29065 use gimple_expr_type for load and store calls. Skip over the
29066 condition argument in a conditional internal function.
29067 Protect use of TREE_INT_CST_LOW.
29068
29069 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29070
29071 PR target/90015
29072 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29073 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29074 trailing period from it too.
29075
29076 2019-04-08 wu yuan <wuyuan5@huawei.com>
29077
29078 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29079 * config/aarch64/aarch64.md: Add "tsv110.md".
29080 * config/aarch64/tsv110.md: New file.
29081
29082 2019-04-08 Richard Biener <rguenther@suse.de>
29083
29084 PR tree-optimization/90006
29085 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29086 calls like lrint.
29087
29088 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29089
29090 PR target/83033
29091 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29092 construction.
29093 (fma_root_node): Likewise.
29094 (func_fma_steering): Likewise.
29095
29096 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29097
29098 PR rtl-optimization/89865
29099 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29100
29101 PR rtl-optimization/89865
29102 * config/i386/i386.md
29103 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29104 numbers not to clash with the additional operands[4].
29105 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29106 with extra register copy in the middle.
29107
29108 2019-04-08 Martin Liska <mliska@suse.cz>
29109
29110 PR gcov-profile/89961
29111 * doc/gcov.texi: Document data_file.
29112 * gcov.c (generate_results): Add data_info into JSON output.
29113
29114 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29115
29116 PR tree-optimization/89725
29117 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29118 loop's chrec as invariant symbol.
29119 * tree-chrec.h (chrec_contains_symbols): New parameter.
29120 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29121 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29122 function of loops not in DDR's loop_nest.
29123 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29124
29125 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29126
29127 PR target/89623
29128 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29129 Mask.
29130
29131 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29132
29133 PR target/89945
29134 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29135 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29136
29137 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29138
29139 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29140 targetm.fixed_condition_code_regs.
29141
29142 2019-04-05 Richard Biener <rguenther@suse.de>
29143
29144 PR debug/89892
29145 PR debug/89905
29146 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29147 debug bind stmts but reset them if they are not valid at the
29148 destination.
29149
29150 2019-04-05 Martin Liska <mliska@suse.cz>
29151
29152 PR translation/89936
29153 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29154 order to wrap keywords or arguments.
29155 * collect2.c (main): Likewise.
29156 (scan_prog_file): Likewise.
29157 (scan_libraries): Likewise.
29158 * common/config/riscv/riscv-common.c
29159 (riscv_subset_list::parsing_subset_version): Likewise.
29160 (riscv_subset_list::parse_std_ext): Likewise.
29161 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29162 Likewise.
29163 * config/arm/arm.c (arm_option_override): Likewise.
29164 * config/cris/cris.c (cris_print_operand): Likewise.
29165 * config/darwin-c.c (darwin_pragma_options): Likewise.
29166 (darwin_pragma_unused): Likewise.
29167 (darwin_pragma_ms_struct): Likewise.
29168 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29169 * config/i386/i386.c (print_reg): Likewise.
29170 (ix86_print_operand): Likewise.
29171 * config/i386/xm-djgpp.h: Likewise.
29172 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29173 * config/m32c/m32c.c (m32c_option_override): Likewise.
29174 * config/msp430/msp430.c (msp430_option_override): Likewise.
29175 * config/nds32/nds32.c (nds32_option_override): Likewise.
29176 * config/nvptx/mkoffload.c (main): Likewise.
29177 * config/rx/rx.c (rx_print_operand): Likewise.
29178 (valid_psw_flag): Likewise.
29179 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29180 (vms_pragma_nomember_alignment): Likewise.
29181 (vms_pragma_extern_model): Likewise.
29182 * lto-wrapper.c (compile_offload_image): Likewise.
29183 * omp-offload.c (oacc_parse_default_dims): Likewise.
29184 * symtab.c (symtab_node::verify_base): Likewise.
29185 * tlink.c (recompile_files): Likewise.
29186 (start_tweaking): Likewise.
29187 * tree-profile.c (parse_profile_filter): Likewise.
29188
29189 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29190
29191 PR tree-optimization/89956
29192 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29193 multiple negates of the same value.
29194
29195 2019-04-04 Martin Sebor <msebor@redhat.com>
29196
29197 PR middle-end/89957
29198 PR middle-end/89911
29199 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29200 have the same precision since the function crashes otherwise.
29201 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29202 has non-zero arguments.
29203
29204 2019-04-04 Martin Sebor <msebor@redhat.com>
29205
29206 PR middle-end/89934
29207 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29208 out if the number of arguments is less than expected.
29209
29210 2019-04-04 Jeff Law <law@redhat.com>
29211
29212 PR rtl-optimization/89399
29213 * ree.c (combine_set_extension): Use single_set rather than
29214 digging into PATTERN for items on the candidate list.
29215 (combine_reaching_defs): Likewise.
29216
29217 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29218
29219 PR rtl-optimization/46590
29220 * loop-invariant.c (find_defs): Move df_remove_problem and
29221 df_process_deferred_rescans to move_invariants.
29222 Move df_live_add_problem and df_live_set_all_dirty calls
29223 to move_invariants.
29224 (move_invariants): Likewise.
29225 (move_loop_invariants): Likewise, making the df_live calls
29226 conditional on -O. Remove the problem again if we added it
29227 locally.
29228
29229 2019-04-03 qing zhao <qing.zhao@oracle.com>
29230
29231 PR tree-optimization/89730
29232 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29233 -flive-patching=inline-only-static.
29234 (can_inline_edge_by_limits_p): Add the checking for
29235 -flive-patching=inline-only-static and grant always_inline
29236 even when -flive-patching=inline-only-static is specified.
29237
29238 2019-04-03 Jeff Law <law@redhat.com>
29239
29240 PR rtl-optimization/81025
29241 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29242
29243 2019-04-03 Richard Biener <rguenther@suse.de>
29244
29245 PR tree-optimization/84101
29246 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29247 regs.h for hard_regno_nregs.
29248 (cfun_returns): New helper.
29249 (vect_model_store_cost): When vectorizing a store to a decl
29250 we return and the function ABI returns in a multi-reg location
29251 account for the possible spilling that will happen.
29252
29253 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29254
29255 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29256 displacement addresses for vector mode operands.
29257
29258 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29259
29260 * config/arc/arc.c (GMASK_LEN): Define.
29261 (arc_restore_callee_saves): Restore first blink when
29262 !optimize_size.
29263
29264 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29265
29266 * doc/extend.texi: Add deprecated comment on sign-return-address
29267 function attribute and add mbranch-protection.
29268 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29269
29270 2019-04-03 Richard Biener <rguenther@suse.de>
29271
29272 PR lto/89896
29273 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29274 the all target phony.
29275
29276 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29277
29278 PR target/89902
29279 PR target/89903
29280 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29281 Return false for variable DImode shifts.
29282 (dimode_scalar_chain::compute_convert_gain): Do not handle
29283 register count operand in variable DImode shifts.
29284 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29285 count argument of a variable shift instruction to a vector register.
29286 (dimode_scalar_chain::convert_reg): Remove support to convert
29287 count argument of a variable shift instruction.
29288
29289 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29290
29291 PR rtl-optimization/84206
29292 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29293 iterating over loop headers.
29294
29295 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29296
29297 PR rtl-optimization/85876
29298 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29299 beyond the original fence.
29300
29301 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29302
29303 * config.gcc: Mark spu* targets as deprecated/obsolete.
29304
29305 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29306
29307 * config/s390/s390-builtin-types.def: New builtin function type
29308 definitions. Remove unused types.
29309 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29310 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29311 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29312 overloaded builtins.
29313 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29314 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29315 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29316 (vec_double, vec_signed, vec_unsigned): Define to use the new
29317 overloaded builtins.
29318 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29319 Remove expanders.
29320
29321 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29322
29323 * config/s390/s390-builtin-types.def: New builtin function type
29324 definitions.
29325 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29326 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29327 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29328 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29329 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29330 constant definitions.
29331 * config/s390/vecintrin.h (vec_search_string_cc)
29332 (vec_search_string_until_zero_cc): New builtin name definitions.
29333 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29334 expanders.
29335 ("vec_vstrs<mode>"): New insn definition.
29336
29337 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29338
29339 * config/s390/s390-builtin-types.def: Add new builtin function
29340 types.
29341 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29342 New overloaded builtins.
29343 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29344 s390_vsrd.
29345 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29346 (UNSPEC_VEC_SLDBYTE): ... this.
29347 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29348 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29349 definitions.
29350 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29351 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29352 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29353
29354 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29355
29356 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29357 New insn definition.
29358 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29359 * config/s390/vector.md (V_HW_HSD): ... here.
29360
29361 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29362
29363 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29364 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29365 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29366 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29367 New insn definitions.
29368
29369 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29370
29371 * config/s390/s390-builtin-types.def: Add new builtin function type.
29372 * config/s390/s390-builtins.def: Add overloaded builtin
29373 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29374 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29375 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29376 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29377 ("eltswap<mode>"): New expander.
29378 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29379 insn definitions.
29380
29381 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29382
29383 * config/s390/s390-builtin-types.def: Add new builtin function types.
29384 * config/s390/s390-builtins.def: Add overloaded builtin
29385 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29386 instructions.
29387 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29388 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29389 ("bswap<mode>"): New expander.
29390 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29391
29392 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29393
29394 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29395 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29396 vector builtin version number in __VEC__.
29397
29398 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29399
29400 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29401 iterators.
29402 (SFSI): New mode attribute.
29403 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29404 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29405 rename to ...
29406 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29407 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29408 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29409 ("floatsi<mode>2"): Add wcefb instruction.
29410
29411 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29412
29413 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29414 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29415 mode iterators.
29416 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29417 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29418 support 32 bit fp-int conversions. Rename to ...
29419 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29420 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29421 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29422 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29423 ... to these.
29424
29425 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29426
29427 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29428 if-then-else constructs if we can use the select instruction.
29429 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29430
29431 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29432
29433 * config/s390/s390.md ("*popcountdi_arch13_cc")
29434 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29435 definition.
29436 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29437 Append _z196 to make it ...
29438 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29439 ("popcounthi2_z196"): ... this.
29440 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29441 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29442
29443 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29444
29445 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29446 certain compares for arch13 in order to make use of the condition
29447 code result produced by the new instructions.
29448 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29449 nxrk, and nxgrk instruction patterns.
29450 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29451 (inv_no): Add new code iterator together with some attributes.
29452 ("*andc_split_<mode>"): Disable splitter for arch13.
29453 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29454 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29455 ("*<ANDOR:bitops_name>c<GPR:mode>")
29456 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29457 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29458 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29459 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29460
29461 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29462
29463 * common/config/s390/s390-common.c (processor_flags_table): New
29464 entry for arch13.
29465 * config.gcc: Support arch13 with the --with-arch= configure flag.
29466 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29467 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29468 * config/s390/s390.c (s390_get_sched_attrmask)
29469 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29470 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29471 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29472 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29473 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29474 definitions.
29475 * config/s390/s390.opt: Support arch13 as processor type in
29476 command line options.
29477
29478 2019-04-02 Martin Liska <mliska@suse.cz>
29479
29480 PR translation/89912
29481 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29482 Fix param description of graphite-max-arrays-per-scop.
29483
29484 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29485
29486 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29487 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29488 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29489
29490 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29491
29492 PR rtl-optimization/85412
29493 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29494 sel_sched_region_1, not after.
29495
29496 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29497
29498 PR rtl-optimization/86928
29499 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29500 compute_live if necessary.
29501 (sel_redirect_edge_and_branch): Likewise.
29502
29503 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29504
29505 PR rtl-optimization/89865
29506 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29507 register if it is a part of small class.
29508
29509 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29510
29511 PR rtl-optimization/87273
29512 * sel-sched-ir.c (merge_fences): Remove assert.
29513
29514 2019-04-01 Richard Biener <rguenther@suse.de>
29515
29516 PR tree-optimization/46590
29517 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29518 (dom_walker::m_reachability): Add in place of...
29519 (dom_walker::m_skip_unreachable_blocks): ...this.
29520 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29521 Move complex initialization ...
29522 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29523 lazily and initialize edge flags on each invocation.
29524 (dom_walker::bb_reachable): Use m_reachability.
29525
29526 2019-04-01 Martin Liska <mliska@suse.cz>
29527
29528 PR driver/89861
29529 * opt-suggestions.c (option_proposer::build_option_suggestions):
29530 Add variant without any argument in order to provide better
29531 hints.
29532
29533 2019-04-01 Richard Biener <rguenther@suse.de>
29534
29535 PR c/71598
29536 * gimple.c: Include langhooks.h.
29537 (gimple_get_alias_set): Treat enumeral types as the underlying
29538 integer type.
29539
29540 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29541 Eric Botcazou <ebotcazou@adacore.com>
29542
29543 PR rtl-optimization/89862
29544 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29545 that operates on the full registers for WORD_REGISTER_OPERATIONS
29546 architectures.
29547
29548 2019-03-29 Jim Wilson <jimw@sifive.com>
29549
29550 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29551 Clear MASK_RVC and then set if C subset supported.
29552
29553 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29554
29555 PR c/89872
29556 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29557 non-addressable complit into its initializer if it is volatile.
29558
29559 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29560
29561 * opts-common.c (integral_argument): Set errno properly in one case.
29562
29563 2019-03-29 Martin Liska <mliska@suse.cz>
29564
29565 * doc/invoke.texi: Remove -Wchkp from documentation.
29566
29567 2019-03-29 Martin Liska <mliska@suse.cz>
29568
29569 * dbgcnt.c (print_limit_reach): New function.
29570 (dbg_cnt): Use it.
29571
29572 2019-03-29 Martin Liska <mliska@suse.cz>
29573
29574 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29575 (dbg_cnt_process_opt): Parse first tokens aas
29576 dbg_cnt_process_single_pair is also using strtok.
29577
29578 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29579
29580 PR rtl-optimization/87485
29581 * function.c (expand_function_end): Move stack_protect_epilogue
29582 before loading of return value into hard register(s).
29583
29584 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29585
29586 PR middle-end/89621
29587 * tree-inline.h (struct copy_body_data): Add
29588 dont_remap_vla_if_no_change flag.
29589 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29590 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29591 and remap_type_2 returns false.
29592 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29593 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29594 only from where it is copied to nested contexts.
29595
29596 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29597
29598 PR target/89865
29599 * config/i386/i386.md (RMW operation with LEA peephole):
29600 Use LEAMODE mode attribute instead of SWI mode iterator for
29601 LEA pattern.
29602
29603 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29604
29605 PR target/89848
29606 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29607 Also process XEXP (src, 0) of a shift insn.
29608
29609 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29610
29611 PR middle-end/89725
29612 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29613 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29614
29615 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29616
29617 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29618 test.
29619 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29620 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29621 immediately after first one with df_analyze in between, but rather
29622 process all bbs, queueing ones that need second pass in a worklist,
29623 df_analyze, process queued debug insn changes and if second pass is
29624 needed, process bbs from worklist, df_analyze, process queued debug
29625 insns again.
29626
29627 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29628 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29629 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29630
29631 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29632
29633 PR c/79022
29634 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29635 definition.
29636
29637 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29638
29639 PR target/85667
29640 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29641 function for 32-bit MS_ABI.
29642 (function_value_ms_32): New function.
29643
29644 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29645
29646 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29647 (movdi): Call gen_movdi_symbol_save_scc.
29648 (gen_movdi_symbol_save_scc): New insn and split.
29649
29650 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29651
29652 PR rtl-optimization/89313
29653 * function.c (matching_constraint_num): New static function.
29654 (match_asm_constraints_1): Use it. Fixup white space and comment.
29655 Don't replace inputs with non-matching constraints which conflict
29656 with early clobber outputs.
29657
29658 2019-03-27 Jeff Law <law@redhat.com>
29659
29660 PR rtl-optimization/87761
29661 PR rtl-optimization/89826
29662 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29663 slightly later.
29664 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29665 note problem to get REG_DEAD/REG_UNUSED notes updated.
29666
29667 2019-03-27 Richard Biener <rguenther@suse.de>
29668
29669 PR tree-optimization/89463
29670 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29671 queue edges to remove.
29672 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29673 dead stmts. Delay edge removal until PHIs are removed to
29674 make debug-stmt creation not confused by seemingly degenerate
29675 PHIs.
29676
29677 2019-03-27 Alan Modra <amodra@gmail.com>
29678
29679 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29680 throughout file.
29681 * config/rs6000/darwin.h: Likewise.
29682 * config/rs6000/rs6000.c: Likewise.
29683
29684 2019-03-27 Alan Modra <amodra@gmail.com>
29685
29686 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29687 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29688
29689 2019-03-26 Andrew Waterman <andrew@sifive.com>
29690 Jim Wilson <jimw@sifive.com>
29691
29692 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29693 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29694 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29695 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29696 (generic_alu): Add auipc to type list.
29697 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29698 (riscv_microarchitecture): Declare.
29699 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29700 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29701 field.
29702 (riscv_microarchitecture): New.
29703 (sifive_7_tune_info): New.
29704 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29705 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29706 entries.
29707 (riscv_store_data_bypass_p): New.
29708 (riscv_option_override): Set riscv_microarchitecture from
29709 cpu->microarchitecture.
29710 * config/riscv/riscv.md: Include sifive-7.md.
29711 (type): Add auipc.
29712 (tune): New.
29713 (auipc<mode>): Change type to auipc.
29714 (restore_stack_nonlocal): New.
29715 * config/riscv/sifive-7.md: New.
29716 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29717
29718 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29719
29720 PR target/89827
29721 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29722 Also process XEXP (src, 0) of a shift insn.
29723
29724 2019-03-26 Richard Biener <rguenther@suse.de>
29725
29726 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29727 (copy_debug_stmt): Likewise.
29728 (expand_call_inline): Likewise.
29729 (copy_bb): Avoid redundant lookup & set of gimple_block.
29730 * gimple-low.c (lower_gimple_return): Likewise.
29731 (lower_builtin_setjmp): Likewise.
29732
29733 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29734
29735 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29736 is constant 0, turn into static const data member initialized to false.
29737 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29738 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29739
29740 2019-03-26 Jason Merrill <jason@redhat.com>
29741 Jakub Jelinek <jakub@redhat.com>
29742
29743 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29744 method.
29745 (mem_alloc_description::release_object_overhead): Fix comment typos.
29746 * hash-table.h (hash_table::~hash_table): Call
29747 release_instance_overhead only if m_entries is non-NULL, otherwise
29748 call unregister_descriptor.
29749
29750 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29751
29752 PR tree-optimization/81740
29753 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29754 In case of outer loop vectorization, check for backward dependence
29755 at the inner loop if outer loop dependence is reversed.
29756
29757 2019-03-26 Alan Modra <amodra@gmail.com>
29758
29759 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29760 rs6000_vector_mem init. Correct wI and wJ comment.
29761
29762 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29763
29764 PR rtl-optimization/88347
29765 PR rtl-optimization/88423
29766 * sched-deps.c (sched_analyze_insn): Take into account that for
29767 tablejumps the barrier appears after a label and a jump_table_data.
29768
29769 2019-03-25 Martin Sebor <msebor@redhat.com>
29770
29771 PR c/89812
29772 * c-common.c (check_user_alignment): Rename local. Correct maximum
29773 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29774 convert it to UHWI when it fits.
29775
29776 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29777
29778 PR debug/86964
29779 * dwarf2out.c (premark_used_variables): New function.
29780 (prune_unused_types_walk): Do not mark not premarked external
29781 variables.
29782 (prune_unused_types): Call premark_used_variables.
29783
29784 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29785
29786 PR rtl-optimization/89676
29787 * lra-constraints.c (curr_insn_transform): Do match reload for
29788 early clobbers when the match was successful only for different
29789 registers.
29790
29791 2019-03-25 Martin Sebor <msebor@redhat.com>
29792
29793 * doc/extend.texi (Common Type Attributes): Document vector_size.
29794 (Common Variable Attributes): Mention size constraint. Correct
29795 quoting and typos.
29796 (Vector Extensions): Use @dfn when defining bas type. Clarify
29797 base type and size constraints.
29798
29799 2019-03-25 Richard Biener <rguenther@suse.de>
29800
29801 PR tree-optimization/89789
29802 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29803 changes from non-undefined back to undefined.
29804
29805 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29806
29807 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29808 heap string and a gc string, but since this variable is unknown to
29809 ggc the gc string might get reused and corrupted. Fixed by always
29810 using a heap string.
29811
29812 2019-03-25 Richard Biener <rguenther@suse.de>
29813
29814 PR tree-optimization/89779
29815 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29816 to remove IV defs, delay actual removal.
29817 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29818 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29819 very end, properly also reset loop control IV information.
29820
29821 2019-03-25 Richard Biener <rguenther@suse.de>
29822
29823 PR tree-optimization/89802
29824 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29825 move EH data to folded stmt.
29826
29827 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29828
29829 * config/s390/s390-builtin-types.def: Remove few unused types and
29830 fix sort order for others.
29831
29832 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29833
29834 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29835 expected and found types with -mdebug during builtin matching.
29836
29837 2019-03-25 Richard Biener <rguenther@suse.de>
29838
29839 PR middle-end/89790
29840 * fold-const.c (operand_equal_p): Revert last change with
29841 updated comment.
29842
29843 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29844
29845 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29846 notes for the result of the __tls_get_addr calls.
29847 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29848
29849 2019-03-24 Jeff Law <law@redhat.com>
29850
29851 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29852
29853 PR rtl-optimization/87761
29854 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29855 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29856 as needed.
29857 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29858 rescans. Reprocess blocks as needed, calling df_analyze before
29859 reprocessing. Always call df_analyze before fixing up debug bind
29860 insns.
29861
29862 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29863
29864 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29865 big endian.
29866
29867 2019-03-22 Andrew Pinski <apinski@marvell.com>
29868
29869 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29870 attrribute for uxtw.
29871
29872 2019-03-26 Jeff Law <law@redhat.com>
29873
29874 PR rtl-optimization/87761
29875 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29876 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29877 (mips_split_move): Accept new INSN argument. Try to forward SRC
29878 into the next instruction.
29879 (mips_split_move_insn): Pass INSN through to mips_split_move.
29880
29881 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29882
29883 PR rtl-optimization/89676
29884 * lra-constraints.c (curr_insn_transform): Do match reload for
29885 early clobbers even if the match was successful.
29886
29887 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29888
29889 PR c++/87481
29890 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29891
29892 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29893
29894 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29895
29896 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29897
29898 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29899 <avx512>_fmsub_<mode>_mask3<round_name>,
29900 <avx512>_fnmadd_<mode>_mask3<round_name>,
29901 <avx512>_fnmsub_<mode>_mask3<round_name>,
29902 avx512f_vmfmadd_<mode>_mask3<round_name>,
29903 avx512f_vmfmsub_<mode>_mask3<round_name>,
29904 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29905 instead of register_operand and %v instead of v for match_operand 1.
29906 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29907 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29908 <round_nimm_predicate> instead of register_operand and %v instead of v
29909 for match_operand 1.
29910
29911 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29912 <avx512>_fmadd_<mode>_mask3<round_name>,
29913 <avx512>_fmsub_<mode>_mask<round_name>,
29914 <avx512>_fmsub_<mode>_mask3<round_name>,
29915 <avx512>_fnmadd_<mode>_mask<round_name>,
29916 <avx512>_fnmadd_<mode>_mask3<round_name>,
29917 <avx512>_fnmsub_<mode>_mask<round_name>,
29918 <avx512>_fnmsub_<mode>_mask3<round_name>,
29919 <avx512>_fmaddsub_<mode>_mask<round_name>,
29920 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29921 <avx512>_fmsubadd_<mode>_mask<round_name>,
29922 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29923 <round_nimm_predicate> instead of nonimmediate_operand.
29924 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29925 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29926 Use register_operand instead of <round_nimm_predicate> for the
29927 operand that needs to match output.
29928 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29929 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29930 Likewise. Formatting fixes.
29931
29932 PR target/89784
29933 * config/i386/i386.c (enum ix86_builtins): Remove
29934 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29935 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29936 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29937 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29938 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29939 __builtin_ia32_vfmsubss3_mask3): New builtins.
29940 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29941 avx512f_vmfmadd_<mode>_mask3<round_name>,
29942 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29943 *avx512f_vmfmsub_<mode>_mask<round_name>,
29944 avx512f_vmfmsub_<mode>_mask3<round_name>,
29945 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29946 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29947 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29948 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29949 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29950 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29951 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29952 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29953 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29954 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29955 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29956 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29957 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29958 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29959 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29960 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29961 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29962 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29963 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29964 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29965 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29966 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29967 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29968 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29969 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29970 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29971 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29972 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29973
29974 2019-03-21 Martin Sebor <msebor@redhat.com>
29975
29976 PR tree-optimization/89350
29977 * builtins.c (compute_objsize): Also ignore offsets whose upper
29978 bound is negative.
29979 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29980 (builtin_memref::builtin_memref): Initialize new member.
29981 Allow EXPR to be null.
29982 (builtin_memref::extend_offset_range): Replace local with a member.
29983 Avoid assuming pointer offsets are unsigned.
29984 (builtin_memref::set_base_and_offset): Determine base object
29985 before computing offset range.
29986 (builtin_access::builtin_access): Handle memset.
29987 (builtin_access::generic_overlap): Replace local with a member.
29988 (builtin_access::strcat_overlap): Same.
29989 (builtin_access::overlap): Same.
29990 (maybe_diag_overlap): Same.
29991 (maybe_diag_access_bounds): Same.
29992 (wrestrict_dom_walker::check_call): Handle memset.
29993 (check_bounds_or_overlap): Same.
29994
29995 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29996 Jakub Jelinek <jakub@redhat.com>
29997
29998 PR lto/89692
29999 * tree.c (fld_type_variant, fld_incomplete_type_of,
30000 fld_process_array_type): Call fld->pset.add and don't call
30001 add_tree_to_fld_list if it returns true.
30002 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30003 non-marked types from TYPE_NEXT_VARIANT list.
30004 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30005
30006 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30007
30008 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30009 to false, if true, don't alloc_entries during construction, but defer
30010 it to the first method that needs m_entries allocated.
30011 (hash_table::hash_table, hash_table::~hash_table,
30012 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30013 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30014 hash_table::clear_slot, hash_table::traverse_noresize,
30015 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30016 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30017 false.
30018 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30019 NO_INSERT instead of find_with_hash.
30020 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30021 hash_set::m_table): Add Lazy to template params of hash_table.
30022 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30023 * attribs.c (test_attribute_exclusions): Likewise.
30024 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30025 hash_set. Add tests for hash_set with Lazy = true.
30026
30027 2019-03-21 Richard Biener <rguenther@suse.de>
30028
30029 PR tree-optimization/89779
30030 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30031 checks with respect to released SSA names now having error_mark_node
30032 type.
30033 * fold-const.c (operand_equal_p): Likewise.
30034
30035 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30036
30037 PR target/89775
30038 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30039 available to ...
30040 (s390_optimize_register_info): Use global_not_special_regno_p to
30041 check for global regs.
30042
30043 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30044
30045 PR target/89752
30046 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30047 update this_alternative nor this_alternative_set.
30048
30049 2019-03-19 Jim Wilson <jimw@sifive.com>
30050
30051 PR target/89411
30052 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30053 align, size, offset. Use them to handle a BLKmode reference. Update
30054 comment.
30055 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30056
30057 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30058
30059 PR rtl-optimization/89768
30060 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30061 instead of GEN_INT.
30062 (unroll_loop_runtime_iterations): Likewise.
30063
30064 2019-03-19 Martin Sebor <msebor@redhat.com>
30065
30066 PR tree-optimization/89644
30067 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30068 rather than endptr as an indicator of nul-termination.
30069
30070 PR tree-optimization/89644
30071 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30072 arrays in determining sequence sizes in strncpy and stpncpy.
30073
30074 2019-03-19 Martin Liska <mliska@suse.cz>
30075
30076 PR middle-end/89737
30077 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30078 unlikely_edges if there's an edge that belongs to both these sets.
30079
30080 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30081
30082 PR target/89746
30083 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30084 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30085 go via a stack temporary.
30086
30087 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30088
30089 PR target/89378
30090 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30091 instead of gen_rtx_SUBREG.
30092 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30093
30094 2019-03-19 Richard Biener <rguenther@suse.de>
30095
30096 PR debug/88389
30097 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30098
30099 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30100
30101 PR lto/87809
30102 PR lto/89335
30103 * tree.c (free_lang_data_in_decl): Do not free context of C++
30104 destrutors.
30105
30106 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30107
30108 PR target/89506
30109 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30110 subs for the first alternative except when operands[3] is 1.
30111
30112 PR target/89752
30113 * gimplify.c (gimplify_asm_expr): For output argument with
30114 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30115 diagnose error.
30116
30117 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30118
30119 PR rtl-optimization/89753
30120 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30121 explicit unrolling factor even more robust.
30122
30123 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30124
30125 PR target/89726
30126 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30127 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30128 signed zeros, do another copysign after the compensation.
30129
30130 2019-03-18 Martin Sebor <msebor@redhat.com>
30131
30132 PR tree-optimization/89720
30133 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30134 more conservatively, the same as anti-range.
30135
30136 2019-03-18 Richard Biener <rguenther@suse.de>
30137
30138 PR middle-end/88945
30139 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30140 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30141 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30142 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30143
30144 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30145
30146 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30147 Extend queue to 1024 entries.
30148 Add "consumed" field.
30149 (gomp_print_output): Remove print_index parameter.
30150 Add final parameter.
30151 Change limit to unsigned.
30152 Use consumed field to implement circular buffer.
30153 Detect interrupted print in final pass.
30154 Flush output at the end.
30155 (run): Update gomp_print_output usage.
30156 (main): Initialize kernargs->output_data.consumed.
30157
30158 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30159
30160 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30161 calculation of the minimum number of scalar iterations for
30162 fully-predicated loops.
30163
30164 2019-03-18 Martin Jambor <mjambor@suse.cz>
30165
30166 PR tree-optimization/89546
30167 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30168 any propagation to its children took place.
30169
30170 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30171
30172 PR target/89627
30173 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30174 parameter, and make use of it.
30175 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30176
30177 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30178
30179 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30180 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30181 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30182 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30183 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30184 match what the ops is doing.
30185 (push_multi_fp_blink): Likewise.
30186 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30187 compiling for size and elf target.
30188 (arc_save_callee_enter): Adjust note to match what enter/leave
30189 operation does.
30190
30191 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30192
30193 * config/arc/arc.md (tst_movb): Fix constraint.
30194
30195 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30196
30197 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30198
30199 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30200
30201 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30202 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30203 reg_alloc_order references.
30204 (size_alloc_order): Define.
30205 (arc_adjust_reg_alloc_order): New function.
30206 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30207 order.
30208 (ADJUST_REG_ALLOC_ORDER): Define.
30209 (HONOR_REG_ALLOC_ORDER): Likewise.
30210
30211 2019-03-18 Richard Biener <rguenther@suse.de>
30212
30213 PR target/87561
30214 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30215 loads and stores a bit more.
30216
30217 2019-03-18 Richard Biener <rguenther@suse.de>
30218
30219 PR target/87561
30220 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30221 load pessimization to stores as well.
30222
30223 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30224
30225 PR middle-end/86979
30226 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30227 successor, use NULL as its av set.
30228
30229 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30230
30231 PR rtl-optimization/89721
30232 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30233
30234 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30235
30236 PR target/87532
30237 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30238 When handling vec_extract, use modular arithmetic to allow
30239 constant selectors greater than vector length.
30240 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30241 V1TImode vectors to have constant selector values greater than 0.
30242 Use modular arithmetic to compute vector index.
30243 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30244 index for in-memory vectors. Correct code generation for
30245 in-register vectors.
30246 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30247 compute index.
30248
30249 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30250
30251 PR c++/88534
30252 PR c++/88537
30253 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30254 VAR_DECL args.
30255
30256 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30257
30258 PR c++/89709
30259 * tree.c (inchash::add_expr): Strip any location wrappers.
30260 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30261 after hash verification.
30262
30263 PR debug/89704
30264 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30265 SIGN_EXTEND and ZERO_EXTEND.
30266
30267 2019-03-14 Jason Merrill <jason@redhat.com>
30268 Jakub Jelinek <jakub@redhat.com>
30269
30270 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30271 than if is_empty (*slot).
30272 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30273 existing elt and for elt removal.
30274 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30275 of already removed elt.
30276
30277 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30278
30279 PR target/89650
30280 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30281 REG_EH_REGION note.
30282
30283 2019-03-14 Martin Liska <mliska@suse.cz>
30284
30285 PR other/89712
30286 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30287
30288 2019-03-14 Richard Biener <rguenther@suse.de>
30289
30290 PR target/89711
30291 * config/i386/i386.c (make_resolver_func): Properly set
30292 DECL_CONTEXT on the RESULT_DECL.
30293 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30294
30295 2019-03-14 Richard Biener <rguenther@suse.de>
30296
30297 * gimple-pretty-print.c: Include cfgloop.h.
30298 (dump_gimple_phi): Adjust.
30299 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30300 (pp_cfg_jump): Adjust.
30301 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30302 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30303 (lower_phi_internal_fn): Remove.
30304 (verify_gimple_call): Remove IFN_PHI special-casing.
30305 (dump_function_to_file): Dump IL state.
30306 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30307 done to deal with PHI nodes being present in non-SSA state.
30308
30309 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30310
30311 PR ipa/89684
30312 * multiple_target.c (create_dispatcher_calls): Change
30313 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30314 In the node->iterate_referring loop, push *ref rather than ref, call
30315 ref->remove_reference () and always pass 0 to iterate_referring.
30316
30317 PR rtl-optimization/89679
30318 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30319 would contain a paradoxical SUBREG.
30320
30321 2019-03-14 Richard Biener <rguenther@suse.de>
30322
30323 PR tree-optimization/89710
30324 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30325 safe_dyn_cast.
30326
30327 2019-03-14 Martin Liska <mliska@suse.cz>
30328
30329 * coverage.c (coverage_begin_function): Stream also
30330 end_column.
30331 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30332 documentation about function declaration location.
30333 * gcov-dump.c (tag_function): Print whole range
30334 of function declaration.
30335 * gcov.c (struct function_info): Add end_column field.
30336 (function_info::function_info): Initialize it.
30337 (output_json_intermediate_file): Output {start,end}_column
30338 fields.
30339 (read_graph_file): Read end_column.
30340
30341 2019-03-14 Richard Biener <rguenther@suse.de>
30342
30343 PR middle-end/89698
30344 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30345 that the access types are similar.
30346
30347 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30348
30349 PR tree-optimization/89703
30350 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30351 aren't compatible also with builtin_decl_explicit. Check pure
30352 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30353 and BUILT_IN_STPNCPY{,_CHK}.
30354
30355 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30356
30357 PR target/89523
30358 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30359 addr32 prefix to VSIB address for X32.
30360 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30361 "%M2" to opcode.
30362 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30363 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30364 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30365 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30366 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30367 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30368 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30369 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30370 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30371 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30372 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30373 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30374 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30375 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30376 (*avx512f_scatterdi<mode>): Likewise.
30377
30378 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30379
30380 PR target/85860
30381 * lra-constraints.c (inherit_in_ebb): Update
30382 potential_reload_hard_regs along with live_hard_regs.
30383
30384 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30385
30386 PR debug/89498
30387 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30388 DWARF_OFFSET_SIZE.
30389 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30390
30391 2019-03-13 Martin Sebor <msebor@redhat.com>
30392
30393 PR tree-optimization/89662
30394 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30395 has a size.
30396
30397 2019-03-13 Richard Biener <rguenther@suse.de>
30398
30399 PR middle-end/89677
30400 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30401 throw FP expressions at tree-affine.
30402
30403 2019-03-14 Richard Biener <rguenther@suse.de>
30404
30405 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30406 dump negative integer constants using _Literal (type) -num.
30407
30408 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30409
30410 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30411 nonlocal_value member.
30412
30413 PR middle-end/88588
30414 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30415 (ipa_simd_modify_function_body): Handle PHIs.
30416
30417 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30418
30419 * config/s390/s390.c (s390_option_override_internal): Use more
30420 aggressive inlining parameters.
30421
30422 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30423
30424 * config/s390/3906.md: New file.
30425 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30426 (LONGRUNNING_THRESHOLD): Remove.
30427 (MAX_SCHED_MIX_SCORE): Decrease.
30428 (MAX_SCHED_MIX_DISTANCE): Decrease.
30429 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30430 (struct s390_sched_state): New struct to hold scheduling state.
30431 (S390_SCHED_STATE_NORMAL): Remove.
30432 (S390_SCHED_STATE_CRACKED): Remove.
30433 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30434 (s390_get_sched_attrmask): Use new attribute.
30435 (s390_get_unit_mask): Use new units.
30436 (s390_is_fpd): New function.
30437 (s390_is_fxd): New function.
30438 (s390_is_longrunning): New function.
30439 (s390_sched_score): Use new functions.
30440 (s390_sched_reorder): Likewise.
30441 (s390_sched_variable_issue): Rework and use new functions.
30442 (s390_sched_init): Use new functions.
30443 * config/s390/s390.h (s390_tune_attr): Add z14.
30444 * config/s390/s390.md: Add z14.
30445
30446 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30447
30448 * config/s390/2964.md: Update pipeline description.
30449 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30450 (LONGRUNNING_THRESHOLD): Remove.
30451 (LATENCY_FACTOR): Remove.
30452 (s390_get_unit_mask): Add unit.
30453 (s390_sched_score): Use fxd/fpd.
30454 (s390_sched_variable_issue): Use fxd/fpd.
30455
30456 2019-03-12 Martin Liska <mliska@suse.cz>
30457
30458 * config/i386/i386.c: Reword an error message.
30459
30460 2019-03-12 Martin Jambor <mjambor@suse.cz>
30461
30462 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30463 terminate with newline.
30464
30465 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30466
30467 PR target/52726
30468 * config/s390/s390.md (tabort): Use %wd instead of
30469 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30470 letters and periods.
30471 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30472 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30473 's with %< and %>.
30474
30475 PR middle-end/89663
30476 * builtins.c (expand_builtin_int_roundingfn,
30477 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30478 gcc_unreachable if validate_arglist fails.
30479
30480 2019-03-12 Richard Biener <rguenther@suse.de>
30481
30482 PR tree-optimization/89664
30483 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30484 free the occurance tree after the early out.
30485
30486 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30487
30488 PR middle-end/89655
30489 PR bootstrap/89656
30490 * vr-values.c (vr_values::update_value_range): If
30491 old_vr->varying_p (), don't update it, make new_vr also VARYING
30492 and return false.
30493
30494 2019-03-11 Martin Liska <mliska@suse.cz>
30495
30496 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30497 Fix double string quoting.
30498
30499 2019-03-11 Martin Liska <mliska@suse.cz>
30500
30501 * collect-utils.c (collect_wait): Wrap apostrophes
30502 in gcc internal format with %'.
30503 * collect2.c (main): Likewise.
30504 (scan_prog_file): Likewise.
30505 (scan_libraries): Likewise.
30506 * config/i386/i386.c (ix86_expand_call): Likewise.
30507 (ix86_handle_interrupt_attribute): Likewise.
30508 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30509 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30510 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30511 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30512 * symtab.c (symtab_node::verify_base): Likewise.
30513 * tree-cfg.c (verify_gimple_label): Likewise.
30514 * tree.c (verify_type_variant): Likewise.
30515
30516 2019-03-11 Martin Liska <mliska@suse.cz>
30517
30518 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30519 in a string format message and fix GNU coding style.
30520 (expand_builtin_set_thread_pointer): Likewise.
30521 * common/config/aarch64/aarch64-common.c
30522 (aarch64_rewrite_selected_cpu): Likewise.
30523 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30524 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30525 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30526 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30527 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30528 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30529 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30530 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30531 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30532 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30533 Likewise.
30534 * common/config/riscv/riscv-common.c
30535 (riscv_subset_list::parsing_subset_version): Likewise.
30536 (riscv_subset_list::parse_std_ext): Likewise.
30537 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30538 (riscv_subset_list::parse): Likewise.
30539 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30540 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30541 (aarch64_override_options_internal): Likewise.
30542 (aarch64_validate_mcpu): Likewise.
30543 (aarch64_validate_march): Likewise.
30544 (aarch64_validate_mtune): Likewise.
30545 (aarch64_override_options): Likewise.
30546 * config/alpha/alpha.c (alpha_option_override): Likewise.
30547 * config/arc/arc.c (arc_init): Likewise.
30548 (parse_mrgf_banked_regs_option): Likewise.
30549 (arc_override_options): Likewise.
30550 (arc_expand_builtin_aligned): Likewise.
30551 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30552 (arm_expand_builtin): Likewise.
30553 * config/arm/arm.c (arm_option_check_internal): Likewise.
30554 (arm_configure_build_target): Likewise.
30555 (arm_option_override): Likewise.
30556 (arm_options_perform_arch_sanity_checks): Likewise.
30557 (arm_handle_cmse_nonsecure_entry): Likewise.
30558 (arm_handle_cmse_nonsecure_call): Likewise.
30559 (arm_tls_referenced_p): Likewise.
30560 (thumb1_expand_prologue): Likewise.
30561 * config/avr/avr.c (avr_option_override): Likewise.
30562 * config/bfin/bfin.c (bfin_option_override): Likewise.
30563 * config/c6x/c6x.c (c6x_option_override): Likewise.
30564 * config/cr16/cr16.c (cr16_override_options): Likewise.
30565 * config/cris/cris.c (cris_option_override): Likewise.
30566 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30567 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30568 * config/darwin.c (darwin_override_options): Likewise.
30569 * config/frv/frv.c (frv_expand_builtin): Likewise.
30570 * config/h8300/h8300.c (h8300_option_override): Likewise.
30571 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30572 (ix86_option_override_internal): Likewise.
30573 (warn_once_call_ms2sysv_xlogues): Likewise.
30574 (ix86_expand_prologue): Likewise.
30575 (split_stack_prologue_scratch_regno): Likewise.
30576 (ix86_warn_parameter_passing_abi): Likewise.
30577 * config/ia64/ia64.c (fix_range): Likewise.
30578 * config/m68k/m68k.c (m68k_option_override): Likewise.
30579 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30580 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30581 (mips_set_compression_mode): Likewise.
30582 * config/mmix/mmix.c (mmix_option_override): Likewise.
30583 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30584 * config/msp430/msp430.c (msp430_option_override): Likewise.
30585 * config/nds32/nds32.c (nds32_option_override): Likewise.
30586 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30587 (nios2_option_override): Likewise.
30588 (nios2_expand_custom_builtin): Likewise.
30589 * config/nvptx/mkoffload.c (main): Likewise.
30590 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30591 * config/pa/pa.c (fix_range): Likewise.
30592 (pa_option_override): Likewise.
30593 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30594 (riscv_option_override): Likewise.
30595 * config/rl78/rl78.c (rl78_option_override): Likewise.
30596 * config/rs6000/aix61.h: Likewise.
30597 * config/rs6000/aix71.h: Likewise.
30598 * config/rs6000/aix72.h: Likewise.
30599 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30600 * config/rs6000/freebsd64.h: Likewise.
30601 * config/rs6000/linux64.h: Likewise.
30602 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30603 (rs6000_expand_zeroop_builtin): Likewise.
30604 (rs6000_expand_mtfsb_builtin): Likewise.
30605 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30606 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30607 (rs6000_invalid_builtin): Likewise.
30608 (rs6000_expand_split_stack_prologue): Likewise.
30609 * config/rs6000/rtems.h: Likewise.
30610 * config/rx/rx.c (valid_psw_flag): Likewise.
30611 (rx_expand_builtin): Likewise.
30612 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30613 * config/s390/s390.c (s390_expand_builtin): Likewise.
30614 (s390_function_profiler): Likewise.
30615 (s390_option_override_internal): Likewise.
30616 (s390_option_override): Likewise.
30617 * config/sh/sh.c (sh_option_override): Likewise.
30618 (sh_builtin_saveregs): Likewise.
30619 (sh_fix_range): Likewise.
30620 * config/sh/vxworks.h: Likewise.
30621 * config/sparc/sparc.c (sparc_option_override): Likewise.
30622 * config/spu/spu.c (spu_option_override): Likewise.
30623 (fix_range): Likewise.
30624 * config/visium/visium.c (visium_option_override): Likewise.
30625 (visium_handle_interrupt_attr): Likewise.
30626 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30627 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30628 (dbg_cnt_process_opt): Likewise.
30629 * dwarf2out.c (output_dwarf_version): Likewise.
30630 * except.c (expand_eh_return): Likewise.
30631 * gcc.c (defined): Likewise.
30632 (driver_handle_option): Likewise.
30633 (process_command): Likewise.
30634 (compare_files): Likewise.
30635 (driver::prepare_infiles): Likewise.
30636 (driver::do_spec_on_infiles): Likewise.
30637 (driver::maybe_run_linker): Likewise.
30638 * omp-offload.c (oacc_parse_default_dims): Likewise.
30639 * opts-global.c (handle_common_deferred_options): Likewise.
30640 * opts.c (parse_sanitizer_options): Likewise.
30641 (common_handle_option): Likewise.
30642 (enable_warning_as_error): Likewise.
30643 * passes.c (enable_disable_pass): Likewise.
30644 * plugin.c (parse_plugin_arg_opt): Likewise.
30645 (default_plugin_dir_name): Likewise.
30646 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30647 (default_pch_valid_p): Likewise.
30648 * toplev.c (init_asm_output): Likewise.
30649 (process_options): Likewise.
30650 (toplev::run_self_tests): Likewise.
30651 * tree-cfg.c (verify_gimple_call): Likewise.
30652 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30653 (tree_inlinable_function_p): Likewise.
30654 * var-tracking.c (vt_find_locations): Likewise.
30655
30656 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30657
30658 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30659 only on the else branch.
30660
30661 2019-03-11 Martin Liska <mliska@suse.cz>
30662
30663 * gcov.c (output_intermediate_json_line): Print function
30664 name of each line.
30665 (output_json_intermediate_file): Add new argument.
30666 * doc/gcov.texi: Document the change.
30667
30668 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30669
30670 PR rtl-optimization/89588
30671 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30672 explicit unrolling factor more robust.
30673
30674 2019-03-11 Richard Biener <rguenther@suse.de>
30675
30676 PR tree-optimization/89649
30677 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30678 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30679 on the prolog and epilog loops.
30680 (vect_loop_versioning): Return copy of loop.
30681 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30682 on the non-vectorized version of the loop.
30683
30684 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30685
30686 PR target/68924
30687 * config/i386/sse.md (*vec_extractv2di_0_sse):
30688 Add (=r,x) alternative and corresponding splitter.
30689
30690 2019-03-10 Martin Jambor <mjambor@suse.cz>
30691
30692 PR tree-optimization/85762
30693 PR tree-optimization/87008
30694 PR tree-optimization/85459
30695 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30696 it points to if there is a type changing MEM_REF. Adjust all callers.
30697 (build_accesses_from_assign): Disable total scalarization if
30698 contains_vce_or_bfcref_p returns true through the new parameter, for
30699 both rhs and lhs.
30700
30701 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30702
30703 PR c/88568
30704 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30705 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30706
30707 PR target/79645
30708 * common.opt (fdiagnostics-show-labels,
30709 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30710 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30711 gas-locview-support, ginline-points, ginternal-reset-location-views):
30712 Terminate description text with a dot.
30713 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30714 * config/mcore/mcore.opt (m210, m340): Likewise.
30715 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30716 mnops=): Start description text with a capital letter.
30717 * config/arc/arc.opt (msize-level=): Likewise.
30718 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30719 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30720 mnewlib): Likewise.
30721 * config/ft32/ft32.opt (msim): Likewise.
30722 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30723 (mnodiv, mnopm): Terminate description text with a dot.
30724 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30725 a colon.
30726 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30727 Likewise.
30728 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30729 text.
30730
30731 PR rtl-optimization/89634
30732 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30733 are modified in BB_END (e->src) instruction.
30734
30735 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30736
30737 PR target/79926
30738 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30739 messages more amenable to translation, and improve wording.
30740
30741 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30742
30743 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30744 ud- and du-chains between phases.
30745
30746 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30747
30748 PR debug/89631
30749 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30750 instead of POLY_INT_CST.
30751
30752 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30753
30754 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30755 requirement.
30756
30757 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30758
30759 PR target/68924
30760 PR target/78782
30761 PR target/87558
30762 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30763 (_mm_storeu_si64): Ditto.
30764
30765 2019-03-08 Martin Liska <mliska@suse.cz>
30766
30767 PR target/86952
30768 * config/i386/i386.c (ix86_option_override_internal): Disable
30769 jump tables when retpolines are used.
30770
30771 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30772
30773 PR go/63560
30774 * ipa-split.c (execute_split_functions): Do not split
30775 'noinline' or 'section' function.
30776
30777 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30778
30779 PR target/79846
30780 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30781 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30782 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30783
30784 PR ipa/80000
30785 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30786 from diagnostics. Formatting fixes.
30787
30788 PR target/85665
30789 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30790 warn_odr diagnostics.
30791
30792 PR other/80058
30793 * lra-constraints.c (process_alt_operands): Avoid one space before
30794 " at the end of line and another after " on another line in a string
30795 literal.
30796 * attribs.c (handle_dll_attribute): Likewise.
30797 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30798
30799 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30800 warning_at or inform messages in G_() if there is no ?:.
30801
30802 PR tree-optimization/89550
30803 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30804 returned true. Formatting fixes.
30805 (expand_builtin_strnlen): Formatting fixes.
30806 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30807 if warning_at returned true.
30808 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30809
30810 2019-03-08 Richard Biener <rguenther@suse.de>
30811
30812 PR middle-end/89578
30813 * cfgloop.h (struct loop): Add owned_clique field.
30814 * cfgloopmanip.c (copy_loop_info): Copy it.
30815 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30816 cliques.
30817 * tree-inline.c (copy_loops): Remap owned_clique.
30818 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30819 * lto-streamer-out.c (output_cfg): Likewise.
30820
30821 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30822
30823 PR target/80190
30824 * config/darwin.c: Include intl.h.
30825 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30826 composing the message out of two separate parts.
30827
30828 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30829
30830 PR target/80003
30831 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30832 doesn't start with a capital letter and doesn't end with a dot.
30833 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30834 with a capital letter.
30835 (ix86_mangle_function_version_assembler_name): Likewise.
30836 (ix86_generate_version_dispatcher_body): Likewise.
30837 (fold_builtin_cpu): Likewise.
30838 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30839 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30840 translators, wrap full type name in %qs.
30841
30842 PR translation/79999
30843 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30844 depend clause with source (or sink) modifier.
30845 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30846
30847 PR target/89602
30848 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30849 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30850 (avx512f_load<mode>_mask): New define_expand.
30851 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30852 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30853 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30854 __builtin_ia32_movess_mask): New builtins.
30855 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30856 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30857 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30858 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30859
30860 2019-03-07 Martin Jambor <mjambor@suse.cz>
30861
30862 PR lto/87525
30863 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30864 for extern inline functions.
30865
30866 2019-03-07 Martin Jambor <mjambor@suse.cz>
30867
30868 PR ipa/88235
30869 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30870 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30871 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30872 have multiple callees. At the end check if declarations match as
30873 opposed to cgraph_nodes.
30874
30875 2019-03-07 Martin Liska <mliska@suse.cz>
30876
30877 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30878 which is equivalent to searching for this in clones chain.
30879 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30880 names with a neighbour and special case first node in a chain.
30881
30882 2019-01-25 Jason Merrill <jason@redhat.com>
30883
30884 PR c++/80916 - spurious "static but not defined" warning.
30885 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30886 for an internal symbol with DECL_EXTERNAL.
30887
30888 2019-04-07 Richard Biener <rguenther@suse.de>
30889
30890 PR middle-end/89618
30891 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30892 * tree-inline.c (copy_loops): Simplify.
30893
30894 2019-03-07 Martin Liska <mliska@suse.cz>
30895
30896 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30897
30898 2019-03-07 Richard Biener <rguenther@suse.de>
30899
30900 PR tree-optimization/89595
30901 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30902 stmt iterator as reference, take boolean output parameter to
30903 indicate whether the stmt was removed and thus the iterator
30904 already advanced.
30905 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30906 stmts created by folding.
30907
30908 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30909
30910 PR c++/89585
30911 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30912 at toplevel.
30913
30914 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30915
30916 PR rtl-optimization/88845
30917 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30918 LRA.
30919 * lra.c (remove_scratches_1): New function.
30920 (remove_scratches): Use it.
30921 (lra_emit_move): Likewise.
30922
30923 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30924
30925 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30926 unaligned_access variable.
30927 * config/arc/arc.c (arc_override_options): Set unaligned access
30928 default on for HS CPUs.
30929 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30930
30931 2019-03-06 Martin Liska <mliska@suse.cz>
30932
30933 PR gcov-profile/89577
30934 * doc/gcov.texi: Prefer to use --coverage.
30935 * doc/sourcebuild.texi: Likewise.
30936
30937 2019-03-02 Jason Merrill <jason@redhat.com>
30938
30939 PR c++/86485 - -Wmaybe-unused with empty class ?:
30940 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30941
30942 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30943
30944 PR target/89587
30945 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30946 if_multiarch.
30947
30948 PR middle-end/89590
30949 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30950 exactly one argument.
30951
30952 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30953 Richard Sandiford <richard.sandiford@arm.com>
30954
30955 PR tree-optimization/89570
30956 * match.pd (vec_cond into cond_op simplification): Don't use
30957 get_conditional_internal_fn, use as_internal_fn (cond_op).
30958
30959 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30960
30961 PR target/89222
30962 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30963 to decide when to split off a non-zero offset from a symbol.
30964 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30965 in function symbols.
30966
30967 2019-03-05 Richard Biener <rguenther@suse.de>
30968
30969 PR tree-optimization/89594
30970 * tree-if-conv.c (pass_if_conversion::execute): Handle
30971 case where .LOOP_VECTORIZED_FUNCTION was removed.
30972
30973 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30974
30975 PR bootstrap/89560
30976 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30977 instead alloca it only when needed with the needed size.
30978
30979 PR tree-optimization/89570
30980 * match.pd (vec_cond into cond_op simplification): Guard with
30981 vectorized_internal_fn_supported_p test and #if GIMPLE.
30982
30983 PR tree-optimization/89566
30984 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30985 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30986 Punt if get_user_idx_format succeeds, but idx_format argument is
30987 not provided or doesn't have pointer type, or if idx_args is above
30988 number of provided arguments.
30989
30990 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30991
30992 PR tree-optimization/89437
30993 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30994
30995 2019-03-04 Richard Biener <rguenther@suse.de>
30996
30997 PR middle-end/89572
30998 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30999 safe_dyn_cast.
31000
31001 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31002
31003 PR tree-optimization/89487
31004 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31005 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31006 (distribute_loop): Don't do runtime alias check if there is non-
31007 addressable data reference.
31008 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31009 is a register variable.
31010
31011 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31012
31013 PR target/89506
31014 * config/arm/arm.md (cmpsi2_addneg): Use
31015 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31016 If operands[2] is 0 or INT_MIN, force use of subs.
31017 (*compare_scc splitter): Use gen_int_mode.
31018 (*negscc): Likewise.
31019 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31020
31021 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31022 Monk Chiang <sh.chiang04@gmail.com>
31023
31024 * common/config/riscv/riscv-common.c: Include sstream.
31025 (riscv_subset_list::to_string): New.
31026 (riscv_arch_str): Likewise.
31027 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31028 * config.in: Regen.
31029 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31030 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31031 (riscv_emit_attribute): New.
31032 (riscv_file_start): Emit attribute if needed.
31033 (riscv_option_override): Init riscv_emit_attribute_p.
31034 * config/riscv/riscv.opt (mriscv-attribute): New option.
31035 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31036 * configure: Regen.
31037 * doc/install.texi: Document --with-riscv-attribute.
31038 * doc/invoke.texi: Document -mriscv-attribute.
31039
31040 * common/config/riscv/riscv-common.c:
31041 Include config/riscv/riscv-protos.h.
31042 (INCLUDE_STRING): Defined.
31043 (RISCV_DONT_CARE_VERSION): Defined.
31044 (riscv_subset_t): Declare.
31045 (riscv_subset_t::riscv_subset_t): New.
31046 (riscv_subset_list): Declare.
31047 (riscv_subset_list::riscv_subset_list): New.
31048 (riscv_subset_list::~riscv_subset_list): Likewise.
31049 (riscv_subset_list::parsing_subset_version): Likewise.
31050 (riscv_subset_list::parse_std_ext): Likewise.
31051 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31052 (riscv_subset_list::add): Likewise.
31053 (riscv_subset_list::lookup): Likewise.
31054 (riscv_subset_list::xlen): Likewise.
31055 (riscv_subset_list::parse): Likewise.
31056 (riscv_supported_std_ext): Likewise.
31057 (current_subset_list): Likewise.
31058 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31059 parse.
31060
31061 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31062
31063 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31064 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31065 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31066
31067 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31068
31069 PR rtl-optimization/85899
31070 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31071 fallthru edges leading to the exit block.
31072
31073 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31074
31075 PR target/89517
31076 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31077 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31078
31079 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31080
31081 PR tree-optimization/89535
31082 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31083 for each operand. Calculate the fallback choice for mask operands
31084 and pass it to vect_get_vec_def_for_operand.
31085
31086 2019-03-01 Richard Biener <rguenther@suse.de>
31087
31088 PR middle-end/89541
31089 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31090 get virtual operands.
31091 (get_expr_operands): Handle CONST_DECL like other decls.
31092
31093 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31094
31095 PR middle-end/89503
31096 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31097 on DECL_P and EXPR_P.
31098
31099 2019-03-01 Richard Biener <rguenther@suse.de>
31100
31101 PR middle-end/89497
31102 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31103 argument, defaulted to zero.
31104 * passes.c (execute_function_todo): Pass down SSA update flags
31105 to cleanup_tree_cfg.
31106 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31107 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31108 form if requested.
31109 (cleanup_tree_cfg): Get and pass down SSA update flags.
31110
31111 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31112
31113 PR bootstrap/89539
31114 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31115 early_lto_debug argument.
31116
31117 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31118
31119 PR tree-optimization/89536
31120 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31121 only whether bit #0 of the value is 0 instead of the entire value.
31122
31123 2019-02-28 Marek Polacek <polacek@redhat.com>
31124
31125 PR c++/87068 - missing diagnostic with fallthrough statement.
31126 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31127 at the end of a seq, save its location to walk_stmt_info.
31128 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31129 a switch.
31130
31131 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31132
31133 PR lto/88585
31134 * tree.c (find_atomic_core_type): Move ahead in file.
31135 (check_base_type): Correctly compare alignments of atomic types.
31136
31137 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31138
31139 PR target/89455
31140 * config/i386/i386.c (get_builtin_code_for_version): Identify
31141 Westmere from PCLMUL, instead of AES.
31142
31143 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31144
31145 PR target/89434
31146 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31147 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31148 -UINTVAL (...).
31149
31150 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31151
31152 PR target/88530
31153 * config/aarch64/aarch64-option-extensions.def: Document it.
31154 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31155 if empty hwcaps.
31156
31157 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31158
31159 PR c/89520
31160 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31161 builtins if they don't have a single scalar floating point argument.
31162 Formatting fixes.
31163
31164 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31165
31166 PR rtl-optimization/89490
31167 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31168 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31169 block section is not mergeable.
31170
31171 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31172
31173 PR target/70341
31174 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31175 old define_insn to ...
31176 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31177 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31178 Rename old define_insn to ...
31179 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31180 (thumb2_casesi_internal_pic): New define_expand. Rename old
31181 define_insn to ...
31182 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31183 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31184 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31185
31186 2019-02-27 Richard Biener <rguenther@suse.de>
31187
31188 PR debug/88878
31189 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31190
31191 2019-02-27 Richard Biener <rguenther@suse.de>
31192
31193 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31194 building.
31195
31196 2019-02-27 Richard Biener <rguenther@suse.de>
31197
31198 PR debug/88878
31199 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31200 parameter, prefix section name with .gnu.debuglto_ if true.
31201 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31202 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31203
31204 2019-02-27 Richard Biener <rguenther@suse.de>
31205
31206 PR debug/89514
31207 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31208 rather than on use_debug_types, doing what output_die does.
31209 (value_format): Likewise.
31210
31211 2019-02-27 Martin Jambor <mjambor@suse.cz>
31212 Martin Sebor <msebor@redhat.com>
31213
31214 * doc/invoke.texi (Warning Options): Reword description of
31215 -Wno-absolute-value.
31216
31217 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31218
31219 PR tree-optimization/89280
31220 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31221 builtin_setjmp_setup_bb): New functions.
31222 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31223 When visiting __builtin_setjmp_setup block, queue in special
31224 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31225 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31226 from visited after the loop if they don't have any visited successor
31227 blocks.
31228
31229 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31230
31231 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31232 New function.
31233 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31234
31235 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31236
31237 PR c++/89507
31238 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31239 with types other than sizetype/ssizetype.
31240
31241 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31242
31243 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31244 (enum sparc_processor_type): ...this.
31245 (enum sparc_code_model_type): New enumeration type.
31246 (enum sparc_memory_model_type): Tweak comments.
31247 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31248 (mtune): Likewise.
31249 (mcmodel): Use sparc_code_model enumeration and variable.
31250 (sparc_code_model): New enumeration.
31251 (mdebug): Add Undocumented marker.
31252 * config/sparc/sparc.h (enum cmodel): Delete.
31253 (sparc_cmodel): Likewise.
31254 (TARGET_CM_MEDLOW): Adjust to above renaming.
31255 (TARGET_CM_MEDMID): Likewise.
31256 (TARGET_CM_MEDANY): Likewise.
31257 (TARGET_CM_EMBMEDANY): Likewise.
31258 * config/sparc/sparc.c (sparc_cmodel): Delete.
31259 (sparc_option_override): Remove string/value mapping support for the
31260 code model. Move code and memory model support to after the handling
31261 of target flags. Do private machine setup last.
31262 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31263 (sparc_legitimize_reload_address): Likewise.
31264 (sparc_output_mi_thunk): Likewise.
31265 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31266
31267 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31268
31269 PR tree-optimization/89500
31270 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31271 (handle_builtin_strlen): Remove noncst_bound variable. Always
31272 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31273 cst if the first cst bytes starting at x are known to be non-zero,
31274 even if the string is not zero terminated. Don't try to modify
31275 *si for strnlen. Update strlen_to_stridx only for strlen or if
31276 we can prove strnlen returns the same value as strlen would.
31277
31278 2019-02-26 Martin Liska <mliska@suse.cz>
31279
31280 * alloc-pool.h (struct pool_usage): Remove extra
31281 print_dash_line.
31282 * bitmap.h (struct bitmap_usage): Likewise.
31283 * ggc-common.c (struct ggc_usage): Likewise.
31284 * mem-stats.h (struct mem_usage): Likewise.
31285 (mem_alloc_description::dump): Print dash lines
31286 here and repeat header at the end of a table report.
31287 It's then more readable.
31288 * tree-phinodes.c (phinodes_print_statistics): Make
31289 horizontal alignment.
31290 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31291 * vec.c (struct vec_usage): Remove extra print_dash_line.
31292 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31293
31294 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31295
31296 * doc/extend.texi (__builtin_object_size):
31297 Use @pxref instead of @xref inside parenthesis.
31298 (__builtin_has_attribute): Add missing comma after @xref.
31299 (__builtin_object_size): Ditto.
31300 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31301
31302 2019-02-26 Jeff Law <law@redhat.com>
31303
31304 PR rtl-optimization/87761
31305 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31306 detect obviously dead insns and delete them.
31307
31308 2019-02-26 Richard Biener <rguenther@suse.de>
31309
31310 PR tree-optimization/89505
31311 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31312 to handle restrict pointed-to vars with multiple subvars
31313 correctly.
31314
31315 2019-02-26 Richard Biener <rguenther@suse.de>
31316
31317 PR tree-optimization/89489
31318 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31319
31320 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31321
31322 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31323 and move around comment.
31324 <BIT_AND_EXPR>: Likewise.
31325 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31326
31327 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31328
31329 PR target/89474
31330 * config/i386/i386.c (remove_partial_avx_dependency): Call
31331 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31332 after changing possibly many instructions to use that pseudo. Fix up
31333 insertion of v4sf_const0 setter at the start of bb.
31334
31335 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31336
31337 PR c/80409
31338 * doc/extend.texi (Variadic Pointer Args): New section.
31339
31340 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31341 Martin Sebor <msebor@gmail.com>
31342
31343 * common.opt (Wattribute-alias): Likewise.
31344 * doc/invoke.texi (Option Summary): List general form of
31345 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31346 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31347 Add cross-references.
31348 (-Wattribute-alias): Rewrite and correct default. Mention
31349 considered attributes (same as for -Wmissing-attributes).
31350
31351 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31352
31353 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31354 (_mm_cvtpd_ps): Likewise.
31355 (_mm_cvttpd_epi32): Likewise.
31356
31357 PR target/89338
31358 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31359 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31360
31361 PR target/89339
31362 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31363
31364 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31365
31366 PR target/88530
31367 * common/config/aarch64/aarch64-common.c
31368 (struct aarch64_option_extension): Add is_synthetic.
31369 (all_extensions): Use it.
31370 (TARGET_OPTION_INIT_STRUCT): Define hook.
31371 (struct gcc_targetm_common): Moved to end.
31372 (all_extensions_by_on): New.
31373 (opt_ext_cmp, typedef opt_ext): New.
31374 (aarch64_option_init_struct): New.
31375 (aarch64_contains_opt): New.
31376 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31377 * config/aarch64/aarch64-option-extensions.def
31378 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31379 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31380 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31381 Set is_synthetic to false.
31382 (crypto): Set is_synthetic to true.
31383 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31384 SYNTHETIC.
31385
31386 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31387
31388 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31389 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31390 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31391 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31392 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31393 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31394 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31395 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31396 Rename ...
31397 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31398 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31399 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31400 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31401 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31402 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31403 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31404 vfmlsl_laneq_high_f16): ... To this.
31405 * config/arm/neon.md: Update comments.
31406
31407 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31408
31409 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31410 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31411 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31412 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31413 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31414 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31415 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31416 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31417 Rename ...
31418 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31419 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31420 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31421 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31422 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31423 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31424 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31425 vfmlslq_laneq_high_f16): ... To this.
31426
31427 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31428
31429 PR rtl-optimization/86096
31430 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31431 comparing mw_order values.
31432
31433 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31434
31435 PR target/89434
31436 * config/arm/arm.md (*subsi3_carryin_const): Use
31437 arm_neg_immediate_operand predicate instead of
31438 arm_not_immediate_operand, "L" constraint instead of "K" and
31439 print it using %n2 instead of %B2.
31440 (*subsi3_carryin_const0): New define_insn.
31441 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31442 instead of arm_not_operand and "I" constraint instead of "K" and
31443 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31444 another match_operand and in the condition check that it is negation
31445 of operands[2].
31446 (*subsi3_carryin_compare_const0): New define_ins.
31447 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31448 *subsi3_carryin_const.
31449 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31450 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31451
31452 PR target/89438
31453 * config/arm.vfp.md (*negdf2_vfp): Use
31454 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31455 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31456
31457 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31458
31459 PR rtl-optimization/89445
31460 * simplify-rtx.c (simplify_ternary_operation): Don't use
31461 simplify_merge_mask on operands that may trap.
31462 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31463 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31464 second operand is CONST_VECTOR, check if any element could be zero.
31465 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31466 their operands can trap.
31467
31468 2019-02-23 Martin Sebor <msebor@redhat.com>
31469
31470 * gimple-ssa-sprintf.c (target_strtol): Rename...
31471 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31472 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31473 check for range error.
31474
31475 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31476
31477 PR driver/69471
31478 * opts-common.c (prune_options): Also prune joined switches
31479 with Negative and RejectNegative.
31480 * config/i386/i386.opt (march=): Add Negative(march=).
31481 (mtune=): Add Negative(mtune=).
31482 * doc/options.texi: Document Negative used together with Joined
31483 and RejectNegative.
31484
31485 2019-02-22 Martin Sebor <msebor@redhat.com>
31486
31487 * doc/extend.texi (Other Builtins): Add
31488 __builtin_is_constant_evaluated.
31489
31490 2019-02-22 Richard Biener <rguenther@suse.de>
31491
31492 PR tree-optimization/87609
31493 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31494
31495 2019-02-22 Jeff Law <law@redhat.com>
31496
31497 PR rtl-optimization/87761
31498 * config/mips/mips.md: Add new combiner pattern to recognize
31499 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31500
31501 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31502
31503 PR target/89324
31504 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31505 destination register in peepholes generating patterns for ADDS/SUBS.
31506 (add<mode>3_compare0,
31507 *addsi3_compare0_uxtw, add<mode>3_compareC,
31508 add<mode>3_compareV_imm, add<mode>3_compareV,
31509 *adds_<optab><ALLX:mode>_<GPI:mode>,
31510 *subs_<optab><ALLX:mode>_<GPI:mode>,
31511 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31512 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31513 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31514 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31515 sub<mode>3_compare1): Allow stack pointer for source register.
31516 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31517
31518 2019-02-22 Martin Sebor <msebor@redhat.com>
31519
31520 PR tree-optimization/88993
31521 PR tree-optimization/88853
31522 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31523 New helper.
31524 (sprintf_dom_walker::call_info::is_string_func): New helper.
31525 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31526 for formatted string functions.
31527 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31528
31529 2019-02-22 Martin Sebor <msebor@redhat.com>
31530
31531 PR c/89425
31532 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31533 unreachable subexpressions.
31534
31535 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31536 Hongtao Liu <hongtao.liu@intel.com>
31537 Sunil K Pandey <sunil.k.pandey@intel.com>
31538
31539 PR target/87007
31540 * config/i386/i386-passes.def: Add
31541 pass_remove_partial_avx_dependency.
31542 * config/i386/i386-protos.h
31543 (make_pass_remove_partial_avx_dependency): New.
31544 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31545 New function.
31546 (pass_data_remove_partial_avx_dependency): New.
31547 (pass_remove_partial_avx_dependency): Likewise.
31548 (make_pass_remove_partial_avx_dependency): Likewise.
31549 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31550 (*extendsfdf2): Add avx_partial_xmm_update.
31551 (truncdfsf2): Likewise.
31552 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31553 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31554
31555 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31556
31557 PR middle-end/85598
31558 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31559 analysis for pass.
31560
31561 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31562
31563 PR target/89444
31564 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31565 (PTA_SKYLAKE): Add PTA_AES.
31566 (PTA_GOLDMONT): Likewise.
31567
31568 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31569
31570 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31571 instruction if enabled.
31572 (aarch64_override_options): Remove reference to return address key.
31573
31574 2019-02-22 Richard Biener <rguenther@suse.de>
31575
31576 PR tree-optimization/89440
31577 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31578 not necessary assert.
31579
31580 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31581
31582 PR fortran/72741
31583 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31584 (oacc_replace_fn_attrib_attr): ... this new function.
31585 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31586 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31587
31588 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31589
31590 * config/arm/arm-cpus.in (ares): Rename to...
31591 (neoverse-n1): ... This. Add ares as alias.
31592 * config/arm/arm-tables.opt: Regenerate.
31593 * config/arm/arm-tune.md: Likewise.
31594 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31595
31596 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31597
31598 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31599 * config/aarch64/aarch64-tune.md: Regenerate.
31600 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31601
31602 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31603
31604 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31605 (neoversen1_tunings): ... This.
31606 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31607 (neoverse-n1): New CPU.
31608 * config/aarch64/aarch64-tune.md: Regenerate.
31609 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31610
31611 2019-02-22 Richard Biener <rguenther@suse.de>
31612
31613 PR middle-end/87609
31614 * cfghooks.h (dependence_hash): New typedef.
31615 (struct copy_bb_data): New type.
31616 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31617 (duplicate_block): Likewise.
31618 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31619 (copy_bbs): Create and pass down copy_bb_data.
31620 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31621 (rtl_duplicate_bb): Likewise.
31622 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31623 remap dependence info.
31624
31625 2019-02-22 Richard Biener <rguenther@suse.de>
31626
31627 PR tree-optimization/87609
31628 * tree-core.h (tree_base): Document special clique values.
31629 * tree-inline.c (remap_dependence_clique): Do not use the
31630 special clique value of one.
31631 (maybe_set_dependence_info): Use clique one.
31632 (clear_dependence_clique): New callback.
31633 (compute_dependence_clique): Clear clique one from all refs
31634 before assigning it (again).
31635
31636 2019-02-21 Martin Sebor <msebor@redhat.com>
31637
31638 * doc/extend.texi (__clear_cache): Correct signature.
31639
31640 2019-02-21 Ian Lance Taylor <iant@golang.org>
31641
31642 PR go/89170
31643 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31644 than output_constant_def.
31645 (add_constant_to_table): New static function.
31646 (output_constant_def): Call add_constant_to_table.
31647 (tree_output_constant_def): Likewise.
31648
31649 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31650
31651 PR c++/89285
31652 * builtins.c (fold_builtin_arith_overflow): If first two args are
31653 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31654 to ifn.
31655
31656 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31657
31658 PR target/87412
31659 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31660 error for -mindirect-branch/-mfunction-return with incompatible
31661 -fcf-protection.
31662
31663 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31664
31665 PR bootstrap/88714
31666 * constraints.md (q): Remove.
31667 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31668 instead of q.
31669
31670 2019-02-21 Martin Jambor <mjambor@suse.cz>
31671
31672 PR hsa/89302
31673 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31674 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31675 (omp_adjust_for_condition): ...here. Added necessary parameters.
31676 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31677 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31678 proper values to new parameters of omp_adjust_for_condition.
31679
31680 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31681
31682 PR middle-end/89412
31683 * expr.c (expand_assignment): If result is a MEM, use change_address
31684 instead of simplify_gen_subreg.
31685
31686 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31687 David Malcolm <dmalcolm@redhat.com>
31688
31689 PR middle-end/89091
31690 * fold-const.c (decode_field_reference): Return NULL_TREE if
31691 lang_hooks.types.type_for_size returns NULL. Check it before
31692 overwriting *exp_. Use return NULL_TREE instead of return 0.
31693
31694 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31695
31696 PR middle-end/88074
31697 PR middle-end/89415
31698 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31699 buggy mpc_norm.
31700
31701 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31702
31703 PR target/89397
31704 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31705 TARGET_SSE in addition to TARGET_SSE_MATH.
31706
31707 (ix86_excess_precision): Ditto.
31708 (ix86_float_exceptions_rounding_supported_p): Ditto.
31709 (use_rsqrt_p): Ditto.
31710 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31711
31712 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31713
31714 PR c/89410
31715 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31716 linenum_arith_t when determining if two adjacent line spans are
31717 close enough to merge.
31718 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31719 lines within each line_span.
31720
31721 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31722
31723 PR target/86487
31724 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31725 paradoxical SUBREGS.
31726
31727 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31728
31729 PR target/88100
31730 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31731 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31732 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31733 range checking it.
31734
31735 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31736
31737 * config/gcn/gcn.c (print_operand): Fix typo.
31738
31739 2019-02-19 Richard Biener <rguenther@suse.de>
31740
31741 PR middle-end/88074
31742 * toplev.c (do_compile): Initialize mpfr's exponent range
31743 based on available float modes.
31744
31745 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31746
31747 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31748 as long as the epilogue isn't completed.
31749
31750 2019-02-18 Martin Sebor <msebor@redhat.com>
31751
31752 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31753 __has_cpp_attribute, and __has_include.
31754
31755 2019-02-18 Martin Sebor <msebor@redhat.com>
31756
31757 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31758
31759 2019-02-18 Martin Sebor <msebor@redhat.com>
31760
31761 PR middle-end/89294
31762 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31763 expression.
31764 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31765
31766 2019-02-18 Richard Biener <rguenther@suse.de>
31767
31768 PR tree-optimization/89296
31769 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31770 of no-warning flag to cases that might emit the bogus warning.
31771
31772 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31773
31774 PR bootstrap/88714
31775 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31776 "q" constraint.
31777 * config/arm/vfp.md (*movdi_vfp): Likewise.
31778 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31779 "q" constraint for operands[0].
31780
31781 PR target/89369
31782 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31783 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31784 pattern in a temporary buffer.
31785 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31786 than 64-operands[2].
31787
31788 PR target/89361
31789 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31790 s390_indirect_branch_settings): Define unconditionally.
31791 (s390_set_current_function): Likewise, but guard the whole body except
31792 the s390_indirect_branch_settings call with
31793 #if S390_USE_TARGET_ATTRIBUTE.
31794 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31795
31796 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31797 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31798 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31799 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31800 HOST_WIDE_INT_1U instead of 1ULL.
31801 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31802 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31803 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31804 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31805 instead of 1UL.
31806 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31807 instead of 1ul.
31808
31809 2019-02-18 Martin Jambor <mjambor@suse.cz>
31810
31811 PR tree-optimization/89209
31812 * tree-sra.c (create_access_replacement): New optional parameter
31813 reg_tree. Use it as a type if non-NULL and access type is not of
31814 a register type.
31815 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31816 to create_access_replacement.
31817 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31818 Check lacc is non-NULL before attempting to re-create it on the RHS.
31819
31820 2019-02-18 Martin Liska <mliska@suse.cz>
31821
31822 PR ipa/89306
31823 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31824 by default.
31825 (symbol_table::free_edge): Recycle m_summary_id.
31826 * cgraph.h (get_summary_id): New.
31827 (symbol_table::release_symbol): Set m_summary_id to -1
31828 by default.
31829 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31830 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31831 function_summary to fast_function_summary.
31832 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31833 * ipa-pure-const.c (class funct_state_summary_t):
31834 Switch from function_summary to fast_function_summary.
31835 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31836 (class ipa_ref_opt_summary_t): Switch from function_summary
31837 to fast_function_summary.
31838 * symbol-summary.h (class function_summary_base): New class
31839 that is created from base of former function_summary.
31840 (function_summary_base::unregister_hooks): New.
31841 (class function_summary): Inherit from function_summary_base.
31842 (class call_summary_base): New class
31843 that is created from base of former call_summary.
31844 (class call_summary): Inherit from call_summary_base.
31845 (struct is_same): New.
31846 (class fast_function_summary): New summary class.
31847 (class fast_call_summary): New summary class.
31848 * vec.h (vec_safe_grow_cleared): New function.
31849
31850 2019-02-18 Martin Liska <mliska@suse.cz>
31851
31852 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31853 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31854 * doc/tm.texi: Document new target hook.
31855 * doc/tm.texi.in: Likewise.
31856 * target.def: Add new target macro.
31857 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31858 suffixes.
31859
31860 2019-02-17 Alan Modra <amodra@gmail.com>
31861
31862 PR target/89271
31863 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31864 output reg on add insn.
31865 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31866
31867 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31868
31869 PR target/89372
31870 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31871 (PMULHRSW): Likewise.
31872 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31873 TARGET_AVX2.
31874 (ssse3_pmulhrswv4hi3): New expander.
31875
31876 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31877
31878 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31879 MMX. Add isa attribute.
31880
31881 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31882
31883 PR rtl-optimization/66152
31884 * builtins.h (c_readstr): Declare.
31885 * builtins.c (c_readstr): Remove forward declaration. Add
31886 null_terminated_p argument, if false, read all bytes from the
31887 string instead of stopping after '\0'.
31888 * expr.c (string_cst_read_str): New function.
31889 (store_expr): Use string_cst_read_str instead of
31890 builtin_strncpy_read_str. Try to store by pieces the whole
31891 exp_len first, and only if that fails, split it up into
31892 store by pieces followed by clear_storage. Formatting fix.
31893
31894 * config/i386/i386.md (*movqi_internal): Remove static from
31895 buf variable. Use output_asm_insn (buf, operands); return "";
31896 instead of return buf;.
31897 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31898 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31899 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31900
31901 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31902
31903 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31904 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31905 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31906 (CC1_SPEC): Likewise.
31907 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31908
31909 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31910
31911 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31912 the base address on 64-bit strict-alignment platforms.
31913
31914 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31915
31916 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31917
31918 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31919
31920 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31921
31922 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31923
31924 PR rtl-optimization/88308
31925 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31926 on copied instruction.
31927
31928 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31929
31930 * final.c (insn_current_reference_address): Replace test on JUMP_P
31931 with test on jump_to_label_p.
31932 * config/visium/visium-passes.def: New file.
31933 * config/visium/t-visium (PASSES_EXTRA): Define.
31934 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31935 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31936 (TRAMPOLINE_ALIGNMENT): Define.
31937 * config/visium/visium.c (visium_option_override): Do not register
31938 the machine-specific reorg pass here.
31939 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31940 for the GR6.
31941 (output_branch): Adjust threshold for long branch instruction.
31942 * config/visium/visium.md (cpu): Move around.
31943 (length): Adjust for the GR6.
31944
31945 2019-02-15 Richard Biener <rguenther@suse.de>
31946 Jakub Jelinek <jakub@redhat.com>
31947
31948 PR tree-optimization/89278
31949 * tree-loop-distribution.c: Include tree-eh.h.
31950 (generate_memset_builtin, generate_memcpy_builtin): Call
31951 rewrite_to_non_trapping_overflow on builtin->size before passing it
31952 to force_gimple_operand_gsi.
31953
31954 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31955
31956 PR other/89342
31957 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31958 optimize_debug.
31959 * opth-gen.awk: Likewise.
31960
31961 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31962
31963 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31964 Enable MMX, SSE and SSE2 by default.
31965 * config/i386/i386.c (ix86_option_override_internal): Do not
31966 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31967
31968 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31969
31970 PR rtl-optimization/89354
31971 * combine.c (make_extraction): Punt if extraction_mode is narrower
31972 than len bits.
31973
31974 2019-02-14 Maya Rashish <coypu@sdf.org>
31975
31976 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31977 * config/netbsd-d.c: New file.
31978 * config/t-netbsd: Add netbsd-d.o
31979
31980 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31981
31982 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31983 affects_type_identity to true for aarch64_vector_pcs.
31984 (aarch64_comp_type_attributes): New function.
31985 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31986
31987 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31988
31989 PR target/88850
31990 * config/arm/iterators.md (ANY64): Add V4HF.
31991
31992 2019-02-14 Martin Liska <mliska@suse.cz>
31993
31994 PR rtl-optimization/89242
31995 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31996 process a transformation.
31997
31998 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31999
32000 PR tree-optimization/89314
32001 * fold-const.c (fold_binary_loc): Cast strlen argument to
32002 const char * before dereferencing it. Formatting fixes.
32003
32004 PR middle-end/89284
32005 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32006
32007 2019-02-13 Ian Lance Taylor <iant@golang.org>
32008
32009 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32010 and set current index for other optimizations.
32011
32012 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32013
32014 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32015 nonimmediate_operand as operand 2 predicate.
32016 (vec_set<VF2_512_256:mode>_0): Ditto.
32017 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32018 (*vec_concatv2si): Remove alternative 2.
32019 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32020 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32021 (vec_concatv2di): Split alternatives 4,5,6 to ...
32022 (*vec_concatv2di_0) ... new pattern.
32023
32024 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32025
32026 PR target/89190
32027 * config/arm/arm.c (ldm_stm_operation_p) Set
32028 addr_reg_in_reglist correctly for first register.
32029 (load_multiple_sequence): Remove dead base check.
32030 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32031
32032 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32033
32034 PR target/88847
32035 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32036 Expose as @aarch64_pred_mov.
32037 * config/aarch64/aarch64.c (aarch64_classify_address):
32038 Use expand_insn which legitimizes operands.
32039
32040 2019-02-13 Martin Liska <mliska@suse.cz>
32041
32042 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32043 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32044 and pointer_offset fields.
32045 (initialize_argument_information): Remove usage of dead
32046 fields.
32047 * cgraph.h (struct cgraph_thunk_info): Remove
32048 add_pointer_bounds_args.
32049 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32050 fields.
32051 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32052 fields.
32053 * config/i386/i386.c (ix86_function_arg_advance): Remove
32054 unrelated comment.
32055 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32056 (def_builtin): Remove usage of dead fields.
32057 (ix86_add_new_builtins): Likewise.
32058 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32059 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32060 (sem_function::init): Likewise.
32061 (sem_variable::merge): Likewise.
32062 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32063 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32064 * lto-cgraph.c (lto_output_node): Likewise.
32065 (lto_output_varpool_node): Likewise.
32066 (input_node): Likewise.
32067 (input_varpool_node): Likewise.
32068 * lto-streamer-out.c (lto_output): Likewise.
32069 * tree-inline.c (expand_call_inline): Remove usage of
32070 assign_stmts.
32071 * tree-inline.h (struct copy_body_data): Likewise.
32072 * varpool.c (varpool_node::dump): Likewise.
32073
32074 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32075
32076 PR middle-end/89303
32077 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32078 into pt->vars_contains_escaped_heap instead of setting
32079 pt->vars_contains_escaped_heap to it.
32080
32081 PR middle-end/89281
32082 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32083 INTVAL (size), compare it to GET_MODE_MASK instead of
32084 1 << GET_MODE_BITSIZE.
32085
32086 PR target/89290
32087 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32088 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32089 -mcmodel=large.
32090
32091 2019-02-13 Martin Liska <mliska@suse.cz>
32092
32093 PR lto/88858
32094 * cfgrtl.c (remove_barriers_from_footer): New function.
32095 (try_redirect_by_replacing_jump): Use it.
32096 (cfg_layout_redirect_edge_and_branch): Likewise.
32097
32098 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32099
32100 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32101 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32102 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32103 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32104 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32105 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32106 New BU_CRYPTO_2.
32107 * config/rs6000/rs6000.c (builtin_function_type)
32108 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32109 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32110 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32111 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32112 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32113
32114 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32115
32116 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32117 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32118
32119 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32120
32121 PR target/89229
32122 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32123 268678 and revision 268657.
32124 (*movti_internal): Likewise.
32125
32126 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32127
32128 PR target/89233
32129 * config/s390/s390.c (s390_decompose_address): Update comment.
32130 (s390_check_qrst_address): Reject invalid address forms after
32131 LRA.
32132
32133 2019-02-12 Martin Liska <mliska@suse.cz>
32134
32135 PR lto/88876
32136 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32137 we need default values of funct_state for a function that
32138 is not optimized.
32139
32140 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32141
32142 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32143 the object to pick the size of stores on strict-alignment platforms.
32144
32145 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32146 (*movdi_insn_sp32): Likewise.
32147 (*movdi_insn_sp64): Likewise.
32148
32149 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32150
32151 PR lto/88677
32152 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32153 types that needs constructiong.
32154 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32155
32156 2019-02-12 Richard Biener <rguenther@suse.de>
32157
32158 PR tree-optimization/89253
32159 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32160 duplicate the loop.
32161
32162 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32163
32164 PR lto/88147
32165 * input.c (selftest::test_line_offset_overflow): New selftest.
32166 (selftest::input_c_tests): Call it.
32167
32168 2019-02-11 Martin Sebor <msebor@redhat.com>
32169
32170 PR tree-optimization/88771
32171 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32172 when -Wstringop-overflow is set.
32173 (builtin_memref::builtin_memref): Adjust excessive upper bound
32174 only when lower bound is not excessive.
32175 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32176 -Wstringop-ovefflow.
32177 (maybe_diag_offset_bounds): Rename...
32178 (maybe_diag_access_bounds): ...to this.
32179 (check_bounds_or_overlap): Adjust for name change above.
32180
32181 2019-02-11 Martin Sebor <msebor@redhat.com>
32182
32183 PR c++/87996
32184 * builtins.c (max_object_size): Move from here...
32185 * builtins.h (max_object_size): ...and here...
32186 * tree.c (max_object_size): ...to here...
32187 * tree.h (max_object_size): ...and here.
32188
32189 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32190
32191 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32192 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32193 for correct semantics.
32194
32195 2019-02-11 Alan Modra <amodra@gmail.com>
32196
32197 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32198 -mlongcall and -mpltseq.
32199 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32200 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32201 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32202 * config/rs6000/sysv4.opt (mpltseq): New option.
32203 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32204 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32205 support is lacking. Don't allow -mpltseq with -mbss-plt.
32206 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32207 -mpltseq given for ELFv1.
32208 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32209 Only use UNSPEC_PLTSEQ for inline PLT calls.
32210 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32211 use UNSPEC_PLTSEQ for inline PLT calls.
32212 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32213 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32214 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32215 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32216 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32217 (pltseq_mtctr_<mode>): Likewise.
32218
32219 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32220
32221 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32222 Solaris ld.
32223 * configure: Regenerate.
32224
32225 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32226
32227 PR bootstrap/88714
32228 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32229 instead of r.
32230
32231 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32232
32233 * function.c (assign_parm_setup_block): Use the stored
32234 size, not the passed size, when allocating stack-space,
32235 also for a parameter with alignment larger than
32236 MAX_SUPPORTED_STACK_ALIGNMENT.
32237
32238 2019-02-11 Martin Liska <mliska@suse.cz>
32239
32240 PR ipa/89009
32241 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32242 * ipa-inline.c (inline_small_functions): Likewise.
32243 * ipa-pure-const.c (propagate_pure_const): Likewise.
32244 (propagate_nothrow): Likewise.
32245 * ipa-reference.c (propagate): Likewise.
32246 * ipa-utils.c (struct searchc_env): Remove unused field.
32247 (searchc): Always search across AVAIL_INTERPOSABLE.
32248 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32249 the only called IPA pure const can properly not propagate
32250 across interposable boundary.
32251 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32252
32253 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32254
32255 * config/nds32/nds32.md (call_internal, call_value_internal,
32256 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32257
32258 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32259
32260 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32261 typo.
32262
32263 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32264
32265 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32266 in comments
32267
32268 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32269
32270 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32271
32272 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32273
32274 PR tree-optimization/89268
32275 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32276 if preds is non-NULL.
32277
32278 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32279
32280 PR lto/89272
32281 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32282 polymorphic types.
32283
32284 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32285
32286 * config/nds32/nds32.md (trap): New pattern.
32287
32288 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32289
32290 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32291 dwarf span.
32292
32293 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32294
32295 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32296 to split POST_INC.
32297
32298 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32299
32300 * ipa-visibility.c (localize_node): Also do not localize
32301 LDPR_PREVAILING_DEF_IRONLY_EXP.
32302
32303 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32304
32305 PR lto/87957
32306 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32307 instead of type_with_linkage.
32308
32309 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32310
32311 PR ipa/88755
32312 * params.def (uninlined-function-insns, uninlined-function-time,
32313 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32314 bound so we don't get overflows.
32315
32316 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32317
32318 * config/rs6000/rs6000-string.c (expand_compare_loop,
32319 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32320 memcmp/strncmp.
32321
32322 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32323
32324 PR middle-end/89246
32325 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32326 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32327 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32328
32329 2019-02-09 Alan Modra <amodra@gmail.com>
32330
32331 PR target/88343
32332 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32333 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32334 setup.
32335
32336 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32337
32338 PR middle-end/88560
32339 * lra-constraints.c (process_alt_operands): Don't increase reject
32340 for memory when offset memory is required.
32341
32342 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32343
32344 * config/s390/vector.md: Implement vector copysign.
32345
32346 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32347
32348 * expr.c (expand_constructor): Correct indentations.
32349
32350 2019-02-08 Richard Biener <rguenther@suse.de>
32351
32352 PR tree-optimization/89247
32353 * tree-if-conv.c: Include tree-cfgcleanup.h.
32354 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32355 (tree_if_conversion): Pass through predicate vector.
32356 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32357 inline, see if any if-converted loops we refrece in
32358 LOOP_VECTORIZED calls vanished and fixup.
32359 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32360
32361 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32362
32363 * config/s390/constraints.md (jdd): New constraint.
32364
32365 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32366
32367 PR target/89229
32368 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32369 upper 16 vector registers without TARGET_AVX512VL.
32370 (*movti_internal): Likewise.
32371
32372 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32373
32374 PR rtl-optimization/89234
32375 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32376 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32377 (copy_reg_eh_region_note_backward): Likewise.
32378
32379 2019-02-08 Richard Biener <rguenther@suse.de>
32380
32381 PR middle-end/89223
32382 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32383 doesn't fit in HWI.
32384 (analyze_subscript_affine_affine): Handle failure from
32385 initialize_matrix_A.
32386
32387 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32388
32389 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32390 cfun everywhere.
32391
32392 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32393
32394 PR tree-optimization/86637
32395 PR tree-optimization/89235
32396 * tree-vect-loop.c (optimize_mask_stores): Add an
32397 auto_purge_vect_location sentinel to ensure that vect_location is
32398 purged on exit.
32399 * tree-vectorizer.c
32400 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32401 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32402 to ensure that vect_location is purged on exit.
32403 (pass_slp_vectorize::execute): Likewise, replacing the manual
32404 reset.
32405 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32406
32407 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32408
32409 * config/aarch64/iterators.md (max_opp): New code_attr.
32410 (USMAX): New code iterator.
32411 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32412 (aarch64_smax): Likewise.
32413 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32414 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32415 MINUS (MAX MIN).
32416
32417 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32418
32419 PR target/89229
32420 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32421 for TARGET_AVX512VL.
32422 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32423
32424 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32425
32426 * config/s390/s390-builtin-types.def: Add new types.
32427 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32428 (s390_vec_xlw4): Make the memory operand into a const pointer.
32429 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32430 float.
32431 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32432 a new vector type with the alignment of the scalar memory operand.
32433
32434 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32435 Jakub Jelinek <jakub@redhat.com>
32436
32437 PR bootstrap/88714
32438 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32439 arm_count_ldrdstrd_insns): New declarations.
32440 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32441 MINUS.
32442 (valid_operands_ldrd_strd): New function.
32443 (arm_count_ldrdstrd_insns): New function.
32444 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32445 sets instead of single DImode set and define new insns to match this.
32446
32447 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32448
32449 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32450 Make it a C initializer.
32451
32452 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32453
32454 PR/target 88850
32455 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32456
32457 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32458
32459 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32460 Use neon_dot<q> for type.
32461 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32462
32463 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32464
32465 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32466 Use neon_dot<q> for type.
32467 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32468 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32469
32470 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32471
32472 PR rtl-optimization/89225
32473 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32474 sizes check.
32475
32476 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32477
32478 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32479 after restoring registers saved to allocate the frame on Windows.
32480
32481 2019-02-06 Richard Biener <rguenther@suse.de>
32482
32483 PR tree-optimization/89182
32484 * graphite.h (cached_scalar_evolution_in_region): Declare.
32485 * graphite.c (struct seir_cache_key): New.
32486 (struct sese_scev_hash): Likewise.
32487 (seir_cache): New global.
32488 (cached_scalar_evolution_in_region): New function.
32489 (graphite_transform_loops): Allocate and release seir_cache.
32490 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32491 cached_scalar_evolution_in_region.
32492 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32493 Simplify.
32494 (scop_detection::graphite_can_represent_expr: Use
32495 cached_scalar_evolution_in_region.
32496 (scop_detection::stmt_simple_for_scop_p): Likewise.
32497 (find_params_in_bb): Likewise.
32498 (gather_bbs::before_dom_children): Likewise.
32499 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32500 (add_loop_constraints): Likewise.
32501
32502 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32503
32504 PR middle-end/89210
32505 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32506 operand to new_unary_operation only if both element types are integral
32507 and it isn't a widening conversion. Return NULL_TREE if
32508 new_unary_operation failed.
32509
32510 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32511
32512 PR target/88856
32513 * config/s390/s390.md: Remove load and test FP splitter.
32514
32515 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32516
32517 PR target/89112
32518 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32519 expand_compare_loop, expand_block_compare_gpr,
32520 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32521 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32522 #include "profile-count.h" and "predict.h" for types and functions
32523 needed to work with REG_BR_PROB notes.
32524
32525 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32526
32527 PR target/89112
32528 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32529 for the long branch case.
32530
32531 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32532
32533 PR target/89188
32534 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32535 can throw, non-call exceptions are enabled and we can't delete
32536 dead exceptions or alter cfg. Set must_clean if
32537 delete_insn_and_edges returns true, don't set it blindly for calls.
32538 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32539
32540 PR rtl-optimization/89195
32541 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32542 of the original MEM.
32543
32544 2019-02-05 Martin Liska <mliska@suse.cz>
32545
32546 PR gcov-profile/89000
32547 * gcov.c (function_summary): Remove argument.
32548 (file_summary): New function.
32549 (print_usage): Replace tabs with spaces.
32550 (generate_results): Use new function file_summary.
32551
32552 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32553
32554 PR target/89186
32555 * optabs.c (prepare_cmp_insn): Pass x and y to
32556 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32557
32558 2019-02-05 Richard Biener <rguenther@suse.de>
32559
32560 PR middle-end/89150
32561 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32562 (struct bitmap_element): Drop chain_prev so we properly recurse on
32563 the prev member, supporting tree views.
32564 (struct bitmap_head): GTY skip the obstack member.
32565
32566 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32567
32568 PR c/88698
32569 * doc/extend.texi (Vector Extensions): Add an example of using vector
32570 types together with x86 intrinsics.
32571
32572 2019-02-04 Alan Modra <amodra@gmail.com>
32573
32574 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32575 str[] size to 160, and comment.
32576
32577 2019-02-04 Alan Modra <amodra@gmail.com>
32578
32579 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32580 (rs6000_pltseq_template): Guard output of TLS markers with
32581 TARGET_TLS_MARKERS.
32582 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32583 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32584 to use inline PLT sequences.
32585 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32586 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32587 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32588
32589 2019-02-04 Martin Liska <mliska@suse.cz>
32590
32591 PR ipa/88985
32592 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32593 out when ipa_fn_summaries does not contain entry for callee.
32594
32595 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32596
32597 * config/sparc/sparc.h: Remove superfluous blank lines.
32598 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32599 (got_register_rtx): ...this.
32600 (sparc_got): Adjust to above renaming.
32601 (sparc_tls_got): Likewise.
32602 (sparc_delegitimize_address): Likewise.
32603 (sparc_output_mi_thunk): Likewise.
32604 (sparc_init_pic_reg): Likewise.
32605 (save_local_or_in_reg_p): Fix test on the GOT register.
32606 (USE_HIDDEN_LINKONCE): Move around.
32607 (get_pc_thunk_name): Likewise.
32608 (gen_load_pcrel_sym): Likewise.
32609 (load_got_register): Likewise.
32610
32611 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32612
32613 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32614 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32615
32616 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32617
32618 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32619 into consideration.
32620
32621 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32622
32623 * config.gcc (with_nds32_lib, glibc):
32624 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32625 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32626 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32627
32628 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32629
32630 PR target/89071
32631 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32632 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32633 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32634 (*rcpsf2_sse): Ditto.
32635 (*rsqrtsf2_sse): Ditto.
32636 (sse4_1_round<mode<2): Ditto.
32637
32638 2019-02-03 Richard Biener <rguenther@suse.de>
32639
32640 PR debug/87295
32641 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32642 orig.
32643
32644 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32645
32646 PR middle-end/87887
32647 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32648 Punt with warning on aggregate return or argument types. Ignore
32649 type/mode checking for uniform arguments.
32650
32651 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32652
32653 * combine.c (try_combine): Do not print "Can't combine" messages unless
32654 printing failed combination attempts.
32655
32656 2019-02-01 Martin Jambor <mjambor@suse.cz>
32657
32658 PR hsa/87863
32659 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32660 segment and global segment variables before making them static.
32661
32662 2019-02-01 Martin Jambor <mjambor@suse.cz>
32663
32664 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32665 missed optimization dump with dump_enabled_p.
32666
32667 2019-02-01 Richard Biener <rguenther@suse.de>
32668
32669 PR middle-end/88597
32670 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32671 the instantiate cache.
32672 (instantiate_scev_binary): Elide second operand procesing
32673 if equal to the first.
32674 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32675 (chrec_contains_undetermined): Likewise.
32676 (tree_contains_chrecs): Likewise.
32677
32678 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32679
32680 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32681
32682 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32683
32684 PR tree-optimization/89143
32685 * wide-int-range.h (wide_int_range_absu): Declare.
32686 * wide-int-range.cc (wide_int_range_absu): New function.
32687 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32688
32689 PR tree-optimization/88107
32690 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32691 instead of assertion that eh_region_outermost is non-NULL, if it
32692 is NULL, set *ALL to true and return NULL.
32693 (move_sese_region_to_fn): Adjust caller, if all is set, call
32694 duplicate_eh_regions with NULL region.
32695
32696 2019-02-01 Richard Biener <rguenth@suse.de>
32697
32698 PR rtl-optimization/88593
32699 * mode-switching.c (optimize_mode_switching): Free dominators before
32700 calling cleanup_cfg.
32701
32702 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32703
32704 PR tree-optimization/88932
32705 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32706
32707 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32708
32709 PR middle-end/89137
32710 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32711 bogus clang warning.
32712
32713 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32714
32715 PR target/89071
32716 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32717 alternative to avoid partial SSE register stall for TARGET_AVX.
32718 (truncdfsf2): Ditto.
32719 (sse4_1_round<mode>2): Ditto.
32720
32721 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32722
32723 PR tree-optimization/89008
32724 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32725 process anything of the form X * 0.
32726
32727 2019-01-31 Richard Biener <rguenther@suse.de>
32728
32729 PR tree-optimization/89135
32730 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32731 with abnormal preds.
32732
32733 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32734
32735 PR sanitizer/89124
32736 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32737 always_inline callees into no_sanitize_address callers.
32738
32739 2019-01-31 Richard Biener <rguenther@suse.de>
32740
32741 PR rtl-optimization/89115
32742 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32743
32744 2019-01-30 Martin Sebor <msebor@redhat.com>
32745
32746 PR other/89106
32747 * doc/extend.texi (cast to a union): Correct and expand.
32748
32749 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32750
32751 PR rtl-optimization/87246
32752 * lra-constraints.c (simplify_operand_subreg): Reload memory
32753 in subreg if the address became invalid.
32754
32755 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32756
32757 PR target/87064
32758 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32759 Disable for little-endian.
32760
32761 2019-01-30 Richard Biener <rguenther@suse.de>
32762
32763 PR rtl-optimization/89115
32764 * opts.c (default_options_optimization): Reduce
32765 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32766 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32767 to the default.
32768
32769 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32770
32771 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32772 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32773 type of vector element when vec_extract is implemented by direct
32774 move.
32775
32776 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32777
32778 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32779
32780 2019-01-30 Richard Biener <rguenther@suse.de>
32781
32782 PR tree-optimization/89111
32783 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32784 canonicalization to appropriately sized access types.
32785
32786 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32787
32788 PR c++/89105
32789 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32790 for arguments to functions that are TU-local and shouldn't be
32791 referenced by assembly.
32792
32793 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32794
32795 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32796 after '='.
32797
32798 2019-01-29 Martin Sebor <msebor@redhat.com>
32799
32800 PR c/88956
32801 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32802
32803 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32804
32805 PR c++/66676
32806 PR ipa/89104
32807 * omp-simd-clone.c (simd_clone_clauses_extract)
32808 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32809 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32810
32811 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32812
32813 * config.gcc: Force .init_array for ARC.
32814
32815 2019-01-29 Richard Biener <rguenther@suse.de>
32816
32817 PR debug/87295
32818 * dwarf2out.c (collect_skeleton_dies): New helper.
32819 (copy_decls_for_unworthy_types): Call it.
32820 (build_abbrev_table): Assert we do not try to replace
32821 DW_AT_signature refs with local refs.
32822
32823 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32824
32825 PR middle-end/89002
32826 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32827 for lastprivate/linear IV, push gimplify context around gimplify_assign
32828 and, if it needed any temporaries, pop it into a gimple bind around the
32829 sequence.
32830
32831 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32832
32833 * common.opt (-Wattribute-alias): Remove "no-" from name.
32834 Make -Wattribute-alias command line option and
32835 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32836
32837 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32838
32839 PR target/89073
32840 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32841 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32842 x86 ISA options.
32843 (bmi2): Add missing @opindex.
32844 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32845 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32846 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32847 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32848 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32849 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32850 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32851 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32852 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32853 xsavec, xsaveopt and xsaves options.
32854
32855 2019-01-28 Richard Biener <rguenther@suse.de>
32856
32857 PR debug/89076
32858 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32859 support removal.
32860
32861 2019-01-28 Richard Biener <rguenther@suse.de>
32862
32863 PR tree-optimization/88739
32864 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32865 BIT_FIELD_REFs only are applied to mode-precision operands
32866 when they are integral.
32867 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32868 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32869 BIT_FIELD_REFs of non-mode-precision integral operands.
32870
32871 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32872
32873 PR target/87214
32874 * config/i386/sse.md
32875 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32876 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32877 first constants in pairs are multiples of 2. Formatting fixes.
32878 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32879 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32880 first constants in each quadruple are multiples of 4. Formatting fixes.
32881
32882 2019-01-26 Martin Jambor <mjambor@suse.cz>
32883
32884 PR ipa/88933
32885 * tree-inline.c: Include tree-cfgcleanup.h.
32886 (delete_unreachable_blocks_update_callgraph): Move...
32887 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32888 ...here, make externally visible, make second argument bool, adjust
32889 all callers.
32890 * tree-cfgcleanup.c: Include cgraph.h.
32891 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32892 Declare.
32893 * ipa-prop.c: Include tree-cfgcleanup.h.
32894 (ipcp_transform_function): Call
32895 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32896
32897 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32898
32899 PR rtl-optimization/88846
32900 * ira.c (process_set_for_memref_referenced_p): New.
32901 (memref_referenced_p): Add new param. Use
32902 process_set_for_memref_referenced_p. Add new switch cases.
32903 (memref_used_between_p): Pass new arg to memref_referenced_p.
32904
32905 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32906
32907 PR target/88469
32908 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32909 argument ABI_BREAK. Set to true if the calculated alignment has
32910 changed in gcc-9. Check bit-fields for their base type alignment.
32911 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32912 (aarch64_function_arg_boundary): Likewise.
32913 (aarch64_gimplify_va_arg_expr): Likewise.
32914
32915 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32916
32917 PR middle-end/89037
32918 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32919 instead of accessing TREE_INT_CST_ELT directly.
32920
32921 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32922
32923 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32924 fenv_exceptions description.
32925
32926 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32927
32928 PR rtl-optimization/87763
32929 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32930 Allow SUBREG when matching CC_NZmode compare.
32931
32932 2019-01-25 Richard Biener <rguenther@suse.de>
32933
32934 PR tree-optimization/89049
32935 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32936 Look at the pattern stmt to determine if the stmt is vectorized.
32937
32938 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32939
32940 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32941 (pred_mov<mode>): Handle all-register forms using both a new
32942 alternative and a split.
32943
32944 2019-01-25 Richard Biener <rguenther@suse.de>
32945
32946 PR tree-optimization/86865
32947 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32948 Reject non-do-while loops.
32949
32950 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32951
32952 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32953 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32954 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32955 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32956 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32957 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32958 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32959 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32960 vlogical_operand, gpc_reg_operand, int_reg_operand,
32961 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32962 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32963 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32964 (save_world_operation, restore_world_operation, lmw_operation,
32965 stmw_operation): Use MEM_P and REG_P.
32966 (tie_operand): Use MEM_P.
32967 (vrsave_operation, crsave_operation): Use REG_P.
32968 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32969 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32970 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32971 (call_operand): Use HARD_REGISTER_P.
32972 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32973 Use CONST_INT_P.
32974 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32975 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32976 quad_aligned_load_p, replace_swapped_aligned_store,
32977 recombine_lvx_pattern, replace_swapped_aligned_load,
32978 recombine_stvx_pattern): Use MEM_P.
32979 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32980 Use MEM_P and SYMBOL_REF_P.
32981 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32982 (insn_is_swappable_p): Use REG_P and MEM_P.
32983 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32984 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32985 Use CONST_INT_P.
32986 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32987 Use CONST_DOUBLE_P.
32988 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32989 CONST_WIDE_INT_P.
32990 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32991 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32992 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32993 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32994 reg_or_subregno:
32995 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32996 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32997 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32998 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32999 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33000 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33001 rs6000_split_logical_di): Use CONST_INT_P.
33002 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33003 REG_P and SYMBOL_REF_P.
33004 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33005 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33006 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33007 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33008 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33009 (small_data_operand, print_operand_address): Use CONST_INT_P and
33010 SYMBOL_REF_P.
33011 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33012 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33013 Use HARD_REGISTER_NUM_P.
33014 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33015 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33016 SUBREG_P and SYMBOL_REF_P.
33017 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33018 and HARD_REGISTER_NUM_P.
33019 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33020 reg_or_subregno.
33021 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33022 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33023 MEM_P and REG_P.
33024 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33025 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33026 find_addr_reg): Use REG_P.
33027 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33028 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33029 (offsettable_ok_by_alignment, constant_pool_expr_p,
33030 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33031 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33032 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33033 rs6000_assemble_integer, create_TOC_reference,
33034 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33035 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33036 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33037 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33038 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33039 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33040 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33041 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33042 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33043 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33044 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33045 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33046 and cbranch<mode>4): Use CONST_INT_P.
33047 (multiple define_splits): Use REG_P and SUBREG_P.
33048 (define_expands call, call_value): Use MEM_P.
33049 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33050 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33051 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33052 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33053 and HARD_REGISTER_NUM_P.
33054 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33055
33056 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33057
33058 PR rtl-optimization/88948
33059 * rtl.h (prepare_copy_insn): New prototype.
33060 * gcse.c (prepare_copy_insn): New function, split out from
33061 process_insert_insn.
33062 (process_insert_insn): Use prepare_copy_insn.
33063 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33064 instead of gen_move_insn.
33065
33066 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33067
33068 PR debug/89006
33069 * config/i386/i386.c (ix86_pic_register_p): Return true for
33070 UNSPEC_SET_GOT too.
33071
33072 PR tree-optimization/88964
33073 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33074 punt if HONOR_SNANS (chrec).
33075
33076 PR middle-end/89015
33077 * tree-nested.c (convert_nonlocal_reference_stmt,
33078 convert_local_reference_stmt, convert_tramp_reference_stmt,
33079 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33080 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33081 or GIMPLE_OMP_TASK.
33082
33083 PR tree-optimization/89027
33084 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33085 for "omp simd array" variables.
33086
33087 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33088
33089 PR target/88469
33090 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33091 force the alignment of m_val.
33092
33093 2019-01-24 Richard Biener <rguenther@suse.de>
33094
33095 PR lto/87187
33096 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33097 When in "legacy" debug mode make sure to reset self-origins.
33098
33099 2019-01-24 Martin Liska <mliska@suse.cz>
33100
33101 PR gcov-profile/88994
33102 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33103 result will be always smaller or equal to the original.
33104 * gcov.c (mangle_name): Fix else branch where we should
33105 also copy to PTR and shift the pointer.
33106
33107 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33108
33109 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33110 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33111
33112 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33113
33114 * common/config/i386/i386-common.c
33115 (OPTION_MASK_ISA_ENQCMD_SET,
33116 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33117 (ix86_handle_option): Handle -menqcmd.
33118 * config.gcc (enqcmdintrin.h): New header file.
33119 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33120 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33121 -menqcmd.
33122 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33123 function type.
33124 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33125 __builtin_ia32_enqcmds): New builtins.
33126 * config/i386/i386-c.c (__ENQCMD__): New macro.
33127 * config/i386/i386-option.c (ix86_target_string): Add
33128 -menqcmd.
33129 (ix86_valid_target_attribute_inner_p): Likewise.
33130 * config/i386/i386-expand.c
33131 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33132 IX86_BUILTIN_ENQCMDS.
33133 * config/i386/i386.h (TARGET_ENQCMD): New.
33134 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33135 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33136 (movdir64b_<mode>): Parameterize to enable share expansion code
33137 with ENQCMD in function ix86_expand_builtin.
33138 * config/i386/i386.opt: Add -menqcmd.
33139 * config/i386/immintrin.h: Include enqcmdintrin.h.
33140 * config/i386/enqcmdintrin.h: New intrinsic file.
33141 * doc/invoke.texi: Add -menqcmd.
33142
33143 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33144 Steve Ellcey <sellcey@marvell.com>
33145
33146 PR target/85711
33147 * recog.c (address_operand): Return false on wrong mode for address.
33148 (constrain_operands): Check for mode with 'p' constraint.
33149
33150 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33151
33152 PR target/88998
33153 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33154 Disparage MMX alternative.
33155 (sse2_cvtpd2pi): Ditto.
33156 (sse2_cvttpd2pi): Ditto.
33157
33158 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33159
33160 PR driver/89014
33161 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33162 use-after-free of the result of
33163 aarch64_get_extension_string_for_isa_flags.
33164
33165 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33166
33167 PR c/44715
33168 * doc/extend.texi: Document break and continue behavior in
33169 statement expressions.
33170
33171 2019-01-23 Richard Biener <rguenther@suse.de>
33172
33173 PR tree-optimization/89008
33174 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33175 not leave another stray operand.
33176
33177 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33178
33179 * BASE-VER: Bump to 9.0.1.
33180
33181 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33182
33183 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33184 thunk that returns by reference, use the type of the return object
33185 of the thunk instead of that of the alias to build the dereference.
33186
33187 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33188
33189 * config/arc/atomic.md: Add operand to DMB instruction.
33190
33191 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33192
33193 PR tree-optimization/88964
33194 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33195 build_zero_cst instead of build_int_cst. Return false for loop
33196 invariants which honor signed zeros.
33197
33198 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33199
33200 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33201
33202 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33203
33204 PR target/88965
33205 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33206 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33207 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33208
33209 PR middle-end/88968
33210 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33211 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33212
33213 PR target/87064
33214 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33215 Disable for little endian.
33216
33217 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33218
33219 PR target/88469
33220 * config/arm/arm.c (arm_needs_double_word_align): Check
33221 DECL_BIT_FIELD_TYPE.
33222
33223 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33224 H.J. Lu <hongjiu.lu@intel.com>
33225
33226 PR target/88909
33227 * config/i386/i386-builtin.def: Add mask2 to all builtin
33228 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33229 SPECIAL_ARGS.
33230 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33231 (BDESC_FIRST): Likewise.
33232 (define_builtin): Add an argument for mask2. Updated to handle
33233 both ix86_isa_flags and ix86_isa_flags2.
33234 (define_builtin_const): Likewise.
33235 (define_builtin_pure): Likewise.
33236 (define_builtin2): Deleted.
33237 (define_builtin_const2): Likewise.
33238 (builtin_description): Add a member, mask2.
33239 (bdesc_*): Add mask2 to builtin initializations.
33240 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33241 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33242 support.
33243 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33244
33245 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33246
33247 PR target/88954
33248 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33249 noplt attribute.
33250
33251 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33252
33253 PR target/88469
33254 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33255 alignment is dominated by a bitfield with 64-bit aligned base type.
33256 (arm_function_arg): Emit a warning if the alignment has changed since
33257 earlier GCC releases.
33258 (arm_function_arg_boundary): Likewise.
33259 (arm_setup_incoming_varargs): Likewise.
33260
33261 2019-01-22 Richard Biener <rguenther@suse.de>
33262
33263 PR tree-optimization/88862
33264 * graphite-scop-detection.c
33265 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33266
33267 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33268
33269 * doc/extend.tex (AMD GCN Function Attributes): New section.
33270 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33271 * doc/invoke.texi (AMD GCN Options): New section.
33272 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33273
33274 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33275
33276 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33277 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33278
33279 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33280
33281 PR tree-optimization/88044
33282 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33283 is false in the first iteration, but !every_iteration, return false
33284 instead of true with niter->niter zero.
33285
33286 PR rtl-optimization/88904
33287 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33288 any nonequal registers before processing BB_END (b).
33289
33290 PR target/88905
33291 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33292 GET_MODE (op0).
33293 (expand_binop_directly, expand_doubleword_clz,
33294 expand_doubleword_popcount, expand_ctz, expand_ffs,
33295 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33296
33297 PR rtl-optimization/49429
33298 PR target/49454
33299 PR rtl-optimization/86334
33300 PR target/88906
33301 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33302 addressable from here...
33303 (emit_block_op_via_libcall): ... to here.
33304
33305 2019-01-22 Richard Biener <rguenther@suse.de>
33306
33307 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33308 auto_vec for cost vector to fix memleak.
33309 (vectorize_fold_left_reduction): Properly gather SLP defs.
33310 (vectorizable_comparison): Do not swap operands to properly
33311 gather SLP defs.
33312
33313 2019-01-22 Alan Modra <amodra@gmail.com>
33314
33315 PR target/88614
33316 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33317 stays a reg. Allow a const_int.
33318 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33319 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33320 (IS_NOMARK_TLSGETADDR): Define.
33321 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33322 (rs6000_output_tlsargs): New function.
33323 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33324 __tls_get_addr call takes an arg.
33325 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33326 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33327 delete split..
33328 (call_value_nonlocal_sysv): ..or here, delete split.
33329 (tls_gdld_nomark): Delete.
33330 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33331 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33332 (call_value_nonlocal_sysv): Likewise.
33333 (call_value_nonlocal_sysv_secure): Likewise.
33334 (call_value_nonlocal_aix): Likewise.
33335 (call_value_indirect_aix): Likewise.
33336 (call_value_indirect_elfv2): Likewise.
33337 (call_value_local32, call_value_local64): Disable for no-mark tls.
33338 (call_value_local_aix): Likewise.
33339
33340 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33341
33342 PR target/88938
33343 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33344 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33345
33346 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33347
33348 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33349 string contents as hash_map keys.
33350
33351 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33352
33353 PR c/88928
33354 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33355 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33356 instead of TYPE_ALIGN.
33357 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33358 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33359 pointer from TYPE_STUB_DECL.
33360
33361 2019-01-21 Richard Biener <rguenther@suse.de>
33362
33363 PR tree-optimization/88934
33364 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33365 at the possibly non-constant operand.
33366 (vect_get_constant_vectors): Adjust.
33367
33368 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33369
33370 PR target/71659
33371 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33372 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33373 instead of _X86INTRIN_H_INCLUDED.
33374 * onfig/i386/clwbintrin.h: Likewise.
33375 * config/i386/pkuintrin.h: Likewise.
33376 * config/i386/prfchwintrin.h: Likewise.
33377 * config/i386/rdseedintrin.h: Likewise.
33378 * config/i386/wbnoinvdintrin.h: Likewise.
33379 * config/i386/xsavecintrin.h: Likewise.
33380 * config/i386/xsavesintrin.h: Likewise.
33381 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33382 * config/i386/xsaveintrin.h: Likewise.
33383 * config/i386/xsaveoptintrin.h: Likewise.
33384 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33385 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33386 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33387 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33388 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33389 * config/i386/immintrin.h: Here.
33390
33391 2019-01-20 Martin Jambor <mjambor@suse.cz>
33392
33393 PR ipa/87615
33394 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33395 with aa_walk_budget.
33396 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33397 aa_walk_budget_p parameter.
33398 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33399 walk. Updated all callers.
33400 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33401 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33402 unmodified_parm.
33403 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33404 parameter info. Extract info from fbi. Pass fbi to recursive calls
33405 and to unmodified_parm.
33406 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33407 info, updated call to will_be_nonconstant_expr_predicate.
33408 (param_change_prob): New parameter fbi, limit AA walking.
33409 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33410 calls to various above functions.
33411 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33412 parameter. Use it to limit AA walking.
33413 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33414 fbi, limit AA walk.
33415 (detect_type_change): New parameter fbi, pass it on to
33416 detect_type_change_from_memory_writes.
33417 (detect_type_change_ssa): Likewise.
33418 (aa_overwalked): Removed.
33419 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33420 accordingly, adjust to the neew AA limiting scheme.
33421 (parm_ref_data_preserved_p): Likewise.
33422 (ipa_compute_jump_functions_for_edge): Adjust call to
33423 get_dynamic_type.
33424 (ipa_analyze_call_uses): Likewise.
33425 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33426 (ipa_analyze_node): Initialize aa_walk_budget.
33427 (ipcp_transform_function): Likewise.
33428 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33429 to get_dynamic_type.
33430
33431 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33432
33433 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33434 outside of #if CHECKING_P code.
33435
33436 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33437
33438 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33439 New function, split out from...
33440 (loop_versioning::analyze_stride): ...here.
33441 (loop_versioning::find_per_loop_multiplication): Use gassign.
33442 (loop_versioning::analyze_term_using_scevs): Return a success code.
33443 (loop_versioning::analyze_arbitrary_term): New function.
33444 (loop_versioning::analyze_address_fragment): Use
33445 analyze_arbitrary_term if all else fails.
33446
33447 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33448
33449 PR target/88892
33450 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33451 operands.
33452
33453 2019-01-18 Richard Biener <rguenther@suse.de>
33454
33455 PR tree-optimization/88903
33456 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33457 scalar stmts a SLP shift amount is composed of when detecting
33458 shifts by scalars.
33459
33460 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33461
33462 PR target/88799
33463 * config/arm/arm-cpus.in (mp): New feature.
33464 (sec): New feature.
33465 (fgroup ARMv7ve): Add mp and sec features.
33466 (arch armv7-a): Add options to allow mp and sec extensions.
33467 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33468 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33469 extenstions to the base architecture.
33470 (cpu cortex-a8): Add sec extension to the base architecture.
33471 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33472 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33473 variants down to the base v7-a varaint.
33474 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33475 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33476 of permitted extensions for -march=armv7-a and for
33477 -mcpu=generic-armv7-a.
33478
33479 2019-01-18 Martin Liska <mliska@suse.cz>
33480
33481 * params.def: Fix comment.
33482 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33483 name.
33484 (gimple_gen_ic_func_profiler): Likewise.
33485
33486 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33487
33488 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33489 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33490 and put in error checks for stack protector guard options.
33491 (aarch64_stack_protect_guard): New.
33492 (TARGET_STACK_PROTECT_GUARD): Define.
33493 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33494 (reg_stack_protect_address<mode>): New.
33495 (stack_protect_set): Adjust for SSP_GLOBAL.
33496 (stack_protect_test): Likewise.
33497 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33498 (-mstack-protector-guard): Likewise.
33499 (-mstack-protector-guard-offset): Likewise.
33500
33501 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33502
33503 PR tree-optimization/86214
33504 * tree-inline.h (struct copy_body_data): Add
33505 add_clobbers_to_eh_landing_pads member.
33506 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33507 (copy_edges_for_bb): Call it if EH edge destination is <
33508 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33509 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33510 if flag_stack_reuse != SR_NONE and clear it afterwards.
33511
33512 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33513
33514 PR target/85596
33515 * doc/install.texi (with-multilib-list): Document for aarch64.
33516
33517 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33518
33519 PR target/88734
33520 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33521 (("..."))) with ("...").
33522
33523 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33524
33525 * doc/extend.texi (Built-in Functions for Memory Model Aware
33526 Atomic Operations): Document atomic fetch and nand.
33527
33528 2019-01-18 Martin Liska <mliska@suse.cz>
33529 Richard Biener <rguenther@suse.de>
33530
33531 PR middle-end/88587
33532 * cgraph.h (create_version_clone_with_body): Add new argument
33533 with attributes.
33534 * cgraphclones.c (cgraph_node::create_version_clone): Add
33535 DECL_ATTRIBUTES to a newly created decl. And call
33536 valid_attribute_p so that proper cl_target_optimization_node
33537 is set for the newly created declaration.
33538 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33539 for declaration.
33540 (expand_target_clones): Do not call valid_attribute_p, it must
33541 be already done.
33542 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33543 vector types.
33544
33545 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33546
33547 PR target/88734
33548 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33549 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33550 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33551
33552 2019-01-17 Martin Sebor <msebor@redhat.com>
33553
33554 PR middle-end/88273
33555 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33556 Handle anti-ranges the same as no range at all.
33557
33558 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33559
33560 * config/aarch64/aarch64.c (cgraph.h): New include.
33561 (intl.h): New include.
33562 (supported_simd_type): New function.
33563 (currently_supported_simd_type): Ditto.
33564 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33565 (aarch64_simd_clone_adjust): Ditto.
33566 (aarch64_simd_clone_usable): Ditto.
33567 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33568 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33569 (TARGET_SIMD_CLONE_USABLE): Ditto.
33570 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33571 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33572 call.
33573
33574 2019-01-17 Martin Sebor <msebor@redhat.com>
33575
33576 PR tree-optimization/88800
33577 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33578 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33579 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33580 redundant argument. Add new argument and issue diagnostics under
33581 its control. Detect out-of-bounds access even with warnings
33582 disabled.
33583 (check_bounds_or_overlap): Change return type. Add argument.
33584 (wrestrict_dom_walker::check_call): Adjust.
33585 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33586 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33587 check_bounds_or_overlap's return value.
33588 (handle_builtin_stxncpy): Same.
33589 (handle_builtin_strcat): Same.
33590
33591 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33592 Kwok Cheung Yeung <kcy@codesourcery.com>
33593 Julian Brown <julian@codesourcery.com>
33594 Tom de Vries <tom@codesourcery.com>
33595
33596 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33597
33598 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33599
33600 * doc/sourcebuild.texi: Document dg-require-effective-target
33601 llvm_binutils and offload_gcn.
33602
33603 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33604 Kwok Cheung Yeung <kcy@codesourcery.com>
33605 Julian Brown <julian@codesourcery.com>
33606 Tom de Vries <tom@codesourcery.com>
33607
33608 * doc/sourcebuild.texi: Document dg-required-effective-target
33609 exceptions.
33610
33611 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33612 Kwok Cheung Yeung <kcy@codesourcery.com>
33613 Julian Brown <julian@codesourcery.com>
33614 Tom de Vries <tom@codesourcery.com>
33615 Jan Hubicka <hubicka@ucw.cz>
33616 Martin Jambor <mjambor@suse.cz>
33617
33618 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33619 * configure.ac: Check for dlopen.
33620 * configure: Regenerate.
33621
33622 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33623 Kwok Cheung Yeung <kcy@codesourcery.com>
33624 Julian Brown <julian@codesourcery.com>
33625 Tom de Vries <tom@codesourcery.com>
33626 Jan Hubicka <hubicka@ucw.cz>
33627 Martin Jambor <mjambor@suse.cz>
33628
33629 * common/config/gcn/gcn-common.c: New file.
33630 * config/gcn/driver-gcn.c: New file.
33631 * config/gcn/gcn-builtins.def: New file.
33632 * config/gcn/gcn-hsa.h: New file.
33633 * config/gcn/gcn-modes.def: New file.
33634 * config/gcn/gcn-opts.h: New file.
33635 * config/gcn/gcn-passes.def: New file.
33636 * config/gcn/gcn-protos.h: New file.
33637 * config/gcn/gcn-run.c: New file.
33638 * config/gcn/gcn-tree.c: New file.
33639 * config/gcn/gcn.c: New file.
33640 * config/gcn/gcn.h: New file.
33641 * config/gcn/gcn.opt: New file.
33642 * config/gcn/t-gcn-hsa: New file.
33643
33644 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33645 Kwok Cheung Yeung <kcy@codesourcery.com>
33646 Julian Brown <julian@codesourcery.com>
33647 Tom de Vries <tom@codesourcery.com>
33648 Jan Hubicka <hubicka@ucw.cz>
33649 Martin Jambor <mjambor@suse.cz>
33650
33651 * config/gcn/constraints.md: New file.
33652 * config/gcn/gcn-valu.md: New file.
33653 * config/gcn/gcn.md: New file.
33654 * config/gcn/predicates.md: New file.
33655
33656 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33657
33658 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33659 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33660 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33661 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33662
33663 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33664
33665 PR target/88851
33666 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33667 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33668 it and document registers.
33669
33670 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33671
33672 * config/aarch64/aarch64.c (ares_tunings): Define.
33673 * config/aarch64/aarch64-cores.def (ares): Use the above.
33674
33675 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33676
33677 PR target/88794
33678 Revert:
33679 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33680
33681 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33682 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33683 (_mm512_maskz_fixupimm_round_pd): Ditto.
33684 (_mm512_fixupimm_round_ps): Ditto.
33685 (_mm512_maskz_fixupimm_round_ps): Ditto.
33686 (_mm_fixupimm_round_sd): Ditto.
33687 (_mm_maskz_fixupimm_round_sd): Ditto.
33688 (_mm_fixupimm_round_ss): Ditto.
33689 (_mm_maskz_fixupimm_round_ss): Ditto.
33690 (_mm512_fixupimm_pd): Ditto.
33691 (_mm512_maskz_fixupimm_pd): Ditto.
33692 (_mm512_fixupimm_ps): Ditto.
33693 (_mm512_maskz_fixupimm_ps): Ditto.
33694 (_mm_fixupimm_sd): Ditto.
33695 (_mm_maskz_fixupimm_sd): Ditto.
33696 (_mm_fixupimm_ss): Ditto.
33697 (_mm_maskz_fixupimm_ss): Ditto.
33698 (_mm512_mask_fixupimm_round_pd): Update builtin.
33699 (_mm512_mask_fixupimm_round_ps): Ditto.
33700 (_mm_mask_fixupimm_round_sd): Ditto.
33701 (_mm_mask_fixupimm_round_ss): Ditto.
33702 (_mm512_mask_fixupimm_pd): Ditto.
33703 (_mm512_mask_fixupimm_ps): Ditto.
33704 (_mm_mask_fixupimm_sd): Ditto.
33705 (_mm_mask_fixupimm_ss): Ditto.
33706 * config/i386/avx512vlintrin.h:
33707 (_mm256_fixupimm_pd): Update parameters and builtin.
33708 (_mm256_maskz_fixupimm_pd): Ditto.
33709 (_mm256_fixupimm_ps): Ditto.
33710 (_mm256_maskz_fixupimm_ps): Ditto.
33711 (_mm_fixupimm_pd): Ditto.
33712 (_mm_maskz_fixupimm_pd): Ditto.
33713 (_mm_fixupimm_ps): Ditto.
33714 (_mm_maskz_fixupimm_ps): Ditto.
33715 (_mm256_mask_fixupimm_pd): Update builtin.
33716 (_mm256_mask_fixupimm_ps): Ditto.
33717 (_mm_mask_fixupimm_pd): Ditto.
33718 (_mm_mask_fixupimm_ps): Ditto.
33719 * config/i386/i386-builtin-types.def: Add new types and remove
33720 useless ones.
33721 * config/i386/i386-builtin.def: Update builtin definitions.
33722 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33723 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33724 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33725 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33726 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33727 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33728 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33729 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33730 * config/i386/subst.md:
33731 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33732 (round_saeonly_sd_mask_op4): Ditto.
33733 (round_saeonly_expand_operand5): Ditto.
33734 (round_saeonly_expand): Update.
33735
33736 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33737
33738 PR target/88794
33739 Revert:
33740 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33741
33742 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33743 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33744 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33745 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33746 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33747 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33748 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33749
33750 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33751
33752 PR target/88794
33753 Revert:
33754 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33755
33756 PR target/88489
33757 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33758 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33759 instead of UNSPEC_FIXUPIMM.
33760
33761 2019-01-17 Richard Biener <rguenther@suse.de>
33762
33763 PR lto/86736
33764 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33765 and friends for the LTO part of debug info.
33766
33767 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33768
33769 PR tree-optimization/86214
33770 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33771 if x == y.
33772
33773 PR rtl-optimization/88870
33774 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33775 throw if we can't alter the cfg or delete dead exceptions.
33776 (mark_insn): Don't call find_call_stack_args for such calls.
33777
33778 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33779
33780 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33781 prototypes for vec_st.
33782 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33783 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33784 mainly on signed/unsigned long long and double.
33785
33786 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33787
33788 PR target/88861
33789 * combine.c (delete_noop_moves): Convert to "bool" return,
33790 returning true if any edges are eliminated.
33791 (combine_instructions): Also return true if delete_noop_moves
33792 returns true.
33793
33794 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33795
33796 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33797 correct max nunits for endian swap.
33798 (aarch64_expand_fcmla_builtin): Correct subreg code.
33799 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33800 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33801 lane endianness.
33802
33803 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33804
33805 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33806 Handle split indirect COMPLEX_TYPE arguments.
33807
33808 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33809
33810 PR target/86891
33811 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33812 bit is set by add and compare.
33813 (CC_ADC): New CC_MODE.
33814 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33815 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33816 comparison. Add detection for CC_ADCmode.
33817 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33818 CC_ADCmode.
33819 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33820 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33821 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33822 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33823 to eliminate the need for zero-extending the operands.
33824 (add<mode>3_compareC_imm): Delete. Merge into ...
33825 (add<mode>3_compareC): ... this. Restructure the comparison to
33826 eliminate the need for zero-extending the operands.
33827 (add<mode>3_carryin): Use LTU for the overflow detection.
33828 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33829 Reexpress comparison for overflow.
33830 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33831 (add<mode>3_carryinC): Likewise.
33832 (add<mode>3_carryinV): Use LTU for carry between partials.
33833 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33834 handling of CC_Cmode and add CC_ADCmode.
33835 (aarch64_borrow_operation): Likewise.
33836
33837 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33838
33839 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33840 Remove patternmode.
33841 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33842 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33843 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33844 Remove endianness conversion.
33845
33846 2019-01-16 Martin Liska <mliska@suse.cz>
33847
33848 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33849 for GCC driver.
33850 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33851 a new argument.
33852 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33853 (path_prefix_reset): Move up in the source file.
33854 (find_fortran_preinclude_file): Make complex search for the
33855 fortran header files.
33856
33857 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33858
33859 * godump.c (go_output_typedef): When outputting a typedef, refer
33860 to the underlying type by its name and not its structure.
33861
33862 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33863
33864 PR c++/88795
33865 * tree.c (build_function_type): Assert that arg_types is not
33866 error_mark_node.
33867
33868 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33869
33870 PR inline-asm/52813
33871 * doc/extend.texi: Document that listing the stack pointer in the
33872 clobber list of an asm is a deprecated feature.
33873 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33874 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33875 warning instead of an error for clobbers of the stack pointer.
33876 Add a note explaining why.
33877
33878 2019-01-15 Richard Biener <rguenther@suse.de>
33879
33880 PR debug/88046
33881 * dwarf2out.c (gen_member_die): Do not generate inheritance
33882 DIEs late.
33883
33884 2019-01-15 Richard Biener <rguenther@suse.de>
33885
33886 PR tree-optimization/88855
33887 * tree-if-conv.c (combine_blocks): Collect
33888 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33889
33890 2019-01-15 Tom de Vries <tdevries@suse.de>
33891
33892 PR target/80547
33893 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33894 lhs == NULL_TREE for gang-level reduction.
33895
33896 2019-01-15 Richard Biener <rguenther@suse.de>
33897 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33898
33899 PR ipa/88788
33900 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33901 return true if SSA_NAME is already marked in visited bitmap.
33902 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33903
33904 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33905
33906 PR tree-optimization/88775
33907 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33908 equal == 0 equality pointer comparisons some more if compared in
33909 integral types and either one points to an automatic var and the
33910 other to a global, or we can prove at least one points to the middle
33911 or both point to start or both point to end.
33912
33913 2019-01-14 Andi Kleen <ak@linux.intel.com>
33914
33915 * Makefile.in: Lower autofdo sampling rate by 10x.
33916 * Makefile.tpl: Dito.
33917
33918 2019-01-14 Tom Honermann <tom@honermann.net>
33919
33920 * defaults.h: Define CHAR8_TYPE.
33921
33922 2019-01-14 Martin Sebor <msebor@redhat.com>
33923
33924 PR target/88638
33925 * doc/extend.texi (Darwin Format Checks): Clarify.
33926
33927 2019-01-14 Richard Biener <rguenther@suse.de>
33928
33929 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33930 whether we are in (simplify ...) or (match ...) context.
33931
33932 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33933
33934 PR rtl-optimization/88796
33935 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33936 * cfgexpand.c (stack_protect_prologue): Initialize
33937 crtl->stack_protect_guard_decl.
33938 * function.c (stack_protect_epilogue): Use it instead of calling
33939 targetm.stack_protect_guard again.
33940 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33941 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33942 crtl->stack_protect_guard_decl.
33943 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33944 on the returned MEM_EXPR.
33945
33946 2019-01-12 Tom de Vries <tdevries@suse.de>
33947
33948 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33949 vector length using -fopenacc-dim.
33950
33951 2019-01-12 Tom de Vries <tdevries@suse.de>
33952
33953 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33954 lengths into account.
33955
33956 2019-01-12 Svante Signell <svante.signell@gmail.com>
33957
33958 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33959 (TARGET_CAN_SPLIT_STACK): Define.
33960 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33961
33962 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33963
33964 * params.def (inline-unit-growth): Set to 40.
33965
33966 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33967
33968 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33969
33970 2019-01-12 Tom de Vries <tdevries@suse.de>
33971
33972 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33973 region calling vector-partitionable routine, set default_vector_length
33974 to WARP_SIZE.
33975
33976 2019-01-12 Tom de Vries <tdevries@suse.de>
33977
33978 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33979 variable default_vector_length.
33980
33981 2019-01-12 Tom de Vries <tdevries@suse.de>
33982
33983 PR middle-end/88703
33984 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33985 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33986 dimensions limits.
33987
33988 2019-01-12 Tom de Vries <tdevries@suse.de>
33989
33990 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33991 (nvptx_goacc_validate_dims): Add used parameter.
33992 * doc/tm.texi: Regenerate.
33993 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33994 argument to call to targetm.goacc.validate_dims.
33995 (default_goacc_validate_dims): Add used
33996 parameter.
33997 * target.def (validate_dims): Add used parameter in DEFHOOK.
33998 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33999
34000 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34001
34002 PR middle-end/85956
34003 PR lto/88733
34004 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34005 field.
34006 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34007 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34008 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34009 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34010
34011 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34012
34013 PR rtl-optimization/87305
34014 * lra-assigns.c
34015 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34016 for little endian pseudos used as paradoxical subreg.
34017
34018 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34019
34020 PR tree-optimization/88693
34021 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34022 for STRING_CSTs that don't contain any NUL characters in the first
34023 TREE_STRING_LENGTH bytes.
34024
34025 2019-01-11 Alan Modra <amodra@gmail.com>
34026
34027 PR 88777
34028 PR 88614
34029 * genattrtab.c (min_fn): Don't translate values.
34030 (min_attr_value): Return INT_MAX when the value can't be calculated.
34031 Return minimum among any values that can be calculated.
34032 (max_attr_value): Adjust.
34033
34034 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34035
34036 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34037
34038 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34039
34040 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34041 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34042 (aarch64_return_call_with_max_clobbers): New function.
34043 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34044 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34045 argument.
34046 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34047 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34048 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34049 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34050 * cselib.c (cselib_process_insn): Add argument to
34051 targetm.hard_regno_call_part_clobbered call.
34052 * ira-conflicts.c (ira_build_conflicts): Ditto.
34053 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34054 * lra-constraints.c (inherit_reload_reg): Ditto.
34055 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34056 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34057 argument. Call targetm.return_call_with_max_clobbers.
34058 Add argument to targetm.hard_regno_call_part_clobbered call.
34059 (calls_have_same_clobbers_p): New function.
34060 (process_bb_lives): Add call_insn and last_call_insn variables.
34061 Pass call_insn to check_pseudos_live_through_calls.
34062 Modify if stmt to check targetm.return_call_with_max_clobbers.
34063 Update setting of flush variable.
34064 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34065 to false.
34066 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34067 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34068 targetm.hard_regno_call_part_clobbered call.
34069 * reginfo.c (choose_hard_reg_mode): Ditto.
34070 * regrename.c (check_new_reg_p): Ditto.
34071 * reload.c (find_equiv_reg): Ditto.
34072 * reload1.c (emit_reload_insns): Ditto.
34073 * sched-deps.c (deps_analyze_insn): Ditto.
34074 * sel-sched.c (init_regs_for_mode): Ditto.
34075 (mark_unavailable_hard_regs): Ditto.
34076 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34077 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34078 (return_call_with_max_clobbers): New target function.
34079 * doc/tm.texi: Regenerate.
34080 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34081 * hooks.c (hook_bool_uint_mode_false): Change to
34082 hook_bool_insn_uint_mode_false.
34083 * hooks.h (hook_bool_uint_mode_false): Ditto.
34084
34085 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34086
34087 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34088 (aarch64_remove_extra_call_preserved_regs): New function.
34089 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34090 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34091 * doc/tm.texi: Regenerate.
34092 * final.c (get_call_reg_set_usage): Call new hook.
34093 * target.def (remove_extra_call_preserved_regs): New hook.
34094 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34095 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34096
34097 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34098
34099 PR bootstrap/88714
34100 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34101 inside of pass_combine_1 dump rather than pass_profile_1.
34102
34103 2019-01-11 Tom de Vries <tdevries@suse.de>
34104
34105 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34106 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34107 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34108 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34109 num_workers 16.
34110
34111 2019-01-11 Tom de Vries <tdevries@suse.de>
34112
34113 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34114
34115 2019-01-11 Jan Beulich <jbeulich@suse.com>
34116
34117 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34118 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34119 sse2_cvtsi2sd): Add {l}.
34120 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34121 syntax.
34122
34123 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34124
34125 PR target/88785
34126 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34127 define_expand.
34128 (*float<floatunssuffix>v2div2sf2): New define_insn.
34129 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34130 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34131 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34132 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34133 match_operands with "const0_operand" "C".
34134
34135 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34136
34137 * config/aarch64/aarch64-builtins.c
34138 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34139 (aarch64_init_simd_builtins): ...Here
34140
34141 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34142
34143 PR rtl-optimization/87305
34144 * lra-assigns.c
34145 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34146 allocation for big endian pseudos used as paradoxical subregs and
34147 spill them if it is wrong.
34148 * lra-constraints.c (lra_constraints): Add a comment.
34149
34150 2019-01-10 Richard Biener <rguenther@suse.de>
34151
34152 PR tree-optimization/88792
34153 * tree-ssa-pre.c (get_representative_for): Do not return a
34154 value-number here.
34155
34156 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34157
34158 PR middle-end/84877
34159 PR bootstrap/88450
34160 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34161 (assign_parm_setup_block): Do the argument slot realignment here
34162 instead.
34163
34164 2019-01-10 Stefan Agner <stefan@agner.ch>
34165
34166 PR target/88648
34167 * config/arm/arm.c (arm_option_override_internal): Force
34168 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34169
34170 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34171
34172 PR c/88568
34173 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34174 DECL_EXTERNAL.
34175
34176 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34177
34178 * config/arm/arm-builtins.c
34179 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34180 (MAC_LANE_PAIR_QUALIFIERS): New.
34181 (arm_expand_builtin_args): Use it.
34182 (arm_expand_builtin_1): Likewise.
34183 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34184 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34185 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34186 * config/arm/arm_neon.h:
34187 (vcadd_rot90_f16): New.
34188 (vcaddq_rot90_f16): New.
34189 (vcadd_rot270_f16): New.
34190 (vcaddq_rot270_f16): New.
34191 (vcmla_f16): New.
34192 (vcmlaq_f16): New.
34193 (vcmla_lane_f16): New.
34194 (vcmla_laneq_f16): New.
34195 (vcmlaq_lane_f16): New.
34196 (vcmlaq_laneq_f16): New.
34197 (vcmla_rot90_f16): New.
34198 (vcmlaq_rot90_f16): New.
34199 (vcmla_rot90_lane_f16): New.
34200 (vcmla_rot90_laneq_f16): New.
34201 (vcmlaq_rot90_lane_f16): New.
34202 (vcmlaq_rot90_laneq_f16): New.
34203 (vcmla_rot180_f16): New.
34204 (vcmlaq_rot180_f16): New.
34205 (vcmla_rot180_lane_f16): New.
34206 (vcmla_rot180_laneq_f16): New.
34207 (vcmlaq_rot180_lane_f16): New.
34208 (vcmlaq_rot180_laneq_f16): New.
34209 (vcmla_rot270_f16): New.
34210 (vcmlaq_rot270_f16): New.
34211 (vcmla_rot270_lane_f16): New.
34212 (vcmla_rot270_laneq_f16): New.
34213 (vcmlaq_rot270_lane_f16): New.
34214 (vcmlaq_rot270_laneq_f16): New.
34215 (vcadd_rot90_f32): New.
34216 (vcaddq_rot90_f32): New.
34217 (vcadd_rot270_f32): New.
34218 (vcaddq_rot270_f32): New.
34219 (vcmla_f32): New.
34220 (vcmlaq_f32): New.
34221 (vcmla_lane_f32): New.
34222 (vcmla_laneq_f32): New.
34223 (vcmlaq_lane_f32): New.
34224 (vcmlaq_laneq_f32): New.
34225 (vcmla_rot90_f32): New.
34226 (vcmlaq_rot90_f32): New.
34227 (vcmla_rot90_lane_f32): New.
34228 (vcmla_rot90_laneq_f32): New.
34229 (vcmlaq_rot90_lane_f32): New.
34230 (vcmlaq_rot90_laneq_f32): New.
34231 (vcmla_rot180_f32): New.
34232 (vcmlaq_rot180_f32): New.
34233 (vcmla_rot180_lane_f32): New.
34234 (vcmla_rot180_laneq_f32): New.
34235 (vcmlaq_rot180_lane_f32): New.
34236 (vcmlaq_rot180_laneq_f32): New.
34237 (vcmla_rot270_f32): New.
34238 (vcmlaq_rot270_f32): New.
34239 (vcmla_rot270_lane_f32): New.
34240 (vcmla_rot270_laneq_f32): New.
34241 (vcmlaq_rot270_lane_f32): New.
34242 (vcmlaq_rot270_laneq_f32): New.
34243 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34244 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34245 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34246 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34247 vcmlaq_lane270): New.
34248 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34249 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34250 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34251 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34252 (arm_option_reconfigure_globals): Use them.
34253 * config/arm/iterators.md (VDF, VQ_HSF): New.
34254 (VCADD, VCMLA): New.
34255 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34256 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34257 New.
34258 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34259 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34260
34261 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34262
34263 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34264 Add qualifier_lane_pair_index.
34265 (emit-rtl.h): Include.
34266 (TYPES_QUADOP_LANE_PAIR): New.
34267 (aarch64_simd_expand_args): Use it.
34268 (aarch64_simd_expand_builtin): Likewise.
34269 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34270 New.
34271 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34272 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34273 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34274 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34275 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34276 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34277 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34278 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34279 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34280 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34281 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34282 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34283 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34284 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34285 Add __ARM_FEATURE_COMPLEX.
34286 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34287 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34288 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34289 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34290 fcmlaq_lane270): New.
34291 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34292 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34293 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34294 * config/aarch64/arm_neon.h:
34295 (vcadd_rot90_f16): New.
34296 (vcaddq_rot90_f16): New.
34297 (vcadd_rot270_f16): New.
34298 (vcaddq_rot270_f16): New.
34299 (vcmla_f16): New.
34300 (vcmlaq_f16): New.
34301 (vcmla_lane_f16): New.
34302 (vcmla_laneq_f16): New.
34303 (vcmlaq_lane_f16): New.
34304 (vcmlaq_rot90_lane_f16): New.
34305 (vcmla_rot90_laneq_f16): New.
34306 (vcmla_rot90_lane_f16): New.
34307 (vcmlaq_rot90_f16): New.
34308 (vcmla_rot90_f16): New.
34309 (vcmlaq_laneq_f16): New.
34310 (vcmla_rot180_laneq_f16): New.
34311 (vcmla_rot180_lane_f16): New.
34312 (vcmlaq_rot180_f16): New.
34313 (vcmla_rot180_f16): New.
34314 (vcmlaq_rot90_laneq_f16): New.
34315 (vcmlaq_rot270_laneq_f16): New.
34316 (vcmlaq_rot270_lane_f16): New.
34317 (vcmla_rot270_laneq_f16): New.
34318 (vcmlaq_rot270_f16): New.
34319 (vcmla_rot270_f16): New.
34320 (vcmlaq_rot180_laneq_f16): New.
34321 (vcmlaq_rot180_lane_f16): New.
34322 (vcmla_rot270_lane_f16): New.
34323 (vcadd_rot90_f32): New.
34324 (vcaddq_rot90_f32): New.
34325 (vcaddq_rot90_f64): New.
34326 (vcadd_rot270_f32): New.
34327 (vcaddq_rot270_f32): New.
34328 (vcaddq_rot270_f64): New.
34329 (vcmla_f32): New.
34330 (vcmlaq_f32): New.
34331 (vcmlaq_f64): New.
34332 (vcmla_lane_f32): New.
34333 (vcmla_laneq_f32): New.
34334 (vcmlaq_lane_f32): New.
34335 (vcmlaq_laneq_f32): New.
34336 (vcmla_rot90_f32): New.
34337 (vcmlaq_rot90_f32): New.
34338 (vcmlaq_rot90_f64): New.
34339 (vcmla_rot90_lane_f32): New.
34340 (vcmla_rot90_laneq_f32): New.
34341 (vcmlaq_rot90_lane_f32): New.
34342 (vcmlaq_rot90_laneq_f32): New.
34343 (vcmla_rot180_f32): New.
34344 (vcmlaq_rot180_f32): New.
34345 (vcmlaq_rot180_f64): New.
34346 (vcmla_rot180_lane_f32): New.
34347 (vcmla_rot180_laneq_f32): New.
34348 (vcmlaq_rot180_lane_f32): New.
34349 (vcmlaq_rot180_laneq_f32): New.
34350 (vcmla_rot270_f32): New.
34351 (vcmlaq_rot270_f32): New.
34352 (vcmlaq_rot270_f64): New.
34353 (vcmla_rot270_lane_f32): New.
34354 (vcmla_rot270_laneq_f32): New.
34355 (vcmlaq_rot270_lane_f32): New.
34356 (vcmlaq_rot270_laneq_f32): New.
34357 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34358 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34359 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34360 (FCADD, FCMLA): New.
34361 (rot): New.
34362 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34363
34364 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34365
34366 PR other/16615
34367
34368 * config/pa/pa.c: Change "can not" to "cannot".
34369 * gimple-ssa-evrp-analyze.c: Likewise.
34370 * ipa-icf.c: Likewise.
34371 * ipa-polymorphic-call.c: Likewise.
34372 * ipa-pure-const.c: Likewise.
34373 * lra-constraints.c: Likewise.
34374 * lra-remat.c: Likewise.
34375 * reload1.c: Likewise.
34376 * reorg.c: Likewise.
34377 * tree-ssa-uninit.c: Likewise.
34378
34379 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34380
34381 PR other/16615
34382
34383 * Makefile.in: Mechanically replace "can not" with "cannot".
34384 * alias.c: Likewise.
34385 * builtins.c: Likewise.
34386 * calls.c: Likewise.
34387 * cgraph.c: Likewise.
34388 * cgraph.h: Likewise.
34389 * cgraphclones.c: Likewise.
34390 * cgraphunit.c: Likewise.
34391 * combine-stack-adj.c: Likewise.
34392 * combine.c: Likewise.
34393 * common/config/i386/i386-common.c: Likewise.
34394 * config/aarch64/aarch64.c: Likewise.
34395 * config/alpha/sync.md: Likewise.
34396 * config/arc/arc.c: Likewise.
34397 * config/arc/predicates.md: Likewise.
34398 * config/arm/arm-c.c: Likewise.
34399 * config/arm/arm.c: Likewise.
34400 * config/arm/arm.h: Likewise.
34401 * config/arm/arm.md: Likewise.
34402 * config/arm/cortex-r4f.md: Likewise.
34403 * config/csky/csky.c: Likewise.
34404 * config/csky/csky.h: Likewise.
34405 * config/darwin-f.c: Likewise.
34406 * config/epiphany/epiphany.md: Likewise.
34407 * config/i386/i386.c: Likewise.
34408 * config/i386/sol2.h: Likewise.
34409 * config/m68k/m68k.c: Likewise.
34410 * config/mcore/mcore.h: Likewise.
34411 * config/microblaze/microblaze.md: Likewise.
34412 * config/mips/20kc.md: Likewise.
34413 * config/mips/sb1.md: Likewise.
34414 * config/nds32/nds32.c: Likewise.
34415 * config/nds32/predicates.md: Likewise.
34416 * config/pa/pa.c: Likewise.
34417 * config/rs6000/e300c2c3.md: Likewise.
34418 * config/rs6000/rs6000.c: Likewise.
34419 * config/s390/s390.h: Likewise.
34420 * config/sh/sh.c: Likewise.
34421 * config/sh/sh.md: Likewise.
34422 * config/spu/vmx2spu.h: Likewise.
34423 * cprop.c: Likewise.
34424 * dbxout.c: Likewise.
34425 * df-scan.c: Likewise.
34426 * doc/cfg.texi: Likewise.
34427 * doc/extend.texi: Likewise.
34428 * doc/fragments.texi: Likewise.
34429 * doc/gty.texi: Likewise.
34430 * doc/invoke.texi: Likewise.
34431 * doc/lto.texi: Likewise.
34432 * doc/md.texi: Likewise.
34433 * doc/objc.texi: Likewise.
34434 * doc/rtl.texi: Likewise.
34435 * doc/tm.texi: Likewise.
34436 * dse.c: Likewise.
34437 * emit-rtl.c: Likewise.
34438 * emit-rtl.h: Likewise.
34439 * except.c: Likewise.
34440 * expmed.c: Likewise.
34441 * expr.c: Likewise.
34442 * fold-const.c: Likewise.
34443 * genautomata.c: Likewise.
34444 * gimple-fold.c: Likewise.
34445 * hard-reg-set.h: Likewise.
34446 * ifcvt.c: Likewise.
34447 * ipa-comdats.c: Likewise.
34448 * ipa-cp.c: Likewise.
34449 * ipa-devirt.c: Likewise.
34450 * ipa-fnsummary.c: Likewise.
34451 * ipa-icf.c: Likewise.
34452 * ipa-inline-transform.c: Likewise.
34453 * ipa-inline.c: Likewise.
34454 * ipa-polymorphic-call.c: Likewise.
34455 * ipa-profile.c: Likewise.
34456 * ipa-prop.c: Likewise.
34457 * ipa-pure-const.c: Likewise.
34458 * ipa-reference.c: Likewise.
34459 * ipa-split.c: Likewise.
34460 * ipa-visibility.c: Likewise.
34461 * ipa.c: Likewise.
34462 * ira-build.c: Likewise.
34463 * ira-color.c: Likewise.
34464 * ira-conflicts.c: Likewise.
34465 * ira-costs.c: Likewise.
34466 * ira-int.h: Likewise.
34467 * ira-lives.c: Likewise.
34468 * ira.c: Likewise.
34469 * ira.h: Likewise.
34470 * loop-invariant.c: Likewise.
34471 * loop-unroll.c: Likewise.
34472 * lower-subreg.c: Likewise.
34473 * lra-assigns.c: Likewise.
34474 * lra-constraints.c: Likewise.
34475 * lra-eliminations.c: Likewise.
34476 * lra-lives.c: Likewise.
34477 * lra-remat.c: Likewise.
34478 * lra-spills.c: Likewise.
34479 * lra.c: Likewise.
34480 * lto-cgraph.c: Likewise.
34481 * lto-streamer-out.c: Likewise.
34482 * postreload-gcse.c: Likewise.
34483 * predict.c: Likewise.
34484 * profile-count.h: Likewise.
34485 * profile.c: Likewise.
34486 * recog.c: Likewise.
34487 * ree.c: Likewise.
34488 * reload.c: Likewise.
34489 * reload1.c: Likewise.
34490 * reorg.c: Likewise.
34491 * resource.c: Likewise.
34492 * rtl.def: Likewise.
34493 * rtl.h: Likewise.
34494 * rtlanal.c: Likewise.
34495 * sched-deps.c: Likewise.
34496 * sched-ebb.c: Likewise.
34497 * sched-rgn.c: Likewise.
34498 * sel-sched-ir.c: Likewise.
34499 * sel-sched.c: Likewise.
34500 * shrink-wrap.c: Likewise.
34501 * simplify-rtx.c: Likewise.
34502 * symtab.c: Likewise.
34503 * target.def: Likewise.
34504 * toplev.c: Likewise.
34505 * tree-call-cdce.c: Likewise.
34506 * tree-cfg.c: Likewise.
34507 * tree-complex.c: Likewise.
34508 * tree-core.h: Likewise.
34509 * tree-eh.c: Likewise.
34510 * tree-inline.c: Likewise.
34511 * tree-loop-distribution.c: Likewise.
34512 * tree-nrv.c: Likewise.
34513 * tree-profile.c: Likewise.
34514 * tree-sra.c: Likewise.
34515 * tree-ssa-alias.c: Likewise.
34516 * tree-ssa-dce.c: Likewise.
34517 * tree-ssa-dom.c: Likewise.
34518 * tree-ssa-forwprop.c: Likewise.
34519 * tree-ssa-loop-im.c: Likewise.
34520 * tree-ssa-loop-ivcanon.c: Likewise.
34521 * tree-ssa-loop-ivopts.c: Likewise.
34522 * tree-ssa-loop-niter.c: Likewise.
34523 * tree-ssa-phionlycprop.c: Likewise.
34524 * tree-ssa-phiopt.c: Likewise.
34525 * tree-ssa-propagate.c: Likewise.
34526 * tree-ssa-threadedge.c: Likewise.
34527 * tree-ssa-threadupdate.c: Likewise.
34528 * tree-ssa-uninit.c: Likewise.
34529 * tree-ssanames.c: Likewise.
34530 * tree-streamer-out.c: Likewise.
34531 * tree.c: Likewise.
34532 * tree.h: Likewise.
34533 * vr-values.c: Likewise.
34534
34535 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34536
34537 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34538 (ix86_split_xorsign): Ditto.
34539 * config/i386/i386.c (ix86_expand_xorsign): New function.
34540 (ix86_split_xorsign): Ditto.
34541 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34542 (xorsign<mode>3): New expander.
34543 (xorsign<mode>3_1): New insn_and_split pattern.
34544 * config/i386/sse.md (xorsign<mode>3): New expander.
34545
34546 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34547
34548 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34549 (*tablejump_sp64): Likewise.
34550 (*tablejump<P:mode>): ...this.
34551 (*call_address_sp32): Merge into...
34552 (*call_address_sp64): Likewise.
34553 (*call_address<P:mode>): ...this.
34554 (*call_symbolic_sp32): Merge into...
34555 (*call_symbolic_sp64): Likewise.
34556 (*call_symbolic<P:mode>): ...this.
34557 (call_value): Remove constraint and add predicate.
34558 (*call_value_address_sp32): Merge into...
34559 (*call_value_address_sp64): Likewise.
34560 (*call_value_address<P:mode>): ...this.
34561 (*call_value_symbolic_sp32): Merge into...
34562 (*call_value_symbolic_sp64): Likewise.
34563 (*call_value_symbolic<P:mode>): ...this.
34564 (*sibcall_symbolic_sp32): Merge into...
34565 (*sibcall_symbolic_sp64): Likewise.
34566 (*sibcall_symbolic<P:mode>): ...this.
34567 (sibcall_value): Remove constraint and add predicate.
34568 (*sibcall_value_symbolic_sp32): Merge into...
34569 (*sibcall_value_symbolic_sp64): Likewise.
34570 (*sibcall_value_symbolic<P:mode>): ...this.
34571 (window_save): Minor tweak.
34572 (*branch_sp32): Merge into...
34573 (*branch_sp64): Likewise.
34574 (*branch<P:mode>): ...this.
34575
34576 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34577 James Clarke <jrtc27@jrtc27.com>
34578
34579 PR target/84010
34580 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34581 consistently in TLS address generation and adjust code to the renaming
34582 of patterns. Mark calls to __tls_get_addr as const.
34583 * config/sparc/sparc.md (tgd_hi22): Turn into...
34584 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34585 (tgd_lo10): Turn into...
34586 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34587 (tgd_add32): Merge into...
34588 (tgd_add64): Likewise.
34589 (tgd_add<P:mode>): ...this and use Pmode throughout.
34590 (tldm_hi22): Turn into...
34591 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34592 (tldm_lo10): Turn into...
34593 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34594 (tldm_add32): Merge into...
34595 (tldm_add64): Likewise.
34596 (tldm_add<P:mode>): ...this and use Pmode throughout.
34597 (tldm_call32): Merge into...
34598 (tldm_call64): Likewise.
34599 (tldm_call<P:mode>): ...this and use Pmode throughout.
34600 (tldo_hix22): Turn into...
34601 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34602 (tldo_lox10): Turn into...
34603 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34604 (tldo_add32): Merge into...
34605 (tldo_add64): Likewise.
34606 (tldo_add<P:mode>): ...this and use Pmode throughout.
34607 (tie_hi22): Turn into...
34608 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34609 (tie_lo10): Turn into...
34610 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34611 (tie_ld64): Use DImode throughout.
34612 (tie_add32): Merge into...
34613 (tie_add64): Likewise.
34614 (tie_add<P:mode>): ...this and use Pmode throughout.
34615 (tle_hix22_sp32): Merge into...
34616 (tle_hix22_sp64): Likewise.
34617 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34618 (tle_lox22_sp32): Merge into...
34619 (tle_lox22_sp64): Likewise.
34620 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34621 (*tldo_ldub_sp32): Merge into...
34622 (*tldo_ldub_sp64): Likewise.
34623 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34624 (*tldo_ldub1_sp32): Merge into...
34625 (*tldo_ldub1_sp64): Likewise.
34626 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34627 (*tldo_ldub2_sp32): Merge into...
34628 (*tldo_ldub2_sp64): Likewise.
34629 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34630 (*tldo_ldsb1_sp32): Merge into...
34631 (*tldo_ldsb1_sp64): Likewise.
34632 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34633 (*tldo_ldsb2_sp32): Merge into...
34634 (*tldo_ldsb2_sp64): Likewise.
34635 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34636 (*tldo_ldub3_sp64): Use DImode throughout.
34637 (*tldo_ldsb3_sp64): Likewise.
34638 (*tldo_lduh_sp32): Merge into...
34639 (*tldo_lduh_sp64): Likewise.
34640 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34641 (*tldo_lduh1_sp32): Merge into...
34642 (*tldo_lduh1_sp64): Likewise.
34643 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34644 (*tldo_ldsh1_sp32): Merge into...
34645 (*tldo_ldsh1_sp64): Likewise.
34646 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34647 (*tldo_lduh2_sp64): Use DImode throughout.
34648 (*tldo_ldsh2_sp64): Likewise.
34649 (*tldo_lduw_sp32): Merge into...
34650 (*tldo_lduw_sp64): Likewise.
34651 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34652 (*tldo_lduw1_sp64): Use DImode throughout.
34653 (*tldo_ldsw1_sp64): Likewise.
34654 (*tldo_ldx_sp64): Likewise.
34655 (*tldo_stb_sp32): Merge into...
34656 (*tldo_stb_sp64): Likewise.
34657 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34658 (*tldo_sth_sp32): Merge into...
34659 (*tldo_sth_sp64): Likewise.
34660 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34661 (*tldo_stw_sp32): Merge into...
34662 (*tldo_stw_sp64): Likewise.
34663 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34664 (*tldo_stx_sp64): Use DImode throughout.
34665
34666 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34667
34668 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34669 check configure option to set BTI and Return Address Signing.
34670 * configure.ac: Add --enable-standard-branch-protection and
34671 --disable-standard-branch-protection.
34672 * configure: Regenerated.
34673 * doc/install.texi: Document the same.
34674
34675 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34676 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34677
34678 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34679 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34680 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34681 if bti is enabled.
34682 * config/aarch64/aarch64-bti-insert.c: New file.
34683 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34684 pass.
34685 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34686 new bti pass.
34687 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34688 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34689 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34690 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34691
34692 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34693
34694 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34695 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34696 Disable bti for -mbranch-protection=none.
34697 (aarch64_handle_standard_branch_protection): Enable bti for
34698 -mbranch-protection=standard.
34699 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34700 -mbranch-protection.
34701 (aarch64_bti_enabled): Check if bti is enabled.
34702 * config/aarch64/aarch64.opt: Declare target variable.
34703 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34704
34705 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34706
34707 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34708 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34709 (aarch64_expand_epilogue): Likewise.
34710 (aarch64_output_mi_thunk): Likewise.
34711 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34712 TAILCALL_ADDR_REGS to x16 and x17.
34713 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34714
34715 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34716
34717 * config/aarch64/aarch64-option-extensions.def: Define
34718 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34719 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34720 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34721 (AARCH64_FL_PREDRES): New.
34722 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34723 AARCH64_FL_PREDRES by default.
34724 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34725
34726 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34727
34728 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34729 ARMv8.5-A.
34730 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34731 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34732 * doc/invoke.texi: Document ARMv8.5-A.
34733
34734 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34735
34736 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34737 (xorsign<mode>3): Likewise.
34738
34739 2019-01-09 Jelinek <jakub@redhat.com>
34740
34741 PR middle-end/88758
34742 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34743 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34744
34745 PR rtl-optimization/88331
34746 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34747 not currently_expanding_to_rtl.
34748
34749 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34750
34751 * doc/invoke.texi (-Os): Remove trailing spaces.
34752 (-finline-functions): Remove reference to -O2.
34753
34754 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34755
34756 PR rtl-optimization/79593
34757 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34758
34759 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34760 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34761
34762 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34763
34764 PR bootstrap/88721
34765 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34766 to -1 on entry.
34767
34768 PR debug/88723
34769 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34770 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34771
34772 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34773
34774 PR target/88717
34775 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34776 ix86_avx_u128_mode_entry.
34777
34778 2019-01-08 Martin Liska <mliska@suse.cz>
34779
34780 PR tree-optimization/88753
34781 * tree-switch-conversion.c (switch_conversion::build_one_array):
34782 Come up with local variable constructor. Convert first to
34783 type of constructor values.
34784
34785 2019-01-08 Richard Biener <rguenther@suse.de>
34786
34787 PR tree-optimization/86554
34788 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34789 rpo_avail): Move earlier.
34790 (visit_nary_op): When value-numbering to expressions
34791 with different overflow behavior make sure there's an
34792 available expression on the path.
34793
34794 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34795
34796 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34797 aarch64_parse_branch_protection,
34798 struct aarch64_branch_protect_type,
34799 aarch64_handle_no_branch_protection,
34800 aarch64_handle_standard_branch_protection,
34801 aarch64_validate_mbranch_protection,
34802 aarch64_handle_pac_ret_protection,
34803 aarch64_handle_attr_branch_protection,
34804 accepted_branch_protection_string,
34805 aarch64_pac_ret_subtypes,
34806 aarch64_branch_protect_types,
34807 aarch64_handle_pac_ret_leaf): Define.
34808 (aarch64_override_options_after_change_1, aarch64_override_options):
34809 Add check for accepted_branch_protection_string.
34810 (aarch64_option_save): Save accepted_branch_protection_string.
34811 (aarch64_option_restore): Save accepted_branch_protection_string.
34812 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34813 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34814 msign-return-address.
34815 * doc/invoke.texi: Add mbranch-protection.
34816
34817 2019-01-08 Alan Modra <amodra@gmail.com>
34818
34819 PR target/88614
34820 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34821 Delete "unknownp" parameter. Adjust callers. Handle
34822 CONST_INT, PLUS, MINUS, and MULT.
34823 (attr_value_aligned): Renamed from or_attr_value.
34824 (min_attr_value): Return INT_MIN for unhandled rtl case..
34825 (min_fn): ..and translate to INT_MAX here.
34826 (write_length_unit_log): Modify to cope without "unknown".
34827 (write_attr_value): Handle IF_THEN_ELSE.
34828
34829 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34830
34831 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34832 optimization for masked stores.
34833
34834 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34835
34836 PR middle-end/88567
34837 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34838 output vector directly to duplicate_and_interleave instead of
34839 going through a temporary. Postpone insertion of ctor_seq to
34840 the end of the loop.
34841
34842 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34843
34844 PR target/86891
34845 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34846 unsigned_p. Handle signed and unsigned overflow correction as
34847 required.
34848 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34849 prototype.
34850 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34851 for operand 2.
34852 (add<mode>3_compareV_imm): Make this callable for expanding.
34853 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34854 aarch64_plus_operand for operand 2.
34855 (subv<GPI:mode>_insn): New insn pattern.
34856 (subv<GPI:mode>_imm): Likewise.
34857 (negv<GPI:mode>3): New expand pattern.
34858 (negv<GPI:mode>_insn): New insn pattern.
34859 (negv<GPI:mode>_cmp_only): Likewise.
34860 (cmpv<GPI:mode>_insn): Likewise.
34861 (subvti4): Use register_operand for operand 1. Update call to
34862 aarch64_expand_subvti.
34863 (usubvti4): Likewise.
34864 (negvti3): New expand pattern.
34865 (negdi_carryout): New insn pattern.
34866 (negvdi_carryinV): New insn pattern.
34867 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34868 version the named version.
34869 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34870 operands.
34871 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34872 patterns.
34873 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34874 patterns.
34875 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34876 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34877 (sub<mode>3_carryinCV): Delete.
34878 (sub<GPI:mode>3_carryinV): New expand pattern.
34879 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34880
34881 2019-01-07 Richard Biener <rguenther@suse.de>
34882
34883 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34884 of tree_operand_hash.
34885
34886 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34887
34888 PR tree-optimization/88598
34889 * tree.h (single_nonzero_element): Declare.
34890 * tree.c (single_nonzero_element): New function.
34891 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34892 if I is the only nonzero element of CST.
34893
34894 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34895
34896 PR tree-optimization/88598
34897 * tree.h (initializer_each_zero_or_onep): Declare.
34898 * tree.c (initializer_each_zero_or_onep): New function.
34899 (signed_or_unsigned_type_for): Handle float types too.
34900 (unsigned_type_for, signed_type_for): Update comments accordingly.
34901 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34902 x & { 0 or -1, 0 or -1, ... }.
34903
34904 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34905
34906 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34907 with x86_64-pc-linux-gnu.
34908
34909 2019-01-07 Tom de Vries <tdevries@suse.de>
34910
34911 PR target/85486
34912 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34913 function.
34914 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34915 routines.
34916
34917 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34918
34919 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34920 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34921 TARGET_AVX512F as condition.
34922
34923 PR debug/88723
34924 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34925 const_not_ok_for_debug_p target hook.
34926 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34927 on UNSPEC and subexpressions thereof if all subexpressions of the
34928 UNSPEC are CONSTANT_P.
34929
34930 PR tree-optimization/88676
34931 * tree-ssa-phiopt.c (two_value_replacement): New function.
34932 (tree_ssa_phiopt_worker): Call it.
34933
34934 PR sanitizer/88619
34935 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34936 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34937
34938 PR c++/85052
34939 * tree-vect-generic.c: Include insn-config.h and recog.h.
34940 (expand_vector_piecewise): Add defaulted ret_type argument,
34941 if non-NULL, use that in preference to type for the result type.
34942 (expand_vector_parallel): Formatting fix.
34943 (do_vec_conversion, do_vec_narrowing_conversion,
34944 expand_vector_conversion): New functions.
34945 (expand_vector_operations_1): Call expand_vector_conversion
34946 for VEC_CONVERT ifn calls.
34947 * internal-fn.def (VEC_CONVERT): New internal function.
34948 * internal-fn.c (expand_VEC_CONVERT): New function.
34949 * fold-const-call.c (fold_const_vec_convert): New function.
34950 (fold_const_call): Use it for CFN_VEC_CONVERT.
34951 * doc/extend.texi (__builtin_convertvector): Document.
34952
34953 2019-01-07 Tom de Vries <tdevries@suse.de>
34954
34955 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34956 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34957 vector_red_partition, vector_red_sym): New global variables.
34958 (nvptx_option_override): Initialize vector_red_sym.
34959 (nvptx_declare_function_name): Restore red_partition register.
34960 (nvptx_file_end): Emit code to declare the vector reduction variables.
34961 (nvptx_output_red_partition): New function.
34962 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34963 large vector reductions.
34964 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34965 (nvptx_init_builtins): Add VECTOR_ADDR.
34966 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34967 Handle nvptx_expand_shared_addr.
34968 (nvptx_get_shared_red_addr): Add vector argument and handle large
34969 vectors.
34970 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34971 large vectors.
34972 (nvptx_goacc_reduction_init): Likewise.
34973 (nvptx_goacc_reduction_fini): Likewise.
34974 (nvptx_goacc_reduction_teardown): Likewise.
34975 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34976 init,fini,teardown}.
34977 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34978 (nvptx_set_current_function): Init vector_red_partition.
34979 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34980 (nvptx_red_partition): New insn.
34981 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34982
34983 2019-01-07 Tom de Vries <tdevries@suse.de>
34984
34985 PR target/85381
34986 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34987 empty loops.
34988
34989 2019-01-07 Tom de Vries <tdevries@suse.de>
34990
34991 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34992 (nvptx_option_override): Init oacc_bcast_partition.
34993 (nvptx_init_oacc_workers): New function.
34994 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34995 (nvptx_needs_shared_bcast): New function.
34996 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34997 to propagate state.
34998 (nvptx_shared_propagate): Initialize vector bcast partition and
34999 synchronization state.
35000 (nvptx_single): Generalize to enable vectors to use shared-memory
35001 to propagate state.
35002 (nvptx_process_pars): Likewise.
35003 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35004 * config/nvptx/nvptx.h (struct machine_function): Add
35005 bcast_partition and sync_bar members.
35006
35007 2019-01-07 Tom de Vries <tdevries@suse.de>
35008
35009 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35010 (nvptx_apply_dim_limits): New function.
35011 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35012 PTX_WARP_SIZE.
35013
35014 2019-01-07 Tom de Vries <tdevries@suse.de>
35015
35016 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35017 as late as possible.
35018
35019 2019-01-07 Tom de Vries <tdevries@suse.de>
35020
35021 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35022 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35023 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35024 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35025 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35026
35027 2019-01-07 Tom de Vries <tdevries@suse.de>
35028
35029 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35030
35031 2019-01-07 Tom de Vries <tdevries@suse.de>
35032
35033 * omp-offload.c (oacc_get_min_dim): New function.
35034 * omp-offload.h (oacc_get_min_dim): Declare.
35035
35036 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35037
35038 PR target/88521
35039 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35040 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35041
35042 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35043
35044 PR tree-opt/86020
35045 Revert:
35046 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35047
35048 * ipa-inline.c (edge_badness): Use inlined_time instead of
35049 inline_summaries->get.
35050
35051 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35052
35053 * opts.c (enable_fdo_optimizations): Enable
35054 version-loops-for-strides, loop-interchange, unrol-and-jam
35055 and tree-loop-distribution.
35056 * invoke.texi: Document newly enabled options.
35057
35058 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35059
35060 * doc/invoke.texi (max-inline-insns-small): New parameters.
35061 * ipa-inline.c (want_early_inline_function_p): simplify.
35062 (want_inline_small_function_p): Fix pasto from previous patch;
35063 use max-inline-insns-small bound.
35064 * params.def (max-inline-insns-small): New param.
35065 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35066 variables correctly.
35067
35068 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35069
35070 * doc/invoke.texi: Document max-inline-insns-size,
35071 uninlined-function-insns, uninlined-function-time,
35072 uninlined-thunk-insns and uninlined-thunk-time.
35073 * params.def: Add max-inline-insns-size,
35074 uninlined-function-insns, uninlined-function-time,
35075 uninlined-thunk-insns and uninlined-thunk-time.
35076 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35077 new parameters.
35078 * ipa-inline.c (can_inline_edge_by_limits_p,
35079 want_inline_small_function_p): Use new parameters.
35080
35081 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35082
35083 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35084
35085 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35086
35087 PR middle-end/82564
35088 PR target/88620
35089 * expr.c (expand_assignment): For calls returning VLA structures
35090 if to_rtx is not a MEM, force it into a stack temporary.
35091
35092 PR debug/88635
35093 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35094 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35095 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35096 subexpressions of both operands.
35097 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35098 subrtxes are CONSTANT_P.
35099 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35100 2018-11-09 changes.
35101
35102 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35103
35104 * params.def (hot-bb-count-ws-permille): Set to 990.
35105
35106 2019-01-04 Martin Sebor <msebor@redhat.com>
35107
35108 PR c/88546
35109 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35110 leaf.
35111
35112 2019-01-04 Martin Sebor <msebor@redhat.com>
35113
35114 PR c/88363
35115 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35116
35117 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35118
35119 * gdbinit.in: Turn off pagination for the skip commands, restore
35120 it to previous state afterwards.
35121
35122 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35123
35124 PR target/88594
35125 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35126 of GET_MODE (opN) as modes of the libcall arguments.
35127
35128 2019-01-04 Jan Beulich <jbeulich@suse.com>
35129
35130 * config/i386/sse.md
35131 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35132 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35133 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35134 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35135 avx512f_vmcmp<mode>3<round_saeonly_name>,
35136 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35137 avx512f_maskcmp<mode>3,
35138 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35139 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35140 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35141 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35142 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35143 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35144 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35145 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35146 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35147 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35148 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35149 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35150 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35151 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35152 avx512cd_maskb_vec_dup<mode>,
35153 avx512cd_maskw_vec_dup<mode>,
35154 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35155 avx512dq_vmfpclass<mode>,
35156 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35157 instead of =Yk.
35158
35159 2019-01-03 Martin Sebor <msebor@redhat.com>
35160
35161 PR tree-optimization/88659
35162 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35163
35164 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35165
35166 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35167 unaligned vsx and avoid lxvd2x/stxvd2x.
35168 (gen_lvx_v4si_move): New function.
35169
35170 2019-01-03 Tom de Vries <tdevries@suse.de>
35171
35172 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35173 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35174 function.
35175 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35176
35177 2019-01-03 Tom de Vries <tdevries@suse.de>
35178
35179 * config/nvptx/nvptx.c (struct offload_attrs): New.
35180 (populate_offload_attrs): New function. Factor mask extraction out of
35181 nvptx_reorg. Add extraction of dimensions.
35182 (nvptx_reorg): Use populate_offload_attrs.
35183
35184 2019-01-03 Tom de Vries <tdevries@suse.de>
35185
35186 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35187 cases for oacc_min_dims_p and routine_p. Add asserts for
35188 oacc_default_dims_p and offload_region_p.
35189
35190 2019-01-03 Tom de Vries <tdevries@suse.de>
35191
35192 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35193 factored out of ...
35194 (nvptx_goacc_validate_dims): ... here.
35195
35196 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35197
35198 PR tree-optimization/85574
35199 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35200 structure.
35201 (struct ssa_equip_hash_traits): Declare.
35202 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35203
35204 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35205
35206 PR debug/88644
35207 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35208 change it to qualified_type.
35209
35210 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35211
35212 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35213 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35214
35215 2019-01-02 Martin Sebor <msebor@redhat.com>
35216 Jeff Law <law@redhat.com>
35217
35218 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35219 (get_range_strlen_tree): Update appropriately.
35220 (get_range_strlen)
35221 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35222
35223 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35224 rather than set_range_info.
35225 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35226 maybe_set_strlen_range. Handle potentially boundary crossing
35227 cases more conservatively.
35228 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35229 Call set_strlen_range.
35230 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35231
35232 PR middle-end/88663
35233 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35234 need the flexp argument.
35235 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35236 from calls to get_range_strlen. Update comments. Just update
35237 VAL for an unterminated const char array and let the reset of the
35238 code handle it normally. No longer try to set *flexp. Adjust
35239 return value.
35240 (get_range_strlen): Update for the new get_range_strlen API.
35241 (get_maxval_strlen): Similarly.
35242 (gimple_fold_builtin_strlen): Handle update meaning of return value
35243 from get_range_strlen.
35244 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35245 get_range_strlen API.
35246
35247 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35248
35249 PR lto/88130
35250 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35251 false at WPA time when body was removed.
35252
35253 2019-01-02 Martin Liska <mliska@suse.cz>
35254
35255 PR tree-optimization/88650
35256 * predict.c (set_even_probabilities): Calculate probability
35257 remainer only when really used.
35258
35259 2019-01-02 Richard Biener <rguenther@suse.de>
35260
35261 PR middle-end/88651
35262 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35263 widest_ints when mangling max_stmt_execution results.
35264
35265 2019-01-02 Richard Biener <rguenther@suse.de>
35266
35267 PR tree-optimization/88621
35268 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35269 bitfields when canoncalizing.
35270
35271 2019-01-02 Richard Biener <rguenther@suse.de>
35272
35273 PR target/87545
35274 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35275 cost of cheap SSE instruction.
35276
35277 2019-01-02 Richard Biener <rguenther@suse.de>
35278
35279 PR ipa/85574
35280 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35281 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35282 function.
35283 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35284 set after UIDs before splitting them.
35285
35286 2019-01-01 Martin Sebor <msebor@redhat.com>
35287 Jeff Law <law@redhat.com>
35288
35289 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35290 length is optimistic. If it is, then arrange to compute the
35291 conservative length as well.
35292
35293 * gimple-fold.h (get_range_strlen): Update prototype.
35294 * builtins.c (check_access): Update call to get_range_strlen to use
35295 c_strlen_data pointer. Change various variable accesses to instead
35296 pull data from the c_strlen_data structure.
35297 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35298 * calls.c (maybe_warn_nonstring_arg): Likewise.
35299 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35300 minimum length if maximum lengh is unknown.
35301 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35302 that used c_strlen, it's no longer needed. Restructure slightly.
35303 (format_string): Set unlikely range appropriately.
35304 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35305 formatting issues.
35306 (get_range_strlen): Accept c_strlen_data pointer for external
35307 call sites as well. Pass through to call to internal get_range_strlen.
35308 Adjust minlen, maxlen and maxbound as needed.
35309 (get_maxval_strlen): Update comments.
35310 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35311 to use c_strlen_data pointer. Change variable accesses to instead
35312 use c_strlen_data data members.
35313
35314 * gimple-fold.c (get_range_strlen): Update prototype.
35315 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35316 local variables. Use pdata to return information to caller.
35317 Update calls to get_range_strlen. Update pdata->maxbound.
35318 (get_range_strlen -- static version): Similarly.
35319 (get_range_strlen -- extern version): Update for internal
35320 get_range_strlen API change. Convert to external data format.
35321 (get_maxval_strlen): Similarly.
35322
35323 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35324
35325 * coverage.c (get_coverage_counts): Use current_function_decl.
35326 * profile.c (read_thunk_profile): New function.
35327 (branch_prob): Add THUNK parameter.
35328 * tree-profile.c (tree_profiling): Handle thunks.
35329 * value-prof.c (init_node_map): Handle thunks.
35330 * value-prof.h (branch_prob): Upate prototype.
35331 (read_thunk_profile): Declare.
35332
35333 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35334
35335 Update copyright years.
35336
35337 * gcc.c (process_command): Update copyright notice dates.
35338 * gcov-dump.c (print_version): Ditto.
35339 * gcov.c (print_version): Ditto.
35340 * gcov-tool.c (print_version): Ditto.
35341 * gengtype.c (create_file): Ditto.
35342 * doc/cpp.texi: Bump @copying's copyright year.
35343 * doc/cppinternals.texi: Ditto.
35344 * doc/gcc.texi: Ditto.
35345 * doc/gccint.texi: Ditto.
35346 * doc/gcov.texi: Ditto.
35347 * doc/install.texi: Ditto.
35348 * doc/invoke.texi: Ditto.
35349 \f
35350 Copyright (C) 2019 Free Software Foundation, Inc.
35351
35352 Copying and distribution of this file, with or without modification,
35353 are permitted in any medium without royalty provided the copyright
35354 notice and this notice are preserved.