re PR tree-optimization/92645 (Hand written vector code is 450 times slower when...
[gcc.git] / gcc / ChangeLog
1 2019-12-03 Richard Biener <rguenther@suse.de>
2
3 PR tree-optimization/92645
4 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
5 from or to a properly aligned register variable.
6
7 2019-12-03 Matthias Klose <doko@ubuntu.com>
8
9 * Makefile.in (SOURCES): Add doc/lto-dump.1.
10 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
11 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
12
13 2019-12-03 Richard Biener <rguenther@suse.de>
14
15 PR tree-optimization/92751
16 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
17 when a clobber ends up in the partial-def vector.
18 (vn_reference_lookup_3): Let clobbers be handled by the
19 assignment from CTOR handling.
20
21 2019-12-03 Jakub Jelinek <jakub@redhat.com>
22
23 PR tree-optimization/92734
24 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
25 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
26 inner subtraction.
27
28 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
29 Jakub Jelinek <jakub@redhat.com>
30
31 PR target/92744
32 * config/i386/i386.md (peephole2 for *swap<mode>): Use
33 general_reg_operand predicates instead of register_operand.
34
35 2019-12-03 Richard Biener <rguenther@suse.de>
36
37 PR tree-optimization/92645
38 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
39 a full def of a vector via a BIT_INSERT_EXPR.
40
41 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
42
43 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
44 static.
45 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
46 decl.
47
48 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
49
50 PR middle-end/92741
51 * fold-const.c (fold_convertible_p): Check vector types more
52 thoroughly.
53
54 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
55
56 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
57 (aarch64_expand_mov_immediate): Use it when attempting to measure
58 the length of an SVE vector.
59 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
60 SVE is enabled.
61
62 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
63
64 * config/aarch64/aarch64-sve-builtins.h
65 (gimple_folder::force_vector): Declare.
66 * config/aarch64/aarch64-sve-builtins.cc
67 (gimple_folder::force_vector): New function.
68 * config/aarch64/aarch64-sve-builtins-base.cc
69 (svcmp_impl::fold): Likewise.
70 (svdup_impl::fold): Handle svdup_z too.
71
72 2019-12-02 Martin Liska <mliska@suse.cz>
73
74 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
75 function.
76 (debug_tree_odr_name): New.
77 * ipa-utils.h (get_odr_name_for_type): New.
78
79 2019-12-02 Richard Biener <rguenther@suse.de>
80
81 PR tree-optimization/92742
82 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
83 touch the def-type but verify it is consistent with the
84 original stmts.
85
86 2019-12-02 Jakub Jelinek <jakub@redhat.com>
87
88 PR tree-optimization/92712
89 * match.pd ((A * B) +- A -> (B +- 1) * A,
90 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
91 even when we don't know anything about range of A, but do know
92 something about range of B and the simplification won't introduce
93 new UB.
94
95 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
96
97 PR ipa/92133
98 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
99 (ipa-cp-min-recursive-probability): Likewise.
100 * params.opt (ipa-cp-max-recursive-depth): New.
101 (ipa-cp-min-recursive-probability): Likewise.
102 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
103 val_p and unlimited.
104 (self_recursively_generated_p): New function.
105 (get_val_across_arith_op): Likewise.
106 (propagate_vals_across_arith_jfunc): Add constant propagation for
107 self-recursive function.
108 (incorporate_penalties): Do not penalize pure self-recursive function.
109 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
110 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
111 (get_info_about_necessary_edges): Relax hotness check for edge to
112 self-recursive function.
113 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
114
115 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
116
117 PR target/92499
118
119 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
120 objects of flexible types to be small if they have internal linkage
121 or are declared extern.
122 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
123 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
124 instead of the size of the object initializer.
125 * tree.c (flexible_array_type_p): Move from C front end, and
126 generalize to handle fields in non-C structures.
127 * tree.h (flexible_array_type_p): Declare.
128
129 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
130
131 * profile-count.h (profile_count::operator<): Use IPA value for
132 comparsion.
133 (profile_count::operator>): Likewise.
134 (profile_count::operator<=): Likewise.
135 (profile_count::operator>=): Likewise.
136 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
137
138 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
139
140 * ipa-inline.c (compute_max_insns): Return int64_t.
141 (inline_small_functions): Simplify.
142
143 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
144
145 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
146 scaling happen.
147
148 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
149
150 * cgraph.h (symtab_node): Add symver flag.
151 * cgraphunit.c (process_symver_attribute): New.
152 (process_common_attributes): Use process_symver_attribute.
153 * lto-cgraph.c (lto_output_node): Stream symver.
154 (lto_output_varpool_node): Stream symver.
155 (input_overwrite_node): Stream symver.
156 (input_varpool_node): Stream symver.
157 * output.h (do_assemble_symver): Decalre.
158 * symtab.c (symtab_node::dump_base): Dump symver.
159 (symtab_node::verify_base): Verify symver.
160 (symtab_node::resolve_alias): Handle symver.
161 * varasm.c (do_assemble_symver): New function.
162 * varpool.c (varpool_node::assemble_aliases): Use it.
163 * doc/extend.texi: (symver attribute): Document.
164 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
165
166 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
167
168 * target.h (type_context_kind): New enum.
169 (verify_type_context): Declare.
170 * target.def (verify_type_context): New target hook.
171 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
172 * doc/tm.texi: Regenerate.
173 * tree.c (verify_type_context): New function.
174 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
175 Declare.
176 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
177 New function.
178 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
179 (TARGET_VERIFY_TYPE_CONTEXT): Define.
180
181 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
182
183 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
184 * cgraph.h (cgraph_node): Add unit_id and
185 merged_extern_inline.
186 (symbol_table): Add max_unit.
187 (symbol_table::symbol_table): Initialize it.
188 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
189 merged_comdat, merged_extern_inline.
190 (cgraph_node::create_clone): Likewise.
191 (cgraph_node::create_version_clone): Likewise.
192 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
193 calls.
194 * ipa-fnsummary.h (cross_module_call_p): New inline function.
195 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
196 * ipa-inline.c (inline_small_functions): Likewise.
197 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
198 copy merged_comdat and merged_extern_inline.
199 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
200 merged_extern_inline and unit_id.
201 (input_overwrite_node): Stream in these.
202 (input_cgraph_1): Set unit_base.
203 * lto-streamer.h (lto_file_decl_data): Add unit_base.
204 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
205
206 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
207
208 * gcc.c (process_command): Only warn about an ineffective `-x'
209 option if any input files have actually been supplied.
210
211 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
212
213 * doc/install.texi (Options specification): Remove the list of
214 target library subdirectories supporting
215 `--enable-version-specific-runtime-libs'. Document defaults for
216 the option.
217
218 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
219
220 PR rtl-optimization/92283
221 * lra.c (lra): Update reg notes after inheritance sub-pass and
222 before constraint sub-pass.
223
224 2019-11-29 Richard Biener <rguenther@suse.de>
225
226 PR tree-optimization/91003
227 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
228 operand number, avoid handling the non-condition operands of
229 COND_EXPRs as comparisons.
230 (vect_get_constant_vectors): Pass down the operand number.
231 (vect_get_slp_defs): Likewise.
232
233 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
234
235 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
236 generic_expr_could_trap_p to check if the condition of COND_EXPR or
237 VEC_COND_EXPR can trap.
238
239 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
240
241 PR tree-optimization/92677
242 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
243 to zero when dissolving a group of strided accesses.
244
245 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
246
247 PR tree-optimization/92596
248 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
249 operations.
250 (vectorizable_operation): Likewise, instead of relying on
251 vect_get_mask_type_for_stmt to do this.
252 (vect_get_vector_types_for_stmt): Always return a vector type
253 immediately, rather than deferring the choice for boolean results.
254 Use a vector mask type instead of a normal vector if
255 vect_use_mask_type_p.
256 (vect_get_mask_type_for_stmt): Delete.
257 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
258 mask_producers argument and special boolean_type_node handling.
259 (vect_determine_vf_for_stmt): Remove mask_producers argument and
260 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
261 (vect_determine_vectorization_factor): Update call accordingly.
262 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
263 boolean_type_node handling.
264 (vect_slp_analyze_node_operations_1): Likewise.
265
266 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
267
268 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
269 (vect_use_mask_type_p): New function.
270 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
271 mask precision to the pattern statement.
272 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
273 and use it to initialize the new stmt's mask precision.
274 (search_type_for_mask_1): Delete.
275 (search_type_for_mask): Replace with...
276 (integer_type_for_mask): ...this new function. Use the information
277 cached in the stmt_vec_info.
278 (vect_recog_bool_pattern): Update accordingly.
279 (build_mask_conversion): Pass the scalar type associated with the
280 mask type to append_pattern_def_seq.
281 (vect_recog_mask_conversion_pattern): Likewise. Call
282 integer_type_for_mask instead of search_type_for_mask.
283 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
284 of search_type_for_mask.
285 (possible_vector_mask_operation_p): New function.
286 (vect_determine_mask_precision): Likewise.
287 (vect_determine_stmt_precisions): Call it.
288
289 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
290
291 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
292 the slp_tree parameter with a group size parameter.
293 (vect_get_mask_type_for_stmt): Likewise.
294 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
295 (vect_get_mask_type_for_stmt): Likewise.
296 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
297 call accordingly.
298
299 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
300
301 * tree-vect-stmts.c (vectorizable_operation): Punt early
302 on codes that are handled elsewhere.
303
304 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
305
306 * doc/sourcebuild.texi (vect_bool_cmp): Document.
307 * tree-vect-patterns.c (search_type_for_mask_1): If neither
308 operand to a boolean comparison is a natural vector mask,
309 handle both operands like normal integers instead.
310
311 2019-11-29 Richard Biener <rguenther@suse.de>
312
313 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
314 out early for too large objects.
315
316 2019-11-29 Martin Jambor <mjambor@suse.cz>
317
318 PR ipa/92476
319 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
320 the summary only if the summary exists.
321 (find_more_scalar_values_for_callers_subset): Check node_dead in
322 the summary only if the summary exists.
323 (ipcp_store_bits_results): Ignore nodes without lattices.
324 (ipcp_store_vr_results): Likewise.
325 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
326 header files required by them.
327 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
328
329 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
330
331 PR tree-optimization/92710
332 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
333 vector mask arguments.
334
335 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
336
337 * profile-count.c (profile_count::to_cgraph_frequency,
338 profile_count::to_sreal_scale): Check for compaibility of counts.
339 * profile-count.h (compatible_p): Make public; add checking for
340 global0 versus global types.
341 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
342
343 2019-11-29 Richard Biener <rguenther@suse.de>
344
345 PR tree-optimization/92715
346 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
347 out for uniform vectors and source vectors with less elements
348 than the destination.
349
350 2019-11-29 Martin Liska <mliska@suse.cz>
351
352 PR lto/91574
353 * ipa-devirt.c (types_same_for_odr): Check for existence
354 of TYPE_NAMEs first.
355
356 2019-11-29 Richard Biener <rguenther@suse.de>
357
358 PR tree-optimization/92704
359 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
360 in loops performing only loads.
361
362 2019-11-29 Julian Brown <julian@codesourcery.com>
363
364 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
365 BT_DFLOAT128_PTR) Remove.
366 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
367 TI_DFLOAT128_PTR_TYPE): Remove.
368 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
369 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
370 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
371 dfloat128_ptr_type_node): Remove macros.
372
373 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
374
375 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
376 formatting.
377 (*movdi_internal64): Ditto.
378
379 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
380
381 PR target/92602
382 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
383 indexed_or_indirect_operand to be memory_operand.
384 (bswap<mode>2_store for HSI): Ditto.
385 (bswapdi2_load): Ditto.
386 (bswapdi2_store): Ditto.
387
388 2019-11-28 Martin Liska <mliska@suse.cz>
389
390 PR debug/46558
391 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
392 headers for translation.
393
394 2019-11-28 Martin Liska <mliska@suse.cz>
395
396 PR lto/92609
397 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
398 consistently.
399
400 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
401
402 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
403 checks.
404
405 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
406
407 * profile-count.c (profile_count::combine_with_ipa_count): Return
408 uninitialized count if called on ininitialized count.
409
410 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
411
412 * ipa-inline-transform.c (inline_transform): Scale profile before
413 redirecting.
414
415 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
416
417 * profile-count.h (profile_count::max): Work on profiles of different
418 type.
419 (profile_count::apply_scale): Be sure that ret is not local or global0
420 type if num is global.
421
422 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
423
424 * profile-count.h (profile_count::max): Work on profiles of different
425 type.
426 (profile_count::apply_scale): Be sure that ret is not local or global0
427 type if num is global.
428
429 2019-11-28 Martin Jambor <mjambor@suse.cz>
430
431 PR ipa/92697
432 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
433 ifunc_resolvers.
434 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
435 Removed trailig whitespace.
436
437 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
438
439 * profile-count.h (profile_count::combine_with_ipa_count_within):
440 Declare.
441 * profile-count.c (profile_count::combine_with_ipa_count_within):
442 New.
443 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
444 it.
445
446 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
447
448 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
449 of counters are done same way.
450
451 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
452
453 * ipa-cp.c (update_profiling_info): Fix scaling.
454
455 2019-11-28 Richard Biener <rguenther@suse.de>
456
457 PR tree-optimization/92645
458 * tree-inline.c (remap_gimple_stmt): When the return value
459 is not wanted, elide GIMPLE_RETURN.
460
461 2019-11-28 Richard Biener <rguenther@suse.de>
462
463 PR tree-optimization/92645
464 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
465 conversions inside a mode class. Remove restriction on
466 preserving the element size.
467 (simplify_vector_constructor): Deal with the above and for
468 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
469 and VEC_PACK_TRUNC_EXPR.
470
471 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
472
473 Must use push insn to pass varargs arguments of DFmode because
474 otherwise the middle-end generates wrong code.
475
476 PR target/92055
477 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
478
479 2019-11-28 Jakub Jelinek <jakub@redhat.com>
480
481 PR tree-optimization/92691
482 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
483 in function comment.
484 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
485 calls, return !handle_printf_call rather than always returning true.
486 (check_and_optimize_stmt): Describe return value meaning in function
487 comment. Formatting fix.
488
489 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
490
491 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
492 combination of globa0 and global counters..
493
494 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
495
496 PR target/92566
497 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
498 by VECTOR_UNIT_NONE_P instead.
499
500 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
501
502 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
503 Refine VF to VF_AVX512VL.
504
505 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
506
507 * config/rs6000/rs6000.md (movsi_internal): Reformat.
508 (movdi_internal64): Reformat.
509
510 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
511
512 PR bootstrap/92661
513 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
514 builtin if we don't have an actual type.
515 (builtin_function_type): If the builtin function uses a DFP type
516 and decimal float has been disabled, then return NULL_TREE.
517
518 2019-11-27 Jakub Jelinek <jakub@redhat.com>
519
520 PR rtl-optimization/92510
521 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
522 of comparison into a comparison with different mode if both imode and
523 omode are scalar integral modes.
524
525 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
526
527 PR rtl-optimization/90007
528 * recog.c (constrain_operands): Permit hard registers too for
529 memory when LRA is used.
530
531 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
532
533 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
534 between Coldfire and regular m68k.
535 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
536
537 2019-11-27 Richard Biener <rguenther@suse.de>
538
539 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
540 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
541 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
542 * optabs-tree.c (supportable_convert_operation): Do not call
543 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
544 * optabs-tree.h (supportable_convert_operation): Adjust.
545 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
546 * doc/tm.texi: Regenerate.
547 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
548 * tree-vect-generic.c (expand_vector_conversion): Likewise.
549 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
550 unused decl parameter and adjust.
551 (vect_create_vectorized_promotion_stmts): Likewise.
552 (vectorizable_conversion): Adjust.
553
554 2019-11-27 Richard Biener <rguenther@suse.de>
555
556 PR tree-optimization/92690
557 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
558 converting elements not originally converted.
559
560 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
561
562 PR middle-end/92463
563 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
564 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
565 mpfr_rnd_t instead of mp_rnd_t.
566 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
567 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
568 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
569 Use mpfr_exp_t instead of mp_exp_t.
570 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
571 MPFR_RNDx instead of GMP_RNDx.
572 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
573 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
574 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
575 of mp_rnd_t and remove MPFR_RNDx poisoning.
576 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
577
578 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
579
580 PR tree-optimization/91790
581 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
582 DR for vect_setup_realignment when first_stmt_info is different
583 from first_stmt_info_for_drptr.
584
585 2019-11-27 Richard Biener <rguenther@suse.de>
586
587 PR tree-optimization/92645
588 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
589 CTORs with just a subset of the original vectors.
590
591 2019-11-27 Richard Biener <rguenther@suse.de>
592
593 PR middle-end/92674
594 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
595 edges and instead record blocks in bitmap.
596 (gimple_expand_calls_inline): Adjust.
597 (fold_marked_statements): Delay EH cleanup until all folding is
598 done.
599 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
600 inlining finished.
601
602 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
603
604 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
605 LRA is enabled.
606 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
607 disabled.
608
609 2019-11-27 Jakub Jelinek <jakub@redhat.com>
610
611 PR debug/92664
612 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
613
614 2019-11-26 Martin Sebor <msebor@redhat.com>
615
616 PR tree-optimization/92683
617 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
618 inadvertently removed in a previous change. Rename local variable
619 for clarity.
620
621 2019-11-26 Richard Biener <rguenther@suse.de>
622
623 PR middle-end/92669
624 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
625 NULL pre_order.
626
627 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
628
629 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
630
631 2019-11-26 Jakub Jelinek <jakub@redhat.com>
632
633 PR tree-optimization/92644
634 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
635 next to INTEGER_CST checks.
636
637 2019-11-26 Richard Biener <rguenther@suse.de>
638
639 PR tree-optimization/92645
640 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
641 do not build the operation from scalars if the operand is.
642
643 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
644
645 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
646 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
647 definitions.
648
649 2019-11-25 Martin Liska <mliska@suse.cz>
650
651 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
652 up used dump message.
653
654 2019-11-25 Martin Liska <mliska@suse.cz>
655
656 PR bootstrap/92653
657 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
658 too strict checking assert.
659
660 2019-11-25 Joseph Myers <joseph@codesourcery.com>
661
662 PR c/91985
663 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
664 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
665 error_mark_node if corresponding global tree node is NULL.
666 * tree.c (build_common_tree_nodes): Do not initialize
667 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
668 decimal floating-point not supported.
669
670 2019-11-25 Joseph Myers <joseph@codesourcery.com>
671
672 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
673 types.
674
675 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
676
677 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
678 Replace code for non-CONST_INT constants with gcc_unreachable.
679 * config/m68k/m68k.md (cbranchdi): Don't generate individual
680 compare and test.
681 (CMPMODE): New mode_iterator.
682 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
683 cbranch<mode>4.
684 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
685 cstore<mode>4.
686 (cmp<mode>_68881): Remove 'F' constraint from first comparison
687 operand.
688 (bit test insns patterns): Use nonimmediate_operand, not
689 register_operand, for source operands that allow memory in
690 their constraints.
691 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
692 Use register_operand, not nonimmediate_operand, for the
693 destinations.
694 (DBCC): New mode_iterator.
695 (dbcc peepholes): Use it to reduce duplication.
696 (trap): Use const_true_rtx, not const1_rtx.
697 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
698 from m68k_subword_comparison_operand and changed to handle
699 SImode.
700
701 PR target/91851
702 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
703 declaration.
704 (m68k_init_cc): New declaration.
705 (m68k_output_compare_di, m68k_output_compare_si)
706 (m68k_output_compare_hi, m68k_output_compare_qi)
707 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
708 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
709 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
710 m68k_output_branch_float, m68k_output_branch_float_rev):
711 Likewise.
712 (valid_dbcc_comparison_p_2, flags_in_68881)
713 (output_btst): Remove declaration.
714 * config/m68k/m68k.c (INCLDUE_STRING): Define.
715 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
716 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
717 (flags_compare_op0, flags_compare_op1, flags_operand1,
718 flags_operand2, flags_valid): New static variables.
719 (m68k_find_flags_value, m68k_init_cc): New functions.
720 (handle_flags_for_move, m68k_asm_final_postscan_insn,
721 remember_compare_flags): New static functions.
722 (output_dbcc_and_branch): New argument CODE. Use it, and add
723 PLUS and MINUS to the possible codes. All callers changed.
724 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
725 and INSN arguments, add CODE arg. Return the comparison code
726 to use. All callers changed. Use CODE instead of
727 next_insn_tests_no_inequality, and replace cc_status management
728 with changing the return code.
729 (m68k_rtx_costs): Instead of testing for COMPARE, test for
730 RTX_COMPARE or RTX_COMM_COMPARE.
731 (output_move_simode, output_move_qimode): Call
732 handle_flags_for_move.
733 (notice_update_cc): Delete function.
734 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
735 m68k_output_compare_hi, m68k_output_compare_qi,
736 m68k_output_compare_fp, m68k_output_branch_integer,
737 m68k_output_branch_integer_rev, m68k_output_scc,
738 m68k_output_branch_float, m68k_output_branch_float_rev,
739 m68k_output_scc_float): New functions.
740 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
741 once at the start, and set flags_valid and flags_operand1 if the
742 flags are usable.
743 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
744 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
745 definitions.
746 (CC_STATUS_INIT): Define.
747 * config/m68k/m68k.md (flags_valid): New define_attr.
748 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
749 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
750 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
751 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
752 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
753 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
754 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
755 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
756 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
757 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
758 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
759 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
760 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
761 ctrapqi4, conditional_trap): Delete patterns.
762 (cbranchdi4_insn): New pattern.
763 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
764 test high part only. When testing EQ or NE, generate beq0_di
765 and bne0_di patterns directly.
766 (cstoredi4): When testing LT or GE, test high part only.
767 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
768 patterns.
769 (scc0_constraints, cmp1_constraints, cmp2_constraints,
770 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
771 cmp2_cf_predicate): New define_mode_attrs.
772 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
773 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
774 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
775 New patterns.
776 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
777 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
778 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
779 New patterns.
780 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
781 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
782 Likewise.
783 (BTST): New define_mode_iterator.
784 (btst_predicate, btst_constraint, btst_range): New
785 define_mode_attrs.
786 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
787 patterns.
788 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
789 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
790 patterns): Set attr "flags_valid".
791 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
792 management. Set attr "flags_valid".
793 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
794 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
795 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
796 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
797 manual CC_STATUS management.
798 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
799 unnamed strict_lowpart subhi and subqi patterns): Set attr
800 "flags_valid".
801 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
802 Remove code to operate on address regs and assert the case
803 does not occur.
804 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
805 manual CC_STATUS_INIT.
806 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
807 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
808 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
809 one_cmplqi2, unnamed strict_lowpart patterns
810 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
811 one_cmplhi and one_cmplqi): Set attr "flags_valid".
812 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
813 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
814 CC_STATUS_INIT.
815 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
816 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
817 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
818 unnamed strict_low_part patterns for HI and
819 QI versions): Set attr "flags_valid".
820 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
821 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
822 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
823 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
824 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
825 (various unnamed peepholes): Adjust compare/branch sequences
826 for new cbranch patterns.
827 (dbcc peepholes): Likewise, and output the comparison here
828 as well.
829 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
830 (fp_src_operand): Allow constant zero.
831 (address_reg_operand): New predicate.
832
833 * rtl.h (inequality_comparisons_p): Remove declaration.
834 * recog.h (next_insn_tests_no_inequality): Likewise.
835 * rtlanal.c (inequality_comparisons_p): Delete function.
836 * recog.c (next_insn_tests_no_inequality): Likewise.
837
838 2019-11-25 Richard Biener <rguenther@suse.de>
839
840 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
841 (vect_detect_hybrid_slp): Swap lane and instance iteration,
842 properly re-building the visited hash-map for each lane.
843
844 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
845
846 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
847 gcn_md_reorg): Remove unused variables.
848 (gcn_emutls_var_init): Add missing (but unreachable) return
849 to silence warning.
850 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
851 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
852 an uninitialized variable.
853
854 2019-11-25 Martin Jambor <mjambor@suse.cz>
855
856 PR ipa/92109
857 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
858 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
859 (cgraph_materialize_clone): Move removel from clone tree to the
860 the new method and use it instead.
861 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
862 bodies of clones, also remove it from the clone tree.
863
864 2019-11-25 Martin Jambor <mjambor@suse.cz>
865
866 PR ipa/91956
867 * ipa-sra.c (process_isra_node_results): Put the new node to the
868 same comdat group as the original node.
869
870 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
871
872 Build double32 / long-double32 multilibs if needed.
873
874 PR target/92055
875 * config/avr/t-avr:
876 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
877 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
878 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
879 tm_defines and pass to genmultilib.awk.
880 * config/avr/genmultilib.awk: Use these variables to add double32
881 and / or long-double32 multilib(s) as needed.
882 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
883
884 2019-11-25 Richard Biener <rguenther@suse.de>
885
886 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
887 loop body, defaulted to NULL.
888 (single_likely_exit): Add exit vector argument
889 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
890 (number_of_iterations_exit): Likewise.
891 (number_of_iterations_exit_assumptions): Likewise.
892 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
893 if not NULL.
894 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
895 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
896 Compute exit vector around call to single_likely_exit.
897 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
898 loop body to loop_only_exit_p.
899 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
900 caller.
901 (number_of_iterations_exit_assumptions): Get loop body from caller
902 if not NULL.
903 (number_of_iterations_exit): Pass through new loop body arg.
904 (infer_loop_bounds_from_undefined): Get loop body from caller.
905 (estimate_numbers_of_iterations): Compute loop body once.
906
907 2019-11-25 Richard Biener <rguenther@suse.de>
908
909 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
910 auto_bb_flag instead of an sbitmap for visited handling.
911
912 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
913
914 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
915 iterator.
916 (vector_fp_comparison_complex): Likewise.
917 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
918 define_and_split.
919 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
920 Likewise.
921 (vector_lt<mode> for VEC_F): Refactor with
922 vector_fp_comparison_simple.
923 (vector_le<mode> for VEC_F): Likewise.
924 (vector_unge<mode> for VEC_F): Likewise.
925 (vector_unle<mode> for VEC_F): Likewise.
926 (vector_ne<mode> for VEC_F): Likewise.
927 (vector_ungt<mode> for VEC_F): Likewise.
928 (vector_unlt<mode> for VEC_F): Likewise.
929 (vector_ltgt<mode> for VEC_F): Refactor with
930 vector_fp_comparison_complex.
931 (vector_ordered<mode> for VEC_F): Likewise.
932 (vector_uneq<mode> for VEC_F): Likewise.
933 (vector_unordered<mode> for VEC_F): Likewise.
934
935 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
936
937 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
938 COMPARE, representing an overflow detection.
939
940 * combine.c (combine_instructions): Record costs for jumps.
941
942 * combine.c (can_combine_p): Allow autoinc in jumps.
943
944 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
945
946 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
947 * doc/invoke.texi (max-inline-insns-single-O2,
948 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
949 early-inlining-insns-O2): Remove documentation.
950 * ipa-fnsummary.c (analyze_function_body,
951 compute_fn_summary): Use opt_for_fn when accessing parameters.
952 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
953 inline_insns_auto, can_inline_edge_by_limits_p,
954 want_early_inline_function_p, big_speedup_p,
955 want_inline_small_function_p, want_inline_self_recursive_call_p,
956 recursive_inlining, compute_max_insns, inline_small_functions):
957 Likewise.
958 * opts.c (default_options): Add -O3 defaults for
959 OPT__param_early_inlining_insns_,
960 OPT__param_inline_heuristics_hint_percent_,
961 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
962 * params.opt (-param=early-inlining-insns-O2=,
963 -param=inline-heuristics-hint-percent-O2=,
964 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
965 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
966 -param=inline-min-speedup=, -param=inline-unit-growth=,
967 -param=large-function-growth=, -param=large-stack-frame=,
968 -param=large-stack-frame-growth=, -param=large-unit-insns=,
969 -param=max-inline-insns-recursive=,
970 -param=max-inline-insns-recursive-auto=,
971 -param=max-inline-insns-single=,
972 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
973 -param=max-inline-recursive-depth=,
974 -param=max-inline-recursive-depth-auto=,
975 -param=min-inline-recursive-probability=,
976 -param=partial-inlining-entry-probability=,
977 -param=uninlined-function-insns=, -param=uninlined-function-time=,
978 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
979 Optimization.
980
981 2019-11-23 Jakub Jelinek <jakub@redhat.com>
982
983 * ipa-fnsummary.c: Fix comment typos.
984 * ipa-ref.h: Likewise.
985 * ipa-predicate.h: Likewise.
986 * ipa-split.c: Likewise.
987 * ipa-inline-analysis.c: Likewise.
988 * ipa-predicate.c: Likewise.
989 * ipa-devirt.c: Likewise.
990 * ipa-icf.h: Likewise.
991 * profile-count.c: Likewise.
992 * ipa-icf.c: Likewise.
993 (sem_function::equals_wpa): Fix typos in dump messages.
994 * ipa-icf-gimple.h: Fix comment typos.
995 * ipa-inline-transform.c: Likewise.
996 * ipa-polymorphic-call.c: Likewise.
997 * ipa-fnsummary.h: Likewise.
998 * ipa-inline.c: Likewise.
999 (dump_inline_stats): Fix typo in debug dump message.
1000 * profile-count.h: Fix comment typos.
1001
1002 PR target/92615
1003 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1004 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1005 register_operand, force x into register before storing it into dest.
1006 Formatting fix.
1007
1008 PR middle-end/83859
1009 * doc/extend.texi (attribute access): Fix a typo.
1010
1011 PR rtl-optimization/92610
1012 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1013 cse_cfg_altered is set, even when tem is 0.
1014 (rest_of_handle_cse_after_global_opts): Likewise.
1015
1016 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1017
1018 PR c++/92458
1019 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1020 tree_hash): Move to ...
1021 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1022 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1023 types.
1024 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1025
1026 PR tree-optimization/92618
1027 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1028 containing the auto_vec and a tree.
1029 (undistribute_bitref_for_vector): Handle the case when element type
1030 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1031 fixes.
1032
1033 2019-11-22 Martin Sebor <msebor@redhat.com>
1034
1035 PR middle-end/83859
1036 * attribs.h (struct attr_access): New.
1037 * attribs.c (decl_attributes): Add an informational note.
1038 * builtins.c (check_access): Make extern. Consistently set no-warning
1039 after issuing a warning. Handle calls through function pointers. Set
1040 no-warning.
1041 * builtins.h (check_access): Declare.
1042 * calls.c (rdwr_access_hash): New type.
1043 (rdwr_map): Same.
1044 (init_attr_rdwr_indices): New function.
1045 (maybe_warn_rdwr_sizes): Same.
1046 (initialize_argument_information): Call init_attr_rdwr_indices.
1047 Call maybe_warn_rdwr_sizes.
1048 (get_size_range): Avoid null argument.
1049 * doc/extend.texi (attribute access): Document new attribute.
1050
1051 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1052
1053 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1054 (ACC_LDS_SIZE): Define.
1055 (OTHER_LDS_SIZE): Define.
1056 (LDS_SIZE): Redefine using above.
1057 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1058
1059 2019-11-22 Martin Sebor <msebor@redhat.com>
1060
1061 PR middle-end/88226
1062 * builtins.c (check_nul_terminated_array): New function.
1063 (fold_builtin_0): Remove declaration.
1064 (fold_builtin_1): Same.
1065 (fold_builtin_2): Same.
1066 (fold_builtin_3): Same.
1067 (fold_builtin_strpbrk): Add argument.
1068 (fold_builtin_strspn): Same.
1069 (fold_builtin_strcspn): Same.
1070 (expand_builtin_strcat): Call it. Remove unused argument.
1071 (expand_builtin_stpncpy): Same.
1072 (expand_builtin_strncat): Same.
1073 (expand_builtin_strncpy): Same. Adjust indentation.
1074 (expand_builtin_strcmp): Same.
1075 (expand_builtin_strncmp): Same.
1076 (expand_builtin_fork_or_exec): Same.
1077 (expand_builtin): Handle more built-ins.
1078 (fold_builtin_2): Add argument.
1079 (fold_builtin_n): Make static. Add argument.
1080 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1081 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1082 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1083 (fold_call_stmt): Pass new argument to fold_builtin_n.
1084 * builtins.h: Correct a comment.
1085 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1086 check_nul_terminated_array.
1087 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1088 check_nul_terminated_array.
1089 (handle_builtin_strchr): Same.
1090 (handle_builtin_string_cmp): Same.
1091
1092 2019-11-22 Martin Sebor <msebor@redhat.com>
1093
1094 PR tree-optimization/92501
1095 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1096 handle unterminated arrays. Rename local variables for clarity.
1097
1098 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1099
1100 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1101 granulated_sgprs according to architecture.
1102
1103 2019-11-22 Jan Hubicka <jh@suse.cz>
1104
1105 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1106 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1107 (memory_block_pool::reduce_free_list): ... this one.
1108 (memory_block_pool::trim): New static function.
1109 * memory-block.h (memory_block_pool::freelist_size): New constant
1110 (memory_block_pool::clear_free_list): Rename to ...
1111 (memory_block_pool::reduce_free_list): ... this one.
1112 (memory_block_pool::trim): Declare.
1113
1114 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1115
1116 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1117 vect_cost_for_stmt.
1118 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1119 here rather than...
1120 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1121
1122 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1123
1124 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1125 (bic_cmp0_noout): New pattern.
1126 (bic_cmp0): Likewise.
1127 (neg_scc_insn): Remove pattern.
1128 (not_scc_insn): Likewise.
1129
1130 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1131
1132 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1133
1134 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1135
1136 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1137 pedwarn instead of warning_at for fallthrough not preceding a case
1138 or default label.
1139
1140 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1141
1142 PR tree-optimization/92608
1143 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1144 of dyn_cast.
1145
1146 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1147
1148 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1149 New predicate.
1150 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1151 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1152 special for FP comparisons that need a cror instruction eventually.
1153 (rs6000_emit_fp_cror): New function.
1154 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1155 instruction, for normal FP modes, with HONOR_NANS.
1156 (rs6000_emit_cbranch): Reformat.
1157 * config/rs6000/rs6000.md (fp_rev): New iterator.
1158 (fp_two): New iterator.
1159 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1160 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1161 *cbranch_2insn: New define_insn_and_split.
1162
1163 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1164
1165 PR tree-optimization/92526
1166 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1167 versioning for alignment if the accesses do not have a consistent
1168 mask, rather than asserting that the masks are consistent.
1169
1170 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1171
1172 PR tree-optimization/92595
1173 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1174 check.
1175 (vectorizable_store, vectorizable_load): Likewise.
1176
1177 2019-11-21 Jan Hubicka <jh@suse.cz>
1178
1179 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1180 (resolve_noninline_speculation, inline_small_functions): Avoid
1181 redundant updates.
1182
1183 2019-11-21 Richard Biener <rguenther@suse.de>
1184
1185 * lra.c (lra_insn_recog_data_pool): New.
1186 (free_insn_recog_data): Adjust.
1187 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1188 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1189
1190 2019-11-21 Richard Biener <rguenther@suse.de>
1191
1192 PR tree-optimization/92596
1193 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1194
1195 2019-11-21 Jan Hubicka <jh@suse.cz>
1196
1197 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1198 ready for some vectors to not be allocated.
1199 (evaluate_properties_for_edge): Document better; make
1200 known_vals and known_aggs caller allocated; avoid determining
1201 values of parameters which are not used.
1202 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1203 known_aggs.
1204 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1205 (do_estimate_edge_size): Likewise.
1206 (do_estimate_edge_hints): Likewise.
1207 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1208 values are not known.
1209 (ipa_release_agg_values): Add option to not release vector itself.
1210 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1211
1212 2019-11-21 Richard Biener <rguenther@suse.de>
1213
1214 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1215 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1216 (loop_iterator::loop_iterator): Adjust.
1217 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1218 (compute_dominance_frontiers): ... this. Hoist invariant
1219 get_immediate_dominator call.
1220 (compute_idf): Use a work-set instead of a work-list for more
1221 optimal iteration order and duplicate avoidance.
1222 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1223 the vector all the time, instead pre-allocate the vector only
1224 once.
1225 (delete_update_ssa): Simplify.
1226 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1227
1228 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1229
1230 PR tree-optimization/91355
1231 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1232 for early_bb scaled count with best_bb count comparison.
1233
1234 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1235 preffer -> prefer.
1236 * ipa-inline.c (edge_badness): Likewise.
1237 * lto-streamer.h (class lto_location_cache): Likewise.
1238 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1239 gratutious -> gratuitous.
1240
1241 2019-11-21 Richard Biener <rguenther@suse.de>
1242
1243 Revert
1244 2019-09-17 Richard Biener <rguenther@suse.de>
1245
1246 PR tree-optimization/91790
1247 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1248 use the correct DR for setting up realignment.
1249
1250 2019-11-21 Richard Biener <rguenther@suse.de>
1251
1252 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1253 (equiv_class_obstack): New.
1254 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1255 (perform_var_substitution): Initialize equiv_class_obstack.
1256 (free_var_substitution_info): Free equiv_class_obstack.
1257
1258 2019-11-20 Jan Hubicka <jh@suse.cz>
1259
1260 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1261 edge growth when callee function is very large.
1262 * ipa-inline.h (estimate_min_edge_growth): New.
1263
1264 2019-11-20 Jan Hubicka <jh@suse.cz>
1265
1266 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1267 negative time in calls summary; correct roundoff errors
1268 leading to negative times.
1269 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1270 if present.
1271 (ipa_update_overall_fn_summary): Add RESET parameter.
1272 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1273 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1274
1275 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1276
1277 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1278 def types for two-operation SLP.
1279
1280 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1281
1282 PR testsuite/92366
1283 * doc/sourcebuild.texi (vect_char_add): Document.
1284
1285 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1286
1287 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1288 * function.c (record_final_call): Record even calls that might
1289 have been in the cgraph.
1290 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1291 callees.
1292
1293 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1294
1295 * configure.ac: Use https for gcc.gnu.org
1296 * configure: Regenerated.
1297 * doc/install.texi: Use https for gcc.gnu.org.
1298 * doc/sourcebuild.texi: Likewise.
1299
1300 2019-11-20 Julian Brown <julian@codesourcery.com>
1301
1302 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1303
1304 2019-11-20 Jan Hubicka <jh@suse.cz>
1305
1306 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1307 parameter and update call_size_time_table.
1308 (ipa_fn_summary::max_size_time_table_size): New constant.
1309 (estimate_calls_size_and_time_1): Break out from ...
1310 (estimate_calls_size_and_time): ... here; implement summary production.
1311 (summarize_calls_size_and_time): New function.
1312 (ipa_call_context::estimate_size_and_time): Bypass
1313 estimate_calls_size_and_time for leaf functions.
1314 (ipa_update_overall_fn_summary): Likewise.
1315 * ipa-fnsummary.h (call_size_time_table): New.
1316 (ipa_fn_summary::account_size_time): Update prototype.
1317
1318 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1319
1320 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1321
1322 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1323
1324 PR85678
1325 * common.opt (fcommon): Change init to 1.
1326 * doc/invoke.texi (-fcommon): Update documentation.
1327
1328 2019-11-20 Jan Hubicka <jh@suse.cz>
1329
1330 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1331 to ordinary array.
1332
1333 2019-11-20 Jan Hubicka <jh@suse.cz>
1334
1335 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1336 Add allocator parameter.
1337 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1338 (fibonacci_heap<K,V>::m_allocator): New.
1339 (fibonacci_heap<K,V>::m_own_allocator): New.
1340 (fibonacci_heap<K,V>::insert): Use allocator.
1341 (fibonacci_heap<K,V>::extract_min): Likewise.
1342 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1343 allocator.
1344 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1345 on stack.
1346 * fibonacci_heap.c: Include alloc-pool
1347 (test_empty_heap): Initialize allocator.
1348 (test_union): Likewise.
1349 * bb-reorder.c: Include alloc-pool.h.
1350 * tracer.c: Inlclude alloc-pool.h.
1351
1352 2019-11-20 Jan Hubicka <jh@suse.cz>
1353
1354 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1355 Preallocate for 32 entries.
1356 (DFS::worklist): Likewise.
1357 (DFS::DFS): Do not initialize sccstack and worklist.
1358 (DFS::~DFS): Do not release sccstack.
1359
1360 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1361
1362 PR target/92573
1363 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1364 Handle UNORDERED if !HONOR_NANS.
1365
1366 2019-11-20 Jan Hubicka <jh@suse.cz>
1367
1368 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1369 (edge_badness): ... here.
1370 (inline_small_functions): Use monotonicity of badness calculation
1371 to avoid redundant updates.
1372
1373 2019-11-20 Richard Biener <rguenther@suse.de>
1374
1375 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1376 constructors we are actually analyzing.
1377 (vect_slp_check_for_constructors): Do not vectorize uniform
1378 constuctors, do not dump here.
1379
1380 2019-11-20 Richard Biener <rguenther@suse.de>
1381
1382 PR tree-optimization/92537
1383 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1384 vectorization validity check...
1385 (vect_slp_analyze_operations): ... here.
1386
1387 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1388
1389 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1390 (make_pass_arc_predicate_delay_insns): Likewise.
1391 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1392 method, remove clone.
1393 (class pass_arc_predicate_delay_insns): Likewise.
1394 (arc_init): Remove registering of ARC specific passes.
1395 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1396 * config/arc/arc-passes.def: New file.
1397
1398 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR middle-end/90840
1401 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1402 and has a mode that doesn't have corresponding integral type.
1403
1404 PR target/90867
1405 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1406 clear opts->x_ix86_isa_flags{,2} here...
1407 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1408 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1409
1410 PR c/90898
1411 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1412 assertion.
1413 (insert_clobbers_for_var): Fix a typo in function comment.
1414
1415 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1416 Jakub Jelinek <jakub@redhat.com>
1417
1418 PR middle-end/91195
1419 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1420 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1421 load.
1422
1423 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1424
1425 Make 0-series device specs work with older versions of avr-gcc.
1426
1427 PR target/92545
1428 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1429 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1430 <*link_pm_base_address>: Don't write spec.
1431 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1432
1433 2019-11-20 Richard Biener <rguenther@suse.de>
1434
1435 PR c/92088
1436 * builtins.c (compute_objsize): Deal with VLAs.
1437
1438 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1439
1440 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1441 from common code.
1442 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1443 call new function.
1444 (power9_sched_reorder2): Call new function.
1445 (rs6000_sched_reorder2): Likewise.
1446
1447 2019-11-18 Jan Hubicka <jh@suse.cz>
1448
1449 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1450 (estimate_calls_size_and_time): Update.
1451
1452 2019-11-18 Jan Hubicka <jh@suse.cz>
1453
1454 * ipa-inline.c (inlining_speedup): New function.
1455 (edge_badness): Use it.
1456
1457 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1458 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1459
1460 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1461 Mark as not having "likely" version.
1462 * config/mips/mips.md (insn_count): The simd_div instruction with
1463 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1464 (can_delay): Exclude simd_branch.
1465 (defile_delay *): Add simd_branch instructions.
1466 They have one regular delay slot.
1467
1468 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1469
1470 Revert:
1471 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1472
1473 * cse.c (cse_insn): Delete no-op register moves too.
1474 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1475 Take a second comparison to control the value for NE.
1476 (mask_to_comparison): Handle unsigned comparisons.
1477 (simplify_logical_relational_operation): Likewise. Update call
1478 to comparison_to_mask. Handle AND if !HONOR_NANs.
1479 (simplify_binary_operation_1): Call the above for AND too.
1480
1481 2019-11-19 Martin Liska <mliska@suse.cz>
1482
1483 * toplev.c (general_init): Move the call...
1484 (toplev::main): ... here as we need init_options_struct
1485 being called.
1486
1487 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1488
1489 PR target/79262
1490 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1491 vec_to_scalar_cost.
1492
1493 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1494
1495 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1496 (armv7-a): Likewise.
1497 (armv7ve): Likewise.
1498
1499 2019-11-19 Richard Biener <rguenther@suse.de>
1500
1501 PR tree-optimization/92581
1502 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1503 condition reduction chains gather all conditions involved
1504 for computing the index reduction vector.
1505
1506 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1507
1508 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1509 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1510 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1511 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1512 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1513 (aarch64_init_memtag_builtins): New.
1514 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1515 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1516 (aarch64_expand_builtin_memtag): New.
1517 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1518 (AARCH64_BUILTIN_SUBCODE): New macro.
1519 (aarch64_resolve_overloaded_memtag): New.
1520 (aarch64_resolve_overloaded_builtin_general): New. Call
1521 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1522 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1523 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1524 (aarch64_resolve_overloaded_builtin): Call
1525 aarch64_resolve_overloaded_builtin_general.
1526 * config/aarch64/aarch64-protos.h
1527 (aarch64_resolve_overloaded_builtin_general): New declaration.
1528 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1529 (TARGET_MEMTAG): Likewise.
1530 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1531 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1532 (irg, gmi, subp, addg, ldg, stg): New instructions.
1533 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1534 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1535 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1536 (__arm_mte_get_tag): Likewise.
1537 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1538 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1539 * config/arm/types.md (memtag): New.
1540 * doc/invoke.texi (-memtag): Update description.
1541
1542 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1543
1544 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1545 to define __GCC_ASM_FLAG_OUTPUTS__.
1546 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1547 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1548 depending on TARGET_THUMB1.
1549 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1550
1551 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1552
1553 PR target/92549
1554 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1555
1556 PR middle-end/91450
1557 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1558 operand is negative and one non-negative, compare the non-negative
1559 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1560 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1561 and s2 == 0, unless one of them is known to be negative. Remove
1562 tem2 variable, use tem where tem2 has been used before.
1563
1564 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1565
1566 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1567
1568 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1569
1570 PR tree-optimization/92557
1571 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1572 vmode rather than asserting it always is.
1573
1574 2019-11-19 Richard Biener <rguenther@suse.de>
1575
1576 PR tree-optimization/92554
1577 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1578 for the actual condition stmt and deal with sign-changes.
1579
1580 2019-11-19 Richard Biener <rguenther@suse.de>
1581
1582 PR tree-optimization/92555
1583 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1584 for non-SLP stmts.
1585
1586 2019-11-19 Martin Liska <mliska@suse.cz>
1587
1588 PR bootstrap/92540
1589 * config/riscv/riscv.c (riscv_address_insns): Initialize
1590 addr in order to remove boostrap -Wmaybe-uninitialized
1591 error.
1592
1593 2019-11-18 Martin Sebor <msebor@redhat.com>
1594
1595 PR tree-optimization/92493
1596 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1597 assignment.
1598
1599 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1600
1601 * cfgloop.c (get_loop_body_in_custom_order): New.
1602 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1603 * tree-loop-distribution.c (class loop_distribution): New.
1604 (bb_top_order_cmp): Remove.
1605 (bb_top_order_cmp_r): New.
1606 (create_rdg_vertices): Move into class loop_distribution.
1607 (stmts_from_loop): Same as above.
1608 (update_for_merge): Same as above.
1609 (partition_merge_into): Same as above.
1610 (get_data_dependence): Same as above.
1611 (data_dep_in_cycle_p): Same as above.
1612 (update_type_for_merge): Same as above.
1613 (build_rdg_partition_for-vertex): Same as above.
1614 (classify_builtin_ldst): Same as above.
1615 (classify_partition): Same as above.
1616 (share_memory_accesses): Same as above.
1617 (rdg_build_partitions): Same as above.
1618 (pg_add_dependence_edges): Same as above.
1619 (build_partition_graph): Same as above.
1620 (merge_dep_scc_partitions): Same as above.
1621 (break_alias_scc_partitions): Same as above.
1622 (finalize_partitions): Same as above.
1623 (distribute_loop): Same as above.
1624 (bb_top_order_init): New method
1625 (bb_top_order_destroy): New method.
1626 (get_bb_top_order_index_size): New method.
1627 (get_bb_top_order_index_index): New method.
1628 (get_bb_top_order_index_index): New method.
1629 (loop_distribution::execute): New method.
1630 (pass_loop_distribution::execute): Instantiate loop_distribution.
1631
1632 2019-11-18 Jan Hubicka <jh@suse.cz>
1633
1634 PR ipa/92508
1635 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1636 caches.
1637 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1638
1639 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1640
1641 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1642 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1643 * doc/md.texi: Document them.
1644 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1645 internal functions.
1646 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1647 * internal-fn.c (check_ptrs_direct): New macro.
1648 (expand_check_ptrs_optab_fn): Likewise.
1649 (direct_check_ptrs_optab_supported_p): Likewise.
1650 (internal_check_ptrs_fn_supported_p): New fuction.
1651 * tree-data-ref.c: Include internal-fn.h.
1652 (create_ifn_alias_checks): New function.
1653 (create_intersect_range_checks): Use it.
1654 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1655 (optab, cmp_op): Handle it.
1656 (raw_war, unspec): New int attributes.
1657 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1658 constants.
1659 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1660 New predicate.
1661 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1662 expander.
1663 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1664 pattern.
1665
1666 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1667
1668 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1669 empty constructors.
1670
1671 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1672
1673 * cse.c (cse_insn): Delete no-op register moves too.
1674 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1675 Take a second comparison to control the value for NE.
1676 (mask_to_comparison): Handle unsigned comparisons.
1677 (simplify_logical_relational_operation): Likewise. Update call
1678 to comparison_to_mask. Handle AND if !HONOR_NANs.
1679 (simplify_binary_operation_1): Call the above for AND too.
1680
1681 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1682
1683 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1684 splitting the main code out into...
1685 (native_encode_vector_part): ...this new function.
1686 (native_decode_vector_tree): New function.
1687 (fold_view_convert_vector_encoding): Likewise.
1688 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1689 to VECTOR_TYPEs.
1690
1691 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1692
1693 * tree-data-ref.c (create_intersect_range_checks_index): If the
1694 alias pair describes simple WAW and WAR dependencies, just check
1695 whether the first B access overlaps later A accesses.
1696 (create_waw_or_war_checks): New function that performs the same
1697 optimization on addresses.
1698 (create_intersect_range_checks): Call it.
1699
1700 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1701
1702 * lra-constraints.c (valid_address_p): Take the operand and a
1703 constraint as argument. If the operand is a MEM and the constraint
1704 is a memory constraint, check whether the eliminated form of the
1705 MEM already satisfies the constraint.
1706 (process_address_1): Update calls accordingly.
1707
1708 2019-11-18 Tom Tromey <tromey@adacore.com>
1709
1710 * doc/tm.texi: Rebuild.
1711 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1712 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1713
1714 2019-11-18 Richard Biener <rguenther@suse.de>
1715
1716 PR tree-optimization/92516
1717 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1718 argument, hoist bst_map creation/destruction to ...
1719 (vect_analyze_slp): ... here, forming a true graph with
1720 SLP instances being the entries.
1721 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1722 (vect_detect_hybrid_slp): Use one visited set for all
1723 graph entries.
1724 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1725 to hash-sets of slp_tree.
1726 (vect_slp_analyze_operations): Likewise.
1727 (vect_bb_slp_scalar_cost): Remove wrapper.
1728 (vect_bb_vectorization_profitable_p): Use one visited set for
1729 all graph entries.
1730 (vect_schedule_slp_instance): Elide bst_map use.
1731 (vect_schedule_slp): Likewise.
1732
1733 2019-11-18 Richard Biener <rguenther@suse.de>
1734
1735 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1736 was vectorized with just external refs fail.
1737
1738 2019-11-18 Martin Liska <mliska@suse.cz>
1739
1740 PR ipa/92525
1741 * ipa-icf.c (sem_function::init): Unset m_checker
1742 at the end of the function.
1743
1744 2019-11-18 Richard Biener <rguenther@suse.de>
1745
1746 PR tree-optimization/92558
1747 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1748 reducting the width of a reduction vector def update new_phis.
1749
1750 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1751
1752 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1753 and s390*-*-linux-musl* targets.
1754 * configure: Regenerate.
1755
1756 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1757
1758 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1759 (MUSL_DYNAMIC_LINKER64): Define.
1760
1761 2019-11-18 Martin Liska <mliska@suse.cz>
1762
1763 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1764 message for an unknown counter.
1765 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1766 (dbg_cnt_process_opt): Remove unreachable code.
1767
1768 2019-11-18 Martin Liska <mliska@suse.cz>
1769
1770 PR ipa/92529
1771 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1772 Compare LHS types of NOP_EXPR.
1773
1774 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1775
1776 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1777 "initial_pass_name" argument -- by running "*clean_state" pass.
1778 Also free the "initial_pass_name" when done.
1779
1780 2019-11-18 Richard Biener <rguenther@suse.de>
1781
1782 PR rtl-optimization/92462
1783 * alias.c (find_base_term): Restrict the look through ANDs.
1784 (find_base_value): Likewise.
1785
1786 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1787
1788 Add support for AVR devices from the 0-series.
1789
1790 PR target/92545
1791 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1792 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1793 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1794 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1795 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1796 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1797 for spec definitions.
1798 * doc/avr-mmcu.texi: Regenerate.
1799
1800 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1801
1802 PR target/92448
1803 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1804 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1805 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1806 (ix86_reassociation_width): Ditto.
1807 * config/i386/i386-options.c (ix86_option_override_internal):
1808 Replace TARGET_AVX128_OPTIAML with
1809 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1810 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1811 (TARGET_AVX128_OPTIMAL): Deleted.
1812 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1813 DEF_TUNE.
1814
1815 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1816
1817 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1818 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1819 just SI.
1820 (cceq_rev_compare): Rename to...
1821 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1822 just SI.
1823 (define_split for <bd>tf_<mode>): Add SImode first argument to
1824 gen_cceq_ior_compare.
1825
1826 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1827
1828 * common/config/powerpcspe: Delete.
1829
1830 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1831
1832 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1833 output in UNSPEC_WRFFR.
1834
1835 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1836
1837 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1838 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1839
1840 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1841
1842 * tree-data-ref.c (create_intersect_range_checks_index)
1843 (create_intersect_range_checks): Print dump messages.
1844
1845 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1846
1847 * tree-data-ref.c (dump_alias_pair): New function.
1848 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1849
1850 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1851
1852 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1853 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1854 merging data references with different steps.
1855 (create_intersect_range_checks_index): Take a
1856 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1857 Bail out if DR_ALIAS_MIXED_STEPS is set.
1858 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1859 instead of two dr_with_seg_lens. Update call to
1860 create_intersect_range_checks_index.
1861 (create_runtime_alias_checks): Update call accordingly.
1862
1863 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1864
1865 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1866 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1867 (dr_with_seg_len_pair_t::sequencing): New enum.
1868 (dr_with_seg_len_pair_t::flags): New member variable.
1869 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1870 parameter and initialize the flags member variable.
1871 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1872 call accordingly.
1873 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1874 Ensure the two data references in an alias pair are in statement
1875 order, if there is a defined order.
1876 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1877 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1878 swapped the references in a dr_with_seg_len_pair_t. OR together
1879 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1880 try to restore the original dr_with_seg_len order, updating the
1881 flags if that fails.
1882
1883 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1884
1885 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1886 swapping the dr_as based on init values until we've decided
1887 whether to merge them.
1888
1889 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1890
1891 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1892 two accesses in each dr_with_seg_len_pair_t before trying to
1893 combine separate dr_with_seg_len_pair_ts.
1894 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1895 that here.
1896 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1897
1898 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1899
1900 * config/aarch64/aarch64-sve.md
1901 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1902 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1903 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1904 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1905 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1906 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1907 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1908 pattern.
1909 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1910 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1911 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1912 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1913
1914 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1915
1916 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1917 (SVE_4HSI): New mode iterators.
1918 (ANY_EXTEND2): New code iterator.
1919 * config/aarch64/aarch64-sve.md
1920 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1921 Extend to...
1922 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1923 ...this, handling extension to partial modes as well as full modes.
1924 Describe the extension as a predicated rather than unpredicated
1925 extension.
1926 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1927 Likewise extend to...
1928 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1929 ...this, making the same adjustments.
1930 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1931 Likewise extend to...
1932 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1933 ...this, making the same adjustments.
1934 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1935 Likewise extend to...
1936 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1937 ...this, making the same adjustments.
1938 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1939 New pattern.
1940 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1941 extension predicate.
1942 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1943 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1944 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1945 Describe the extension as a predicated rather than unpredicated
1946 extension.
1947 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1948 Likewise. Canonicalize to a constant extension predicate.
1949 * config/aarch64/aarch64-sve-builtins-base.cc
1950 (svld1_gather_extend_impl::expand): Add an extra predicate for
1951 the extension.
1952 (svldff1_gather_extend_impl::expand): Likewise.
1953
1954 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1955
1956 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1957 iterators.
1958 * config/aarch64/aarch64-sve.md
1959 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1960 (gather_load<SVE_24:mode><v_int_container>): ...this.
1961 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1962 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1963 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1964 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1965 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1966 New pattern.
1967 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1968 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1969 Allow the nominal extension predicate to be different from the
1970 load predicate.
1971 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1972 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1973
1974 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1975
1976 * config/aarch64/aarch64-sve.md
1977 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1978 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1979 function.
1980 (aarch64_sve_adjust_stmt_cost): Call it.
1981
1982 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1983
1984 * config/aarch64/aarch64-sve.md
1985 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1986 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1987 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1988 Combine into...
1989 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1990 ...this new pattern, handling extension to partial modes as well
1991 as full modes. Describe the extension as a predicated rather than
1992 unpredicated extension.
1993 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1994 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1995 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1996 Combine into...
1997 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1998 ...this new pattern, handling extension to partial modes as well
1999 as full modes. Describe the extension as a predicated rather than
2000 unpredicated extension.
2001 * config/aarch64/aarch64-sve-builtins.cc
2002 (function_expander::use_contiguous_load_insn): Add an extra
2003 predicate for extending loads.
2004 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2005 (aarch64_sve_adjust_stmt_cost): Likewise.
2006 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2007 the cost of SVE vector stmts.
2008
2009 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2010
2011 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2012 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2013 * config/aarch64/aarch64-sve.md
2014 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2015 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2016 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2017 comment. Avoid new narrower_mask ambiguity.
2018 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2019 (*cond_uxt<mode>_2): Update comment.
2020 (*cond_uxt<mode>_any): Likewise.
2021
2022 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2023
2024 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2025 float modes.
2026 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2027 function.
2028 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2029 new vector float modes.
2030 (aarch64_sve_container_bits): New function.
2031 (aarch64_sve_pred_mode): Likewise.
2032 (aarch64_get_mask_mode): Use it.
2033 (aarch64_sve_element_int_mode): Handle structure modes and partial
2034 modes.
2035 (aarch64_sve_container_int_mode): New function.
2036 (aarch64_vectorize_related_mode): Return SVE modes when given
2037 SVE modes. Handle partial modes, taking the preferred number
2038 of units from the size of the given mode.
2039 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2040 in registers.
2041 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2042 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2043 (aarch64_split_sve_subreg_move): Use the mode form of
2044 aarch64_sve_pred_mode.
2045 (aarch64_secondary_reload): Handle partial modes in the same way
2046 as full big-endian vectors.
2047 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2048 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2049 merging with the Advanced SIMD modes. If two modes have the
2050 same size, try the Advanced SIMD mode first.
2051 (aarch64_simd_valid_immediate): Use the container rather than
2052 the element mode for INDEX constants.
2053 (aarch64_simd_vector_alignment): Make the alignment of partial
2054 SVE vector modes the same as their minimum size.
2055 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2056 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2057 (mov<SVE_ALL:mode>): ...this.
2058 (movmisalign<SVE_FULL:mode>): Extend to...
2059 (movmisalign<SVE_ALL:mode>): ...this.
2060 (*aarch64_sve_mov<mode>_le): Rename to...
2061 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2062 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2063 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2064 partial modes regardless of endianness.
2065 (aarch64_sve_reload_be): Rename to...
2066 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2067 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2068 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2069 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2070 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2071 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2072 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2073 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2074 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2075 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2076 (maskload<SVE_FULL:mode><vpred>): Extend to...
2077 (maskload<SVE_ALL:mode><vpred>): ...this.
2078 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2079 (maskstore<SVE_ALL:mode><vpred>): ...this.
2080 (vec_duplicate<SVE_FULL:mode>): Extend to...
2081 (vec_duplicate<SVE_ALL:mode>): ...this.
2082 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2083 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2084 (sve_ld1r<SVE_FULL:mode>): Extend to...
2085 (sve_ld1r<SVE_ALL:mode>): ...this.
2086 (vec_series<SVE_FULL_I:mode>): Extend to...
2087 (vec_series<SVE_I:mode>): ...this.
2088 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2089 (*vec_series<SVE_I:mode>_plus): ...this.
2090 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2091 new VPRED ambiguity.
2092 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2093 (add<SVE_FULL_I:mode>3): Extend to...
2094 (add<SVE_I:mode>3): ...this.
2095 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2096 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2097 (VPRED, vpred): Likewise.
2098 (Vctype): New iterator.
2099 (vw): Remove SVE modes.
2100
2101 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2102
2103 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2104 (SVE_PARTIAL_I): ...this.
2105 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2106
2107 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2108
2109 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2110 (SVE_FULL): ...this.
2111 (SVE_I): Rename to...
2112 (SVE_FULL_I): ...this.
2113 (SVE_F): Rename to...
2114 (SVE_FULL_F): ...this.
2115 (SVE_BHSI): Rename to...
2116 (SVE_FULL_BHSI): ...this.
2117 (SVE_HSD): Rename to...
2118 (SVE_FULL_HSD): ...this.
2119 (SVE_HSDI): Rename to...
2120 (SVE_FULL_HSDI): ...this.
2121 (SVE_HSF): Rename to...
2122 (SVE_FULL_HSF): ...this.
2123 (SVE_SD): Rename to...
2124 (SVE_FULL_SD): ...this.
2125 (SVE_SDI): Rename to...
2126 (SVE_FULL_SDI): ...this.
2127 (SVE_SDF): Rename to...
2128 (SVE_FULL_SDF): ...this.
2129 (SVE_S): Rename to...
2130 (SVE_FULL_S): ...this.
2131 (SVE_D): Rename to...
2132 (SVE_FULL_D): ...this.
2133 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2134 * config/aarch64/aarch64-sve2.md: Likewise.
2135
2136 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2137
2138 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2139 New option.
2140 * doc/invoke.texi: Document it.
2141 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2142 By default, return VECT_COMPARE_COSTS for SVE.
2143
2144 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2145
2146 * target.h (VECT_COMPARE_COSTS): New constant.
2147 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2148 * doc/tm.texi: Regenerate.
2149 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2150 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2151 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2152 Likewise.
2153 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2154 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2155 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2156 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2157 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2158 (_loop_vec_info::vec_inside_cost): New member variables.
2159 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2160 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2161 (vect_analyze_loop): When autovectorize_vector_modes returns
2162 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2163 vector mode and picking the one with the lowest cost.
2164 (vect_estimate_min_profitable_iters): Record the computed costs
2165 in the loop_vec_info.
2166
2167 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2168
2169 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2170 element type rather than an element mode.
2171 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2172 Use get_vectype_for_scalar_type to query the natural types
2173 for a given element type rather than basing everything on
2174 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2175 query to MAX_FIXED_MODE_SIZE.
2176 (duplicate_and_interleave): Update call accordingly.
2177 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2178
2179 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2180
2181 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2182 optional maximum nunits.
2183 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2184 takes an slp_tree.
2185 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2186 (vect_get_mask_type_for_stmt): Likewise.
2187 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2188 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2189 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2190 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2191 to get an assumed vector type for data references.
2192 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2193 (vect_update_all_shared_vectypes): Likewise.
2194 (vect_build_slp_tree_1): Pass the group size to
2195 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2196 for BB vectorization.
2197 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2198 before building the vectof from scalars.
2199 (vect_analyze_slp_instance): Pass the group size to
2200 get_vectype_for_scalar_type.
2201 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2202 types for BB vectorization here; just handle the case in which
2203 we deferred the choice for booleans.
2204 (vect_get_constant_vectors): Pass the slp_tree to
2205 get_vectype_for_scalar_type.
2206 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2207 (vectorizable_call): Likewise.
2208 (vectorizable_simd_clone_call): Likewise.
2209 (vectorizable_conversion): Likewise.
2210 (vectorizable_shift): Likewise.
2211 (vectorizable_operation): Likewise.
2212 (vectorizable_comparison): Likewise.
2213 (vect_is_simple_cond): Take the slp_tree as argument and
2214 pass it to get_vectype_for_scalar_type.
2215 (vectorizable_condition): Update call accordingly.
2216 (get_vectype_for_scalar_type): Take a group_size argument.
2217 For BB vectorization, limit the the vector to that number
2218 of elements. Also define an overload that takes an slp_tree.
2219 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2220 pass it to get_vectype_for_scalar_type.
2221 (vect_get_vector_types_for_stmt): Add a group_size argument
2222 and pass it to get_vectype_for_scalar_type. Don't use the
2223 cached vector type for BB vectorization if a group size is given.
2224 Handle data references in that case.
2225 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2226 pass it to get_mask_type_for_scalar_type.
2227
2228 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2229
2230 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2231 parameter.
2232 (estimate_edge_time): Use it.
2233 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2234 ret_nonspec_time parameter.
2235
2236 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2237
2238 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2239
2240 2019-11-15 Nick Clifton <nickc@redhat.com>
2241 Szabolcs Nagy <szabolcs.nagy@arm.com>
2242
2243 PR target/65649
2244 * config/microblaze/microblaze.c (print_operand): Print value as long.
2245
2246 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2247
2248 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2249 accidental commit.
2250
2251 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2252
2253 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2254 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2255
2256 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2257
2258 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2259 (gcn_conditional_register_usage): Use constants in place of hard-coded
2260 values.
2261 (gcn_hsa_declare_function_name): Set lower bound for number of
2262 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2263 MAX_NORMAL_VGPR_COUNT.
2264
2265 2019-11-15 Martin Jambor <mjambor@suse.cz>
2266
2267 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2268 declaration.
2269
2270 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2271
2272 * config/gcn/gcn.c (default_requested_args): New.
2273 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2274 set with default_requested_args.
2275 (gcn_conditional_register_usage): Limit register usage of non-kernel
2276 functions. Reassign fixed registers if a non-standard set of args is
2277 requested.
2278 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2279
2280 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2281
2282 PR ipa/92528
2283 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2284 aggregate jump function when inlined-to caller has no edge summary.
2285
2286 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2287
2288 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2289
2290 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2291
2292 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2293 prologue use of v0.
2294 (print_operand_address): Use v1 for zero vector offset.
2295
2296 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2297
2298 PR tree-optimization/92515
2299 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2300 types when converting a vector/scalar shift into a vector/vector one,
2301 using tree_nop_conversion_p instead of useless_type_conversion_p.
2302 Move the conversion code to the transform block.
2303
2304 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2305
2306 * read-rtl-function.c
2307 (function_reader::add_fixup_source_location): Take additional
2308 parameter of a column.
2309 (function_reader::maybe_read_location): Optionally parse column
2310 information and pass to add_fixup_source_location.
2311
2312 2019-11-15 Richard Biener <rguenther@suse.de>
2313
2314 PR tree-optimization/92512
2315 * tree-vect-loop.c (check_reduction_path): Fix operand index
2316 computability check. Add check for second use in COND_EXPRs.
2317
2318 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2319
2320 PR target/92515
2321 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2322 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2323
2324 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2325
2326 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2327 register class for VCC_LO and VCC_HI.
2328 (gcn_spill_class): Use SGPR_REGS to spill registers in
2329 VCC_CONDITIONAL_REG.
2330
2331 2019-11-15 Richard Biener <rguenther@suse.de>
2332
2333 PR tree-optimization/92324
2334 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2335 singedness of SLP reduction epilouge operations. Also reduce
2336 the vector width for SLP reductions before doing elementwise
2337 operations if possible.
2338
2339 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2340
2341 * passes.c (skip_pass): Set epilogue_completed if skipping the
2342 pro_and_epilogue pass.
2343
2344 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2345
2346 * passes.c (should_skip_pass_p): Always run "dfinish".
2347
2348 2019-11-15 Richard Biener <rguenther@suse.de>
2349
2350 * ipa-inline.c (inline_small_functions): Move assignment
2351 to next before call destroying edge.
2352
2353 2019-11-15 Richard Biener <rguenther@suse.de>
2354
2355 PR tree-optimization/92039
2356 PR tree-optimization/91975
2357 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2358 previous change, treat invariants consistently as non-constant.
2359 (tree_estimate_loop_size): Ternary ops with just the first op
2360 constant are not optimized away.
2361
2362 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2363
2364 * gimplify.c (gimplify_call_expr): Don't call
2365 omp_resolve_declare_variant after gimplification.
2366 * omp-general.c (omp_context_selector_matches): For isa that might
2367 match in some other function, defer if in declare simd function.
2368 (omp_context_compute_score): Don't look for " score" in construct
2369 trait set. Set *score to -1 if it can't ever match.
2370 (omp_resolve_declare_variant): If any variants need to be deferred,
2371 don't punt immediately, but compute scores of all variants and if
2372 ther eis a score winner that doesn't need to be deferred, return that.
2373
2374 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2375
2376 * ipa-comdats.c: Fix comments typo.
2377 * ipa-profile.c: Fix comments typo.
2378 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2379 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2380 (gimple_gen_ic_func_profiler): Likewise.
2381 (pass_ipa_tree_profile::gate): Fix comments typo.
2382
2383 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2384
2385 * ipa-inline.c (inline_small_functions): Update iterator of next.
2386
2387 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2388
2389 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2390 register is suitable for the mode.
2391
2392 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2393
2394 * range-op.h (range_operator::fold_range): Return a bool.
2395 * range-op.cc (range_operator::wi_fold): Assert supported type.
2396 (range_operator::fold_range): Assert supported type and return true.
2397 (operator_equal::fold_range): Return true.
2398 (operator_not_equal::fold_range): Same.
2399 (operator_lt::fold_range): Same.
2400 (operator_le::fold_range): Same.
2401 (operator_gt::fold_range): Same.
2402 (operator_ge::fold_range): Same.
2403 (operator_plus::op1_range): Adjust call to fold_range.
2404 (operator_plus::op2_range): Same.
2405 (operator_minus::op1_range): Same.
2406 (operator_minus::op2_range): Same.
2407 (operator_exact_divide::op1_range): Same.
2408 (operator_lshift::fold_range): Return true and adjust fold_range call.
2409 (operator_rshift::fold_range): Same.
2410 (operator_cast::fold_range): Return true.
2411 (operator_logical_and::fold_range): Same.
2412 (operator_logical_or::fold_range): Same.
2413 (operator_logical_not::fold_range): Same.
2414 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2415 (operator_bitwise_not::op1_range): Same.
2416 (operator_cst::fold_range): Return true.
2417 (operator_identity::fold_range): Return true.
2418 (operator_negate::fold_range): Return true and adjust fold_range call.
2419 (operator_addr_expr::fold_range): Return true.
2420 (operator_addr_expr::op1_range): Adjust call to fold_range.
2421 (range_cast): Same.
2422 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2423 (range_fold_unary_symbolics_p): Same.
2424
2425 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2426
2427 PR tree-optimization/92506
2428 * range-op.cc (range_operator::fold_range): Start with range undefined.
2429 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2430 overflow is varying.
2431
2432 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2433
2434 * range-op.cc (*operator*::*range): Remove calls to
2435 range_intersect, range_invert, and range_union in favor of calling
2436 the in-place API methods.
2437 (range_tests): Same.
2438 * range.cc (range_intersect): Remove.
2439 (range_union): Remove.
2440 (range_invert): Remove.
2441 * range.h (range_intersect): Remove.
2442 (range_union): Remove.
2443 (range_intersect): Remove.
2444
2445 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2446
2447 PR rtl-optimization/92430
2448 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2449 (pass_jump_after_combine::execute): Perform jump threading
2450 unconditionally.
2451
2452 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2453 Doug Rupp <rupp@adacore.com>
2454 Olivier Hainque <hainque@adacore.com>
2455
2456 * config.gcc: Collapse the arm-vxworks entries into
2457 a single arm-wrs-vxworks7* one, bpabi based. Update
2458 the default cpu from arm8 to armv7-a
2459 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2460 we always use ARM_UNWIND_INFO.
2461 (DWARF2_UNWIND_INFO): Remove redefinition.
2462 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2463 (VXWORKS_PERSONALITY): Define, to "llvm".
2464 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2465
2466 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2467
2468 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2469 _VX_CPU instead of CPU and handle arm_arch8.
2470
2471 2019-11-14 Doug Rupp <rupp@adacore.com>
2472 Olivier Hainque <hainque@adacore.com>
2473 Jerome Lambourg <lambourg@adacore.com>
2474
2475 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2476 * config/aarch64/aarch64-vxworks.h: New file.
2477 * config/aarch64/t-aarch64-vxworks: New file.
2478
2479 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2480 Olivier Hainque <hainque@adacore.com>
2481
2482 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2483 definition, pointless with a VxWorks specific version
2484 of crtstuff.
2485 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2486 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2487 New local macros, controlling the addition of vxworks specific
2488 crtstuff objects depending on the EH mechanism and kind of
2489 module being linked.
2490 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2491
2492 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2493 Jerome Lambourg <lambourg@adacore.com>
2494 Olivier Hainque <hainque@adacore.com>
2495
2496 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2497 common macro definitions, conveying VXWORKS7 or 64bit general
2498 variations. Add a block to set gcc_cv_initfini_array
2499 unconditionally to "yes" for VxWorks7.
2500 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2501 by default. Update some comments.
2502 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2503 default, to be added the end of VXWORKS_LIBS_RTP.
2504 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2505 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2506 redefine.
2507 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2508 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2509 to account for the now available TLS abilities.
2510 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2511 (VXWORKS_HAVE_TLS): Likewise.
2512
2513 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2514
2515 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2516 (vect_slp_convert_to_external): Likewise.
2517 (vect_slp_analyze_node_operations): If analysis fails, try building
2518 the node from scalars instead.
2519
2520 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2521
2522 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2523 between vector types.
2524 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2525 non-widening and non-narrowing path to handle standard
2526 conversion codes, if the target supports them.
2527 * expr.c (convert_move): Try using the extend and truncate optabs
2528 for vectors.
2529 * optabs-tree.c (supportable_convert_operation): Likewise.
2530 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2531 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2532 (trunc<mode><Vnarrowq>2): New patterns.
2533
2534 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2535
2536 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2537 require vectype and nunits_vectype to have the same size;
2538 instead assert that nunits_vectype has at least as many
2539 elements as vectype. Don't compute a separate nunits_vectype
2540 if the scalar type is obviously the same as vectype's.
2541 Tweak dump messages.
2542
2543 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2544
2545 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2546 function.
2547 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2548 (TARGET_VECTORIZE_RELATED_MODE): Define.
2549
2550 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2551
2552 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2553 (vec_info::used_vector_mode): New member variable.
2554 (vect_chooses_same_modes_p): Declare.
2555 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2556 chosen vector mode in vec_info::used_vector_mode.
2557 (vect_chooses_same_modes_p): New function.
2558 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2559 the same vector statements multiple times.
2560 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2561
2562 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2563
2564 * machmode.h (opt_machine_mode::operator==): New function.
2565 (opt_machine_mode::operator!=): Likewise.
2566 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2567 (get_related_vectype_for_scalar_type): Delete.
2568 (get_vectype_for_scalar_type_and_size): Declare.
2569 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2570 whether analysis passed or failed, and with what vector modes.
2571 Use related_vector_mode to check whether trying a particular
2572 vector mode would be redundant with the autodetected mode,
2573 and print a dump message if we decide to skip it.
2574 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2575 (vect_create_epilog_for_reduction): Use
2576 get_related_vectype_for_scalar_type instead of
2577 get_vectype_for_scalar_type_and_size.
2578 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2579 with...
2580 (get_related_vectype_for_scalar_type): ...this new function.
2581 Take a starting/"prevailing" vector mode rather than a vector size.
2582 Take an optional nunits argument, with the same meaning as for
2583 related_vector_mode. Use related_vector_mode when not
2584 auto-detecting a mode, falling back to mode_for_vector if no
2585 target mode exists.
2586 (get_vectype_for_scalar_type): Update accordingly.
2587 (get_same_sized_vectype): Likewise.
2588 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2589
2590 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2591
2592 * tree-vect-stmts.c (vectorizable_call): Require the types
2593 to have the same size.
2594
2595 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2596
2597 * tree-vect-stmts.c (vectorizable_call): If an operand is
2598 constant or external, use get_vectype_for_scalar_type
2599 rather than get_same_sized_vectype to get its vector type.
2600 (vectorizable_conversion, vectorizable_shift): Likewise.
2601 (vectorizable_operation): Likewise.
2602
2603 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2604
2605 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2606 (vec_info::vector_mode): ...this new field.
2607 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2608 (vect_analyze_loop, vect_transform_loop): Likewise.
2609 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2610 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2611 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2612 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2613 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2614
2615 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2616
2617 * target.h (vector_sizes, auto_vector_sizes): Delete.
2618 (vector_modes, auto_vector_modes): New typedefs.
2619 * target.def (autovectorize_vector_sizes): Replace with...
2620 (autovectorize_vector_modes): ...this new hook.
2621 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2622 Replace with...
2623 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2624 * doc/tm.texi: Regenerate.
2625 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2626 (default_autovectorize_vector_modes): New function.
2627 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2628 (default_autovectorize_vector_modes): New function.
2629 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2630 of autovectorize_vector_sizes. Use the number of units in the mode
2631 to calculate the maximum VF.
2632 * omp-low.c (omp_clause_aligned_alignment): Use
2633 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2634 Use a loop based on related_mode to iterate through all supported
2635 vector modes for a given scalar mode.
2636 * optabs-query.c (can_vec_mask_load_store_p): Use
2637 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2638 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2639 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2640 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2641 Replace with...
2642 (aarch64_autovectorize_vector_modes): ...this new function.
2643 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2644 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2645 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2646 (arc_autovectorize_vector_modes): ...this new function.
2647 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2648 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2649 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2650 (arm_autovectorize_vector_modes): ...this new function.
2651 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2652 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2653 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2654 (ix86_autovectorize_vector_modes): ...this new function.
2655 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2656 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2657 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2658 (mips_autovectorize_vector_modes): ...this new function.
2659 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2660 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2661
2662 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2663
2664 * tree-vect-stmts.c (vectorizable_shift): Check the number
2665 of vector elements as well as the type mode when deciding
2666 whether an op1_vectype is compatible. Reuse the result of
2667 this check when generating vector statements.
2668
2669 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2670
2671 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2672 targetm.vectorize.preferred_simd_mode returns an integer mode,
2673 use mode_for_vector to decide what the vector type's mode
2674 should actually be. Use build_vector_type_for_mode instead
2675 of build_vector_type.
2676
2677 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2678
2679 * target.def (get_mask_mode): Take a vector mode itself as argument,
2680 instead of properties about the vector mode.
2681 * doc/tm.texi: Regenerate.
2682 * targhooks.h (default_get_mask_mode): Update to reflect new
2683 get_mode_mask interface.
2684 * targhooks.c (default_get_mask_mode): Likewise. Use
2685 related_int_vector_mode.
2686 * optabs-query.c (can_vec_mask_load_store_p): Update call
2687 to get_mask_mode.
2688 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2689 first that the original mode really is a vector.
2690 * tree.c (build_truth_vector_type_for): Likewise.
2691 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2692 get_mode_mask interface.
2693 (aarch64_expand_sve_vcond): Update call accordingly.
2694 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2695 get_mode_mask interface.
2696 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2697
2698 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2699
2700 * tree.h (build_truth_vector_type): Delete.
2701 (build_same_sized_truth_vector_type): Likewise.
2702 * tree.c (build_truth_vector_type): Rename to...
2703 (build_truth_vector_type_for): ...this. Make static and take
2704 a vector type as argument.
2705 (truth_type_for): Update accordingly.
2706 (build_same_sized_truth_vector_type): Delete.
2707 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2708 instead of build_same_sized_truth_vector_type.
2709 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2710 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2711 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2712 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2713 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2714 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2715 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2716 (vectorizable_store, vectorizable_condition): Likewise.
2717 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2718 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2719 build_truth_vector_type.
2720 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2721 Use truth_type_for instead of build_same_sized_truth_vector_type.
2722 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2723
2724 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2725
2726 * tree.h (build_truth_vector_type_for_mode): Declare.
2727 * tree.c (build_truth_vector_type_for_mode): New function,
2728 split out from...
2729 (build_truth_vector_type): ...here.
2730 (build_opaque_vector_type): Fix head comment.
2731 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2732 vec_info parameter.
2733 (vect_halve_mask_nunits): Replace vec_info parameter with the
2734 mode of the new vector.
2735 (vect_double_mask_nunits): Likewise.
2736 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2737 (vect_double_mask_nunits): Likewise.
2738 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2739 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2740 to vect_halve_mask_nunits, getting the required mode from the unpack
2741 patterns.
2742 (vect_set_loop_condition_masked): Update call accordingly.
2743 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2744 parameter and update call to vect_double_mask_nunits.
2745 (vectorizable_conversion): Update call accordingly.
2746 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2747 (vectorizable_call): Update call accordingly.
2748 (supportable_widening_operation): Update call to
2749 vect_halve_mask_nunits.
2750 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2751 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2752
2753 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2754
2755 * machmode.h (mode_for_int_vector): Delete.
2756 (related_int_vector_mode): Declare.
2757 * stor-layout.c (mode_for_int_vector): Delete.
2758 (related_int_vector_mode): New function.
2759 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2760 instead of mode_for_int_vector.
2761 (expand_vec_perm_const): Likewise.
2762 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2763 (aarch64_evpc_sve_tbl): Likewise.
2764 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2765 (s390_expand_vcond): Likewise.
2766
2767 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2768
2769 * target.def (related_mode): New hook.
2770 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2771 * doc/tm.texi: Regenerate.
2772 * targhooks.h (default_vectorize_related_mode): Declare.
2773 * targhooks.c (default_vectorize_related_mode): New function.
2774 * machmode.h (related_vector_mode): Declare.
2775 * stor-layout.c (related_vector_mode): New function.
2776 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2777 * optabs-query.c (qimode_for_vec_perm): Likewise.
2778 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2779 (vectorizable_store, vectorizable_load): Likewise
2780
2781 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2782
2783 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2784 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2785 * config/arm/arm-c.c (arm_cpu_builtins): Define
2786 __GCC_ASM_FLAG_OUTPUTS__.
2787 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2788 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2789 Define __GCC_ASM_FLAG_OUTPUTS__.
2790 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2791 * doc/extend.texi (FlagOutputOperands): Add documentation
2792 for ARM and AArch64.
2793
2794 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2795 * config/arm/predicates.md (nz_comparison_operator): Rename
2796 from noov_comparison_operator.
2797 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2798 (arm_gen_dicompare_reg): Likewise.
2799 (maybe_get_arm_condition_code): Likewise.
2800 (thumb1_final_prescan_insn): Likewise.
2801 (arm_emit_coreregs_64bit_shift): Likewise.
2802 * config/arm/arm.md (addsi3_compare0): Likewise.
2803 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2804 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2805 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2806 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2807 (*mulsi3addsi_compare0_scratch): Likewise.
2808 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2809 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2810 (*zeroextractsi_compare0_scratch): Likewise.
2811 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2812 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2813 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2814 (andsi_not_shiftsi_si_scc): Likewise.
2815 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2816 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2817 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2818 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2819 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2820 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2821 (return_addr_mask, *check_arch2): Likewise.
2822 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2823 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2824 (compare_scc splitters): Likewise.
2825 (movcond_addsi): Likewise.
2826 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2827 (*thumb2_addsi3_compare0_scratch): Likewise.
2828 (*thumb2_mulsi_short_compare0): Likewise.
2829 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2830 (compare peephole2s): Likewise.
2831 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2832 nz_comparison_operator names.
2833 (cbranchsi4_insn): Likewise.
2834
2835 * config/arm/constraints.md (c): Use cc_register predicate.
2836
2837 * config/aarch64/constraints.md (c): New constraint.
2838
2839 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2840
2841 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2842 ipa_merge_fn_summary_after_inlining): Micro optimize.
2843
2844 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2845
2846 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2847
2848 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2849
2850 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2851 (ipa_value_range_from_jfunc): New function.
2852 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2853 known_value_ranges parameter; use it to evalulate conditions.
2854 (evaluate_properties_for_edge): Compute known value ranges.
2855 (ipa_fn_summary_t::duplicate): Update use of
2856 evaluate_conditions_for_known_args.
2857 (estimate_ipcp_clone_size_and_time): Likewise.
2858 (ipa_merge_fn_summary_after_inlining): Likewise.
2859 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2860
2861 2019-11-14 Martin Liska <mliska@suse.cz>
2862
2863 * ipa-inline.c (want_inline_small_function_p): Use
2864 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2865 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2866
2867 2019-11-14 Martin Liska <mliska@suse.cz>
2868
2869 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2870 of a callee to get value of the param.
2871 * ipa-inline.c (inline_insns_auto): Use proper
2872 opt_for_fn.
2873 * opts.c (maybe_default_option): Do not overwrite param
2874 value if optimization level does not match. Note that
2875 params usually have default value set via Init() keyword.
2876 * params.opt: Remove -param=max-inline-insns-auto-O2.
2877 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2878 * doc/invoke.texi: Remove documentation of
2879 max-inline-insns-auto-O2.
2880
2881 2019-11-14 Martin Liska <mliska@suse.cz>
2882
2883 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2884 Do not initialize m_other_count.
2885 (switch_conversion::collect): Do not count m_default_count and
2886 m_other_count as we use frequencies for edges.
2887 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2888
2889 2019-11-14 Martin Liska <mliska@suse.cz>
2890
2891 PR other/92329
2892 * doc/invoke.texi: Document -fallocation-dce.
2893
2894 2019-11-14 Martin Liska <mliska@suse.cz>
2895
2896 PR target/92389
2897 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2898 PTA_ICELAKE_CLIENT which is later interited by
2899 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2900
2901 2019-11-14 Martin Liska <mliska@suse.cz>
2902
2903 * ipa-icf.c (sem_item_optimizer::execute): Save
2904 loaded_symbols.
2905 (sem_item_optimizer::parse_nonsingleton_classes):
2906 Return number of loaded symbols.
2907 (sem_item_optimizer::merge_classes): Print
2908 statistics about totally needed symbols.
2909 * ipa-icf.h (parse_nonsingleton_classes): Change return
2910 type.
2911 (merge_classes): Add one argument.
2912
2913 2019-11-14 Martin Liska <mliska@suse.cz>
2914
2915 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2916 func_checker::hash_operand by handling of FIELD_DECLs.
2917
2918 2019-11-14 Martin Liska <mliska@suse.cz>
2919
2920 * ipa-icf-gimple.h (func_checker::func_checker): Add
2921 default constructor.
2922 * ipa-icf.c (sem_function::init): Make operand_equal_p
2923 and hash_operand public.
2924 (sem_item::add_expr): Remove.
2925 (sem_item::add_type): Remove.
2926 (sem_function::hash_stmt): Use m_checker for hashing
2927 of GIMPLE statements.
2928 (sem_function::parse): Init with checker.
2929 (sem_variable::parse): Pass NULL as checker.
2930 (sem_item_optimizer::parse_funcs_and_vars):
2931 Pass checker to ::parse function.
2932 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2933 (sem_variable::parse): New function.
2934 (sem_variable::get_hash): Only return computed hash value.
2935 (sem_variable::init): Initialize hash of a variable.
2936 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2937 to couple of functions as a new argument.
2938
2939 2019-11-14 Martin Liska <mliska@suse.cz>
2940
2941 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2942 bail out reason.
2943 (func_checker::compare_gimple_assign): Likewise.
2944
2945 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2946
2947 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2948 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2949 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2950
2951 * omp-general.c (omp_context_name_list_prop): New function.
2952 (omp_context_selector_matches): Use it. Return 0 if it returns
2953 NULL.
2954 (omp_context_selector_props_compare): Allow equivalency of an
2955 identifier and a string literal containing no embedded zeros.
2956
2957 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2958
2959 * range-op.cc (RANGE3): Remove.
2960 (range_tests): Remove all selftest that check for multi-ranges.
2961 Put tests in namespace selftest.
2962 * selftest.h: Move range_tests into namespace selftest.
2963 * value-range.h (class value_range): Unfriend range_tests.
2964
2965 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2966
2967 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2968 normalize_symbolics and normalize_addresses working in place.
2969 (range_fold_unary_symbolics_p): Same.
2970 (range_fold_unary_symbolics_p): Same.
2971 * value-range.cc (num_pairs): Same.
2972 (lower_bound): Same.
2973 (upper_bound): Same.
2974 (contains_p): Same.
2975 (normalize_addresses): Same.
2976 (normalize_symbolics): Same.
2977 * value-range.h (normalize_symbolics): Same.
2978 (normalize_addresses): Same.
2979
2980 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2981
2982 PR ipa/91682
2983 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2984 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2985 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2986 (ipa_agg_jump_function): Remove member function equal_to.
2987 (ipa_agg_jump_function_p): Remove typedef.
2988 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2989 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2990 information for aggregate jump function.
2991 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2992 record last definition statement.
2993 (load_from_unmodified_param_or_agg): New function.
2994 (ipa_known_agg_contents_list): Add new field type and value, remove
2995 field constant.
2996 (build_agg_jump_func_from_list): Rename parameter const_count to
2997 value_count, build aggregate jump function from ipa_load_agg_data.
2998 (analyze_agg_content_value): New function.
2999 (extract_mem_content): Analyze memory store assignment to prepare
3000 information for aggregate jump function generation.
3001 (determine_known_aggregate_parts): Add new parameter fbi, remove
3002 parameter aa_walk_budeget_p.
3003 (update_jump_functions_after_inlining): Update aggregate jump function.
3004 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3005 (try_make_edge_direct_simple_call): Add new parameter new_root.
3006 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3007 new_root_info.
3008 (update_indirect_edges_after_inlining): Pass new argument to
3009 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3010 (ipa_write_jump_function): Write aggregate jump function to file.
3011 (ipa_read_jump_function): Read aggregate jump function from file.
3012 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3013 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3014 (ipa_agg_value_from_node): Likewise.
3015 (ipa_agg_value_set_from_jfunc): Likewise.
3016 (propagate_vals_across_arith_jfunc): Likewise.
3017 (propagate_aggregate_lattice): Likewise.
3018 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3019 (propagate_vals_across_pass_through): Call
3020 propagate_vals_across_arith_jfunc.
3021 (get_clone_agg_value): Move forward.
3022 (propagate_aggs_across_jump_function): Handle value propagation for
3023 aggregate jump function.
3024 (agg_jmp_p_vec_for_t_vec): Remove.
3025 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3026 with vec<ipa_agg_value>.
3027 (copy_plats_to_inter, intersect_with_plats): Likewise.
3028 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3029 (intersect_aggregate_with_edge): Likewise.
3030 (find_aggregate_values_for_callers_subset): Likewise.
3031 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3032 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3033 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3034 (gather_context_independent_values): Likewise.
3035 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3036 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3037 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3038 (evaluate_properties_for_edge): Likewise.
3039 (estimate_edge_devirt_benefit): Likewise.
3040 (estimate_edge_size_and_time): Likewise.
3041 (estimate_calls_size_and_time): Likewise.
3042 (ipa_call_context::ipa_call_context): Likewise.
3043 (estimate_ipcp_clone_size_and_time): Likewise.
3044 * ipa-fnsummary.h (ipa_call_context): Replace
3045 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3046 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3047 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3048 (do_estimate_edge_size): Likewise.
3049 (do_estimate_edge_hints): Likewise.
3050
3051 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3052
3053 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3054 binary operations.
3055
3056 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3057
3058 * ipa-profile.c (check_argument_count): Check properly that e_info
3059 is non-NULL; do not check descriptors.
3060
3061 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3062
3063 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3064 check for ipa profiles.
3065
3066 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3067
3068 PR c++/92421
3069 * ipa-prop.c (update_indirect_edges_after_inlining):
3070 Mark parameter as used.
3071 * ipa-inline.c (recursive_inlining): Reset node cache
3072 after inlining.
3073 (inline_small_functions): Remove checking ifdef.
3074 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3075 cache consistency.
3076
3077 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3078
3079 PR ipa/92498
3080 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3081 is NULL.
3082 (ipa_profile): Fix reversed test.
3083
3084 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3085
3086 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3087 (propagate_constants_topo): Fix typo.
3088
3089 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3090
3091 * Makefile.in (OBJS): Add value-range.o.
3092 (GTFILES): Add value-range.h.
3093 * gengtype.c (open_base_files): Add value-range.h to list of
3094 header files.
3095 * tree-vrp.c: Move the following value_range related functions:
3096 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3097 constant_p, set_undefined, set_varying, may_contain_p,
3098 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3099 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3100 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3101 value_inside_range, ranges_from_anti_range, union_ranges,
3102 intersect_ranges, intersect_helper, union_helper, union_,
3103 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3104 upper_bound, contains_p, invert, intersect...
3105 * value-range.cc: ...to here.
3106 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3107 associated inline methods from here...
3108 * value-range.h: ...to here.
3109
3110 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3111
3112 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3113 instead of asserting its value.
3114
3115 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3116
3117 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3118 constructors and set methods so value_range_kind is the last
3119 argument and defaults to VR_RANGE.
3120 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3121 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3122 * ipa-prop.c (ipa_get_value_range): Same.
3123 (ipa_compute_jump_functions_for_edge): Same.
3124 * range-op.cc (value_range_from_overflowed_bounds): Same.
3125 (operator_cast::op1_range): Same.
3126 (range_tests): Same.
3127 * range.cc (range_nonzero): Same.
3128 * tree-ssanames.c (get_range_info): Same.
3129 * tree-vrp.c (value_range_equiv::set): Same.
3130 (value_range::value_range): Same.
3131 (value_range_equiv::value_range_equiv): Same.
3132 (value_range_equiv::update): Same.
3133 (value_range_equiv::deep_copy): Same.
3134 (value_range_equiv::move): Same.
3135 (value_range_equiv::set_undefined): Same.
3136 (value_range::set): Same.
3137 (value_range::set_nonzero): Same.
3138 (ranges_from_anti_range): Same.
3139 (extract_range_from_plus_minus_expr): Same.
3140 (value_range::intersect_helper): Same.
3141 (value_range_equiv::intersect): Same.
3142 (value_range::union_helper): Same.
3143 (value_range_equiv::union_): Same.
3144 (value_range::normalize_symbolics): Same.
3145 (value_range::invert): Same.
3146 (determine_value_range_1): Same.
3147 * tree-vrp.h (class value_range): Same.
3148 (class value_range_equiv): Same.
3149 * vr-values.c (set_value_range_to_nonnegative): Same.
3150 (set_value_range_to_truthvalue): Same.
3151 (vr_values::update_value_range): Same.
3152 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3153 (vr_values::extract_range_from_binary_expr): Same.
3154 (vr_values::extract_range_from_comparison): Same.
3155 (vr_values::extract_range_basic): Same.
3156 (vr_values::adjust_range_with_scev): Same.
3157 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3158 (vr_values::extract_range_from_phi_node): Same.
3159
3160 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3161
3162 * tree-dump.c (dequeue_and_dump): Print first tree operand
3163 for VIEW_CONVERT_EXPR.
3164
3165 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3166
3167 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3168 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3169 * real.c (get_max_float): Add norm_max argument.
3170 * real.h (get_max_float): Update prototype.
3171 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3172 get_max_float.
3173
3174 2019-11-13 Martin Liska <mliska@suse.cz>
3175
3176 * dbgcnt.c (test_sorted_dbg_counters): New.
3177 (dbgcnt_c_tests): Likewise.
3178 * selftest-run-tests.c (selftest::run_tests): Likewise.
3179 * selftest.h (dbgcnt_c_tests): Likewise.
3180
3181 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3182 Martin Jambor <mjambor@suse.cz>
3183
3184 PR ipa/92454
3185 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3186 (identify_dead_nodes): Likewise.
3187
3188 2019-11-13 Martin Liska <mliska@suse.cz>
3189
3190 * ipa-icf.c (sem_function::equals_private): Do not overuse
3191 push/pop_cfun functions.
3192
3193 2019-11-13 Martin Liska <mliska@suse.cz>
3194
3195 * common.opt: Document change of -fdbg-cnt option.
3196 * dbgcnt.c (DEBUG_COUNTER): Remove.
3197 (dbg_cnt_is_enabled): Remove.
3198 (dbg_cnt): Work with new intervals.
3199 (dbg_cnt_set_limit_by_index): Set to new
3200 list of intervals.
3201 (dbg_cnt_set_limit_by_name): Likewise.
3202 (dbg_cnt_process_single_pair): Process new format.
3203 (dbg_cnt_process_opt): Likewise.
3204 (dbg_cnt_list_all_counters): Likewise.
3205 * doc/invoke.texi: Document change of -fdbg-cnt option.
3206 (cmp_tuples): New.
3207
3208 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3209
3210 * ipa-inline.c (ipa_inline): Check that function is defined before
3211 flattening.
3212
3213 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3214 Julian Brown <julian@codesourcery.com>
3215
3216 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3217 flag_worker_partitioning is not set.
3218 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3219 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3220
3221 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3222
3223 * config/gcn/gcn-run.c (heap_region): New global variable.
3224 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3225 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3226 (get_kernarg_region): Move contents to ....
3227 (get_memory_region): .... here.
3228 (get_heap_region): New function.
3229 (init_device): Initialize the heap_region.
3230 (device_malloc): Add region parameter.
3231 (struct kernargs): Move heap ....
3232 (heap): ... to global scope.
3233 (main): Allocate heap separate to kernargs.
3234
3235 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3236
3237 * ipa-prop.c (ipa_print_node_jump_functions,
3238 ipa_print_node_params): Print info about missing summaries.
3239
3240 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3241
3242 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3243 the cost of generating loop masks.
3244
3245 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3246
3247 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3248 New function.
3249 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3250 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3251 (vect_transform_loop): Likewise.
3252 (vect_analyze_loop_costing): Don't take the cost of versioning
3253 into account for the static profitability threshold if it turns
3254 out that no versioning is needed.
3255
3256 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3257
3258 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3259 and target_option_default_node to get -fprofile-generate ctors working
3260 right with LTO.
3261
3262 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3263
3264 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3265 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3266 (vectorizable_assignment): Don't add a cost for nop conversions.
3267 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3268 Likewise.
3269 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3270
3271 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3272
3273 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3274 number of ncopies as an additional argument.
3275 (vectorizable_conversion): Update call accordingly. Use "modifier"
3276 to check whether a conversion is between vectors with the same
3277 numbers of units.
3278
3279 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3280
3281 * config/aarch64/aarch64-sve-builtins-functions.h
3282 (unary_count::expand): Use aarch64_sve_int_mode instead of
3283 mode_for_int_vector.
3284
3285 2019-11-13 Martin Liska <mliska@suse.cz>
3286
3287 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3288
3289 2019-11-13 Martin Liska <mliska@suse.cz>
3290
3291 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3292 Remove call to finalize_options_struct.
3293
3294 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3295
3296 PR target/92055
3297 * config/avr/t-avr (avr-mcus): Do not depend on
3298 $(srcdir)/config/avr/t-multilib.
3299
3300 2019-11-13 Richard Biener <rguenther@suse.de>
3301
3302 PR tree-optimization/92473
3303 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3304 direct optab reduction in the correct type.
3305
3306 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3307
3308 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3309 hexadecimal literal.
3310
3311 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3312
3313 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3314 UNORDERED if !HONOR_NANS (DFmode).
3315 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3316 if !HONOR_NANS (<MODE>mode).
3317
3318 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3319
3320 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3321 (ipcp_verify_propagated_values): Likewise.
3322 (propagate_constants_across_call): Likewise.
3323 (propagate_constants_topo): Likewise.
3324 (ipcp_propagate_stage): Likewise.
3325
3326 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3327
3328 PR ipa/92471
3329 * ipa-profile.c (check_argument_count): Break out from ...;
3330 watch for missing summaries.
3331 (ipa_profile): Here.
3332
3333 2019-11-12 Martin Sebor <msebor@redhat.com>
3334
3335 PR tree-optimization/92412
3336 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3337 extern variables.
3338
3339 2019-11-12 Martin Sebor <msebor@redhat.com>
3340
3341 PR middle-end/83688
3342 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3343 (directive::argno): New member.
3344 (format_result::aliases, format_result::alias_count): New data members.
3345 (format_result::append_alias): New member function.
3346 (fmtresult::dst_offset): New data member.
3347 (pass_sprintf_length::call_info::dst_origin): New data member.
3348 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3349 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3350 (get_origin_and_offset): Same.
3351 (format_string): Call it.
3352 (format_directive): Call append_alias and set directive argument
3353 number.
3354 (maybe_warn_overlap): New function.
3355 (pass_sprintf_length::compute_format_length): Call it.
3356 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3357 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3358
3359 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3360
3361 PR rtl-optimization/92430
3362 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3363 dominance info at the beginning.
3364
3365 2019-11-12 Richard Biener <rguenther@suse.de>
3366
3367 PR tree-optimization/92460
3368 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3369 expression before gimplifying.
3370
3371 2019-11-12 Richard Biener <rguenther@suse.de>
3372
3373 PR tree-optimization/92461
3374 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3375 stmt after propagation.
3376
3377 2019-11-12 Martin Liska <mliska@suse.cz>
3378
3379 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3380 Use SET_OPTION_IF_UNSET.
3381 (ix86_option_override_internal): Likewise.
3382 * opts.c (default_options_optimization): Likewise.
3383 (finish_options): Likewise.
3384 (enable_fdo_optimizations): Likewise.
3385 (common_handle_option): Likewise.
3386
3387 2019-11-12 Martin Liska <mliska@suse.cz>
3388
3389 * common/common-target.def: Remove option_validate_param and
3390 option_default_params.
3391 * common/common-targhooks.c (default_option_validate_param):
3392 Remove.
3393 * common/common-targhooks.h (default_option_validate_param):
3394 Remove.
3395 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3396 Remove usage of this.
3397 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3398 (aarch64_option_validate_param): Likewise.
3399 (aarch64_option_default_params): Likewise
3400 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3401 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3402 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3403 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3404 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3405 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3406 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3407 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3408 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3409 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3410 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3411 guard_size here.
3412 * doc/tm.texi: Remove option_default_params and option_validate_param.
3413 * doc/tm.texi.in: Likewise.
3414
3415 2019-11-12 Martin Liska <mliska@suse.cz>
3416
3417 * common/common-target.def:
3418 Do not mention set_default_param_value
3419 and set_param_value.
3420 * doc/tm.texi: Likewise.
3421
3422 2019-11-12 Martin Liska <mliska@suse.cz>
3423
3424 * common.opt: Remove param_values.
3425 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3426 Remove finalize_options_struct.
3427 * gcc.c (driver::decode_argv): Do not call global_init_params
3428 and finish_params.
3429 (driver::finalize): Do not call params_c_finalize
3430 and finalize_options_struct.
3431 * opt-suggestions.c (option_proposer::get_completions): Remove
3432 special casing of params.
3433 (option_proposer::find_param_completions): Remove.
3434 (test_completion_partial_match): Update expected output.
3435 * opt-suggestions.h: Remove find_param_completions.
3436 * opts-common.c (add_misspelling_candidates): Add
3437 --param with a space.
3438 * opts.c (handle_param): Remove.
3439 (init_options_struct):. Remove init_options_struct and
3440 similar calls.
3441 (finalize_options_struct): Remove.
3442 (common_handle_option): Use SET_OPTION_IF_UNSET.
3443 * opts.h (finalize_options_struct): Remove.
3444 * toplev.c (general_init): Do not call global_init_params.
3445 (toplev::finalize): Do not call params_c_finalize and
3446 finalize_options_struct.
3447
3448 2019-11-12 Martin Liska <mliska@suse.cz>
3449
3450 * Makefile.in: Remove PARAMS_H and params.list
3451 and params.options.
3452 * params-enum.h: Remove.
3453 * params-list.h: Remove.
3454 * params-options.h: Remove.
3455 * params.c: Remove.
3456 * params.def: Remove.
3457 * params.h: Remove.
3458 * asan.c: Do not include params.h.
3459 * auto-profile.c: Likewise.
3460 * bb-reorder.c: Likewise.
3461 * builtins.c: Likewise.
3462 * cfgcleanup.c: Likewise.
3463 * cfgexpand.c: Likewise.
3464 * cfgloopanal.c: Likewise.
3465 * cgraph.c: Likewise.
3466 * combine.c: Likewise.
3467 * common/config/aarch64/aarch64-common.c: Likewise.
3468 * common/config/gcn/gcn-common.c: Likewise.
3469 * common/config/ia64/ia64-common.c: Likewise.
3470 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3471 * common/config/rs6000/rs6000-common.c: Likewise.
3472 * common/config/sh/sh-common.c: Likewise.
3473 * config/aarch64/aarch64.c: Likewise.
3474 * config/alpha/alpha.c: Likewise.
3475 * config/arm/arm.c: Likewise.
3476 * config/avr/avr.c: Likewise.
3477 * config/csky/csky.c: Likewise.
3478 * config/i386/i386-builtins.c: Likewise.
3479 * config/i386/i386-expand.c: Likewise.
3480 * config/i386/i386-features.c: Likewise.
3481 * config/i386/i386-options.c: Likewise.
3482 * config/i386/i386.c: Likewise.
3483 * config/ia64/ia64.c: Likewise.
3484 * config/rs6000/rs6000-logue.c: Likewise.
3485 * config/rs6000/rs6000.c: Likewise.
3486 * config/s390/s390.c: Likewise.
3487 * config/sparc/sparc.c: Likewise.
3488 * config/visium/visium.c: Likewise.
3489 * coverage.c: Likewise.
3490 * cprop.c: Likewise.
3491 * cse.c: Likewise.
3492 * cselib.c: Likewise.
3493 * dse.c: Likewise.
3494 * emit-rtl.c: Likewise.
3495 * explow.c: Likewise.
3496 * final.c: Likewise.
3497 * fold-const.c: Likewise.
3498 * gcc.c: Likewise.
3499 * gcse.c: Likewise.
3500 * ggc-common.c: Likewise.
3501 * ggc-page.c: Likewise.
3502 * gimple-loop-interchange.cc: Likewise.
3503 * gimple-loop-jam.c: Likewise.
3504 * gimple-loop-versioning.cc: Likewise.
3505 * gimple-ssa-split-paths.c: Likewise.
3506 * gimple-ssa-sprintf.c: Likewise.
3507 * gimple-ssa-store-merging.c: Likewise.
3508 * gimple-ssa-strength-reduction.c: Likewise.
3509 * gimple-ssa-warn-alloca.c: Likewise.
3510 * gimple-ssa-warn-restrict.c: Likewise.
3511 * graphite-isl-ast-to-gimple.c: Likewise.
3512 * graphite-optimize-isl.c: Likewise.
3513 * graphite-scop-detection.c: Likewise.
3514 * graphite-sese-to-poly.c: Likewise.
3515 * graphite.c: Likewise.
3516 * haifa-sched.c: Likewise.
3517 * hsa-gen.c: Likewise.
3518 * ifcvt.c: Likewise.
3519 * ipa-cp.c: Likewise.
3520 * ipa-fnsummary.c: Likewise.
3521 * ipa-inline-analysis.c: Likewise.
3522 * ipa-inline.c: Likewise.
3523 * ipa-polymorphic-call.c: Likewise.
3524 * ipa-profile.c: Likewise.
3525 * ipa-prop.c: Likewise.
3526 * ipa-split.c: Likewise.
3527 * ipa-sra.c: Likewise.
3528 * ira-build.c: Likewise.
3529 * ira-conflicts.c: Likewise.
3530 * loop-doloop.c: Likewise.
3531 * loop-invariant.c: Likewise.
3532 * loop-unroll.c: Likewise.
3533 * lra-assigns.c: Likewise.
3534 * lra-constraints.c: Likewise.
3535 * modulo-sched.c: Likewise.
3536 * opt-suggestions.c: Likewise.
3537 * opts.c: Likewise.
3538 * postreload-gcse.c: Likewise.
3539 * predict.c: Likewise.
3540 * reload.c: Likewise.
3541 * reorg.c: Likewise.
3542 * resource.c: Likewise.
3543 * sanopt.c: Likewise.
3544 * sched-deps.c: Likewise.
3545 * sched-ebb.c: Likewise.
3546 * sched-rgn.c: Likewise.
3547 * sel-sched-ir.c: Likewise.
3548 * sel-sched.c: Likewise.
3549 * shrink-wrap.c: Likewise.
3550 * stmt.c: Likewise.
3551 * targhooks.c: Likewise.
3552 * toplev.c: Likewise.
3553 * tracer.c: Likewise.
3554 * trans-mem.c: Likewise.
3555 * tree-chrec.c: Likewise.
3556 * tree-data-ref.c: Likewise.
3557 * tree-if-conv.c: Likewise.
3558 * tree-inline.c: Likewise.
3559 * tree-loop-distribution.c: Likewise.
3560 * tree-parloops.c: Likewise.
3561 * tree-predcom.c: Likewise.
3562 * tree-profile.c: Likewise.
3563 * tree-scalar-evolution.c: Likewise.
3564 * tree-sra.c: Likewise.
3565 * tree-ssa-ccp.c: Likewise.
3566 * tree-ssa-dom.c: Likewise.
3567 * tree-ssa-dse.c: Likewise.
3568 * tree-ssa-ifcombine.c: Likewise.
3569 * tree-ssa-loop-ch.c: Likewise.
3570 * tree-ssa-loop-im.c: Likewise.
3571 * tree-ssa-loop-ivcanon.c: Likewise.
3572 * tree-ssa-loop-ivopts.c: Likewise.
3573 * tree-ssa-loop-manip.c: Likewise.
3574 * tree-ssa-loop-niter.c: Likewise.
3575 * tree-ssa-loop-prefetch.c: Likewise.
3576 * tree-ssa-loop-unswitch.c: Likewise.
3577 * tree-ssa-math-opts.c: Likewise.
3578 * tree-ssa-phiopt.c: Likewise.
3579 * tree-ssa-pre.c: Likewise.
3580 * tree-ssa-reassoc.c: Likewise.
3581 * tree-ssa-sccvn.c: Likewise.
3582 * tree-ssa-scopedtables.c: Likewise.
3583 * tree-ssa-sink.c: Likewise.
3584 * tree-ssa-strlen.c: Likewise.
3585 * tree-ssa-structalias.c: Likewise.
3586 * tree-ssa-tail-merge.c: Likewise.
3587 * tree-ssa-threadbackward.c: Likewise.
3588 * tree-ssa-threadedge.c: Likewise.
3589 * tree-ssa-uninit.c: Likewise.
3590 * tree-switch-conversion.c: Likewise.
3591 * tree-vect-data-refs.c: Likewise.
3592 * tree-vect-loop.c: Likewise.
3593 * tree-vect-slp.c: Likewise.
3594 * tree-vrp.c: Likewise.
3595 * tree.c: Likewise.
3596 * value-prof.c: Likewise.
3597 * var-tracking.c: Likewise.
3598
3599 2019-11-12 Martin Liska <mliska@suse.cz>
3600
3601 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3602 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3603 macro.
3604 (asan_sanitize_allocas_p): Likewise.
3605 (asan_emit_stack_protection): Likewise.
3606 (asan_protect_global): Likewise.
3607 (instrument_derefs): Likewise.
3608 (instrument_builtin_call): Likewise.
3609 (asan_expand_mark_ifn): Likewise.
3610 * auto-profile.c (auto_profile): Likewise.
3611 * bb-reorder.c (copy_bb_p): Likewise.
3612 (duplicate_computed_gotos): Likewise.
3613 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3614 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3615 (try_crossjump_bb): Likewise.
3616 * cfgexpand.c (defer_stack_allocation): Likewise.
3617 (stack_protect_classify_type): Likewise.
3618 (pass_expand::execute): Likewise.
3619 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3620 (estimate_reg_pressure_cost): Likewise.
3621 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3622 * combine.c (combine_instructions): Likewise.
3623 (record_value_for_reg): Likewise.
3624 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3625 (aarch64_option_default_params): Likewise.
3626 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3627 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3628 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3629 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3630 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3631 (aarch64_allocate_and_probe_stack_space): Likewise.
3632 (aarch64_expand_epilogue): Likewise.
3633 (aarch64_override_options_internal): Likewise.
3634 * config/alpha/alpha.c (alpha_option_override): Likewise.
3635 * config/arm/arm.c (arm_option_override): Likewise.
3636 (arm_valid_target_attribute_p): Likewise.
3637 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3638 * config/i386/i386.c (get_probe_interval): Likewise.
3639 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3640 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3641 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3642 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3643 (get_stack_clash_protection_guard_size): Likewise.
3644 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3645 * config/s390/s390.c (allocate_stack_space): Likewise.
3646 (s390_emit_prologue): Likewise.
3647 (s390_option_override_internal): Likewise.
3648 * config/sparc/sparc.c (sparc_option_override): Likewise.
3649 * config/visium/visium.c (visium_option_override): Likewise.
3650 * coverage.c (get_coverage_counts): Likewise.
3651 (coverage_compute_profile_id): Likewise.
3652 (coverage_begin_function): Likewise.
3653 (coverage_end_function): Likewise.
3654 * cse.c (cse_find_path): Likewise.
3655 (cse_extended_basic_block): Likewise.
3656 (cse_main): Likewise.
3657 * cselib.c (cselib_invalidate_mem): Likewise.
3658 * dse.c (dse_step1): Likewise.
3659 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3660 (get_max_insn_count): Likewise.
3661 (make_debug_insn_raw): Likewise.
3662 (init_emit): Likewise.
3663 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3664 * final.c (compute_alignments): Likewise.
3665 * fold-const.c (fold_range_test): Likewise.
3666 (fold_truth_andor): Likewise.
3667 (tree_single_nonnegative_warnv_p): Likewise.
3668 (integer_valued_real_single_p): Likewise.
3669 * gcse.c (want_to_gcse_p): Likewise.
3670 (prune_insertions_deletions): Likewise.
3671 (hoist_code): Likewise.
3672 (gcse_or_cprop_is_too_expensive): Likewise.
3673 * ggc-common.c: Likewise.
3674 * ggc-page.c (ggc_collect): Likewise.
3675 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3676 (MAX_DATAREFS): Likewise.
3677 (OUTER_STRIDE_RATIO): Likewise.
3678 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3679 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3680 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3681 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3682 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3683 (imm_store_chain_info::output_merged_store): Likewise.
3684 (pass_store_merging::process_store): Likewise.
3685 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3686 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3687 (scop_to_isl_ast): Likewise.
3688 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3689 (optimize_isl): Likewise.
3690 * graphite-scop-detection.c (build_scops): Likewise.
3691 * haifa-sched.c (set_modulo_params): Likewise.
3692 (rank_for_schedule): Likewise.
3693 (model_add_to_worklist): Likewise.
3694 (model_promote_insn): Likewise.
3695 (model_choose_insn): Likewise.
3696 (queue_to_ready): Likewise.
3697 (autopref_multipass_dfa_lookahead_guard): Likewise.
3698 (schedule_block): Likewise.
3699 (sched_init): Likewise.
3700 * hsa-gen.c (init_prologue): Likewise.
3701 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3702 (cond_move_process_if_block): Likewise.
3703 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3704 (merge_agg_lats_step): Likewise.
3705 (devirtualization_time_bonus): Likewise.
3706 (hint_time_bonus): Likewise.
3707 (incorporate_penalties): Likewise.
3708 (good_cloning_opportunity_p): Likewise.
3709 (ipcp_propagate_stage): Likewise.
3710 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3711 (set_switch_stmt_execution_predicate): Likewise.
3712 (analyze_function_body): Likewise.
3713 (compute_fn_summary): Likewise.
3714 * ipa-inline-analysis.c (estimate_growth): Likewise.
3715 * ipa-inline.c (caller_growth_limits): Likewise.
3716 (inline_insns_single): Likewise.
3717 (inline_insns_auto): Likewise.
3718 (can_inline_edge_by_limits_p): Likewise.
3719 (want_early_inline_function_p): Likewise.
3720 (big_speedup_p): Likewise.
3721 (want_inline_small_function_p): Likewise.
3722 (want_inline_self_recursive_call_p): Likewise.
3723 (edge_badness): Likewise.
3724 (recursive_inlining): Likewise.
3725 (compute_max_insns): Likewise.
3726 (early_inliner): Likewise.
3727 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3728 * ipa-profile.c (ipa_profile): Likewise.
3729 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3730 (ipa_analyze_node): Likewise.
3731 (ipcp_transform_function): Likewise.
3732 * ipa-split.c (consider_split): Likewise.
3733 * ipa-sra.c (allocate_access): Likewise.
3734 (process_scan_results): Likewise.
3735 (ipa_sra_summarize_function): Likewise.
3736 (pull_accesses_from_callee): Likewise.
3737 * ira-build.c (loop_compare_func): Likewise.
3738 (mark_loops_for_removal): Likewise.
3739 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3740 * loop-doloop.c (doloop_optimize): Likewise.
3741 * loop-invariant.c (gain_for_invariant): Likewise.
3742 (move_loop_invariants): Likewise.
3743 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3744 (decide_unroll_runtime_iterations): Likewise.
3745 (decide_unroll_stupid): Likewise.
3746 (expand_var_during_unrolling): Likewise.
3747 * lra-assigns.c (spill_for): Likewise.
3748 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3749 * modulo-sched.c (sms_schedule): Likewise.
3750 (DFA_HISTORY): Likewise.
3751 * opts.c (default_options_optimization): Likewise.
3752 (finish_options): Likewise.
3753 (common_handle_option): Likewise.
3754 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3755 (if): Likewise.
3756 * predict.c (get_hot_bb_threshold): Likewise.
3757 (maybe_hot_count_p): Likewise.
3758 (probably_never_executed): Likewise.
3759 (predictable_edge_p): Likewise.
3760 (predict_loops): Likewise.
3761 (expr_expected_value_1): Likewise.
3762 (tree_predict_by_opcode): Likewise.
3763 (handle_missing_profiles): Likewise.
3764 * reload.c (find_equiv_reg): Likewise.
3765 * reorg.c (redundant_insn): Likewise.
3766 * resource.c (mark_target_live_regs): Likewise.
3767 (incr_ticks_for_insn): Likewise.
3768 * sanopt.c (pass_sanopt::execute): Likewise.
3769 * sched-deps.c (sched_analyze_1): Likewise.
3770 (sched_analyze_2): Likewise.
3771 (sched_analyze_insn): Likewise.
3772 (deps_analyze_insn): Likewise.
3773 * sched-ebb.c (schedule_ebbs): Likewise.
3774 * sched-rgn.c (find_single_block_region): Likewise.
3775 (too_large): Likewise.
3776 (haifa_find_rgns): Likewise.
3777 (extend_rgns): Likewise.
3778 (new_ready): Likewise.
3779 (schedule_region): Likewise.
3780 (sched_rgn_init): Likewise.
3781 * sel-sched-ir.c (make_region_from_loop): Likewise.
3782 * sel-sched-ir.h (MAX_WS): Likewise.
3783 * sel-sched.c (process_pipelined_exprs): Likewise.
3784 (sel_setup_region_sched_flags): Likewise.
3785 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3786 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3787 * toplev.c (print_version): Likewise.
3788 (process_options): Likewise.
3789 * tracer.c (tail_duplicate): Likewise.
3790 * trans-mem.c (tm_log_add): Likewise.
3791 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3792 * tree-data-ref.c (split_constant_offset): Likewise.
3793 (compute_all_dependences): Likewise.
3794 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3795 * tree-inline.c (remap_gimple_stmt): Likewise.
3796 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3797 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3798 (create_parallel_loop): Likewise.
3799 * tree-predcom.c (determine_unroll_factor): Likewise.
3800 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3801 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3802 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3803 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3804 (dse_optimize_redundant_stores): Likewise.
3805 (dse_classify_store): Likewise.
3806 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3807 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3808 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3809 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3810 (try_peel_loop): Likewise.
3811 (tree_unroll_loops_completely): Likewise.
3812 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3813 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3814 (MAX_CONSIDERED_GROUPS): Likewise.
3815 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3816 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3817 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3818 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3819 (L1_CACHE_SIZE_BYTES): Likewise.
3820 (L2_CACHE_SIZE_BYTES): Likewise.
3821 (should_issue_prefetch_p): Likewise.
3822 (schedule_prefetches): Likewise.
3823 (determine_unroll_factor): Likewise.
3824 (volume_of_references): Likewise.
3825 (add_subscript_strides): Likewise.
3826 (self_reuse_distance): Likewise.
3827 (mem_ref_count_reasonable_p): Likewise.
3828 (insn_to_prefetch_ratio_too_small_p): Likewise.
3829 (loop_prefetch_arrays): Likewise.
3830 (tree_ssa_prefetch_arrays): Likewise.
3831 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3832 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3833 (convert_mult_to_fma): Likewise.
3834 (math_opts_dom_walker::after_dom_children): Likewise.
3835 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3836 (hoist_adjacent_loads): Likewise.
3837 (gate_hoist_loads): Likewise.
3838 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3839 (compute_partial_antic_aux): Likewise.
3840 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3841 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3842 (vn_reference_lookup): Likewise.
3843 (do_rpo_vn): Likewise.
3844 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3845 * tree-ssa-sink.c (select_best_block): Likewise.
3846 * tree-ssa-strlen.c (new_stridx): Likewise.
3847 (new_addr_stridx): Likewise.
3848 (get_range_strlen_dynamic): Likewise.
3849 (class ssa_name_limit_t): Likewise.
3850 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3851 (create_variable_info_for_1): Likewise.
3852 (init_alias_vars): Likewise.
3853 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3854 (tail_merge_optimize): Likewise.
3855 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3856 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3857 (thread_jumps::find_jump_threads_backwards): Likewise.
3858 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3859 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3860 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3861 (jump_table_cluster::can_be_handled): Likewise.
3862 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3863 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3864 (param_switch_conversion_branch_ratio): Likewise.
3865 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3866 (vect_enhance_data_refs_alignment): Likewise.
3867 (vect_prune_runtime_alias_test_list): Likewise.
3868 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3869 (vect_get_datarefs_in_loop): Likewise.
3870 (vect_analyze_loop): Likewise.
3871 * tree-vect-slp.c (vect_slp_bb): Likewise.
3872 * tree-vectorizer.h: Likewise.
3873 * tree-vrp.c (find_switch_asserts): Likewise.
3874 (vrp_prop::check_mem_ref): Likewise.
3875 * tree.c (wide_int_to_tree_1): Likewise.
3876 (cache_integer_cst): Likewise.
3877 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3878 (reverse_op): Likewise.
3879 (vt_find_locations): Likewise.
3880
3881 2019-11-12 Martin Liska <mliska@suse.cz>
3882
3883 * Makefile.in: Include params.opt.
3884 * flag-types.h (enum parloops_schedule_type): Add
3885 parloops_schedule_type used in params.opt.
3886 * params.opt: New file.
3887
3888 2019-11-12 Martin Liska <mliska@suse.cz>
3889
3890 * common.opt: Remove --param and --param= options.
3891 * opt-functions.awk: Mark CL_PARAMS for options
3892 that have Param keyword.
3893 * opts-common.c (decode_cmdline_options_to_array):
3894 Replace --param key=value with --param=key=value.
3895 * opts.c (print_filtered_help): Remove special
3896 printing of params.
3897 (print_specific_help): Update title for params.
3898 (common_handle_option): Do not handle OPT__param.
3899 opts.h (SET_OPTION_IF_UNSET): New macro.
3900 * doc/options.texi: Document Param keyword.
3901
3902 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3903 Frederik Harwath <frederik@codesourcery.com>
3904 Thomas Schwinge <thomas@codesourcery.com>
3905
3906 gcc/
3907 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3908 enumeration constant.
3909 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3910 (is_gimple_omp_offloaded): Likewise.
3911 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3912 constant. Adjust the value of ORT_NONE accordingly.
3913 (is_gimple_stmt): Handle OACC_SERIAL.
3914 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3915 (gomp_needs_data_present): Likewise.
3916 (gimplify_adjust_omp_clauses): Likewise.
3917 (gimplify_omp_workshare): Handle OACC_SERIAL.
3918 (gimplify_expr): Likewise.
3919 * omp-expand.c (expand_omp_target):
3920 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3921 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3922 * omp-low.c (is_oacc_parallel): Rename function to...
3923 (is_oacc_parallel_or_serial): ... this.
3924 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3925 (scan_sharing_clauses): Adjust accordingly.
3926 (scan_omp_for): Likewise.
3927 (lower_oacc_head_mark): Likewise.
3928 (convert_from_firstprivate_int): Likewise.
3929 (lower_omp_target): Likewise.
3930 (check_omp_nesting_restrictions): Handle
3931 GF_OMP_TARGET_KIND_OACC_SERIAL.
3932 (lower_oacc_reductions): Likewise.
3933 (lower_omp_target): Likewise.
3934 * tree.def (OACC_SERIAL): New tree code.
3935 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3936
3937 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3938
3939 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3940
3941 PR target/92449
3942 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3943 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3944
3945 PR tree-optimization/92452
3946 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3947 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3948 MINUS_EXPR on it.
3949
3950 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3951
3952 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3953 safelen with 0.
3954
3955 2019-11-12 Alan Modra <amodra@gmail.com>
3956
3957 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3958 element of unspec vec.
3959 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3960 PC-relative TLS.
3961 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3962 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3963 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3964 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3965
3966 2019-11-12 Alan Modra <amodra@gmail.com>
3967
3968 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3969 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3970 (IS_NOMARK_TLSGETADDR): Likewise.
3971 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3972 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3973 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3974 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3975 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3976 (rs6000_indirect_call_template_1): Likewise.
3977 (rs6000_pltseq_template): Likewise.
3978 (rs6000_opt_vars): Remove "tls-markers" entry.
3979 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3980 with TARGET_ELF.
3981 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3982 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3983 (pltseq_plt_pcrel<mode>): Likewise.
3984 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3985 (call_value_local64): Likewise.
3986 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3987 output and length attribute sub-expression.
3988 (call_value_nonlocal_sysv<mode>),
3989 (call_value_nonlocal_sysv_secure<mode>),
3990 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3991 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3992 (call_value_indirect_pcrel<mode>): Likewise.
3993 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3994 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3995 * configure: Regenerate.
3996 * config.in: Regenerate.
3997
3998 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3999
4000 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4001 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4002 address being a prefixed load/store.
4003 (stack_protect_testdi): Deal with either address being a prefixed
4004 load.
4005
4006 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4007
4008 PR bootstrap/92433
4009 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4010 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4011 std::swap.
4012
4013 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4014
4015 PR tree-optimization/92420
4016 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4017 up file.
4018 (get_group_load_store_type): Use it for reversed SLP accesses.
4019
4020 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4021
4022 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4023 summary.
4024 (ipcp_transformation_t::duplicate): Break out from ...
4025 (ipa_node_params_t::duplicate): ... here; add copying of agg
4026 replacements.
4027 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4028 (ipcp_transformation_t): Add duplicate.
4029
4030 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4031
4032 PR fortran/91828
4033 * doc/install.texi: Document that the minimum MPFR version is
4034 3.1.0.
4035
4036 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4037
4038 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4039 use new register constraint letters.
4040
4041 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4042
4043 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4044 as well, if interesting recover the symbol and re-legitimize the
4045 pic address.
4046
4047 2019-11-11 Martin Liska <mliska@suse.cz>
4048
4049 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4050 alphabetically.
4051
4052 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4053
4054 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4055 account when checking if there are enough iterations to vectorize
4056 epilogue.
4057
4058 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4059 Kwok Cheung Yeung <kcy@codesourcery.com>
4060
4061 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4062 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4063 (LANG_HOOKS_DECLS): Rename also here.
4064 * langhooks.h (lang_hooks_for_decls): Rename
4065 omp_is_optional_argument to omp_check_optional_argument; take
4066 additional bool argument.
4067 * omp-general.h (omp_check_optional_argument): Likewise.
4068 * omp-general.h (omp_check_optional_argument): Likewise.
4069 * omp-low.c (lower_omp_target): Update calls; handle absent
4070 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4071
4072 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4073
4074 PR target/87833
4075 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4076 -fPIC and -shared the last to create offload image.
4077
4078 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4079
4080 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4081 of 'offset'.
4082
4083 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4084 (config.status): Use/depend on it.
4085 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4086 * configure: Regenerate.
4087
4088 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4089
4090 PR tree-optimization/88760
4091 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4092 * gcc/common/config/rs6000/rs6000-common.c
4093 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4094 Turn on -funroll-loops and -munroll-only-small-loops.
4095 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4096 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4097 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4098 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4099 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4100 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4101
4102 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4103
4104 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4105 Make scalar_load, vector_load, unaligned_load and
4106 vector_gather_load cost more to conform hardware latency and
4107 insn cost settings.
4108
4109 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4110
4111 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4112 (MACHO_SYMBOL_LINKER_VIS_P): New.
4113
4114 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4115
4116 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4117 registers in eliminable_regset.
4118
4119 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4120
4121 * ipa-inline.c (compute_uninlined_call_time,
4122 compute_inlined_call_time): Take edge frequency as
4123 parameter rather than computing it by itself.
4124 (big_speedup_p, edge_badness): Manually CSE sreal
4125 frequency calculations.
4126
4127 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4128
4129 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4130 case where profiles are same.
4131
4132 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4133
4134 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4135
4136 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4137
4138 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4139 args summaries of inlined edge unless it holds info about
4140 described reference.
4141
4142 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4143
4144 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4145 (*movcc_internal1): Rename to...
4146 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4147
4148 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4149
4150 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4151 (cgraph_node::create_virtual_clone): Copy it.
4152 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4153 summaries.
4154 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4155 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4156 is disabled.
4157 (propagate_constants_across_call): If callee is not analyzed, give up.
4158 (propagate_constants_topo): Lower to bottom latties of all callees of
4159 functions with ipa-cp disabled.
4160 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4161 (cgraph_edge_brings_value_p): Check for availability first.
4162 (create_specialized_node): Set ipcp_clone.
4163 (ipcp_store_bits_results): Check that info is present.
4164 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4165 thunks.
4166 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4167 conservative when callee summary is missing.
4168 (remap_edge_summaries): Lookup call summary only when needed.
4169 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4170 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4171 Use get_create.
4172 (ipa_analyze_node): Use get_create.
4173 (propagate_controlled_uses): Do not propagate when function is not
4174 analyzed.
4175 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4176 (ipa_read_node_info): Use get_create.
4177 * ipa-prop.h (IPA_NODE_REF): Use get.
4178 (IPA_NODE_REF_GET_CREATE): New.
4179
4180 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4181
4182 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4183 on function symbol.
4184
4185 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4186
4187 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4188 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4189 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4190 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4191
4192 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4193
4194 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4195 capping the growth cumulated.
4196 (offline_size): Break out from ...
4197 (estimate_growth): ... here.
4198 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4199 parameters.
4200 (growth_likely_positive): Turn to ...
4201 (growth_positive_p): Re-implement.
4202 * ipa-inline.h (growth_likely_positive): Remove.
4203 (growth_positive_p): Declare.
4204 * ipa-inline.c (want_inline_small_function_p): Use
4205 growth_positive_p.
4206 (want_inline_function_to_all_callers_p): Likewise.
4207
4208 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4209
4210 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4211 calculation of min_size.
4212 (ipa_update_overall_fn_summary): Likewise.
4213
4214 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4215
4216 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4217 estimate_edge_devirt_benefit when not computing hints;
4218 do not compute time when not asked for.
4219 (estimate_calls_size_and_time): Pass NULL hints and time when
4220 these are not computed; do not evaluate hint predicates when these are
4221 not computed.
4222 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4223 frequency.
4224
4225 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4226
4227 PR tree-optimization/92401
4228 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4229 if res_op->code is an expression with code length 1.
4230 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4231 if res_op->code is an expression with code length 2.
4232 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4233 if res_op->code is an expression with code length 3.
4234
4235 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4236
4237 * config/darwin.c (machopic_mcount_stub_name): Validate the
4238 symbol stub name when it is created.
4239 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4240 stub validation.
4241
4242 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4243
4244 * symtab.c: Fix comment typos.
4245 * cgraphunit.c: Likewise.
4246 * cgraph.h: Likewise.
4247 * cgraphclones.c: Likewise.
4248 * cgraph.c: Likewise.
4249 * varpool.c: Likewise.
4250 * tree-ssa-strlen.c: Likewise.
4251 * ipa-sra.c: Likewise.
4252 (scan_expr_access, check_all_callers_for_issues): Fix typo
4253 in a dump message.
4254
4255 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4256
4257 * config/darwin-protos.h: Add include quard.
4258
4259 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4260
4261 * range-op.h (range_operator::fold_range): Return result in a
4262 reference parameter instead of by value.
4263 (range_operator::wi_fold): Same.
4264 * range-op.cc (range_operator::wi_fold): Return result in a reference
4265 parameter instead of by value.
4266 (range_operator::fold_range): Same.
4267 (value_range_from_overflowed_bounds): Same.
4268 (value_range_with_overflow): Same
4269 (create_possibly_reversed_range): Same.
4270 (operator_equal::fold_range): Same.
4271 (operator_not_equal::fold_range): Same.
4272 (operator_lt::fold_range): Same.
4273 (operator_le::fold_range): Same.
4274 (operator_gt::fold_range): Same.
4275 (operator_ge::fold_range): Same.
4276 (operator_plus::wi_fold): Same.
4277 (operator_plus::op1_range): Change call to fold_range.
4278 (operator_plus::op2_range): Change call to fold_range.
4279 (operator_minus::wi_fold): Return result via reference parameter.
4280 (operator_minus::op1_range): Change call to fold_range.
4281 (operator_minus::op2_range): Change call to fold_range.
4282 (operator_min::wi_fold): Return result via reference parameter.
4283 (operator_max::wi_fold): Same.
4284 (cross_product_operator::wi_cross_product): Same.
4285 (operator_mult::wi_fold): Same.
4286 (operator_div::wi_fold): Same.
4287 (operator_div op_floor_div): Fix whitespace.
4288 (operator_exact_divide::op1_range): Change call to fold_range.
4289 (operator_lshift::fold_range): Return result via reference parameter.
4290 (operator_lshift::wi_fold): Same.
4291 (operator_rshift::fold_range): Same.
4292 (operator_rshift::wi_fold): Same.
4293 (operator_cast::fold_range): Same.
4294 (operator_cast::op1_range): Change calls to fold_range.
4295 (operator_logical_and::fold_range): Return result via reference.
4296 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4297 (operator_bitwise_and::wi_fold): Return result via reference.
4298 (operator_logical_or::fold_range): Same.
4299 (operator_bitwise_or::wi_fold): Same.
4300 (operator_bitwise_xor::wi_fold): Same.
4301 (operator_trunc_mod::wi_fold): Same.
4302 (operator_logical_not::fold_range): Same.
4303 (operator_bitwise_not::fold_range): Same.
4304 (operator_bitwise_not::op1_range): Change call to fold_range.
4305 (operator_cst::fold_range): Return result via reference.
4306 (operator_identity::fold_range): Same.
4307 (operator_abs::wi_fold): Same.
4308 (operator_absu::wi_fold): Same.
4309 (operator_negate::fold_range): Same.
4310 (operator_negate::op1_range): Change call to fold_range.
4311 (operator_addr_expr::fold_range): Return result via reference.
4312 (operator_addr_expr::op1_range): Change call to fold_range.
4313 (operator_pointer_plus::wi_fold): Return result via reference.
4314 (operator_pointer_min_max::wi_fold): Same.
4315 (operator_pointer_and::wi_fold): Same.
4316 (operator_pointer_or::wi_fold): Same.
4317 (range_op_handler): Change call to fold_range.
4318 (range_cast): Same.
4319 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4320 fold_range.
4321 (range_fold_unary_symbolics_p): Same.
4322 (range_fold_binary_expr): Same.
4323 (range_fold_unary_expr): Same.
4324
4325 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4326
4327 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4328 vector type as an argument rather than reading it from the
4329 stmt_vec_info.
4330 (vect_create_epilog_for_reduction): Update accordingly.
4331 (vectorizable_reduction): Likewise.
4332 (vect_transform_cycle_phi): Likewise.
4333
4334 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4335
4336 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4337 the comparison codes that make sense for the mode used, and only the
4338 codes that can be done with a single branch instruction.
4339
4340 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4341
4342 PR tree-optimization/92351
4343 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4344 peeling the main loop for alignment, make sure to set the misalignment
4345 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4346
4347 2019-11-08 Richard Biener <rguenther@suse.de>
4348
4349 * dbgcnt.def (ivopts_loop): Add.
4350 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4351 ivopts_loop before optimizing a loop.
4352
4353 2019-11-08 Richard Biener <rguenther@suse.de>
4354
4355 PR ipa/92409
4356 * tree-inline.c (declare_return_variable): Properly handle
4357 type mismatches for the return slot.
4358
4359 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4360
4361 PR target/92095
4362 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4363 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4364 change.
4365 (got_helper_needed): New static variable.
4366 (output_load_pcrel_sym): New function.
4367 (get_pc_thunk_name): Remove after inlining...
4368 (load_got_register): ...here. Rework the initialization of the GOT
4369 register and of the GOT helper.
4370 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4371 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4372 helper must be emitted. Use output_asm_insn instead of fprintf.
4373 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4374 if optimization is enabled.
4375 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4376 by calling output_load_pcrel_sym.
4377
4378 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4379
4380 * tree-sra.c (create_access): Delay disqualifying the base
4381 for poly_int values until we know we have a base.
4382
4383 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4384
4385 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4386 for loops with SIMDUID set. Enable epilogue vectorization for loops
4387 with SIMDLEN set after finding a main loop with a VF that matches it.
4388
4389 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4390
4391 PR target/92038
4392 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4393 value only, return non-NULL if there is a single non-clobber
4394 constituent store even if there are constituent clobbers and return
4395 one of clobber constituent stores if all constituent stores are
4396 clobbers.
4397 (split_group): Handle clobbers.
4398 (imm_store_chain_info::output_merged_store): When computing
4399 bzero_first, look after all clobbers at the start. Don't count
4400 clobber stmts in orig_num_stmts, except if the first orig store is
4401 a clobber covering the whole area and split_stores cover the whole
4402 area, consider equal number of stmts ok. Punt if split_stores
4403 contains only ->orig stores and their number plus number of original
4404 clobbers is equal to original number of stmts. For ->orig, look past
4405 clobbers in the constituent stores.
4406 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4407 stmts.
4408 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4409 rhs.
4410 (store_valid_for_store_merging_p): Allow clobber stmts.
4411 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4412
4413 PR c++/92384
4414 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4415 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4416 slot.
4417 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4418 force creation of a unique data.stack_parm slot.
4419
4420 2019-11-08 Richard Biener <rguenther@suse.de>
4421
4422 * genmatch.c (expr::gen_transform): Use the resimplify
4423 member function instead of hard-coding the gimple_resimplifyN variant.
4424 (dt_simplify::gen_1): Likewise.
4425
4426 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4427
4428 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4429 POLY_INT_CST.
4430
4431 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4432
4433 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4434 instead of INTEGER_CST.
4435
4436 2019-11-08 Richard Biener <rguenther@suse.de>
4437
4438 PR tree-optimization/92324
4439 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4440 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4441 sign-conversions as necessary.
4442 (vectorizable_reduction): Reject conversions in the chain
4443 that are not sign-conversions, base analysis on a non-converting
4444 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4445 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4446 for debug stmts.
4447 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4448 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4449
4450 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4451
4452 PR target/92055
4453 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4454 Fix a missing '-' when displaying these options in the
4455 help screen.
4456
4457 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4458
4459 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4460
4461 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4462
4463 * config/aarch64/aarch64-builtins.c
4464 (aarch64_builtin_vectorized_function): Remove bswap handling.
4465
4466 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4467
4468 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4469 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4470 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4471 Treat the vector types as indivisible.
4472
4473 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4474
4475 * optabs.def (gather_load_optab, mask_gather_load_optab)
4476 (scatter_store_optab, mask_scatter_store_optab): Turn into
4477 conversion optabs, with the offset mode given explicitly.
4478 * doc/md.texi: Update accordingly.
4479 * config/aarch64/aarch64-sve-builtins-base.cc
4480 (svld1_gather_impl::expand): Likewise.
4481 (svst1_scatter_impl::expand): Likewise.
4482 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4483 (expand_scatter_store_optab_fn): Likewise.
4484 (direct_gather_load_optab_supported_p): Likewise.
4485 (direct_scatter_store_optab_supported_p): Likewise.
4486 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4487 to be argument 4.
4488 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4489 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4490 argument with the offset vector type. Require the two vector
4491 types to have the same number of elements but allow their element
4492 sizes to be different. Treat the optabs as conversion optabs.
4493 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4494 prototype accordingly.
4495 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4496 (supports_vec_convert_optab_p): ...this new function.
4497 (supports_vec_gather_load_p): Update accordingly.
4498 (supports_vec_scatter_store_p): Likewise.
4499 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4500 Replace the offset sign and bits parameters with a scalar type tree.
4501 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4502 Pass back the offset vector type instead of the scalar element type.
4503 Allow the offset to be wider than the memory elements. Search for
4504 an offset type that the target supports, stopping once we've
4505 reached the maximum of the element size and pointer size.
4506 Update call to internal_gather_scatter_fn_supported_p.
4507 (vect_check_gather_scatter): Update calls accordingly.
4508 When testing a new scale before knowing the final offset type,
4509 check whether the scale is supported for any signed or unsigned
4510 offset type. Check whether the target supports the source and
4511 target types of a conversion before deciding whether to look
4512 through the conversion. Record the chosen offset_vectype.
4513 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4514 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4515 directly from the gs_info's offset_vectype instead. Pass a zero
4516 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4517 * tree-vect-stmts.c (check_load_store_masking): Update call to
4518 internal_gather_scatter_fn_supported_p, passing the offset vector
4519 type recorded in the gs_info.
4520 (vect_truncate_gather_scatter_offset): Update call to
4521 vect_check_gather_scatter, leaving it to search for a valid
4522 offset vector type.
4523 (vect_use_strided_gather_scatters_p): Convert the offset to the
4524 element type of the gs_info's offset_vectype.
4525 (vect_get_gather_scatter_ops): Get the offset vector type directly
4526 from the gs_info.
4527 (vect_get_strided_load_store_ops): Likewise.
4528 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4529 and IFN_MASK_GATHER_LOAD.
4530 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4531 (gather_load<mode><v_int_equiv>): ...this.
4532 (mask_gather_load<mode>): Rename to...
4533 (mask_gather_load<mode><v_int_equiv>): ...this.
4534 (scatter_store<mode>): Rename to...
4535 (scatter_store<mode><v_int_equiv>): ...this.
4536 (mask_scatter_store<mode>): Rename to...
4537 (mask_scatter_store<mode><v_int_equiv>): ...this.
4538
4539 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4540
4541 PR target/92132
4542 * config/rs6000/predicates.md
4543 (signed_or_equality_comparison_operator): New predicate.
4544 (unsigned_or_equality_comparison_operator): Likewise.
4545 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4546 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4547 * config/rs6000/vector.md
4548 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4549 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4550 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4551 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4552 vector modes and same-size integer vector modes.
4553 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4554 (vector_lt<mode> for VEC_F): New expand.
4555 (vector_le<mode> for VEC_F): Likewise.
4556 (vector_ne<mode> for VEC_F): Likewise.
4557 (vector_unge<mode> for VEC_F): Likewise.
4558 (vector_ungt<mode> for VEC_F): Likewise.
4559 (vector_unle<mode> for VEC_F): Likewise.
4560 (vector_unlt<mode> for VEC_F): Likewise.
4561 (vector_uneq<mode>): Expose name.
4562 (vector_ltgt<mode>): Likewise.
4563 (vector_unordered<mode>): Likewise.
4564 (vector_ordered<mode>): Likewise.
4565
4566 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4567
4568 PR target/92295
4569 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4570 Enhance ix86_expand_vector_init_concat.
4571
4572 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4573
4574 * doc/invoke.texi (-Wold-style-definition): Document () not being
4575 considered an old-style definition for C2x.
4576
4577 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4578
4579 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4580 Enhance comment.
4581 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4582 insn patterns using ldcw instruction.
4583 (memory_barrier): Remove insn pattern using sync instruction.
4584 * config/pa/pa.opt (coherent-ldcw): New option.
4585 (ordered): New option.
4586
4587 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4588
4589 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4590 valid conditions.
4591
4592 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4593
4594 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4595 typo - mistmatch -> mismatch.
4596 * ipa-profile.c (ipa_profile): Likewise.
4597 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4598 - mistmatch -> mismatch.
4599
4600 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4601
4602 * simplify-rtx.c (comparison_to_mask): New function.
4603 (mask_to_comparison): New function.
4604 (simplify_logical_relational_operation): New function.
4605 (simplify_binary_operation_1): Call
4606 simplify_logical_relational_operation.
4607
4608 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4609
4610 PR other/92090
4611 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4612 modes for integer constants.
4613
4614 2019-11-07 Jan Hubicka <jh@suse.cz>
4615
4616 PR ipa/92406
4617 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4618 summary.
4619
4620 2019-11-07 Jan Hubicka <jh@suse.cz>
4621
4622 * optc-save-gen.awk: Generate cl_target_option_free
4623 and cl_optimization_option_free.
4624 * opth-en.awk: Declare cl_target_option_free
4625 and cl_optimization_option_free.
4626 * tree.c (free_node): Use it.
4627
4628 2019-11-06 Jan Hubicka <jh@suse.cz>
4629
4630 * lto-streamer-in.c: Include alloc-pool.h.
4631 (freeing_string_slot_hasher): Remove.
4632 (string_slot_allocator): New object allocator.
4633 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4634 (file_name_obstack): New obstack.
4635 (canon_file_name): Allocate in obstack and allocator.
4636 (lto_reader_init): Initialize obstack and allocator.
4637 (lto_free_file_name_hash): New function.
4638 * lto-streamer.h (lto_free_file_name_hash): New.
4639
4640 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4641
4642 PR tree-optimization/89134
4643 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4644 * params.def: Add min-loop-cond-split-prob.
4645 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4646 outside checks on loop into the function.
4647 (split_info): New class.
4648 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4649 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4650 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4651 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4652 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4653 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4654 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4655 (split_loop_on_cond): Likewise.
4656 (tree_ssa_split_loops): Add loop split on conditional statement.
4657
4658 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4659
4660 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4661 pattern.
4662
4663 2019-11-07 Richard Biener <rguenther@suse.de>
4664
4665 PR tree-optimization/92405
4666 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4667 restrict lane-reducing ops to single stmt chains.
4668
4669 2019-11-07 Martin Jambor <mjambor@suse.cz>
4670
4671 PR lto/70929
4672 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4673 * cgraph.h (gimple_check_call_matching_types): Remove
4674 * cgraph.c (gimple_check_call_args): Likewise.
4675 (gimple_check_call_matching_types): Likewise.
4676 (symbol_table::create_edge): Do not call
4677 gimple_check_call_matching_types.
4678 (cgraph_edge::make_direct): Likewise.
4679 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4680 * value-prof.h (check_ic_target): Remove.
4681 * value-prof.c (check_ic_target): Remove.
4682 (gimple_ic_transform): Do nat call check_ic_target.
4683 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4684 (afdo_indirect_call): Likewise.
4685 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4686 gimple_check_call_matching_types.
4687 * ipa-inline.c (early_inliner): Likewise.
4688
4689 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4690
4691 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4692 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4693 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4694 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4695 * config/arm/iterators.md (USSAT16): New int_iterator.
4696 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4697 (sup): Likewise.
4698 * config/arm/predicates.md (ssat16_imm): New predicate.
4699 (usat16_imm): Likewise.
4700 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4701
4702 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4703
4704 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4705 New define_insns.
4706 (arm_<simd32_op>): New define_expands.
4707 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4708 __smuad, __smuadx): Define.
4709 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4710 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4711 (SIMD32_BINOP_Q): Likewise.
4712 (simd32_op): Handle the above.
4713 * config/arm/unspecs.md: Define unspecs for the above.
4714
4715 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4716
4717 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4718 * config/arm/arm.md (APSRGE_REGNUM): Define.
4719 (arm_<simd32_op>): New define_insn.
4720 (arm_sel): Likewise.
4721 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4722 (CALL_USED_REGISTERS): Likewise.
4723 (REG_ALLOC_ORDER): Likewise.
4724 (FIRST_PSEUDO_REGISTER): Update value.
4725 (ARM_GE_BITS_READ): Define.
4726 * config/arm/arm.c (arm_conditional_register_usage): Clear
4727 APSRGE_REGNUM from operand_reg_set.
4728 (arm_ge_bits_access): Define.
4729 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4730 ARM_BUIILTIN_sel.
4731 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4732 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4733 FAIL if ARM_GE_BITS_READ.
4734 (*arm_add<mode>3): New define_insn.
4735 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4736 (*arm_sub<mode>3): New define_insn.
4737 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4738 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4739 __usub16): Define.
4740 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4741 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4742 (simd32_op): Handle the above.
4743 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4744 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4745 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4746 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4747
4748 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4749
4750 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4751 (arm_smlabb): New define_expand.
4752 (*maddhisi4tb): Rename to...
4753 (maddhisi4tb): ... This.
4754 (*maddhisi4tt): Rename to...
4755 (maddhisi4tt): ... This.
4756 (arm_smlatb_setq): New define_insn.
4757 (arm_smlatb): New define_expand.
4758 (arm_smlatt_setq): New define_insn.
4759 (arm_smlatt): New define_expand.
4760 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4761 (arm_<smlaw_op>): New define_expand.
4762 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4763 __smlawb, __smlawt): Define.
4764 * config/arm_acle_builtins.def: Define builtins for the above.
4765 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4766 (slaw_op): New int_attribute.
4767 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4768
4769 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4770
4771 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4772 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4773 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4774 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4775 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4776 (ss_op): New code_attr.
4777
4778 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4779
4780 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4781 * config/arm/arm.md (APSRQ_REGNUM): Define.
4782 (add_setq): New define_subst.
4783 (add_clobber_q_name): New define_subst_attr.
4784 (add_clobber_q_pred): Likewise.
4785 (maddhisi4): Change to define_expand. Split into mult and add if
4786 ARM_Q_BIT_READ.
4787 (arm_maddhisi4): New define_insn.
4788 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4789 (*maddhisi4tt): Likewise.
4790 (arm_ssat): New define_expand.
4791 (arm_usat): Likewise.
4792 (arm_get_apsr): New define_insn.
4793 (arm_set_apsr): Likewise.
4794 (arm_saturation_occurred): New define_expand.
4795 (arm_set_saturation): Likewise.
4796 (*satsi_<SAT:code>): Rename to...
4797 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4798 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4799 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4800 (CALL_USED_REGISTERS): Mark apsrq.
4801 (FIRST_PSEUDO_REGISTER): Update value.
4802 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4803 (machine_function): Add q_bit_access.
4804 (ARM_Q_BIT_READ): Define.
4805 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4806 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4807 operand_reg_set.
4808 (arm_q_bit_access): Define.
4809 * config/arm/arm-builtins.c: Include stringpool.h.
4810 (arm_sat_binop_imm_qualifiers,
4811 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4812 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4813 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4814 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4815 SET_SAT_QUALIFIERS): Likewise.
4816 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4817 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4818 Handle 0 argument expander.
4819 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4820 (arm_check_builtin_call): Define.
4821 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4822 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4823 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4824 (arm_q_bit_access): Likewise.
4825 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4826 __saturation_occurred, __set_saturation_occurred): Define.
4827 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4828 saturation_occurred, set_saturation_occurred.
4829 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4830 (UNSPEC_APSR_READ): Likewise.
4831 (VUNSPEC_APSR_WRITE): Likewise.
4832 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4833 (*arm_ssadd<mode>3): New define_insn.
4834 (sssub<mode>3): Convert to define_expand.
4835 (*arm_sssub<mode>3): New define_insn.
4836 (ssmulsa3): Convert to define_expand.
4837 (*arm_ssmulsa3): New define_insn.
4838 (usmulusa3): Convert to define_expand.
4839 (*arm_usmulusa3): New define_insn.
4840 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4841 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4842 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4843
4844 2019-11-07 Martin Liska <mliska@suse.cz>
4845
4846 PR c++/92354
4847 * cgraph.c (delete_function_version): Clear global
4848 variable version_info_node if equal to deleted
4849 function.
4850
4851 2019-11-07 Martin Liska <mliska@suse.cz>
4852
4853 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4854 of CONSTRUCTOR_NO_CLEARING.
4855 (operand_compare::hash_operand): Likewise.
4856
4857 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4858
4859 Support 64-bit double and 64-bit long double configurations.
4860
4861 PR target/92055
4862 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4863 --with-long-double=.
4864 * config/avr/t-multilib: Remove.
4865 * config/avr/t-avr: Output of genmultilib.awk is now fully
4866 dynamically generated and no more part of the repo.
4867 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4868 Pass them down to...
4869 * config/avr/genmultilib.awk: ...here and handle them.
4870 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4871 (-mlong-double=, avr_long_double). New option and var.
4872 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4873 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4874 Set default as requested by --with-double=
4875 (TARGET_HANDLE_OPTION): Define to this...
4876 (avr_handle_option): ...new hook worker.
4877 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4878 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4879 (avr_double_lib): New proto for spec function.
4880 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4881 (DRIVER_SELF_SPECS): Call %:double-lib.
4882 * config/avr/avr.c (avr_option_override): Assert
4883 sizeof(long double) >= sizeof(double) for the target.
4884 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4885 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4886 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4887 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4888 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4889 New built-in define depending on --with-double=, --with-long-double=.
4890 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4891 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4892 * doc/install.texi (Cross-Compiler-Specific Options)
4893 <--with-double=, --with-long-double=>: Doc.
4894
4895 2019-11-07 Richard Biener <rguenther@suse.de>
4896
4897 * dbgcnt.def (gimple_unroll): New.
4898 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4899 gimple_unroll debug counter before applying transform.
4900 (try_peel_loop): Likewise.
4901
4902 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4903
4904 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4905 frame pointer in multiple registers.
4906 (ira_setup_eliminable_regset): Setup eliminable_regset,
4907 ira_no_alloc_regs and regs_ever_live for frame pointer in
4908 multiple registers.
4909
4910 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4911
4912 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4913 V2DI modes.
4914
4915 2019-11-06 Jan Hubicka <jh@suse.cz>
4916
4917 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4918 allocations.
4919 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4920 Do not silently ignore summary corruptions.
4921
4922 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4923
4924 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4925 the epilogue if there are peeled iterations for it to handle.
4926
4927 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4928
4929 * config/arc/arc.c (arc_split_ior): Add asserts.
4930 (arc_split_mov_const): Likewise.
4931 (arc_check_ior_const): Do not match known short immediate values.
4932 * config/arc/arc.md (movsi): Don't split predicated instructions
4933 (iorsi): Likewise.
4934
4935 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4936
4937 * config/arc/arc.opt (mea): Update help string.
4938 * doc/invoke.texi(ARC): Update mea option info.
4939
4940 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4941
4942 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4943 (zero_extendqisi2_ac): Likewise.
4944 (zero_extendhisi2_i): Likewise.
4945 (extendqihi2_i): Likewise.
4946 (extendqisi2_ac): Likewise.
4947 (extendhisi2_i): Likewise.
4948
4949 2019-11-06 Richard Biener <rguenther@suse.de>
4950
4951 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4952 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4953 Simplify single_defuse_cycle condition.
4954
4955 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4956
4957 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4958 epilogue loop, make sure that the VF is small enough or that
4959 the epilogue loop can be fully-masked.
4960
4961 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4962
4963 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4964 loop when we've finished, rather than returning directly from
4965 the loop. Use a local variable to track whether we're still
4966 searching for the preferred simdlen. Make vect_epilogues
4967 record whether the next iteration should try to treat the
4968 loop as an epilogue.
4969
4970 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4971
4972 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4973 __arc_hard_float__, __ARC_HARD_FLOAT__,
4974 __arc_soft_float__, __ARC_SOFT_FLOAT__
4975
4976 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4977
4978 PR tree-optimization/92317
4979 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4980 update phi's with constant phi arguments.
4981
4982 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4983 Alexandre Oliva <oliva@adacore.com>
4984
4985 * common.opt (-fcallgraph-info[=]): New option.
4986 * doc/invoke.texi (Developer options): Document it.
4987 * opts.c (common_handle_option): Handle it.
4988 * builtins.c (expand_builtin_alloca): Record allocation if
4989 -fcallgraph-info=da.
4990 * calls.c (expand_call): If -fcallgraph-info, record the call.
4991 (emit_library_call_value_1): Likewise.
4992 * flag-types.h (enum callgraph_info_type): New type.
4993 * explow.c: Include stringpool.h.
4994 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4995 * function.c (allocate_stack_usage_info): New.
4996 (allocate_struct_function): Call it for -fcallgraph-info.
4997 (prepare_function_start): Call it otherwise.
4998 (record_final_call, record_dynamic_alloc): New.
4999 * function.h (struct callinfo_callee): New.
5000 (CALLEE_FROM_CGRAPH_P): New.
5001 (struct callinfo_dalloc): New.
5002 (struct stack_usage): Add callees and dallocs.
5003 (record_final_call, record_dynamic_alloc): Declare.
5004 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5005 object if -fcallgraph-info=da.
5006 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5007 * print-tree.h (print_decl_identifier): Declare.
5008 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5009 * print-tree.c: Include print-tree.h.
5010 (print_decl_identifier): New function.
5011 * toplev.c: Include print-tree.h.
5012 (callgraph_info_file): New global variable.
5013 (callgraph_info_external_printed): Likewise.
5014 (output_stack_usage): Rename to...
5015 (output_stack_usage_1): ... this. Make it static, add cf
5016 parameter. If -fcallgraph-info=su, print stack usage to cf.
5017 If -fstack-usage, use print_decl_identifier for
5018 pretty-printing.
5019 (INDIRECT_CALL_NAME): New.
5020 (dump_final_node_vcg_start): New.
5021 (dump_final_callee_vcg, dump_final_node_vcg): New.
5022 (output_stack_usage): New.
5023 (lang_dependent_init): Open and start file if
5024 -fcallgraph-info. Allocated callgraph_info_external_printed.
5025 (finalize): If callgraph_info_file is not null, finish it,
5026 close it, and release callgraph_info_external_printed.
5027
5028 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5029 Frederik Harwath <frederik@codesourcery.com>
5030 Thomas Schwinge <thomas@codesourcery.com>
5031
5032 * omp-low.c (struct omp_context): New fields
5033 local_reduction_clauses, outer_reduction_clauses.
5034 (new_omp_context): Initialize these.
5035 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5036 (scan_omp_for): Check reduction clauses for incorrect nesting.
5037
5038 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5039
5040 PR inline-asm/92352
5041 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5042 operands with non-memory constraints.
5043
5044 2019-11-05 Martin Sebor <msebor@redhat.com>
5045
5046 PR tree-optimization/92373
5047 * tree.c (component_ref_size): Only consider initializers of objects
5048 of matching struct types.
5049 Return null for instances of interior zero-length arrays.
5050
5051 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5052
5053 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5054
5055 2019-11-05 Jason Merrill <jason@redhat.com>
5056
5057 PR tree-optimization/91825
5058 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5059
5060 2019-11-05 Jim Wilson <jimw@sifive.com>
5061
5062 PR middle-end/92263
5063 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5064 optimize_insn_for_speed_p is true.
5065
5066 2019-11-05 Martin Sebor <msebor@redhat.com>
5067
5068 PR middle-end/92333
5069 PR middle-end/82608
5070 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5071 size.
5072 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5073 name and location for a temporary variable.
5074
5075 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5076
5077 * tree-vrp.c (value_range::value_range): Fix whitespace.
5078 (defined_ranges_p): Same.
5079 (range_fold_binary_symbolics_p): Same.
5080 (value_range::intersect_helper): Same.
5081 (value_range::union_helper): Same.
5082 * tree-vrp.h (range_fold_binary_expr): Same.
5083
5084 2019-11-04 Martin Sebor <msebor@redhat.com>
5085
5086 PR middle-end/92341
5087 PR middle-end/82612
5088 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5089 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5090 of message printed in a warning for empty arrays.
5091 (vrp_prop::check_mem_ref): Also handle function parameters and
5092 empty arrays.
5093
5094 2019-11-05 Richard Biener <rguenther@suse.de>
5095
5096 PR tree-optimization/92371
5097 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5098 on the original stmt of live stmts in the chain.
5099 (vectorizable_live_operation): Look at the original stmt when
5100 checking STMT_VINFO_REDUC_DEF.
5101
5102 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5103
5104 * gimple-fold.c, gimple-loop-versioning.cc,
5105 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5106 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5107 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5108 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5109 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5110 value_range_equiv, and value_range_base to value_range.
5111
5112 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5113
5114 * expr.c (build_personality_function): Fix generated type to
5115 match actual personality functions.
5116
5117 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5118
5119 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5120 enough bytes for the NULL character.
5121
5122 2019-11-05 Richard Biener <rguenther@suse.de>
5123
5124 PR tree-optimization/92280
5125 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5126 had a single use do not create a new CTOR.
5127 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5128 BIT_FIELD_REF of a CTOR via GENERIC.
5129
5130 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5131
5132 * config/s390/s390.c (s390_vector_alignment): Check if the value
5133 fits into uhwi before using it.
5134
5135 2019-11-05 Martin Liska <mliska@suse.cz>
5136
5137 * symbol-summary.h: Use ggc_delete.
5138
5139 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5140
5141 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5142 Change vec_perm field to 10.
5143
5144 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5145
5146 * doc/install.texi: Further fix syntax for html generation.
5147
5148 2019-11-05 Martin Liska <mliska@suse.cz>
5149
5150 * symbol-summary.h: Rename allocator to m_allocator and
5151 add comment.
5152
5153 2019-11-05 Richard Biener <rguenther@suse.de>
5154
5155 PR tree-optimization/92324
5156 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5157 all signed or unsigned operations.
5158
5159 2019-11-05 Jan Hubicka <jh@suse.cz>
5160
5161 * hsa-brig.c: Include alloc-pool.h
5162 * hsa-dump.c: Likewise.
5163 * hsa-gen.c: Likewise.
5164 * hse-regalloc.c: Likewise.
5165 * ipa-hsa.c: Likewise.
5166 * ipa-predicate.c: Likewise.
5167 * ipa-reference.c: Likewise.
5168 * ipa-sra.c: Likewise.
5169 * omp-expand.c: Likewise.
5170 * omp-general.c: Likewise.
5171 * omp-low.c: Likewise.
5172 * sumbol-summary.h (function_summary_base): Add allocator.
5173 (function_summary<T *>::function_summary): Update construction.
5174 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5175 (call_summary_base): Add allcator.
5176 (call_summary<T *>::call_summary): Update construction.
5177 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5178
5179 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5180
5181 PR tree-optimization/91945
5182 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5183 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5184 Formatting fix.
5185
5186 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5187
5188 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5189 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5190 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5191 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5192 (vrp_set_zero_nonzero_bits): Move to...
5193 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5194 (vr_values::simplify_bit_ops_using_ranges): Rename
5195 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5196
5197 2019-11-05 Martin Liska <mliska@suse.cz>
5198
5199 PR c++/92339
5200 * fold-const.c (operand_compare::hash_operand): Remove
5201 FIELD_DECL handling.
5202
5203 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5204
5205 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5206 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5207 static.
5208
5209 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5210
5211 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5212 properly handle symbolics.
5213 (range_compatible_p): Remove.
5214
5215 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5216
5217 * common.opt (-fabi-version): Document =14.
5218 * doc/invoke.texi (C++ Dialect Options): Likewise.
5219
5220 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5221
5222 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5223
5224 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5225
5226 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5227 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5228 gcn_omp_device_kind_arch_isa.
5229 * config/gcn/t-omp-device: New file.
5230 * configure.ac: Support gcn for omp_device_property.
5231 * configure: Regenerate.
5232
5233 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5234
5235 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5236 (vrp_val_max): Same.
5237 (vrp_val_is_min): Same.
5238 (vrp_val_is_max): Same.
5239 (value_range_base::nonzero_p): Remove last argument to
5240 vrp_val_is_max.
5241 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5242 (vrp_val_max): Same.
5243 (vrp_val_is_min): Same.
5244 (vrp_val_is_max): Same.
5245 (value_range_base::set_varying): Remove last argument to vrp_val*.
5246 (value_range_base::dump): Same.
5247 (value_range_base::set): Same.
5248 (value_range_base::normalize_symbolics): Same.
5249 (value_range_base::num_pairs): Same.
5250 (value_range_base::lower_bound): Same.
5251 (value_range_base::upper_bound): Same.
5252 (ranges_from_anti_range): Remove handle_pointers argument.
5253 (value_range_base::singleton_p): Remove last argument to
5254 ranges_from_anti_range.
5255
5256 2019-11-04 Jan Hubicka <jh@suse.cz>
5257
5258 * ipa-reference.c (init_function_info): Initialize
5259 info->global.statics_read.
5260
5261 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5262
5263 * tree-vrp.c (value_range_base::invert): Use constructors to build
5264 range.
5265
5266 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5267
5268 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5269 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5270
5271 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5272
5273 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5274 VR_UNDEFINED.
5275
5276 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5277
5278 * tree-vrp.c (dump_assert_info): New.
5279 (dump_asserts_info): New.
5280
5281 2019-11-04 Jan Hubicka <jh@suse.cz>
5282
5283 * ipa-inline-transform.c: Include ipa-utils.h
5284 (inline_call): Set thunk_expansion flag.
5285 * ipa-utils.h (thunk_expansion): Declare.
5286 * ipa-devirt.c (thunk_expansion): New global var.
5287 (devirt_node_removal_hook): Do not invalidate cache while
5288 doing thunk expansion.
5289
5290 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5291
5292 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5293
5294 2019-11-04 Martin Sebor <msebor@redhat.com>
5295
5296 PR tree-optimization/92349
5297 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5298 memebers have constant sizes.
5299
5300 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5301
5302 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5303 parameter.
5304 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5305 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5306 vect_analyze_loop.
5307
5308 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5309
5310 * expr.c (store_constructor): Modify to handle single element vectors.
5311 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5312 constructors.
5313 (vect_slp_check_for_constructors): New function.
5314 (vect_slp_analyze_bb_1): Call new function to check for vector
5315 constructors.
5316 (vectorize_slp_instance_root_stmt): New function.
5317 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5318 constructors.
5319 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5320
5321 2019-11-04 Richard Biener <rguenther@suse.de>
5322
5323 PR tree-optimization/92345
5324 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5325 we produced a reduction chain.
5326 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5327 LOOP_VINFO_REDUCTIONS.
5328
5329 2019-11-04 Jan Hubicka <jh@suse.cz>
5330
5331 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5332 duplicate summaries.
5333 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5334 first.
5335 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5336 access call summaries.
5337 (dump_ipa_call_summary): Be ready for missing edge summaries.
5338 (analyze_function_body): Use get instead of get_create to access
5339 edge summary.
5340 (estimate_calls_size_and_time): Do not access summaries of
5341 inlined edges; sanity check they are missing.
5342 (ipa_call_context::estimate_size_and_time): Use get instead
5343 of get_create to access node summary.
5344 (inline_update_callee_summaries): Do not update depth of
5345 inlined edge.
5346 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5347 growth caches.
5348 (ipa_merge_fn_summary_after_inlining): Use get instead
5349 of get_create.
5350 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5351 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5352 fast summary.
5353 (initialize_growth_caches): Update.
5354 (do_estimate_edge_time): Remove redundant copy of context.
5355 (ipa_remove_from_growth_caches): New function.
5356 * ipa-inline.c (flatten_function): Update overall summary
5357 only when optimizing.
5358 (inline_to_all_callers): Update overall summary of function
5359 inlined to.
5360 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5361 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5362 to false.
5363
5364 2019-11-04 Richard Biener <rguenther@suse.de>
5365
5366 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5367 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5368
5369 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5370
5371 * ggc-common.c: Include system.h before malloc.h.
5372
5373 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5374
5375 * configure.ac: Pass --enable-obsolete=* and
5376 --enable-option-checking=* down to build configure, and fail
5377 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5378 * configure: Rebuild.
5379 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5380 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5381
5382 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5383
5384 * config.in: Regenerate.
5385 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5386 -mtiny-printf is used without GCC being configured with
5387 --enable-newlib-nano-formatted-io.
5388 * config/msp430/msp430.h (LINK_SPEC): Pass
5389 "--wrap puts --wrap printf" when -mtiny-printf is used.
5390 * config/msp430/msp430.opt: Document -mtiny-printf.
5391 * configure: Regenerate.
5392 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5393 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5394 --enable-newlib-nano-formatted-io is passed.
5395 * doc/invoke.texi: Document -mtiny-printf.
5396
5397 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5398
5399 * configure: Regenerate.
5400
5401 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5402
5403 * config/msp430/driver-msp430.c
5404 (msp430_get_linker_devices_include_path): New spec function.
5405 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5406 (extract_devices_dir_from_exec_prefix): New function.
5407 (extract_devices_dir_from_collect_gcc): New function.
5408 (msp430_check_env_var_for_devices): New function.
5409 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5410 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5411 devices.csv was not found using other methods.
5412 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5413 New prototype.
5414 (msp430_dirname): Likewise.
5415 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5416 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5417 msp430_get_linker_devices_include_path.
5418 (TARGET_EXTRA_PRE_INCLUDES): Define.
5419 * doc/invoke.texi: Document new ways of searching for support files.
5420
5421 2019-11-04 Richard Biener <rguenther@suse.de>
5422
5423 PR tree-optimization/92301
5424 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5425 as required by epilogue generation
5426
5427 2019-11-04 Martin Liska <mliska@suse.cz>
5428
5429 PR ipa/92304
5430 * fold-const.c (operand_compare::hash_operand): Fix field
5431 hashing of CONSTRUCTOR.
5432
5433 2019-11-04 Martin Liska <mliska@suse.cz>
5434
5435 * ggc.h (ggc_delete): New function.
5436 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5437 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5438 (ipa_free_all_node_params): Likewise.
5439 * ipa-sra.c (ipa_sra_analysis): Likewise.
5440
5441 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5442
5443 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5444 set_switch_stmt_execution_predicate, compute_bb_predicates,
5445 will_be_nonconstant_expr_predicate,
5446 phi_result_unknown_predicate,
5447 analyze_function_body): Pass arround params summary.
5448 (ipa_call_context::duplicate_from): New comment;
5449 only duplicate useful values.
5450 (ipa_call_context::equal_to): Only compare useful values.
5451 (remap_edge_summaries): Pass params_summary.
5452 (remap_hint_predicate): Likewise.
5453 (ipa_merge_fn_summary_after_inlining): Likewise.
5454 (inline_read_section): Initialize params summary used flags.
5455 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5456 around param_summary.
5457 (add_condition): Initialized used params summary flags.
5458 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5459 (inline_param_summary::useless_p): New predicate.
5460 (remap_after_inlining, add_condition): Update prototype
5461 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5462 move_cost.
5463 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5464 summaries.
5465 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5466 (ipa_analyze_virtual_call_uses): Likewise.
5467 (update_indirect_edges_after_inlining): Update param summaries.
5468 (ipa_print_node_params): Print used flags.
5469 (ipa_read_indirect_edge_info): Update param summareis.
5470 * ipa-prop.h (ipa_param_descriptor): Add
5471 used_by_ipa_predicates, used_by_indirect_call
5472 and used_by_polymorphic_call.
5473 (ipa_set_param_used_by_ipa_predicates,
5474 ipa_set_param_used_by_indirect_call,
5475 ipa_set_param_used_by_polymorphic_call,
5476 ipa_is_param_used_by_ipa_predicates,
5477 ipa_is_param_used_by_indirect_call,
5478 ipa_is_param_used_by_polymorphic_call): New inline functions.
5479
5480 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5481
5482 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5483 member function.
5484 (ipa_call_context::release): Add ALL parameter.
5485 (ipa_call_context::equal_to): New member function.
5486 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5487 duplicate_form, release, equal_to and exists_p member functoins.
5488 * ipa-inline-analysis.c (node_context_cache_entry): New
5489 class.
5490 (node_context_summary): Likewise.
5491 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5492 node_context_clear): New static vars.
5493 (initialize_growth_caches): New function.
5494 (free_growth_caches): Also delete node_context_cache; output stats.
5495 (do_estimate_edge_time): Cache contexts.
5496 (reset_node_cache): New function.
5497 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5498 (inline_small_functions): Initialize growth caches.
5499 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5500 Declare.
5501 * ipa-predicate.h (inline_param_summary::equal_to): New.
5502 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5503 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5504 (ipa_agg_jump_function): Implement equal_to member function.
5505
5506 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5507
5508 * ipa-fnsummary.c (inline_read_section): Set vector size
5509 ahead of time.
5510
5511 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5512
5513 * ipa-fnsummary.c (ipa_call_context): New constructor.
5514 (estimate_node_size_and_time): Turn to ...
5515 (ipa_call_context::estimate_size_and_time): ... this one.
5516 (ipa_call_context::release): New.
5517 * ipa-fnsummary.h (ipa_call_context): New class.
5518 (estimate_node_size_and_time): Remove.
5519 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5520 do_estimate_edge_hints): Update.
5521
5522 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5523
5524 * config.in: Regenerate.
5525 * configure: Regenerate.
5526 * configure.ac: Check for mallinfo.
5527 * ggc-common.c: Include malloc.h if available;
5528 include options.h
5529 (report_heap_memory_use): New functoin.
5530 * ggc-page.c (ggc_grow): Do not print "start".
5531 * ggc.h (report_heap_memory_use): Declare.
5532 * pases.c (execute_one_pass): Report memory after IPA passes.
5533 (ipa_read_summaries_1): Likewise.
5534 (ipa_read_optimization_summaries_1): Likewise.
5535
5536 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5537
5538 * gimplify.h (omp_construct_selector_matches): Change return
5539 type to int, add a new SCORES argument.
5540 * gimplify.c (omp_construct_selector_matches): Likewise. If
5541 SCORES is non-NULL, compute scores of each construct.
5542 * omp-general.h (omp_get_context_selector): Declare.
5543 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5544 Adjust omp_construct_selector_matches callers.
5545 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5546 (omp_context_compute_score): New function.
5547 (omp_resolve_declare_variant): Compute scores and decide based on
5548 that.
5549
5550 PR bootstrap/92314
5551 * configure.ac: Don't look for omp-device-properties files from
5552 installed offloading compilers. Instead add tmake_file snippets
5553 for configured offloading targets and use files they generate.
5554 * Makefile.in (install): Don't depend on
5555 install-omp-device-properties.
5556 (install-omp-device-properties): Remove goal.
5557 * config/i386/t-omp-device: New file.
5558 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5559 * config/nvptx/t-omp-device: New file.
5560 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5561 * configure: Regenerated.
5562
5563 * omp-general.h (omp_context_selector_set_compare): Declare.
5564 * omp-general.c (omp_construct_simd_compare,
5565 omp_context_selector_props_compare, omp_context_selector_set_compare,
5566 omp_context_selector_compare): New functions.
5567 (omp_resolve_declare_variant): Prune variants that are strict subset
5568 of another variant.
5569
5570 2019-11-01 Martin Sebor <msebor@redhat.com>
5571
5572 PR middle-end/91679
5573 PR middle-end/91647
5574 PR middle-end/91463
5575 PR middle-end/92312
5576 * doc/invoke.texi (-Wzero-length-bounds): Document.
5577 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5578 instead of a hand-rolled loop to avoid PR 92323.
5579 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5580 with initializers.
5581 (vrp_prop::check_mem_ref): Handle declared struct objects.
5582 * tree.c (last_field): New function.
5583 (array_at_struct_end_p): Handle MEM_REF.
5584 (get_initializer_for): New helper.
5585 (component_ref_size): Add argument. Rename locals. Call
5586 get_initializer_for instead of fold_ctor_reference. Correct handling
5587 of flexible array members.
5588 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5589
5590 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5591
5592 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5593 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5594 UNSPEC_VSX_CVSPUXDS): Remove.
5595 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5596 (vsx_xvcvspdp_be): ... this. New. And...
5597 (vsx_xvcvspdp_le): ... this. New.
5598 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5599 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5600 (vsx_xvcv<su>xwdp_le): ... this. New.
5601 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5602 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5603 (vsx_xvcvsp<su>xds_le): ... this. New.
5604
5605 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5606
5607 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5608 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5609 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5610 UNSPEC_VSX_XVCVSPSXWS): Remove.
5611 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5612 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5613
5614 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5615
5616 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5617 (UNSPEC_VSX_XVCDPSP): Remove.
5618 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5619 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5620
5621 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5622
5623 * hooks.c (hook_tree_tree_bool_null): New.
5624 * hooks.h (hook_tree_tree_bool_null): Declare.
5625 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5626 (LANG_HOOKS_DECLS): Add it.
5627 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5628 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5629 (lower_omp_target): Handle Fortran array with descriptor in
5630 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5631
5632 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5633
5634 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5635 Assert that the type we store in abi_vector_types is its own
5636 main variant.
5637 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5638
5639 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5640
5641 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5642 from a CONST_INT address when TARGET_THUMB2.
5643
5644 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5645
5646 * config/arm/arm.md (add_not_cin): New insn.
5647 (add_not_shift_cin): Likewise.
5648
5649 2019-10-31 Martin Liska <mliska@suse.cz>
5650
5651 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5652 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5653 and compare_memory_operand.
5654
5655 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5656
5657 * configure.ac: Compute and substitute omp_device_properties and
5658 omp_device_property_deps.
5659 * Makefile.in (generated_files): Add omp-device-properties.h.
5660 (omp-general.o): Depend on omp-device-properties.h.
5661 (omp_device_properties): New make variable.
5662 (omp-device-properties.h, s-omp-device-properties-h,
5663 install-omp-device-properties): New goals.
5664 (install): Depend on install-omp-device-properties for accelerators.
5665 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5666 * target.h (enum omp_device_kind_arch_isa): New enum.
5667 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5668 documentation.
5669 * omp-general.c: Include omp-device-properties.h.
5670 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5671 colon instead of comma.
5672 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5673 functions.
5674 (omp_context_selector_matches): Implement device set arch/isa
5675 selectors, improve device set kind selector handling.
5676 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5677 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5678 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5679 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5680 ix86_omp_device_kind_arch_isa.
5681 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5682 definition from ix86_target_string to file scope.
5683 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5684 to file scope.
5685 (ix86_omp_device_kind_arch_isa): New function.
5686 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5687 isa_opts definitions to file scope.
5688 * config/i386/t-intelmic (omp-device-properties): New goal.
5689 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5690 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5691 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5692 nvptx_omp_device_kind_arch_isa.
5693 * configure: Regenerate.
5694 * doc/tm.texi: Regenerate.
5695
5696 PR middle-end/92231
5697 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5698 DECL_BUILT_IN in comment. Remove redundant ()s around return
5699 argument.
5700 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5701 before calling fndecl_built_in_p.
5702 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5703 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5704 fndecl_built_in_p on it.
5705
5706 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5707
5708 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5709
5710 2019-10-31 Martin Liska <mliska@suse.cz>
5711
5712 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5713 of cgraph_local_info and use local_info_node instead.
5714 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5715 (bfin_function_ok_for_sibcall): Likewise.
5716 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5717 (must_reload_pic_reg_p): Likewise.
5718
5719 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5720
5721 PR c++/90947
5722 * tree.h (type_initializer_zero_p): Remove.
5723 * tree.c (type_initializer_zero_p): Remove.
5724
5725 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5726
5727 * doc/invoke.texi (-Wshadow, -Wshadow=global
5728 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5729
5730 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5731
5732 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5733 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5734 and 'target exit data'.
5735
5736 2019-10-30 Martin Jambor <mjambor@suse.cz>
5737
5738 ipa/92278
5739 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5740 availability comparison.
5741
5742 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5743
5744 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5745 calls to __mspabi_mpy* functions.
5746 * config/msp430/msp430.md (mulhisi3): New define_expand.
5747 (umulhisi3): New define_expand.
5748 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5749 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5750
5751 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5752
5753 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5754 (msp430_check_plus_not_high_mem): New.
5755 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5756 might be in low memory.
5757 Indicate that a 16-bit absolute address is in lower memory.
5758
5759 2019-10-30 Martin Jambor <mjambor@suse.cz>
5760
5761 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5762 ultimate_alias_target.
5763
5764 2019-10-30 Richard Biener <rguenther@suse.de>
5765
5766 PR tree-optimization/92275
5767 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5768 Copy all loop-closed PHIs.
5769
5770 2019-10-30 Martin Liska <mliska@suse.cz>
5771
5772 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5773 const_tree as function argument.
5774 (func_checker::compare_decl): Likewise.
5775 (func_checker::operand_equal_p): Likewise.
5776 (func_checker::compare_variable_decl): Likewise.
5777 (func_checker::parse_labels): Likewise.
5778 * ipa-icf-gimple.h: Likewise.
5779
5780 2019-10-30 Martin Liska <mliska@suse.cz>
5781
5782 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5783 Do not compare alias sets. It's handled by operand_equal_p.
5784
5785 2019-10-30 Martin Liska <mliska@suse.cz>
5786
5787 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5788 initialize m_compare_polymorphic.
5789 (func_checker::compare_decl): Do not compare polymorphic types.
5790 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5791 * ipa-icf.c (sem_function::equals_private): Do not call
5792 compare_polymorphic_p.
5793
5794 2019-10-30 Martin Liska <mliska@suse.cz>
5795
5796 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5797 compare_operand.
5798 (func_checker::compare_memory_operand): Remove.
5799 (func_checker::compare_cst_or_decl): Remove.
5800 (func_checker::operand_equal_valueize): Do not handle
5801 FIELD_DECL.
5802 (func_checker::compare_gimple_call): Call compare_operand.
5803 (func_checker::compare_gimple_assign): Likewise.
5804 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5805 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5806 * ipa-icf.h (icf_handled_component_p): Remove.
5807
5808 2019-10-30 Martin Liska <mliska@suse.cz>
5809
5810 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5811 (func_checker::compare_cst_or_decl): Remove handling
5812 of FIELD_DECL.
5813 (func_checker::compare_operand): Transform to ...
5814 (func_checker::operand_equal_p): ... this.
5815 * ipa-icf-gimple.h (class func_checker): Add
5816 operand_equal_p and hash_operand.
5817 * ipa-icf.c (sem_function::equals_private): Fix
5818 pushing and popping of cfun.
5819
5820 2019-10-30 Martin Liska <mliska@suse.cz>
5821
5822 * fold-const.c (operand_equal_p): Move to ...
5823 (operand_compare::operand_equal_p): ... here.
5824 (operand_compare::verify_hash_value): New.
5825 (add_expr): Move to ...
5826 (operand_compare::hash_operand): ... here.
5827 * fold-const.h (operand_equal_p): Move to the class.
5828 (class operand_compare): New.
5829 * tree.c (add_expr): Remove.
5830
5831 2019-10-30 Martin Liska <mliska@suse.cz>
5832
5833 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5834 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5835
5836 2019-10-30 Martin Liska <mliska@suse.cz>
5837
5838 PR lto/91393
5839 PR lto/88220
5840 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5841 from a first_clone in order to get proper LTO section
5842 in LTO stream.
5843 (cgraph_node::get_untransformed_body):
5844 Use lto_get_section_data where symtab_node::order
5845 must be provided.
5846 * cgraphclones.c (cgraph_node::find_replacement):
5847 Update also symbol order.
5848 * ipa-fnsummary.c (ipa_fn_summary_read):
5849 Use new function lto_get_summary_section_data.
5850 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5851 * ipa-icf.c (sem_item_optimizer::read_summary):
5852 Likewise.
5853 * ipa-prop.c (ipa_prop_read_jump_functions):
5854 Likewise.
5855 (ipcp_read_transformation_summaries): Likewise.
5856 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5857 * lto-cgraph.c (input_node): Add also order_base.
5858 (input_varpool_node): Likewise.
5859 (input_cgraph_1): Assign the order_base.
5860 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5861 * lto-opts.c (lto_write_options): Pass new argument.
5862 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5863 (lto_get_summary_section_data): New.
5864 (lto_get_raw_section_data): Add order argument.
5865 (lto_create_simple_input_block): Likewise.
5866 * lto-section-out.c (lto_destroy_simple_output_block):
5867 Likewise.
5868 * lto-streamer-in.c (lto_input_toplevel_asms):
5869 Use lto_get_summary_section_data.
5870 (lto_input_mode_table): Likewise.
5871 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5872 (lto_output_toplevel_asms): Pass new argument.
5873 (copy_function_or_variable): Likewise.
5874 (produce_lto_section):Likewise.
5875 (produce_symtab): Likewise.
5876 (lto_write_mode_table): Likewise.
5877 (produce_asm_for_decls): Likewise.
5878 * lto-streamer.c (lto_get_section_name): Concat symbol name
5879 and symbol order.
5880 * lto-streamer.h (lto_get_section_data): Add order argument.
5881 (lto_get_summary_section_data): New.
5882 (lto_get_raw_section_data): Add order argument.
5883 (lto_get_section_name): Likewise.
5884 * varpool.c (varpool_node::get_constructor): Pass order argument.
5885
5886 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5887
5888 PR tree-optimization/92262
5889 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5890 ubase or cbase here.
5891 (remove_unused_ivs): Unshare comp before using it.
5892
5893 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5894
5895 * ipa-prop.c (update_jump_functions_after_inlining):
5896 Watch for missing summaries.
5897
5898 2019-10-30 Richard Biener <rguenther@suse.de>
5899
5900 PR tree-optimization/65930
5901 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5902 chains also allow a leading and trailing conversion.
5903 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5904 intermediate reduction chains.
5905 (vect_analyze_slp_instance): Likewise. Build a SLP
5906 node for a trailing conversion manually.
5907
5908 2019-10-30 Martin Liska <mliska@suse.cz>
5909
5910 * cgraph.c (cgraph_node::local_info): Transform to ...
5911 (cgraph_node::local_info_node): ... this.
5912 (cgraph_node::dump): Remove cgraph_local_info and
5913 put its fields directly into cgraph_node.
5914 (cgraph_node::get_availability): Likewise.
5915 (cgraph_node::make_local): Likewise.
5916 (cgraph_node::verify_node): Likewise.
5917 * cgraph.h (struct GTY): Likewise.
5918 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5919 (duplicate_thunk_for_node): Likewise.
5920 (cgraph_node::create_clone): Likewise.
5921 (cgraph_node::create_virtual_clone): Likewise.
5922 (cgraph_node::create_version_clone): Likewise.
5923 * cgraphunit.c (cgraph_node::reset): Likewise.
5924 (cgraph_node::finalize_function): Likewise.
5925 (cgraph_node::add_new_function): Likewise.
5926 (analyze_functions): Likewise.
5927 * combine.c (setup_incoming_promotions): Likewise.
5928 * config/i386/i386.c (ix86_function_regparm): Likewise.
5929 (ix86_function_sseregparm): Likewise.
5930 (init_cumulative_args): Likewise.
5931 * ipa-cp.c (determine_versionability): Likewise.
5932 (count_callers): Likewise.
5933 (set_single_call_flag): Likewise.
5934 (initialize_node_lattices): Likewise.
5935 (estimate_local_effects): Likewise.
5936 (create_specialized_node): Likewise.
5937 (identify_dead_nodes): Likewise.
5938 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5939 (ipa_fn_summary_generate): Likewise.
5940 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5941 (process_hsa_functions): Likewise.
5942 * ipa-icf.c (set_local): Likewise.
5943 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5944 * ipa-inline.c (speculation_useful_p): Likewise.
5945 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5946 (ipa_profile): Likewise.
5947 * ipa-split.c (split_function): Likewise.
5948 (execute_split_functions): Likewise.
5949 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5950 (ipa_sra_ipa_function_checks): Likewise.
5951 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5952 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5953 * lto-cgraph.c (lto_output_node): Likewise.
5954 (input_overwrite_node): Likewise.
5955 * multiple_target.c (expand_target_clones): Likewise.
5956 * omp-simd-clone.c (simd_clone_create): Likewise.
5957 * trans-mem.c (expand_call_tm): Likewise.
5958 (ipa_tm_mayenterirr_function): Likewise.
5959 (ipa_tm_diagnose_tm_safe): Likewise.
5960 (ipa_tm_diagnose_transaction): Likewise.
5961 (ipa_tm_create_version): Likewise.
5962 (ipa_tm_transform_calls_redirect): Likewise.
5963 (ipa_tm_execute): Likewise.
5964 * tree-inline.c (expand_call_inline): Likewise.
5965
5966 2019-10-29 Martin Liska <mliska@suse.cz>
5967
5968 * symbol-summary.h (function_summary): Pass memory location
5969 to underlaying hash_map (or vec).
5970 (V>::fast_function_summary): Likewise.
5971
5972 2019-10-29 Martin Liska <mliska@suse.cz>
5973
5974 * ggc.h (ggc_alloc_no_dtor): New function.
5975 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5976 destructor and ggc_free.
5977 (ipa_free_size_summary): Call delete instead
5978 of release.
5979 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5980 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5981 (ipa_free_all_edge_args): Call destructor and ggc_free.
5982 (ipa_free_all_node_params): Likewise.
5983 (ipcp_free_transformation_sum): Likewise.
5984 * ipa-prop.h (ipa_check_create_node_params):
5985 Call new ggc_alloc_no_dtor.
5986 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5987 (ipa_sra_analysis): Call destructor and ggc_free.
5988 Replace release with delete operator.
5989 * symbol-summary.h (release): Remove ..
5990 (V>::~fast_function_summary): and move logic here.
5991 Likewise for other classes.
5992
5993 2019-10-29 Richard Biener <rguenther@suse.de>
5994
5995 PR tree-optimization/92260
5996 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5997 lane-reducing ops.
5998
5999 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6000
6001 PR tree-optimization/88915
6002 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6003 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6004 and make the valueize function pointer also take a void pointer.
6005 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6006 around vn_valueize, to call it without a context.
6007 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6008 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6009 (~_loop_vec_info): Release epilogue_vinfos.
6010 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6011 number of iterations of epilogue.
6012 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6013 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6014 versioning threshold needed for main loop.
6015 (vect_analyze_loop): Likewise.
6016 (find_in_mapping): New helper function.
6017 (update_epilogue_loop_vinfo): New function.
6018 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6019 on main loop and call update_epilogue_loop_vinfo to update it.
6020 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6021 stmts on loop preheader edge.
6022 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6023 we decided to vectorize epilogues. Update epilogues NITERS and
6024 construct ADVANCE to update epilogues data references where needed.
6025 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6026 (vect_do_peeling, vect_update_inits_of_drs,
6027 determine_peel_for_niter, vect_analyze_loop): Add or update
6028 declarations.
6029 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6030 created loop_vec_info's for epilogues when available. Otherwise analyse
6031 epilogue separately.
6032
6033 2019-10-29 Richard Biener <rguenther@suse.de>
6034
6035 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6036 example.
6037
6038 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6039
6040 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6041 index for the COND_EXPR from stmt_info rather than reduc_info.
6042
6043 2019-10-29 Richard Biener <rguenther@suse.de>
6044
6045 PR tree-optimization/65930
6046 * tree-vect-loop.c (check_reduction_path): Relax single-use
6047 check allowing out-of-loop uses.
6048 (vect_is_simple_reduction): SLP reduction chains cannot have
6049 intermediate stmts used outside of the loop.
6050 (vect_create_epilog_for_reduction): The adjustment might need
6051 to be converted.
6052 (vectorizable_reduction): Annotate live stmts of the reduction
6053 chain with STMT_VINFO_REDUC_DEF.
6054 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6055
6056 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6057
6058 * calls.c (pass_by_reference): Leave the target to decide whether
6059 POLY_INT_CST-sized arguments should be passed by value or reference,
6060 rather than forcing them to be passed by reference.
6061 (must_pass_in_stack_var_size): Likewise.
6062 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6063 V31_REGNUM to P15_REGNUM.
6064 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6065 Take an extra "silent_p" parameter, defaulting to false.
6066 (aarch64_sve::svbool_type_p): Declare.
6067 (aarch64_sve::nvectors_if_data_type): Likewise.
6068 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6069 (aarch64_frame::reg_offset): Turn into poly_int64s.
6070 (aarch64_frame::save_regs_size): Likewise.
6071 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6072 (aarch64_frame::sve_callee_adjust): Likewise.
6073 (aarch64_frame::spare_reg_reg): Likewise.
6074 (ARM_PCS_SVE): New arm_pcs value.
6075 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6076 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6077 (CUMULATIVE_ARGS::silent_p): Likewise.
6078 (BITS_PER_SVE_PRED): New macro.
6079 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6080 function. Reject aarch64_vector_pcs attributes on SVE functions.
6081 (aarch64_attribute_table): Use the above handler.
6082 (aarch64_sve_abi): New function.
6083 (aarch64_sve_argument_p): Likewise.
6084 (aarch64_returns_value_in_sve_regs_p): Likewise.
6085 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6086 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6087 descriptor for them.
6088 (aarch64_simd_decl_p): Delete.
6089 (aarch64_emit_cfi_for_reg_p): New function.
6090 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6091 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6092 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6093 as partly clobbered for the SVE PCS.
6094 (aarch64_function_ok_for_sibcall): Check whether the two functions
6095 use the same ABI, rather than checking specifically for whether
6096 they're aarch64_vector_pcs functions.
6097 (aarch64_pass_by_reference): Raise an error for attempts to pass
6098 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6099 if there are not enough free registers left, or if the argument is
6100 variadic.
6101 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6102 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6103 tuples in memory.
6104 (aarch64_layout_arg): Take a function_arg_info rather than
6105 individual properties. Handle SVE predicates, vectors and tuples.
6106 Raise an error if they are passed to unprototyped functions.
6107 (aarch64_function_arg): If the silent_p flag is set, suppress the
6108 usual error about using float registers without TARGET_FLOAT.
6109 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6110 it in the cumulative_args structure. Initialize aapcs_nprn and
6111 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6112 error about using float registers without TARGET_FLOAT.
6113 If the silent_p flag is not set, also raise an error about
6114 using SVE functions when SVE is disabled.
6115 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6116 and call it for SVE functions too. Update aapcs_nprn similarly
6117 to the other register counts.
6118 (aarch64_layout_frame): If a big-endian function needs to save
6119 and restore Z8-Z15, search for a spare predicate that it can use.
6120 Store SVE predicates at the bottom of the register save area,
6121 followed by SVE vectors, then followed by the normal slots.
6122 Keep pointing the hard frame pointer at the base of the normal slots,
6123 above the SVE vectors. Update the various frame creation and
6124 tear-down strategies for the new layout, initializing the new
6125 sve_callee_adjust field. Add an additional layout for frames
6126 whose saved registers are all SVE registers.
6127 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6128 (aarch64_return_address_signing_enabled): Likewise.
6129 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6130 aarch64_reg_save_mode.
6131 (aarch64_adjust_sve_callee_save_base): New function.
6132 (aarch64_add_cfa_expression): Move earlier in file. Take the
6133 saved register as an rtx rather than a register number and use
6134 its mode for the MEM slot.
6135 (aarch64_save_callee_saves): Remove the mode argument and instead
6136 use aarch64_reg_save_mode to get the mode of each save slot.
6137 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6138 offsets. Allow GP offsets to be saved at a VL-based offset from
6139 the stack, handling this case using the frame pointer if available
6140 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6141 big-endian SVE functions; use normal moves for other SVE saves.
6142 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6143 returns true. Add explicit CFA notes when not storing via the
6144 stack pointer. Do not try to pair SVE saves.
6145 (aarch64_restore_callee_saves): Cope with poly_int64 register
6146 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6147 use normal moves for other SVE restores. Only add CFA restore notes
6148 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6149 SVE restores.
6150 (aarch64_get_separate_components): Always keep the first SVE save
6151 in the prologue if we need to use it as a stack probe. Don't allow
6152 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6153 Likewise the spare predicate register that they need. Update the
6154 offset calculation to account for the SVE save area. Use the
6155 appropriate range check for SVE LDR and STR instructions.
6156 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6157 (aarch64_process_components): Likewise. Update the offset
6158 calculation to account for the SVE save area. Only mark the
6159 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6160 Do not try to pair SVE saves.
6161 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6162 reg_offsets. When handling the final allocation, expect the
6163 first SVE register save to be part of the initial allocation
6164 and for it to act as a probe at SP. Account for the SVE callee
6165 save area in the dump information.
6166 (aarch64_expand_prologue): Update the frame diagram. Fold the
6167 SVE callee allocation into the initial allocation if stack clash
6168 protection is enabled. Use new variables to track the offset
6169 of the frame chain (and hard frame pointer) from the current
6170 stack pointer, and likewise the offset of the bottom of the
6171 register save area. Update calls to aarch64_save_callee_saves
6172 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6173 saving the FP&SIMD registers. Save the predicate registers.
6174 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6175 into account when setting the stack pointer from the frame pointer,
6176 and when deciding whether we can inherit the initial adjustment
6177 amount from the prologue. Restore the predicate registers after
6178 the vector registers, then apply sve_callee_adjust, then restore
6179 the general registers.
6180 (aarch64_secondary_reload): Don't use secondary SVE reloads
6181 for VNx16BImode.
6182 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6183 (aarch64_short_vector_p): Return false for SVE types.
6184 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6185 at the start of the function. Return false for SVE types.
6186 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6187 functions too.
6188 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6189 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6190 to big-endian targets for bytewise moves.
6191 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6192
6193 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6194 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6195 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6196
6197 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6198 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6199 aarch64-sve-builtins-base.o to extra_objs. Add
6200 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6201 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6202 (aarch64-sve-builtins-shapes.o): Likewise.
6203 (aarch64-sve-builtins-base.o): New rules.
6204 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6205 (aarch64_resolve_overloaded_builtin): Likewise.
6206 (aarch64_check_builtin_call): Likewise.
6207 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6208 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6209 pragma.
6210 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6211 (aarch64_svprfop): New enum.
6212 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6213 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6214 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6215 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6216 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6217 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6218 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6219 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6220 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6221 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6222 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6223 (aarch64_sve::mangle_builtin_type): Likewise.
6224 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6225 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6226 (aarch64_sve::expand_builtin): Likewise.
6227 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6228 (aarch64_sve_int_mode): Likewise.
6229 (aarch64_ptrue_all_mode): New function.
6230 (aarch64_convert_sve_data_to_pred): Make public.
6231 (svprfop_token): New function.
6232 (aarch64_output_sve_prefetch): Likewise.
6233 (aarch64_fold_sve_cnt_pat): Likewise.
6234 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6235 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6236 instead of gen_while_ult.
6237 (aarch64_replace_reg_mode): Make public.
6238 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6239 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6240 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6241 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6242 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6243 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6244 (aarch64_sve_ptrue_svpattern_p): Likewise.
6245 (aarch64_sve_pred_valid_immediate): Check
6246 aarch64_sve_ptrue_svpattern_p.
6247 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6248 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6249 functions.
6250 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6251 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6252 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6253 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6254 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6255 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6256 New unspecs.
6257 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6258 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6259 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6260 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6261 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6262 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6263 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6264 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6265 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6266 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6267 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6268 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6269 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6270 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6271 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6272 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6273 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6274 (Vesize): Handle partial vector modes.
6275 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6276 mode attributes.
6277 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6278 iterators.
6279 (s, paired_extend, inc_dec): New code attributes.
6280 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6281 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6282 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6283 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6284 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6285 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6286 UNSPEC_COND_FMULX.
6287 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6288 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6289 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6290 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6291 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6292 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6293 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6294 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6295 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6296 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6297 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6298 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6299 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6300 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6301 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6302 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6303 UNSPEC_COND_FSCALE.
6304 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6305 (binqops_op, binqops_op_rev, last_op): New int attributes.
6306 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6307 (fn, ab): New int attributes.
6308 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6309 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6310 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6311 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6312 UNSPEC_RBIT.
6313 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6314 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6315 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6316 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6317 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6318 UNSPEC_COND_FMULX.
6319 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6320 (brk_reg_con, brk_reg_opno): New int attributes.
6321 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6322 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6323 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6324 UNSPEC_COND_FMIN.
6325 (max_elem_bits): New int attribute.
6326 (min_elem_bits): Handle UNSPEC_RBIT.
6327 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6328 TRUNCATE as well as SUBREG.
6329 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6330 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6331 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6332 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6333 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6334 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6335 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6336 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6337 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6338 (aarch64_gather_scale_operand_h): New predicates.
6339 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6340 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6341 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6342 (*aarch64_sve_reinterpret<mode>): Allow any source register
6343 instead of requiring an exact match.
6344 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6345 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6346 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6347 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6348 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6349 (aarch64_update_ffrt): New patterns.
6350 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6351 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6352 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6353 (@aarch64_ld<fn>f1<mode>): New patterns.
6354 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6355 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6356 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6357 (@aarch64_ldnt1<mode>): New patterns.
6358 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6359 the scalar part of the address.
6360 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6361 scalar part of the addresse and add an alternative for handling
6362 nonzero offsets.
6363 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6364 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6365 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6366 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6367 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6368 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6369 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6370 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6371 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6372 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6373 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6374 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6375 (@aarch64_sve_prefetch<mode>): New patterns.
6376 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6377 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6378 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6379 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6380 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6381 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6382 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6383 (@aarch64_stnt1<mode>): New patterns.
6384 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6385 the scalar part of the address.
6386 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6387 the scalar part of the addresse and add an alternative for handling
6388 nonzero offsets.
6389 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6390 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6391 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6392 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6393 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6394 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6395 New patterns.
6396 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6397 (extract_last_<mode>): Generalize to...
6398 (@extract_<LAST:last_op>_<mode>): ...this.
6399 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6400 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6401 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6402 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6403 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6404 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6405 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6406 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6407 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6408 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6409 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6410 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6411 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6412 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6413 (*aarch64_adr_uxtw_unspec): Likewise.
6414 (*aarch64_adr_uxtw): Rename to...
6415 (*aarch64_adr_uxtw_and): ...this.
6416 (@aarch64_adr<mode>_shift): New expander.
6417 (*aarch64_adr_shift_sxtw): New pattern.
6418 (aarch64_<su>abd<mode>_3): Rename to...
6419 (@aarch64_pred_<su>abd<mode>): ...this.
6420 (<su>abd<mode>_3): Update accordingly.
6421 (@aarch64_cond_<su>abd<mode>): New expander.
6422 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6423 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6424 (*<su>mul<mode>3_highpart): Rename to...
6425 (@aarch64_pred_<optab><mode>): ...this.
6426 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6427 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6428 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6429 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6430 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6431 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6432 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6433 (*v<ASHIFT:optab><mode>3): Rename to...
6434 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6435 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6436 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6437 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6438 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6439 (@cond_asrd<mode>): New expander.
6440 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6441 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6442 (*sdiv_pow2<mode>3): Delete.
6443 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6444 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6445 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6446 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6447 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6448 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6449 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6450 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6451 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6452 (*add<SVE_F:mode>3): Rename to...
6453 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6454 for SVE_STRICT_GP.
6455 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6456 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6457 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6458 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6459 (*sub<SVE_F:mode>3): Rename to...
6460 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6461 for SVE_STRICT_GP.
6462 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6463 (*fabd<SVE_F:mode>3): Rename to...
6464 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6465 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6466 (*mul<SVE_F:mode>3): Rename to...
6467 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6468 for SVE_STRICT_GP.
6469 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6470 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6471 to...
6472 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6473 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6474 (*<nlogical><PRED_ALL:mode>3): Rename to...
6475 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6476 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6477 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6478 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6479 (aarch64_pred_<logical_nn><mode>_z): ...this.
6480 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6481 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6482 (*fma<SVE_I:mode>4): Rename to...
6483 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6484 (*fnma<SVE_I:mode>4): Rename to...
6485 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6486 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6487 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6488 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6489 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6490 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6491 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6492 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6493 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6494 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6495 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6496 (@aarch64_sve_tmad<mode>): Likewise.
6497 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6498 (*aarch64_sel_dup<mode>): Rename to...
6499 (@aarch64_sel_dup<mode>): ...this.
6500 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6501 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6502 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6503 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6504 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6505 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6506 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6507 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6508 (*fcm<cmp_op><mode>): Rename to...
6509 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6510 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6511 (*fcmuo<mode>): Rename to...
6512 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6513 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6514 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6515 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6516 (fold_extract_last_<mode>): Generalize to...
6517 (@fold_extract_<last_op>_<mode>): ...this.
6518 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6519 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6520 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6521 DImode result explicit.
6522 (reduc_plus_scal_<mode>): Update accordingly.
6523 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6524 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6525 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6526 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6527 (*aarch64_sve_tbl<mode>): Rename to...
6528 (@aarch64_sve_tbl<mode>): ...this.
6529 (@aarch64_sve_compact<mode>): New pattern.
6530 (*aarch64_sve_dup_lane<mode>): Rename to...
6531 (@aarch64_sve_dup_lane<mode>): ...this.
6532 (@aarch64_sve_dupq_lane<mode>): New pattern.
6533 (@aarch64_sve_splice<mode>): Likewise.
6534 (aarch64_sve_<perm_insn><mode>): Rename to...
6535 (@aarch64_sve_<perm_insn><mode>): ...this.
6536 (*aarch64_sve_ext<mode>): Rename to...
6537 (@aarch64_sve_ext<mode>): ...this.
6538 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6539 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6540 to...
6541 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6542 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6543 Rename to...
6544 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6545 ...this.
6546 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6547 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6548 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6549 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6550 to...
6551 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6552 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6553 a "@" marker.
6554 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6555 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6556 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6557 pattern.
6558 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6559 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6560 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6561 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6562 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6563 "@" marker.
6564 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6565 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6566 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6567 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6568 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6569 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6570 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6571 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6572 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6573 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6574 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6575 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6576 (aarch64_sve_cnt_pat): Likewise.
6577 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6578 (*aarch64_sve_incsi_pat): Likewise.
6579 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6580 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6581 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6582 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6583 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6584 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6585 (*aarch64_sve_decsi_pat): Likewise.
6586 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6587 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6588 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6589 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6590 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6591 (@aarch64_pred_cntp<mode>): Likewise.
6592 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6593 New expander.
6594 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6595 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6596 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6597 New expander.
6598 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6599 New pattern.
6600 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6601 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6602 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6603 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6604 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6605 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6606 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6607 New expander.
6608 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6609 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6610 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6611 New expander.
6612 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6613 New pattern.
6614 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6615 expander.
6616 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6617 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6618 expander.
6619 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6620 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6621 expander.
6622 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6623 * config/aarch64/arm_sve.h: New file.
6624 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6625 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6626 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6627 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6628 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6629 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6630 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6631 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6632 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6633
6634 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6635
6636 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6637 New pattern.
6638 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6639 SVE modes.
6640
6641 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6642
6643 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6644 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6645 FFRT_REGNUM + 1.
6646 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6647 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6648 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6649 (aarch64_hard_regno_nregs): Handle the new register classes.
6650 (aarch64_hard_regno_mode_ok): Likewise.
6651 (aarch64_regno_regclass): Likewise.
6652 (aarch64_class_max_nregs): Likewise.
6653 (aarch64_register_move_cost): Likewise.
6654 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6655 as general register_operands.
6656
6657 2019-10-29 Martin Liska <mliska@suse.cz>
6658
6659 * ggc-common.c: One can't subtract unsigned types
6660 in compare function.
6661
6662 2019-10-29 Martin Liska <mliska@suse.cz>
6663
6664 * cgraphunit.c (symbol_table::compile): Pass
6665 title as dump_memory_report argument.
6666 * toplev.c (dump_memory_report): New argument.
6667 (finalize): Pass new argument.
6668 * toplev.h (dump_memory_report): Add argument.
6669
6670 2019-10-29 Martin Liska <mliska@suse.cz>
6671
6672 * ggc-common.c: Move Leak to the first column.
6673
6674 2019-10-29 Martin Liska <mliska@suse.cz>
6675
6676 * cgraphunit.c (symbol_table::compile): Remove argument
6677 for dump_memory_report.
6678 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6679 (compare_final): Remove in order to make report
6680 better readable.
6681 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6682 * mem-stats.h (mem_alloc_description::get_list):
6683 Do not pass cmp.
6684 (mem_alloc_description::dump): Likewise here.
6685 * toplev.c (dump_memory_report): Remove final
6686 argument.
6687 (finalize): Likewise.
6688 * toplev.h (dump_memory_report): Remove argument.
6689
6690 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6691
6692 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6693 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6694 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6695 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6696 accept "const".
6697
6698 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6699
6700 * coretypes.h (string_int_pair): New typedef.
6701 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6702 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6703 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6704
6705 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6706
6707 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6708 (simulate_builtin_function_decl): Declare.
6709 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6710 (LANG_HOOKS_INITIALIZER): Include it.
6711 * langhooks.c (add_builtin_function_common): Rename to...
6712 (build_builtin_function): ...this. Add a location parameter and use
6713 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6714 the decl instead.
6715 (add_builtin_function): Update accordingly, passing the returned
6716 decl to the lang hook.
6717 (add_builtin_function_ext_scope): Likewise
6718 (simulate_builtin_function_decl): New function.
6719
6720 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6721
6722 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6723 example, use actual names of supported offload targets.
6724
6725 PR target/92258
6726 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6727
6728 2019-10-28 Martin Sebor <msebor@redhat.com>
6729
6730 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6731 (handle_store): Pass argument to get_addr_stridx.
6732
6733 2019-10-28 Martin Sebor <msebor@redhat.com>
6734
6735 PR tree-optimization/92226
6736 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6737 the offset is in the open range outlined by SI's length.
6738
6739 2019-10-28 Martin Sebor <msebor@redhat.com>
6740
6741 PR c/66970
6742 * doc/cpp.texi (__has_builtin): Document.
6743 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6744
6745 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6746
6747 PR target/82981
6748 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6749 doubleword and low doubleword result of multiplication on
6750 MIPS64R6.
6751
6752 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6753 pure qualifier to the built-in.
6754 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6755 built-ins.
6756 (struct mips_builtin_description): Add is_pure flag.
6757 (mips_init_builtins): Mark built-in as pure if the flag in the
6758 corresponding mips_builtin_description struct is set.
6759
6760 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6761 alternative which covers the floating-point input value. Also
6762 forbid the split of insert.d pattern for floating-point values.
6763
6764 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6767 * config/riscv/riscv-sr.c: New file.
6768 * config/riscv/riscv.c (riscv_reorg): New function.
6769 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6770 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6771 (riscv_remove_unneeded_save_restore_calls): Declare.
6772 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6773
6774 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6775
6776 PR tree-optimization/92163
6777 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6778 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6779 before calling bitmap_set_bit.
6780 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6781 delete_dead_or_redundant_assignment.
6782 (dse_dom_walker::dse_optimize_stmt): Likewise.
6783 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6784
6785 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6786
6787 PR middle-end/91272
6788 * tree-vect-stmts.c (vectorizable_condition): Support
6789 EXTRACT_LAST_REDUCTION with fully-masked loops.
6790
6791 2019-10-28 Richard Biener <rguenther@suse.de>
6792
6793 PR tree-optimization/92252
6794 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6795 STMT_VINFO_REDUC_IDX when swapping operands.
6796
6797 2019-10-28 Richard Biener <rguenther@suse.de>
6798
6799 PR tree-optimization/92241
6800 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6801 we failed to update the reduction index do not use the pattern
6802 stmts for the reduction chain.
6803 (vectorizable_reduction): When the reduction chain is corrupt,
6804 fail.
6805 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6806 fail to update the reduction chain.
6807
6808 2019-10-28 Richard Biener <rguenther@suse.de>
6809
6810 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6811 STMT_VINFO_REDUC_IDX from the actual stmt.
6812 (vect_transform_reduction): Likewise.
6813 (vectorizable_reduction): Compute the reduction chain length,
6814 do not recompute the reduction operand index. Remove no longer
6815 necessary restriction for condition reduction chains.
6816
6817 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6818
6819 PR target/92225
6820 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6821 condition for V2DImode.
6822
6823 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6824
6825 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6826 Remove %k operand modifier.
6827 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6828
6829 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6830
6831 PR rtl-optimization/92007
6832 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6833 call it after reload if hot/cold partitioning has been done.
6834 (class pass_postreload_jump): Rename to
6835 pass_jump_after_combine.
6836 (make_pass_postreload_jump): Rename to
6837 make_pass_jump_after_combine.
6838 * passes.def(pass_postreload_jump): Move before reload, rename
6839 to pass_jump_after_combine.
6840 * tree-pass.h (make_pass_postreload_jump): Rename to
6841 make_pass_jump_after_combine.
6842
6843 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6844
6845 PR ipa/92242
6846 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6847 for missing EDGE_REF
6848 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6849
6850 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6851
6852 PR tree-optimization/88760
6853 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6854 Enable -funroll-loops for -O2 and above.
6855 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6856 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6857 do not turn on web and rngreg implicitly, if the unroller is not
6858 explicitly enabled.
6859
6860 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6861
6862 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6863 jump functions.
6864
6865 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6866
6867 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6868 * cgraph.h (cgraph_node::rtl_info): Likewise.
6869
6870 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6871
6872 * ipa-cp.c (propagate_constants_across_call): If args are not available
6873 just drop everything to varying.
6874 (find_aggregate_values_for_callers_subset): Watch for missing
6875 edge summary.
6876 (find_more_scalar_values_for_callers_subs): Likewise.
6877 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6878 update_jump_functions_after_inlining, propagate_controlled_uses):
6879 Watch for missing summaries.
6880 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6881 is finished.
6882 (ipa_write_node_info): Watch for missing summaries.
6883 (ipa_read_edge_info): Create new ref.
6884 (ipa_edge_args_sum_t): Add remove.
6885 (IPA_EDGE_REF_GET_CREATE): New macro.
6886 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6887 edge summary.
6888 (remap_edge_change_prob): Likewise.
6889
6890 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6891
6892 * ipa-inline-transform.c (inline_call): update function summaries
6893 after expanidng thunk.
6894
6895 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6896
6897 * ipa-icf.c (sem_function::merge): Update function summaries.
6898 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6899
6900 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6901
6902 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6903 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6904 operand already has scalar mode.
6905 (iptr): Remove SF/DF.
6906
6907 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6908
6909 PR target/91289
6910 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6911 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6912 this.
6913
6914 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6915
6916 * config/i386/sse.md
6917 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6918 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6919 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6920 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6921 <sse>_vmmaskcmp<mode>3):
6922 Change predicates from vector_operand to nonimmediate_operand,
6923 constraints xBm to xm, since scalar operations don't need
6924 memory address alignment.
6925 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6926 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6927 round_saeonly_nimm_predicate with
6928 round_saeonly_nimm_scalar_predicate.
6929 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6930 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6931 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6932 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6933 avx512f_vmfmadd_<mode>_mask3<round_name>,
6934 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6935 *avx512f_vmfmsub_<mode>_mask<round_name>,
6936 avx512f_vmfmsub_<mode>_mask3<round_name>,
6937 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6938 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6939 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6940 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6941 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6942 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6943 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6944 cvtusi2<ssescalarmodesuffix>32<round_name>,
6945 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6946 round_nimm_predicate with round_nimm_scalr_predicate.
6947 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6948 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6949 avx512er_vmrcp28<mode><round_saeonly_name>,
6950 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6951 ): Replace round_saeonly_nimm_predicate with
6952 round_saeonly_nimm_scalar_predicate.
6953 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6954 vector_operand with nonimmediate_operand.
6955 * config/i386/subst.md (round_scalar_nimm_predicate,
6956 round_saeonly_scalar_nimm_predicate): Replace
6957 vector_operand with nonimmediate_operand.
6958
6959 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6960
6961 PR target/89071
6962 * config/i386/i386.md (*rcpsf2_sse): Add
6963 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6964 (*rsqrtsf2_sse): Ditto.
6965 (*sqrt<mode>2_sse): Ditto.
6966 (sse4_1_round<mode>2): separate constraint vm, add
6967 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6968 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6969 by pass rpad.
6970 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6971 Ditto.
6972 (*sse_vmrsqrtv4sf2): Ditto.
6973 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6974 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6975 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6976 <iptr> pointer size modifier since vround support memory operand.
6977
6978 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6979
6980 PR target/85969
6981 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6982 static function.
6983
6984 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6985 Tobias Burnus <tobias@codesourcery.com>
6986
6987 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6988 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6989 common block decls.
6990
6991 2019-10-25 Richard Biener <rguenther@suse.de>
6992
6993 PR tree-optimization/92222
6994 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6995 (_slp_oprnd_info::second_pattern): Likewise.
6996 (_slp_oprnd_info::any_pattern): New.
6997 (vect_create_oprnd_info): Adjust.
6998 (vect_get_and_check_slp_defs): Compute whether any stmt is
6999 in a pattern.
7000 (vect_build_slp_tree_2): Avoid building up a node from scalars
7001 if any of the operand defs, not just the first, is in a pattern.
7002
7003 2019-10-25 Richard Biener <rguenther@suse.de>
7004
7005 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7006 swapping if we actually have to modify the IL on a shared stmt.
7007 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7008 because we no longer modify the IL.
7009
7010 2019-10-25 Martin Liska <mliska@suse.cz>
7011
7012 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7013
7014 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7015
7016 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7017 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7018 handled by vect_transform_reduction. Allow fully-masked loops
7019 to be used with reduction chains.
7020 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7021 operations in fully-masked loops.
7022 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7023 operations in fully-masked loops.
7024
7025 2019-10-25 Richard Biener <rguenther@suse.de>
7026
7027 * tree-vect-loop.c (vectorizable_reduction): Verify
7028 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7029 correctly.
7030 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7031 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7032 stmts.
7033
7034 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7035
7036 * gimplify.h (omp_construct_selector_matches): Declare.
7037 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7038 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7039 called function if needed for flag_openmp.
7040 (gimplify_scan_omp_clauses): Set ctx->code.
7041 (omp_construct_selector_matches): New function.
7042 * omp-general.h (omp_constructor_traits_to_codes,
7043 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7044 * omp-general.c (omp_constructor_traits_to_codes,
7045 omp_context_selector_matches, omp_resolve_declare_variant): New
7046 functions.
7047
7048 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7049 literal.
7050 * config/rx/rx.c (rx_print_operand): Likewise.
7051 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7052 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7053 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7054 Likewise.
7055 * genemit.c (emit_c_code): Likewise.
7056 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7057
7058 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7059
7060 * symbols-summary.h (fast_function_summary<T *, V>::release,
7061 fast_call_summary<T *, V>::release): Free m_vector.
7062
7063 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7064
7065 * cgraphunit.c (symbol_table::process_new_functions): Call
7066 ipa_free_size_summary.
7067 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7068 (devirtualization_time_bonus): Update.
7069 (ipcp_propagate_stage): Update.
7070 * ipa-fnsummary.c (ipa_size_summaries): New.
7071 (ipa_fn_summary_alloc): Alloc size summary.
7072 (dump_ipa_call_summary): Update.
7073 (ipa_dump_fn_summary): Update.
7074 (analyze_function_body): Update.
7075 (compute_fn_summary): Likewise.
7076 (ipa_get_stack_frame_offset): New function.
7077 (inline_update_callee_summaries): Do not update frame offsets.
7078 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7079 remove call and function summary.
7080 (ipa_update_overall_fn_summary): Update.
7081 (inline_read_section): Update.
7082 (ipa_fn_summary_write): Update.
7083 (ipa_free_fn_summary): Do not remove summaries.
7084 (ipa_free_size_summary): New.
7085 (release summary pass): Also run at WPA.
7086 * ipa-fnsummary.h (ipa_size_summary): Declare.
7087 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7088 estimated_self_stack_size.
7089 (ipa_size_summary_t): New type.
7090 (ipa_size_summaries): Declare.
7091 (ipa_free_size_summary): Declare.
7092 (ipa_get_stack_frame_offset): Declare.
7093 * ipa-icf.c (sem_function::merge): Update.
7094 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7095 (estimate_growth): Update.
7096 (growth_likely_positive): Update.
7097 (clone_inlined_nodes): Update.
7098 (inline_call): Update.
7099 * ipa-inline.c (caller_growth_limits): Update.
7100 (edge_badness): Update.
7101 (recursive_inlining): Update.
7102 (inline_small_functions): Update.
7103 (inline_to_all_callers_1): Update.
7104 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7105
7106 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7107
7108 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7109 (uavg<mode>3_ceil): ... This.
7110 (altivec_vavgs<VI_char>): Rename to...
7111 (avg<mode>3_ceil): ... This.
7112 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7113 VAVGUW, VAVGSW): Adjust.
7114
7115 2019-10-24 Nathan Sidwell <nathan@acm.org>
7116
7117 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7118
7119 2019-10-24 Martin Liska <mliska@suse.cz>
7120
7121 * symbol-summary.h (gt_pch_nx): Mark all functions
7122 with gcc_unreachable as we do not expect to be called.
7123
7124 2019-10-24 Richard Biener <rguenther@suse.de>
7125
7126 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7127 chains try harder with operand swapping and instead of
7128 putting a shifted chain into the reduction operands put
7129 a repetition of the final reduction op there as if we'd
7130 reassociate the expression.
7131
7132 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7133
7134 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7135 statics_not_read and statics_not_written to statics_read and
7136 statics_written respectively.
7137 (no_module_statics): New static var.
7138 (ipa_reference_get_not_read_global): Rename to ...
7139 (ipa_reference_get_read_global): ... this.
7140 (ipa_reference_get_not_written_global): Rename to ...
7141 (ipa_reference_get_written_global): ... this.
7142 (dump_static_vars_set_to_file): Dump no_module_statics.
7143 (copy_static_var_set): Add for propagation parameter.
7144 (ipa_init): Initialize no_module_statics.
7145 (ipa_ref_opt_summary_t::duplicate): Update.
7146 (ipa_ref_opt_summary_t::remove): Update.
7147 (propagate): Update.
7148 (write_node_summary_p): Look correctly for bitmap differences.
7149 (ipa_reference_write_optimization_summary): Update.
7150 (ipa_reference_read_optimization_summary): Update.
7151 * ipa-reference.h
7152 (ipa_reference_get_not_read_global): Rename to ...
7153 (ipa_reference_get_read_global): ... this.
7154 (ipa_reference_get_not_written_global): Rename to ...
7155 (ipa_reference_get_written_global): ... this.
7156 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7157 (call_may_clobber_ref_p_1): Update.
7158
7159 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7160
7161 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7162 and add comment.
7163 (msp430_hard_regno_nregs_with_padding): Remove.
7164
7165 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7166
7167 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7168 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7169 shift amount is between 1 and 4.
7170 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7171 is between 1 and 4.
7172
7173 2019-10-24 Richard Biener <rguenther@suse.de>
7174
7175 PR tree-optimization/92205
7176 * tree-vect-loop.c (vectorizable_reduction): Restrict
7177 search for alternate vectype_in to lane-reducing patterns
7178 we support.
7179
7180 2019-10-24 Richard Biener <rguenther@suse.de>
7181
7182 PR tree-optimization/92203
7183 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7184 Skip eliminating conversion stmts inserted by insertion.
7185
7186 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7187
7188 * config/s390/s390.c (s390_get_thread_pointer): Use
7189 gen_get_thread_pointer.
7190 (s390_expand_split_stack_prologue): Likewise.
7191 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7192 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7193 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7194 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7195 parameterized name.
7196
7197 2019-10-24 Richard Biener <rguenther@suse.de>
7198
7199 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7200 SLP discovery fails try to handle the reduction as part
7201 of SLP reduction discovery.
7202
7203 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7204
7205 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7206 declaration.
7207 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7208 attribute if it exists, rather than the insn size. If we use the
7209 insn size, adjust the size to remove the extra size that prefixed
7210 instructions take.
7211 (rs6000_adjust_insn_length): New function.
7212 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7213 update the instruction sized if prefixed instructions are used.
7214 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7215 (non_prefixed_length attribute): Delete.
7216 (num_insns attribute): New insn attribute to return the number of
7217 instructions.
7218 (max_prefixed_insns attribute): New insn attribute to return the
7219 maximum number of prefixed instructions in an insn.
7220 (length attribute): Do not adjust for prefix instructions here,
7221 punt to ADJUST_INSN_LENGTH.
7222 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7223 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7224 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7225 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7226 max_prefixed_insns and num_insns.
7227
7228 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7229 (movtd_64bit_nodm): Reformat.
7230 (mov<mode>_32bit): Reformat.
7231 (mov<mode>_softfloat): Reformat.
7232 (FMOVE128_GPR splitter): Reformat.
7233 (DIFD splitter): Reformat.
7234 (TI2 splitter): Reformat.
7235 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7236 bits of the offset for the memory address are non-zero, use PLWA
7237 if prefixed instructions are available.
7238
7239 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7240
7241 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7242
7243 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7244
7245 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7246 previous patch.
7247
7248 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7249
7250 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7251 (cmp_symbol_files): New.
7252 (lto_output): Copy sections in file order.
7253 * lto-streamer.h (lto_file_decl_data): Add field order.
7254
7255 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7256
7257 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7258 * ipa-reference.c (reference_vars_map_t): new type.
7259 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7260 (ipa_reference_var_uid): Implement.
7261 (varpool_node_hooks): New static var.
7262 (varpool_removal_hook): New function.
7263 (is_improper): Do not check bitmap for id==-1
7264 (get_static_name): Update.
7265 (ipa_init): Initialize new datastructures.
7266 (analyze_function): Do not recompute ids.
7267 (propagate): Free reference_vars_to_consider.
7268 (stream_out_bitmap): Update.
7269 (ipa_reference_read_optimization_summary): Update.
7270
7271 2019-10-23 qing zhao <qing.zhao@oracle.com>
7272
7273 PR gcov-profile/91971
7274 * coverage.c (coverage_init): Mangle the full path of filename when
7275 filename is a absolute path.
7276
7277 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7278
7279 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7280 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7281 (msp430_has_hwmult): New.
7282 (msp430_output_labelref):
7283 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7284 * config/msp430/msp430.md (mulhisi3): Likewise.
7285 (umulhisi3): Likewise.
7286 (mulsidi3): Likewise.
7287 (umulsidi3): Likewise.
7288
7289 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7290
7291 PR ipa/92074
7292 * params.def (inline-heuristics-hint-percent): Set to 600.
7293
7294 2019-10-23 Richard Biener <rguenther@suse.de>
7295
7296 PR tree-optimization/65930
7297 * tree-vect-loop.c (check_reduction_path): Allow conversions
7298 that only change the sign.
7299 (vectorizable_reduction): Relax latch def stmts we handle further.
7300
7301 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7302
7303 PR debug/90231
7304 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7305 (remove_unused_ivs): Use it instead of get_computation_at. When
7306 choosing best candidate, only consider candidates where
7307 get_debug_computation_at actually returns non-NULL.
7308
7309 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7310
7311 PR tree-optimization/92131
7312 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7313 range would be symbolic, drop to varying for any explicit overflow
7314 in the constant part or if neither range is a singleton.
7315
7316 2019-10-23 Martin Liska <mliska@suse.cz>
7317
7318 PR middle-end/81669
7319 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7320 Initialize m_data.
7321
7322 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7323
7324 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7325 int_mode_for_mode rather than mode_for_int_vector for scalars.
7326
7327 2019-10-23 Richard Biener <rguenther@suse.de>
7328
7329 PR tree-optimization/92179
7330 * tree-vect-stmts.c (vectorizable_shift): For shift args
7331 that are all the same remove type restriction in the SLP case.
7332 Adjust SLP code to handle converting of the shift arg to
7333 only apply in case the modes are different.
7334
7335 2019-10-23 Martin Liska <mliska@suse.cz>
7336
7337 PR ipa/91969
7338 * ipa-inline.c (recursive_inlining): Do not print
7339 when curr->count is not initialized.
7340
7341 2019-10-23 Richard Biener <rguenther@suse.de>
7342
7343 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7344 op from scalars in case there's a constant operand in its
7345 definition.
7346
7347 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7348
7349 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7350 against out of range max skip or log values.
7351
7352 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7353
7354 * cgraph.c (dump_graphviz): Change name to dump_name
7355
7356 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7357
7358 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7359 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7360 subtraction from a carry operation.
7361
7362 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7363
7364 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7365
7366 2019-10-22 Richard Biener <rguenther@suse.de>
7367
7368 PR tree-optimization/92173
7369 * tree-vect-loop.c (vectorizable_reduction): If
7370 vect_transform_reduction cannot handle code-generation try without
7371 the single-def-use-cycle optimization. Pass optab_vector to
7372 optab_for_tree_code to get vector shifts as that's what we'd
7373 generate.
7374
7375 2019-10-22 Michael Matz <matz@suse.de>
7376
7377 PR middle-end/90796
7378 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7379 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7380 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7381
7382 2019-10-22 Richard Biener <rguenther@suse.de>
7383
7384 PR tree-optimization/92173
7385 * tree-vect-loop.c (vectorizable_reduction): If
7386 vect_transform_reduction cannot handle code-generation try without
7387 the single-def-use-cycle optimization. Pass optab_vector to
7388 optab_for_tree_code to get vector shifts as that's what we'd
7389 generate.
7390
7391 2019-10-22 Martin Liska <mliska@suse.cz>
7392
7393 * diagnostic-format-json.cc (json_from_expanded_location):
7394 Use json::integer_number.
7395 * gcov.c (output_intermediate_json_line): Use new
7396 json::integer_number.
7397 (output_json_intermediate_file): Likewise.
7398 * json.cc (number::print): Move to ...
7399 (float_number::print): ... this.
7400 (integer_number::print): New.
7401 (test_writing_numbers): Move to ...
7402 (test_writing_float_numbers): ... this.
7403 (test_writing_integer_numbers): New.
7404 (json_cc_tests): Register test_writing_integer_numbers.
7405 * json.h (class value): Add forward declaration
7406 for float_number and integer_number.
7407 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7408 (class number): Move to ...
7409 (class float_number): ... this.
7410 (class integer_number): New.
7411 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7412 Use json::integer_number.
7413 (optrecord_json_writer::location_to_json): Likewise.
7414 (optrecord_json_writer::profile_count_to_json): Likewise.
7415 (optrecord_json_writer::pass_to_json): Likewise.
7416
7417 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7418
7419 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7420 autodetected_vector_size rather than vector_size is zero.
7421 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7422 Set autodetected_vector_size immediately after calling
7423 vect_analyze_loop_2. Check for a fatal error before advancing
7424 next_size.
7425
7426 2019-10-21 Jason Merrill <jason@redhat.com>
7427
7428 * lock-and-run.sh: Check for process existence rather than timeout.
7429
7430 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7431
7432 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7433 widening multiplication.
7434
7435 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7436
7437 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7438 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7439 type attribute.
7440 (subsi3_carryin_shift): Separate into register and constant controlled
7441 alternatives. Use shift_amount_operand for operand 4. Set shift
7442 attribute and simplify type attribute.
7443 (subsi3_carryin_shift_alt): Likewise.
7444 (rsbsi3_carryin_shift): Likewise.
7445 (rsbsi3_carryin_shift_alt): Likewise.
7446 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7447 and register controlled shifts into distinct alternatives.
7448 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7449 (andsi_not_shiftsi_si_scc): Likewise.
7450 (arm_cmpsi_negshiftsi_si): Likewise.
7451 (not_shiftsi): Remove redundant M constraint from alternative 1.
7452 (not_shiftsi_compare0): Likewise.
7453 (arm_cmpsi_insn): Remove redundant alternative 2.
7454 (cmpsi_shift_swp): Likewise.
7455 (sub_shiftsi): Likewise.
7456 (sub_shiftsi_compare0_scratch): Likewise.
7457 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7458 (thumb2_cmpsi_neg_shiftsi): Likewise.
7459
7460 2019-10-21 Richard Biener <rguenther@suse.de>
7461
7462 PR tree-optimization/92162
7463 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7464 STMT_VINFO_REDUC_IDX in reduc_info.
7465 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7466
7467 2019-10-21 Richard Biener <rguenther@suse.de>
7468
7469 * tree-vectorizer.h (_slp_tree::ops): New member.
7470 (SLP_TREE_SCALAR_OPS): New.
7471 (vect_get_slp_defs): Adjust prototype.
7472 * tree-vect-slp.c (vect_free_slp_tree): Release
7473 SLP_TREE_SCALAR_OPS.
7474 (vect_create_new_slp_node): Initialize it. New overload for
7475 initializing by an operands array.
7476 (_slp_oprnd_info::ops): New member.
7477 (vect_create_oprnd_info): Initialize it.
7478 (vect_free_oprnd_info): Release it.
7479 (vect_get_and_check_slp_defs): Populate the operands array.
7480 Do not swap operands in the IL when not necessary.
7481 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7482 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7483 swap operands in the operands array. Do not swap operands in
7484 the IL.
7485 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7486 (vect_gather_slp_loads): Fix.
7487 (vect_detect_hybrid_slp_stmts): Likewise.
7488 (vect_slp_analyze_node_operations_1): Search for a internal
7489 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7490 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7491 the def-type push/pop dance.
7492 (vect_get_constant_vectors): Compute number_of_vectors here.
7493 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7494 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7495 (vect_get_slp_defs): Simplify greatly.
7496 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7497 (vect_transform_reduction): Likewise.
7498 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7499 (vectorizable_call): Likewise.
7500 (vectorizable_operation): Likewise.
7501 (vectorizable_load): Likewise.
7502 (vectorizable_condition): Likewise.
7503 (vectorizable_comparison): Likewise.
7504
7505 2019-10-21 Richard Biener <rguenther@suse.de>
7506
7507 PR tree-optimization/92161
7508 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7509 for reductions.
7510
7511 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7512
7513 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7514 (aarch64_rndr): New define_insn.
7515 (aarch64_rndrrs): Likewise.
7516 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7517 (TARGET_RNG): Likewise.
7518 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7519 argument.
7520 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7521 Add fourth argument in prototype.
7522 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7523 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7524 (aarch64_init_rng_builtins): Define.
7525 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7526 (aarch64_expand_rng_builtin): Define.
7527 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7528 RNG builtins.
7529 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7530 __ARM_FEATURE_RNG when TARGET_RNG.
7531 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7532
7533 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7534
7535 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7536 alignment is more restrictive.
7537
7538 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7539
7540 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7541 (vect_update_max_nunits): Update comment.
7542 (current_vector_size): Delete.
7543 * tree-vect-stmts.c (current_vector_size): Likewise.
7544 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7545 of current_vector_size.
7546 (get_mask_type_for_scalar_type): Likewise.
7547 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7548 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7549 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7550 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7551 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7552 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7553
7554 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7555
7556 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7557 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7558 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7559 accordingly.
7560
7561 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7562
7563 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7564 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7565 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7566 call accordingly.
7567 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7568
7569 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7570
7571 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7572 a loop_vec_info.
7573 (vect_set_loop_condition_masked): Update call accordingly.
7574
7575 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7576
7577 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7578 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7579 (simple_integer_narrowing): Update call accordingly.
7580 (vectorizable_conversion): Likewise.
7581
7582 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7583
7584 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7585 (vectorizable_call): Update call accordingly.
7586
7587 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7588
7589 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7590 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7591 (duplicate_and_interleave): Update call accordingly.
7592 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7593
7594 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7595
7596 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7597 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7598 (vect_get_constant_vectors): Update call accordingly.
7599 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7600
7601 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7602
7603 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7604 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7605 (vect_prologue_cost_for_slp_op): Update call accordingly.
7606 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7607 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7608 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7609 (get_mask_type_for_scalar_type): Likewise.
7610 (vect_get_vector_types_for_stmt): Likewise.
7611 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7612 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7613 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7614 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7615 (vect_split_statement, vect_convert_input): Likewise.
7616 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7617 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7618 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7619 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7620 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7621 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7622 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7623 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7624 (vect_recog_mask_conversion_pattern): Likewise.
7625 (vect_add_conversion_to_pattern): Likewise.
7626 (vect_recog_gather_scatter_pattern): Likewise.
7627 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7628 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7629
7630 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7631
7632 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7633 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7634 (vect_check_load_store_mask): Update call accordingly.
7635 (vect_get_mask_type_for_stmt): Likewise.
7636 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7637 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7638 (vect_convert_mask_for_vectype): Likewise.
7639
7640 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7641
7642 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7643 a vec_info.
7644 (vect_recog_dot_prod_pattern): Update call accordingly.
7645 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7646 (vect_recog_widen_sum_pattern): Likewise.
7647
7648 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7649
7650 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7651 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7652 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7653 accordingly.
7654
7655 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7656
7657 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7658 get_vectype_for_scalar_type_and_size instead of
7659 get_vectype_for_scalar_type.
7660
7661 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7662
7663 * common.opt (-fcommon): Fix description.
7664
7665 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7666
7667 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7668 * config/i386/i386.c (ix86_pre_reload_split): New function.
7669 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7670 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7671 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7672 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7673 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7674 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7675 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7676 *<shift_insn><dwi>3_doubleword_mask,
7677 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7678 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7679 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7680 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7681 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7682 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7683 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7684 *avx2_<code>v8qiv8si2<mask_name>_2,
7685 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7686 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7687 *avx512f_<code>v8qiv8di2<mask_name>_2,
7688 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7689 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7690 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7691 sse4_2_pcmpistr): Likewise.
7692
7693 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7694
7695 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7696 now defaults to https.
7697
7698 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7699
7700 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7701 skip non-zero array accesses.
7702
7703 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7704
7705 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7706 and return a boolean success value. Move the allocation and
7707 initialization of the bb_vec_info to...
7708 (vect_slp_bb_region): ...here. Update call accordingly.
7709 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7710 than in vect_slp_analyze_bb_1.
7711
7712 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7713
7714 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7715 when processing the given datarefs for the first time and
7716 check_datarefs subsequently.
7717 (vect_slp_bb_region): New function, split out of...
7718 (vect_slp_bb): ...here. Don't recompute the region bounds and
7719 dataref sets when retrying with a different vector size.
7720
7721 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7722 Uroš Bizjak <ubizjak@gmail.com>
7723
7724 PR target/92140
7725 * config/i386/predicates.md (int_nonimmediate_operand): New special
7726 predicate.
7727 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7728 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7729 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7730 define_insn_and_split patterns.
7731
7732 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7733
7734 * config/rs6000/rs6000.md: Delete out--of-date comment about
7735 special-casing integer loads.
7736
7737 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7738
7739 * escaped_string.h (escaped_string): New header.
7740 * tree.c (escaped_string): Remove escaped_string class.
7741
7742 2019-10-18 Martin Sebor <msebor@redhat.com>
7743
7744 PR tree-optimization/92157
7745 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7746 compute_string_length to return a negative result.
7747
7748 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7749
7750 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7751 (negvsi3, negvdi3): Delete.
7752 (negdi2_compare): Delete.
7753
7754 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7755
7756 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7757 operations.
7758 (subdi3_compare1): Delete pattern.
7759 (subvsi3_borrow): New insn pattern.
7760 (subvsi3_borrow_imm): Likewise.
7761
7762 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7763
7764 * config/arm/arm.md (subv<mode>4): Delete.
7765 (subvdi4): New expander pattern.
7766 (subvsi4): Likewise. Handle some immediate values.
7767 (subvsi3_intmin): New insn pattern.
7768 (subvsi3): Likewise.
7769 (subvsi3_imm1): Likewise.
7770 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7771 idioms.
7772
7773 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7774
7775 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7776 incoming operands. Early split the calculation into SImode
7777 operations.
7778 (usubvsi3_borrow): New insn pattern.
7779 (usubvsi3_borrow_imm): Likewise.
7780
7781 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7782
7783 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7784 (usubvsi4): New pattern. Allow some immediate values for inputs.
7785 (usubvdi4): New pattern.
7786
7787 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7788
7789 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7790 or second operand of the PLUS inside a DImode equality test to be
7791 sign-extend when selecting CC_Vmode.
7792 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7793 instructions.
7794 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7795 expand patterns.
7796 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7797 (addsi3_cin_vout_0): Likewise.
7798 (adddi3_compareV): Delete.
7799
7800 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7801
7802 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7803 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7804 to transform this back into the summation version when that leads
7805 to smaller code.
7806
7807 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7808
7809 * config/arm/arm.md (addv<mode>4): Delete.
7810 (addvsi4): New pattern. Handle immediate values that the architecture
7811 supports.
7812 (addvdi4): New pattern.
7813 (addsi3_compareV): Rename to ...
7814 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7815 and use COMPARE rather than NE.
7816 (addsi3_compareV_imm): New pattern.
7817 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7818 a signed-overflow check.
7819
7820 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7821
7822 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7823 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7824 CC_ADCmode.
7825 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7826 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7827 with overflow.
7828 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7829 expand patterns.
7830 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7831 (addsi3_cin_cout_imm_insn): Likewise.
7832 (adddi3_compareC): Delete insn.
7833 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7834
7835 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7836
7837 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7838 * (uaddv<mode>4): Delete expansion pattern.
7839 (uaddvsi4): New pattern.
7840 (uaddvdi4): Likewise.
7841 (addsi3_compareC): Delete pattern, change callers to use
7842 addsi3_compare_op1.
7843 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7844 reduce the number of alternatives and re-work type attribute handling.
7845 (addsi3_compare_op2): Clean up constraints to reduce the number of
7846 alternatives and re-work type attribute handling.
7847 (compare_addsi2_op0): Likewise.
7848 (compare_addsi2_op1): Likewise.
7849
7850 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7851
7852 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7853 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7854 for DImode operands.
7855 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7856 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7857 CC_NCVmode.
7858 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7859 (arm_cmpdi_unsigned): Delete.
7860
7861 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7862
7863 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7864 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7865 unchanged only if that will be cheaper.
7866 (arm_select_cc_mode): Recognize a swapped comparison that will
7867 be regenerated using RSBS or RSCS. Relax restriction on selecting
7868 CC_RSBmode.
7869 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7870 a constant.
7871 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7872 is CC_RSBmode.
7873 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7874 as CCmode.
7875 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7876 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7877
7878 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7879
7880 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7881 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7882 need these modes.
7883 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7884 of EQ, NE, LT, GE, LTU and GEU.
7885 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7886 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7887 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7888 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7889 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7890
7891 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7892
7893 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7894 operand 2.
7895 (cstoredi4): Similarly, but for operand 3.
7896 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7897 canonicalization of unsigned compares with a constant on Arm.
7898 Prefer using const+1 and adjusting the comparison over swapping the
7899 operands whenever the original constant was not valid.
7900 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7901 register here.
7902 (arm_validize_comparison): Do not force invalid DImode operands to
7903 registers here.
7904
7905 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7906
7907 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7908 return CC_Zmode if comparing against a constant where one word is
7909 zero.
7910 (arm_gen_compare_reg): Split DImode handling to ...
7911 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7912 against simple constants.
7913 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7914
7915 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7916
7917 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7918 (rsbsi3_carryin_shift_alt): Likewise.
7919
7920 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7921
7922 * config/arm/arm.md (negscc_borrow): New pattern.
7923 (mov_negscc): Don't split if the insn would match negscc_borrow.
7924 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7925 (thumb2_mov_negscc_strict_it): Likewise.
7926
7927 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7928
7929 * config/arm/arm.c (arm_insn_cost): New function.
7930 (TARGET_INSN_COST): Override default definition.
7931
7932 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7933
7934 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7935 borrow operations.
7936
7937 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7938
7939 * config/arm/arm.c (strip_carry_operation): New function.
7940 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7941 for SImode.
7942
7943 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7944
7945 * config/arm/predicates.md (arm_carry_operation): New special
7946 predicate.
7947 * config/arm/iterators.md (LTUGEU): Delete iterator.
7948 (cnb): Delete code attribute.
7949 (optab): Delete ltu and geu elements.
7950 * config/arm/arm.md (addsi3_carryin): Renamed from
7951 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7952 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7953 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7954 (addsi3_carryin_clobercc): Similarly.
7955 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7956 Thumb2 state.
7957
7958 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7959
7960 * config/arm/arm.md (arm_subdi3): Delete insn.
7961 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7962
7963 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7964
7965 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7966 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7967 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7968 return CC_RSBmode.
7969 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7970 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7971 expand.
7972 (subdi3): Rewrite to early-expand the sub-operations.
7973 (rsb_im_compare): New pattern.
7974 (negdi2): Delete.
7975 (negdi2_insn): Delete.
7976 (arm_negsi2): Correct type attribute to alu_imm.
7977 (negsi2_0compare): New insn pattern.
7978 (negsi2_carryin): New insn pattern.
7979
7980 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7981
7982 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7983 operand 2.
7984
7985 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7986
7987 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7988 to match canonical form.
7989
7990 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7991
7992 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7993 (extend<mode>di2): Likewise.
7994
7995 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7996
7997 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7998 * config/arm/arm.c (arm_decompose_di_binop): New function.
7999 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8000 If not generating Thumb-1 code, decompose the operation into 32-bit
8001 pieces.
8002 * add0si_carryin_<optab>: New pattern.
8003
8004 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8005
8006 * arm.md (adddi3): Only accept register operands.
8007 (arm_adddi3): Convert to simple insn with no split. Do not accept
8008 constants.
8009 (adddi_sesidi_di): Delete patern.
8010 (adddi_zesidi_di): Likewise.
8011 (uaddv<mode>4): Use LTU as condition for branch.
8012 (adddi3_compareV): Convert to simple insn with no split.
8013 (addsi3_compareV_upper): Delete pattern.
8014 (adddi3_compareC): Convert to simple insn with no split. Correct
8015 flags setting expression.
8016 (addsi3_compareC_upper): Delete pattern.
8017 (addsi3_compareC): Correct flags setting expression.
8018 (subdi3_compare1): Convert to simple insn with no split.
8019 (subsi3_carryin_compare): Delete pattern.
8020 (arm_subdi3): Convert to simple insn with no split.
8021 (subdi_zesidi): Delete pattern.
8022 (subdi_di_sesidi): Delete pattern.
8023 (subdi_zesidi_di): Delete pattern.
8024 (subdi_sesidi_di): Delete pattern.
8025 (subdi_zesidi_zesidi): Delete pattern.
8026 (negvdi3): Use s_register_operand.
8027 (negdi2_compare): Convert to simple insn with no split.
8028 (negdi2_insn): Likewise.
8029 (negsi2_carryin_compare): Delete pattern.
8030 (negdi_zero_extendsidi): Delete pattern.
8031 (arm_cmpdi_insn): Convert to simple insn with no split.
8032 (negdi2): Don't call gen_negdi2_neon.
8033 * config/arm/neon.md (adddi3_neon): Delete pattern.
8034 (subdi3_neon): Delete pattern.
8035 (negdi2_neon): Delete pattern.
8036 (splits for negdi2_neon): Delete splits.
8037
8038 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8039
8040 PR middle-end/92153
8041 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8042 than after it.
8043
8044 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8045
8046 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8047 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8048 new multilib variants and new mappings.
8049
8050 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8051
8052 PR target/86040
8053 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8054
8055 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8056 Richard Sandiford <richard.sandiford@arm.com>
8057
8058 PR target/86753
8059 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8060 and define hashmap traits for it.
8061 (loop_vec_info::scalar_cond_masked_set): New member.
8062 (vect_record_loop_mask): Adjust prototype.
8063 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8064 Implement method.
8065 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8066 vect_record_loop_mask.
8067 (vectorizable_live_operation): Likewise.
8068 (vect_record_loop_mask): New param scalar_mask. Add entry
8069 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8070 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8071 Pass it as last arg to vect_record_loop_mask.
8072 (vectorizable_call): Pass scalar_mask as last arg to
8073 vect_record_loop_mask.
8074 (vectorizable_store): Likewise.
8075 (vectorizable_load): Likewise.
8076 (vectorizable_condition): Check if another part of vectorized code
8077 applies loop_mask to condition or to it's inverse, and if yes,
8078 apply loop_mask to result of vector comparison.
8079
8080 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8081
8082 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8083
8084 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8085
8086 PR tree-optimization/92056
8087 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8088 before calling compute_builtin_object_size.
8089
8090 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8091
8092 PR target/65342
8093 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8094 (movdi_low_st): Delete.
8095 * config/rs6000/rs6000.c
8096 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8097 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8098 * config/rs6000/rs6000.md (movsi_low): Delete.
8099
8100 2019-10-17 Jason Merrill <jason@redhat.com>
8101
8102 * gimplify.h (get_initialized_tmp_var): Add default argument to
8103 post_p.
8104 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8105 NULL post_p argument.
8106 * targhooks (std_gimplify_va_arg_expr): Likewise.
8107
8108 2019-10-17 Richard Biener <rguenther@suse.de>
8109
8110 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8111 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8112 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8113 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8114 * tree-vect-loop.c (vect_is_simple_reduction): Set
8115 STMT_VINFO_REDUC_CODE.
8116 (vectorizable_reduction): Remove dead and redundant code, use
8117 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8118
8119 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8120
8121 Fix breakage introduced by r276985.
8122
8123 * config/avr/avr.c (avr_option_override): Remove set of
8124 PARAM_ALLOW_STORE_DATA_RACES.
8125 * common/config/avr/avr-common.c (avr_option_optimization_table)
8126 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8127
8128 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8129
8130 * config/i386/i386.h (processor_costs): Add clear_ratio.
8131 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8132 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8133 of 6 and move_ratio in all cost models.
8134
8135 2019-10-17 Richard Biener <rguenther@suse.de>
8136
8137 * tree-vect-loop.c (check_reduction_path): Compute reduction
8138 operation here.
8139 (vect_is_simple_reduction): Remove special-case of single-stmt
8140 reduction path detection.
8141
8142 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8143
8144 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8145
8146 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8147
8148 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8149 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8150 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8151 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8152 New combine patterns.
8153 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8154 above.
8155 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8156
8157 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8158
8159 * tree-vrp.c (value_range_base::dump): Display +INF for both
8160 pointers and integers when appropriate.
8161
8162 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8163
8164 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8165 when to use versioning threshold.
8166
8167 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8168
8169 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8170 outlined code from ...
8171 (vect_analyze_loop_2): ... here.
8172
8173 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8174
8175 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8176 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8177 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8178
8179 2019-10-17 Richard Biener <rguenther@suse.de>
8180
8181 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8182 (vect_is_simple_reduction): Move all validity checks ...
8183 (vectorizable_reduction): ... here. Compute whether we
8184 need a fold-left reduction here.
8185 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8186 both overloads, check needs_fold_left_reduction_p directly.
8187 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8188
8189 2019-10-17 Richard Biener <rguenther@suse.de>
8190
8191 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8192 TARGET_MEM_REF creation.
8193
8194 2019-10-17 Richard Biener <rguenther@suse.de>
8195
8196 PR tree-optimization/92129
8197 * tree-vect-loop.c (vectorizable_reduction): Also fail
8198 on GIMPLE_SINGLE_RHS.
8199
8200 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8201
8202 PR tree-optimization/92056
8203 * tree-object-size.c (cond_expr_object_size): Return early if then_
8204 processing resulted in unknown size.
8205
8206 PR tree-optimization/92115
8207 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8208 temporary if it could trap.
8209
8210 2019-10-17 Richard Biener <rguenther@suse.de>
8211
8212 PR debug/91887
8213 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8214 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8215
8216 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8217
8218 * tree-ssa-strlen.c (maybe_invalidate): Use
8219 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8220
8221 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8222 Jim Wilson <jimw@sifive.com>
8223
8224 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8225 regs to SIBCALL_REGS.
8226 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8227 passing regs to SIBCALL_REGS.
8228
8229 2019-10-16 Martin Sebor <msebor@redhat.com>
8230
8231 PR tree-optimization/83821
8232 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8233 the length of a string when available.
8234 (handle_builtin_memset) Add argument.
8235 (handle_store, strlen_check_and_optimize_call): Same.
8236 (check_and_optimize_stmt): Same. Pass it to callees.
8237
8238 2019-10-16 Martin Sebor <msebor@redhat.com>
8239
8240 PR tree-optimization/91996
8241 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8242 information.
8243 (compare_nonzero_chars): Add an overload.
8244 (count_nonzero_bytes): Add an argument. Call overload above.
8245 Handle non-constant lengths in some range.
8246 (handle_store): Add an argument.
8247 (check_and_optimize_stmt): Pass an argument to handle_store.
8248
8249 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8250
8251 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8252
8253 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8254
8255 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8256 operands which correspond to the same input-output register to
8257 have the same pseudo assigned to them.
8258
8259 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8260
8261 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8262
8263 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8264
8265 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8266 Apply reasonable limit to symbol offsets.
8267
8268 2019-10-16 Richard Biener <rguenther@suse.de>
8269
8270 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8271 (vect_is_simple_reduction): Delay checking to
8272 vectorizable_reduction and relax the checking.
8273 (vectorizable_reduction): Check we have a simple use. Check
8274 for bogus condition reductions.
8275 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8276 are looking at the last stmt in a pattern sequence when
8277 filling in backedge PHI values.
8278
8279 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8280 Jiufu Guo <guojiufu@linux.ibm.com>
8281
8282 PR target/70010
8283 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8284 the callee explicitly disables some isa_flags the caller is using.
8285
8286 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8287
8288 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8289
8290 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8291
8292 * genmodes.c (mode_data::order): New field.
8293 (blank_mode): Update accordingly.
8294 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8295 (make_vector_modes): Likewise.
8296 (VECTOR_MODES): Update use accordingly.
8297 (cmp_modes): Sort by the new order field ahead of sorting by size.
8298 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8299 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8300 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8301 (aarch64_classify_vector_mode): Handle the new partial modes.
8302 (aarch64_vl_bytes): New function.
8303 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8304 when counting the number of registers in an SVE mode.
8305 (aarch64_class_max_nregs): Likewise.
8306 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8307 in registers yet.
8308 (aarch64_classify_address): Treat partial vectors analogously
8309 to full vectors.
8310 (aarch64_print_address_internal): Consolidate the printing of
8311 MUL VL addresses, using aarch64_vl_bytes as the number of
8312 bytes represented by "VL".
8313 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8314
8315 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8316
8317 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8318 rather than known_lt when choosing frame layouts.
8319
8320 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8321
8322 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8323 that all the adjustments add up to the full frame size.
8324 Use crtl->outgoing_args_size directly as the final adjustment
8325 where appropriate.
8326
8327 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8328
8329 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8330 "frame" reference instead of always referring directly to
8331 "cfun->machine->frame".
8332
8333 2019-10-16 Richard Biener <rguenther@suse.de>
8334
8335 PR tree-optimization/92119
8336 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8337 against missing bswap lhs.
8338
8339 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8340
8341 PR middle-end/92033
8342 * poly-int.h (constant_lower_bound_with_limit): New function.
8343 (constant_upper_bound_with_limit): Likewise.
8344 * doc/poly-int.texi: Document them.
8345 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8346 into the worst-case INTEGER_CST bounds.
8347
8348 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8349
8350 PR ipa/91088
8351 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8352 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8353 * ipa-predicat.h (struct expr_eval_op): New struct.
8354 (expr_eval_ops): New typedef.
8355 (struct condition): Add type and param_ops fields, remove size field.
8356 (add_condition): Replace size parameter with type parameter, add
8357 param_ops parameter.
8358 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8359 (predicate::add_clause): Add comparisons on type and param_ops.
8360 (dump_condition): Add debug dump for param_ops.
8361 (remap_after_inlining): Adjust call arguments to add_condition.
8362 (add_condition): Replace size parameter with type parameter, add
8363 param_ops parameter. Unshare constant value used in conditions.
8364 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8365 parameter expressions using param_ops.
8366 (decompose_param_expr): New function.
8367 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8368 to replace call to unmodified_parm_or_parm_agg_item.
8369 (set_switch_stmt_execution_predicate): Likewise.
8370 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8371 with type.
8372 (inline_read_section): Read param_ops from summary stream.
8373 (ipa_fn_summary_write): Write param_ops to summary stream.
8374
8375 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8376
8377 PR rtl-optimization/92107
8378 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8379 expression written.
8380
8381 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8382
8383 * config/darwin.c: Update description of fix and continue.
8384
8385 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8386
8387 * config/darwin.c (darwin_binds_local_p): Update to call
8388 default_binds_local_p_3 () directly. amend comments.
8389
8390 2019-10-15 Richard Biener <rguenther@suse.de>
8391
8392 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8393 (tree_is_indexable): Use it.
8394 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8395 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8396 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8397
8398 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8399
8400 * config/msp430/msp430.md (zero_extendqipsi2): New.
8401 (zero_extendqisi2): Optimize case where src register and base dst
8402 register are the same.
8403 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8404 (zero_extendpsisi2): Optimize r->m case.
8405 Add unnamed insn patterns to catch insns combine searches for when
8406 optimizing pointer manipulation.
8407
8408 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8409
8410 * config/msp430/msp430.md: Group zero_extend* insns together.
8411
8412 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8413
8414 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8415 constraint.
8416 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8417 POST_INC.
8418 (msp430_subreg): Likewise.
8419 (msp430_split_addsi): Likewise.
8420 (msp430_print_operand_addr): Likewise.
8421 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8422 (USE_STORE_POST_INCREMENT): Define.
8423 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8424 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8425 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8426 (msp430_general_dst_operand): New.
8427 (msp430_general_dst_nonv_operand): New.
8428 (msp430_nonsubreg_operand): Remove.
8429 (msp430_nonsubreg_dst_operand): New.
8430 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8431 of defunct msp430_nonsubreg_operand.
8432 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8433
8434 2019-10-15 Richard Biener <rguenther@suse.de>
8435
8436 PR tree-optimization/91929
8437 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8438 (get_or_alloc_expr_for_name): Initialize it.
8439 (get_or_alloc_expr_for_constant): Likewise.
8440 (phi_translate_1): Copy it.
8441 (create_expression_by_pieces): Use the original location
8442 of the expression for the inserted stmt.
8443 (compute_avail): Record the location of the stmt for the
8444 expressions created.
8445
8446 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8447
8448 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8449 before using tree_to_uhwi.
8450
8451 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8452
8453 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8454
8455 2019-10-15 Richard Biener <rguenther@suse.de>
8456
8457 PR tree-optimization/92094
8458 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8459 do not adjust the reduction definition def type.
8460 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8461 defines the latch argument of the PHI.
8462
8463 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8464
8465 PR target/92035
8466 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8467 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8468 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8469 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8470 _mm_maskz_roundscale_round_sd): New intrinsics.
8471 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8472 __builtin_ia32_rndscales?_mask_round builtins instead of
8473 __builtin_ia32_rndscales?_round.
8474 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8475 __builtin_ia32_rndscalesd_round): Remove.
8476 (__builtin_ia32_rndscaless_mask_round,
8477 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8478 * config/i386/sse.md
8479 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8480 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8481 ... this, adjust and add subst atrributes to make it maskable.
8482
8483 2019-10-15 Richard Biener <rguenther@suse.de>
8484
8485 PR middle-end/92046
8486 * common.opt (fallow-store-data-races): New.
8487 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8488 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8489 * doc/invoke.texi (fallow-store-data-races): Document.
8490 (--param allow-store-data-races): Remove docs.
8491 * opts.c (default_options_table): Enable -fallow-store-data-races
8492 at -Ofast.
8493 (default_options_optimization): Do not enable --param
8494 allow-store-data-races at -Ofast.
8495 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8496 instead of PARAM_ALLOW_STORE_DATA_RACES.
8497 * tree-ssa-loop-im.c (execute_sm): Likewise.
8498
8499 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8500
8501 PR tree-optimization/92085
8502 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8503 instead of calling it unconditionally after
8504 delete_dead_or_redundant_assignment and fix indentation.
8505
8506 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8507
8508 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8509 TARGET_VFP_DOUBLE.
8510 (*fmsub<SDF:mode>4): Likewise.
8511 *fnmsub<SDF:mode>4): Likewise.
8512 (*fnmadd<SDF:mode>4): Likewise.
8513
8514 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8515
8516 * doc/tree-ssa.texi: Update renamed macro name.
8517
8518 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8519
8520 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8521 vector constants.
8522
8523 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8524
8525 * config/darwin.c: Use unsigned ints for the picbase label
8526 counters, initialise the vars explicitly.
8527 (update_pic_label_number_if_needed): Move a variable declaration
8528 to where it's needed.
8529 (machopic_output_function_base_name): Use a more strict checking
8530 assert, and and unsigned int for the picbase label counter.
8531 (machopic_get_function_picbase): Likewise.
8532
8533 2019-10-14 Richard Biener <rguenther@suse.de>
8534
8535 PR middle-end/92046
8536 * dse.c (scan_insn): Use param max_active_local_stores.
8537 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8538 based on optimization level.
8539 * loop-invariant.c (move_loop_invariants): Adjust
8540 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8541 * opts.c (default_options_optimization): Do not adjust
8542 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8543 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8544
8545 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8546
8547 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8548
8549 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8550
8551 * config/arm/arm.c (arm_option_override): Don't override sched
8552 pressure algorithm.
8553
8554 2019-10-14 Richard Biener <rguenther@suse.de>
8555
8556 PR tree-optimization/92069
8557 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8558 cycles do not set vect_nested_cycle on the latch definition.
8559
8560 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8561
8562 * function-abi.h (expr_callee_abi): Declare.
8563 * function-abi.cc (expr_callee_abi): New function.
8564
8565 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8566
8567 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8568 into [1,MAX].
8569 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8570 non-zero being represented as [1,MAX].
8571
8572 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8573
8574 * tree-sra.c (dump_access): Add missing braces.
8575
8576 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8577
8578 * config/darwin.c (machopic_indirection_name): Rework the
8579 function to emit linker-visible symbols only for indirections
8580 in the data section. Clean up the code and update comments.
8581
8582 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8583
8584 * config/darwin.c (machopic_indirect_data_reference): Remove
8585 redundant code.
8586
8587 2019-10-13 Nathan Sidwell <nathan@acm.org>
8588
8589 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8590
8591 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8592
8593 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8594 c99_runtime.
8595
8596 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8597
8598 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8599 so non-virutal are before virutals.
8600 (output_function): Avoid body modifications.
8601
8602 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8603
8604 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8605 %r22. Load function address before global pointer.
8606 (pa_attr_length_indirect_call): Adjust length of inline versions of
8607 $$dyncall.
8608 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8609 before normal cases. Update inline $$dyncall sequences to preserve
8610 function descriptor address in register %r22.
8611 (TRAMPOLINE_CODE_SIZE): Adjust.
8612 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8613 register %r22 contains trampoline address.
8614 (pa_trampoline_init): Adjust offsets.
8615 (pa_trampoline_adjust_address): Likewise.
8616 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8617
8618 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8619
8620 PR target/67183
8621 * config/darwin.c (machopic_indirection): New field to flag
8622 non-lazy-symbol-pointers in the data section.
8623 (machopic_indirection_name): Compute if an indirection should
8624 appear in the data section.
8625 (machopic_output_data_section_indirection): New callback split
8626 from machopic_output_indirection.
8627 (machopic_output_stub_indirection): Likewise.
8628 (machopic_output_indirection): Retain the code for non-lazy
8629 symbol pointers in their regular section.
8630 (machopic_finish): Use the new callbacks to order the indirection
8631 output.
8632
8633 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8634
8635 * config/darwin-protos.h (machopic_finish): Delete.
8636 * config/darwin.c (machopic_finish): Make static.
8637
8638 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8639
8640 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8641 sections when building kernel extension code.
8642
8643 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8644
8645 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8646 later standard."
8647
8648 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8649
8650 * config/pa/pa.c (pa_option_override): Remove trailing comma
8651 from warning.
8652
8653 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8654
8655 PR middle-end/92063
8656 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8657 <case VEC_COND_EXPR>: Return false with *handled = false.
8658 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8659 recursing on the first operand.
8660 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8661 instead of tree_could_trap_p.
8662 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8663
8664 2019-10-11 Jim Wilson <jimw@sifive.com>
8665
8666 PR rtl-optimization/91860
8667 * combine.c (subst): If new_rtx is a constant, also check for
8668 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8669
8670 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8671
8672 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8673 INTVAL when calling store_bit_field.
8674
8675 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8676
8677 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8678 size.
8679
8680 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8681
8682 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8683 vectorizable_live_operation.
8684 (vectorizable_live_operation): Adjust parameters.
8685 * tree-vect-stmts.c (vect_init_vector,
8686 vect_gen_widened_results_half): Fix typo in function comment.
8687 (can_vectorize_live_stmts): Adjust function comment.
8688 Adjust parameters. Adjust call to vectorizable_live_operation.
8689 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8690 (vect_transform_stmt): Adjust function comment. Adjust call to
8691 can_vectorize_live_stmts.
8692 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8693
8694 2019-10-11 Richard Biener <rguenther@suse.de>
8695
8696 PR tree-optimization/90883
8697 PR tree-optimization/91091
8698 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8699 alias-sets both for recording VN table entries and continuing
8700 walking after translating through copies. Handle same-sized
8701 reads from SSA names by returning the plain SSA name.
8702 (eliminate_dom_walker::eliminate_stmt): Properly handle
8703 non-size precision stores in redundant store elimination.
8704
8705 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8706
8707 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8708 (ggc_collect): Dump later to not interfere with release_page dump.
8709 (ggc_trim): New function.
8710 * ggc-none.c (ggc_trim): New.
8711 * ggc.h (ggc_trim): Declare.
8712
8713 2019-10-11 Richard Biener <rguenther@suse.de>
8714
8715 PR tree-optimization/92066
8716 PR tree-optimization/92046
8717 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8718 Fix bogus cost model check.
8719
8720 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8721
8722 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8723 (LANG_HOOKS_DECLS): Add it.
8724 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8725 update comment for omp_is_optional_argument.
8726 * omp-general.c (omp_is_allocatable_or_ptr): New.
8727 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8728 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8729 Fortran's optional arguments and allocatable/pointer scalars
8730 with use_device_addr.
8731
8732 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8733
8734 PR target/77918
8735 * config/s390/2827.md: Add new opcodes.
8736 * config/s390/2964.md: Likewise.
8737 * config/s390/3906.md: Likewise.
8738 * config/s390/8561.md: Likewise.
8739 * config/s390/s390-builtins.def (s390_vfchesb): Use
8740 the new vec_cmpgev4sf_quiet_nocc.
8741 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8742 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8743 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8744 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8745 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8746 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8747 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8748 * config/s390/s390-modes.def (CCSFPS): New mode.
8749 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8750 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8751 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8752 (s390_expand_vec_compare): Use non-signaling patterns where
8753 necessary.
8754 (s390_reverse_condition): Support CCSFPS.
8755 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8756 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8757 (asm_fcmp_op): Likewise.
8758 (*smaxv2df3_vx): Use pattern for quiet comparison.
8759 (*sminv2df3_vx): Likewise.
8760 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8761 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8762 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8763 (vec_cmplt<mode>_quiet_nocc): New expander.
8764 (vec_cmpge<mode>_quiet_nocc): New pattern.
8765 (vec_cmple<mode>_quiet_nocc): New expander.
8766 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8767 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8768 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8769 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8770 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8771 (vec_cmpungt<mode>): New expander.
8772 (vec_cmpunge<mode>): Likewise.
8773 (vec_cmpuneq<mode>): Use quiet patterns.
8774 (vec_cmpltgt<mode>): Allow only on z14+.
8775 (vec_cmpordered<mode>): Use quiet patterns.
8776 (vec_cmpunordered<mode>): Likewise.
8777 (VEC_CMP_EXPAND): Add ungt and unge.
8778
8779 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8780
8781 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8782 parameter.
8783 * lto-streamer-out.c: Include tree-dfa.h.
8784 (output_cfg): Do not use cfun.
8785 (lto_prepare_function_for_streaming): New.
8786 (output_function): Do not push cfun; do not initialize loop optimizer.
8787 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8788 * passes.c (ipa_write_summaries): Use it.
8789 (ipa_write_optimization_summaries): Do not modify bodies.
8790 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8791 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8792 * tree-ssa-dse.c (pass_dse::execute): Update use of
8793 renumber_gimple_stmt_uids.
8794 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8795
8796 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8797
8798 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8799 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8800
8801 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8802
8803 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8804 macros.
8805 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8806 Also define DFP macros for these conditions.
8807 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8808 DEC128_SUBNORMAL_MIN): Do not define.
8809 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8810 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8811
8812 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8813 Sandra Loosemore <sandra@codesourcery.com>
8814
8815 PR middle-end/26241
8816 * doc/lto.texi (IPA): Reference to the IPA passes.
8817 * doc/passes.texi (Pass manager): Add node IPA passes and
8818 description for each IPA pass.
8819
8820 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8821
8822 * ipa-reference.c: Do not include splay-tree.h
8823 (reference_vars_to_consider): Turn to hash map.
8824 (get_static_name, ipa_init, analyze_function, propagate,
8825 stream_out_bitmap, ipa_reference_write_optimization_summary,
8826 ipa_reference_write_optimization_summary): Update.
8827
8828 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8829
8830 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8831
8832 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8833
8834 * config/darwin.c: Lookup Objective C metadata and force indirection
8835 for IVAR refs.
8836
8837 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8838
8839 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8840 addresses.
8841 (mem_operand_gpr): Add check for prefixed addresses.
8842 (mem_operand_ds_form): Add check for prefixed addresses.
8843 (rs6000_legitimate_offset_address_p): If we support prefixed
8844 addresses, check for a 34-bit offset instead of 16-bit.
8845 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8846 Do not allow load/store with update if the address is prefixed.
8847 (rs6000_mode_dependent_address): If we support prefixed
8848 addresses, check for a 34-bit offset instead of 16-bit.
8849
8850 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8851
8852 PR target/77918
8853 * config/s390/vector.md (vcond_comparison_operator): New
8854 predicate.
8855 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8856
8857 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8858
8859 PR 87488
8860 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8861 -D.
8862 * configure.ac (--with-documentation-root-url): New option.
8863 * configure: Regenerate.
8864 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8865 option URL, add it as a new string field of the diagnostic option.
8866 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8867 (print_option_information): If get_option_url is non-NULL, call
8868 it, and if the result is non-NULL, potentially emit an escape
8869 sequence to markup the option text with the resulting URL.
8870 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8871 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8872 example of JSON output.
8873 * opts-diagnostic.h (get_option_url): New decl.
8874 * opts.c (get_option_url): New function.
8875 * toplev.c (general_init): Initialize the get_option_url callback.
8876
8877 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8878
8879 PR 87488
8880 * common.opt (fdiagnostics-urls=): New option.
8881 (diagnostic-url.h): Add SourceInclude.
8882 (diagnostic_url_rule): New enum.
8883 * diagnostic-color.c: Include "diagnostic-url.h".
8884 (diagnostic_urls_enabled_p): New function.
8885 * diagnostic-url.h: New file.
8886 * diagnostic.c: Include "diagnostic-url.h".
8887 (diagnostic_urls_init): New function.
8888 * diagnostic.h (diagnostic_urls_init): New decl.
8889 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8890 -fdiagnostics-urls to the list.
8891 (-fdiagnostics-urls): New option.
8892 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8893 (driver::global_initializations): Call diagnostic_urls_init.
8894 * opts-global.c (init_options_once): Likewise.
8895 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8896 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8897 show_urls.
8898 (pp_begin_url): New function.
8899 (pp_end_url): New function.
8900 (selftest::test_urls): New selftest.
8901 (selftest::pretty_print_c_tests): Call it.
8902 * pretty-print.h (pretty_printer::show_urls): New field.
8903 (pp_begin_url): New decl.
8904 (pp_end_url): New decl.
8905
8906 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8907
8908 PR target/92022
8909 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8910
8911 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8912
8913 PR target/88630
8914 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8915 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8916 also for TARGET_FPU_SH4_300.
8917 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8918 TARGET_SH4_300.
8919 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8920 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8921 (*negsf2_i): Split into ...
8922 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8923 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8924 (**abssf2_i): Split into ...
8925 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8926 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8927 (*negdf2_i): Split into ...
8928 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8929 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8930 (**abssf2_i): Split into ...
8931 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8932
8933 2019-10-10 Richard Biener <rguenther@suse.de>
8934
8935 PR middle-end/92046
8936 * opts.c (finish_options): Do not influence global --params
8937 from options that are adjustable per function.
8938 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8939 Apply --param adjustment based on active cost-model.
8940 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8941 further store-sinking when vectorization or if-conversion
8942 are not enabled.
8943
8944 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8945
8946 PR middle-end/92037
8947 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8948 rather than ggc_alloc_cleared to alloc symbol table.
8949 * toplev.c (general_init): Likewise.
8950 * cgraph.h (symbol_table): Explicitly construct every field.
8951
8952 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8953
8954 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8955 (PF_Z15): ... this.
8956 * config.gcc: Add z15 as option for --with-arch and --with-tune
8957 configure switches.
8958 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8959 error reporting for unsupported builtins.
8960 * config/s390/s390-opts.h (enum processor_type): Rename
8961 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8962 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8963 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8964 Likewise.
8965 * config/s390/s390-builtins.def: Likewise.
8966 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8967 (s390_expand_builtin): Add missing check for unsupported builtins.
8968 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8969 (s390_rtx_costs): Likewise.
8970 (s390_get_sched_attrmask): Rename arch13 to z15.
8971 (s390_get_unit_mask): Likewise.
8972 (s390_is_fpd): Likewise.
8973 (s390_is_fxd): Likewise.
8974 * config/s390/s390.h (enum processor_flags): Likewise.
8975 * config/s390/s390.md: Likewise.
8976 * config/s390/vector.md: Likewise.
8977 * config/s390/vx-builtins.md: Likewise.
8978 * config/s390/s390.opt: Add z15 to processor_type value.
8979
8980 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8981
8982 PR target/91035
8983 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8984 prototype.
8985 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8986 ("split_stack_data", "split_stack_call")
8987 ("split_stack_call_<mode>", "split_stack_cond_call")
8988 ("split_stack_cond_call_<mode>"): Remove.
8989 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8990 insn definition.
8991 * config/s390/s390.c (s390_output_split_stack_data): New function.
8992 (s390_expand_split_stack_prologue): Use the merged expander.
8993
8994 2019-10-09 Martin Sebor <msebor@redhat.com>
8995
8996 PR tree-optimization/90879
8997 * builtins.c (check_access): Avoid using maxbound when null.
8998 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8999 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9000 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9001 conditional.
9002 (get_range_strlen): Overwrite initial maxbound when non-null.
9003 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9004 changes.
9005 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9006 (used_only_for_zero_equality): New function.
9007 (handle_builtin_memcmp): Call it.
9008 (determine_min_objsize): Return an integer instead of tree.
9009 (get_len_or_size, strxcmp_eqz_result): New functions.
9010 (maybe_warn_pointless_strcmp): New function.
9011 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9012 between a longer string and a smaller array.
9013 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9014
9015 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9016
9017 * config/darwin.c (darwin_override_options): Make the check for
9018 Objective-C ABI version more specific for 64bit code.
9019
9020 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9021
9022 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9023 indicate that the new symbol is an indirection.
9024 (machopic_indirect_call_target): Likewise.
9025 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9026 (MACHO_SYMBOL_INDIRECTION_P): New.
9027 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9028
9029 2019-10-08 Jason Merrill <jason@redhat.com>
9030
9031 * doc/invoke.texi: Document -fconcepts-ts.
9032
9033 2019-10-09 Richard Biener <rguenther@suse.de>
9034
9035 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9036 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9037
9038 2019-10-08 Richard Biener <rguenther@suse.de>
9039
9040 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9041 (_stmt_vec_info::force_single_cycle): Likewise.
9042 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9043 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9044 * tree-vect-loop.c (vectorizable_reduction): Set
9045 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9046 (vect_transform_reduction): Use them to remove redundant code.
9047 (vect_transform_cycle_phi): Likewise.
9048
9049 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9050
9051 PR tree-optimization/90836
9052 * match.pd (popcount): New pattern.
9053
9054 2019-10-08 Martin Sebor <msebor@redhat.com>
9055
9056 PR middle-end/92026
9057 PR middle-end/92014
9058 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9059 again once nbytes has been set. Set the access size when not yet set.
9060
9061 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9062
9063 * config/darwin.c (machopic_select_section): Remove dead code for
9064 old Objective-C section selection method, replace with unreachable.
9065
9066 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9067
9068 * config/darwin.c (machopic_indirect_data_reference): Check for
9069 required indirections before making direct access to defined
9070 values.
9071 (machopic_output_indirection): Place the indirected pointes for
9072 required indirections into the non-lazy symbol pointers section.
9073 (darwin_encode_section_info):
9074 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9075 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9076
9077 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9078
9079 PR target/91994
9080 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9081 instead of ALL_SSE_REG to check if function call preserves some
9082 256-bit SSE registers.
9083
9084 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9085
9086 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9087 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9088 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9089
9090 2019-10-08 Richard Biener <rguenther@suse.de>
9091
9092 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9093 (_stmt_vec_info::is_reduc_info): Add.
9094 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9095 (vectorizable_condition): Remove.
9096 (vectorizable_shift): Likewise.
9097 (vectorizable_reduction): Adjust.
9098 (info_for_reduction): New.
9099 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9100 (vect_analyze_scalar_cycles_1): ... here.
9101 (vect_analyze_loop_operations): Adjust.
9102 (needs_fold_left_reduction_p): Simplify for single caller.
9103 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9104 for nested cycles not part of double reductions.
9105 (vect_model_reduction_cost): Pass in the reduction type.
9106 (info_for_reduction): New function.
9107 (vect_create_epilog_for_reduction): Use it, access reduction
9108 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9109 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9110 (vectorize_fold_left_reduction): Remove pointless assert.
9111 (vectorizable_reduction): Analyze the full reduction when
9112 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9113 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9114 stmt code-generation to vectorizable_* in most cases. Verify
9115 code-generation only for cases handled by
9116 vect_transform_reductuon.
9117 (vect_transform_reduction): Use info_for_reduction to get at
9118 reduction meta. Simplify.
9119 (vect_transform_cycle_phi): Likewise.
9120 (vectorizable_live_operation): Likewise.
9121 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9122 at the PHI node for STMT_VINFO_REDUC_TYPE.
9123 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9124 longer necessary code.
9125 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9126 (vectorizable_condition): Likewise. Get at reduction related
9127 info via info_for_reduction.
9128 (vect_analyze_stmt): Adjust.
9129 (vect_transform_stmt): Likewise.
9130 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9131 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9132
9133 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9134
9135 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9136 -fno-fp-int-builtin-inexact default for C2X.
9137
9138 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9139 Richard Biener <rguenther@suse.de>
9140
9141 PR tree-optimization/91532
9142 * tree-if-conv.c: Include tree-ssa-dse.h.
9143 (ifcvt_local_dce): Change param from bb to loop,
9144 and call dse_classify_store.
9145 (tree_if_conversion): Pass loop instead of loop->header as arg
9146 to ifcvt_local_dce.
9147 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9148 (delete_dead_or_redundant_assignment): Remove static qualifier from
9149 declaration, and add prototype in tree-ssa-dse.h.
9150 (dse_store_status): Move to tree-ssa-dse.h.
9151 (dse_classify_store): Remove static qualifier and add new tree param
9152 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9153 * tree-ssa-dse.h: New header.
9154
9155 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9156
9157 * config/darwin.c (machopic_output_indirection): Don't put
9158 hidden symbol indirections into the .data section, use the
9159 non-lazy symbol pointers section as normal.
9160 (darwin_encode_section_info): Record if a symbol is hidden.
9161 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9162 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9163
9164 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9165
9166 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9167 predicates instead of accessing bits directly.
9168 (machopic_indirect_call_target): Likewise.
9169 (machopic_output_indirection): Likewise.
9170 (darwin_encode_section_info): Improve description. Use renamed
9171 symbol flags. Use predicate macros for variables and functions.
9172 * config/darwin.h:
9173 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9174 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9175 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9176 (MACHO_SYMBOL_VARIABLE_P): New.
9177 (MACHO_SYMBOL_DEFINED_P):New.
9178 (MACHO_SYMBOL_STATIC_P): New.
9179 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9180 (SYMBOL_FLAG_SUBT_DEP): New.
9181 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9182
9183 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9184
9185 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9186 (msp430_expand_epilogue): Likewise.
9187 * config/msp430/predicates.md: Likewise.
9188 * config/msp430/msp430.md: Likewise.
9189 Replace blocks of 8 spaces with tabs.
9190
9191 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9192
9193 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9194 * config/msp430/msp430.c (msp430_split_addsi): New.
9195 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9196 a block of C code for splitting addsi.
9197
9198 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9199
9200 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9201 ix86_expand_rounddf_32): Reorder functions.
9202 * config/i386/i386-protos.h: Update.
9203
9204 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9205
9206 * config.in: Regenerate.
9207 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9208 Add new "Yx" constraint.
9209 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9210 function.
9211 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9212 prototype.
9213 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9214 code/data region to be selected in the small memory model.
9215 (msp430_section_attr): Don't warn if the "section" and "lower"
9216 attributes are used together.
9217 (msp430_handle_generic_attribute): Likewise.
9218 (msp430_var_in_low_mem): New function.
9219 (TARGET_ENCODE_SECTION_INFO): Define.
9220 (msp430_encode_section_info): New function.
9221 (gen_prefix): Return early in the small memory model.
9222 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9223 ".lower" prefix if -m{code,data}-region=lower have been passed.
9224 (msp430_output_aligned_decl_common): Emit common symbols when
9225 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9226 set.
9227 (TARGET_ASM_FILE_END): Define.
9228 (msp430_file_end): New function.
9229 (msp430_do_not_relax_short_jumps): Allow relaxation when
9230 function will be in the lower region.
9231 (msp430_op_not_in_high_mem): New function.
9232 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9233 the 'X' operand selector.
9234 Clarify comment for 'x' operand selector.
9235 * config/msp430/msp430.h (LINK_SPEC): Propagate
9236 -m{code,data}-region to the linker via spec function
9237 msp430_propagate_region_opt.
9238 (msp430_propagate_region_opt): New prototype.
9239 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9240 (SYMBOL_FLAG_LOW_MEM): Define.
9241 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9242 selector.
9243 (zero_extendqihi2): Fix operand number used by "%X" selector.
9244 (zero_extendqisi2): Likewise.
9245 (zero_extendhisi2): Likewise.
9246 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9247 (movhi): Likewise.
9248 (addqi3): Likewise.
9249 (addhi3): Likewise.
9250 (addsi3): Likewise.
9251 (addhi3_cy): Likewise.
9252 (addchi4_cy): Likewise.
9253 (subqi3): Likewise.
9254 (subhi3): Likewise.
9255 (subsi3): Likewise.
9256 (bic<mode>3): Likewise.
9257 (and<mode>3): Likewise.
9258 (ior<mode>3): Likewise.
9259 (xor<mode>3): Likewise.
9260 (slli_1): Add missing "%X" operand selector.
9261 (slll_1): Likewise.
9262 (slll_2): Likewise.
9263 (srai_1): Likewise.
9264 (sral_1): Likewise.
9265 (sral_2): Likewise.
9266 (srli_1): Likewise.
9267 (srll_1): Likewise.
9268 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9269 selector.
9270 (cbranchhi4_real): Likewise.
9271 (cbranchqi4_reversed): Likewise.
9272 (cbranchhi4_reversed): Likewise.
9273 (*bitbranch<mode>4): Likewise.
9274 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9275 * config/msp430/msp430.opt (mcode-region=): Set default to
9276 MSP430_REGION_LOWER. Improve docstring.
9277 (mdata-region=): Likewise.
9278 (muse-lower-region-prefix): New option.
9279 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9280 mdata-region=none multilib.
9281 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9282 mdata-region=none multilib.
9283 MULTILIB_EXCEPTIONS: Remove.
9284 MULTILIB_REQUIRED: Define.
9285 * configure: Regenerate.
9286 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9287 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9288 * doc/extend.texi: Clarify comment for {upper,lower,either}
9289 function attributes.
9290 Add separate description for "lower" variable attribute.
9291
9292 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9293
9294 PR target/77918
9295 * optabs-tree.c (vcond_icode_p): New function.
9296 (vcond_eq_icode_p): Likewise.
9297 (expand_vec_cond_expr_p): Use vcond_icode_p and
9298 vcond_eq_icode_p.
9299 * optabs.c (can_vcond_compare_p): New function.
9300 * optabs.h (can_vcond_compare_p): Likewise.
9301
9302 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9303
9304 PR target/77918
9305 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9306 caller passes a non-trapping condition.
9307 (is_gimple_condexpr): Allow trapping conditions.
9308 (is_gimple_condexpr_1): New helper function.
9309 (is_gimple_condexpr_for_cond): New function, acts like old
9310 is_gimple_condexpr.
9311 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9312 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9313 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9314 * gimplify.c (gimplify_cond_expr): Use
9315 is_gimple_condexpr_for_cond.
9316 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9317 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9318 VEC_COND_EXPR.
9319 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9320 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9321 is_gimple_condexpr_for_cond, remove pointless tmp check
9322 (forward_propagate_into_cond): Remove pointless tmp check.
9323
9324 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9325
9326 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9327 match that of other gsi_next_* functions. Adjust the comment.
9328 (gsi_start_nonvirtual_phis): New function.
9329 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9330 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9331
9332 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9333
9334 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9335 setjmp situation here. Fix a verb's ending: "the exact variables or
9336 elements for which there are warnings depends" -> "... depend".
9337
9338 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9339
9340 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9341
9342 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9343
9344 * ipa-prop.c (ipa_vr::nonzero_p): New.
9345 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9346 non-zero range.
9347 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9348 * tree-vrp.c (range_has_numeric_bounds_p): New.
9349 (range_int_cst_p): Use range_has_numeric_bounds_p.
9350 (get_range_op_handler): New.
9351 (supported_types_p): New.
9352 (defined_ranges_p): New.
9353 (drop_undefines_to_varying): New.
9354 (range_fold_binary_symbolics_p): New.
9355 (range_fold_unary_symbolics_p): New.
9356 (range_fold_unary_expr): Extract out into above functions.
9357 (range_fold_binary_expr): Same.
9358 (value_range_base::normalize_addresses): New.
9359 (value_range_base::normalize_symbolics): Normalize addresses.
9360 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9361
9362 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9363
9364 * tree-vrp.c (value_range_base::singleton_p): Use
9365 value_range_base::num_pairs instead of vrp_val_is* to check
9366 if a range has one sub-range.
9367
9368 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9369
9370 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9371 DEF is not a true earlyclobber but is tied to a specific input
9372 operand, and so is effectively earlyclobber wrt inputs that have
9373 different values.
9374 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9375
9376 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9377
9378 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9379 (pod_mode): Mark operators likewise.
9380 (scalar_int_mode): Mark non-default constructors and
9381 operators with CONSTEXPR.
9382 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9383 (fixed_size_mode): Likewise.
9384
9385 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9386
9387 PR target/91994
9388 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9389 and wrap the unspec_volatile in a parallel.
9390 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9391 the unspec_volatile.
9392 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9393 unspec_volatile to be wrapped in a parallel.
9394 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9395 (ix86_add_reg_usage_to_vzerouppers): New functions.
9396 (rest_of_handle_insert_vzeroupper): Use them to add register
9397 usage information to the vzeroupper instructions.
9398
9399 2019-10-07 Richard Biener <rguenther@suse.de>
9400
9401 PR tree-optimization/91975
9402 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9403 handle invariants.
9404
9405 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9406
9407 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9408 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9409
9410 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9411
9412 * config/darwin.c (darwin_override_options): Adjust objective-c
9413 ABI version error messages to avoid punctuation and contracted
9414 negations.
9415
9416 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9417
9418 * ipa-inline.c: Fix type; compute size rather than self_size
9419 for size of caller function.
9420
9421 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9422
9423 PR target/59888
9424 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9425 choose const_data section for constants with relocations.
9426 (machopic_select_section): Pass relocation flag to
9427 darwin_rodata_section ().
9428
9429 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9430
9431 PR tree-optimization/91734
9432 * generic-match-head.c: Include fold-const-call.h.
9433 * match.pd (sqrt(x) cmp c): Check the boundary value and
9434 in case inexact computation of c*c affects comparison of the boundary,
9435 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9436 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9437 for -frounding-math. For c2, try the next smaller or larger floating
9438 point constant depending on comparison code and if it has the same
9439 sqrt as c2, use it instead of c2.
9440
9441 2019-10-04 Martin Sebor <msebor@redhat.com>
9442
9443 PR middle-end/91977
9444 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9445 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9446 uninitialized objects.
9447
9448 2019-10-04 Martin Sebor <msebor@redhat.com>
9449
9450 * builtins.c (compute_objsize): Add an argument.
9451 * tree-object-size.c (addr_object_size): Same.
9452 (compute_builtin_object_size): Same.
9453 * tree-object-size.h (compute_builtin_object): Same.
9454
9455 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9456
9457 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9458
9459 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9460
9461 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9462
9463 2019-10-04 Martin Jambor <mjambor@suse.cz>
9464
9465 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9466 fntype when switching to calling memcpy instead of memset.
9467
9468 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9469
9470 * hash-table.h (hash_table::empty_slow): Don't assign
9471 size_t values to int variables.
9472
9473 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9474
9475 * expr.c (convert_mode_scalar): Remove shadowing local var.
9476 (emit_block_move): Rename local vars.
9477 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9478 (emit_push_insn): Rename local vars.
9479 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9480 shadowing local vars.
9481 (store_constructor): Remove shadowing local vars. Rename local var.
9482 (store_field, expand_cond_expr_using_cmove,
9483 expand_expr_real_2): Remove shadowing local vars.
9484 (expand_expr_real_1,
9485 do_store_flag): Remove shadowing local vars. Rename local vars.
9486
9487 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9488
9489 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9490
9491 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9492
9493 * genmatch.c (commutate): Rename local var.
9494 (lower_cond): Reuse local var.
9495 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9496 dt_operand::gen, dt_operand::gen_gimple_expr,
9497 dt_simplify::gen): Add a param. Rename generated vars.
9498 (decision_tree::insert_operand,
9499 (capture_info::walk_match, capture_info::walk_result,
9500 capture_info::walk_c_expr): Rename local vars.
9501 (expr::gen_transform): Rename generated vars.
9502 Use snprintf. Rename local vars.
9503 (capture::gen_transform, dt_operand::get_name,
9504 dt_operand::gen_opname): Rename generated vars.
9505 (write_predicate): Adjust call to gen_kids.
9506 (parser::get_internal_capture_id): Rename generated vars.
9507 (parser::parse_expr): Rename local vars.
9508 (parser::parse_if): Remove local var.
9509 (parser::parse_pattern, add_operator): Rename local vars.
9510
9511 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9512
9513 * builtins.def (DEF_C2X_BUILTIN): New macro.
9514 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9515 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9516 (strndup): Use DEF_C2X_BUILTIN.
9517 * coretypes.h (enum function_class): Add function_c2x_misc.
9518
9519 2019-10-04 Maya Rashish <coypu@sdf.org>
9520
9521 * ira-color.c (update_costs_from_allocno): Call
9522 ira_init_register_move_cost_if_necessary.
9523
9524 2019-10-04 Jeff Law <law@redhat.com>
9525
9526 * config/h8300/h8300.md (cpymemsi): Disable.
9527 (movmd, movmd_internal_<mode>, movstr, movsd):
9528 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9529 (movmd splitter, movsd splitter): Likewise.
9530
9531 * range-op.cc (range_tests): Avoid two tests when ints and
9532 shorts are the same size.
9533
9534 2019-10-04 Richard Biener <rguenther@suse.de>
9535
9536 PR lto/91968
9537 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9538 BLOCK_VARS.
9539
9540 2019-10-04 Richard Biener <rguenther@suse.de>
9541
9542 PR tree-optimization/91982
9543 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9544 against EXTRACT_LAST_REDUCTION.
9545 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9546
9547 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9548
9549 * range-op.o (value_range_from_overflowed_bounds): Rename from
9550 adjust_overflow_bound.
9551 (value_range_with_overflow): Rename from
9552 create_range_with_overflow.
9553 (create_possibly_reversed_range): Adjusted for above renames.
9554 (operator_*::wi_fold): Same.
9555 (cross_product_operator::wi_cross_productor): Same.
9556
9557 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9558
9559 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9560 -Wshadow=compatible-local): Fix description.
9561 Add an example where -Wshadow=compatible-local does not
9562 warn.
9563
9564 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9565
9566 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9567
9568 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9569 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9570
9571 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9572
9573 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9574 can_move_by_pieces issue.
9575
9576 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9577
9578 PR target/87243
9579 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9580 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9581 is available and the user has not set one on the command line.
9582
9583 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9584
9585 PR target/91769
9586 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9587 instead of REGNO equality check on addr.reg.
9588
9589 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9590
9591 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9592 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9593 * doc/invoke.texi (inline-heuristics-hint-percent,
9594 inline-heuristics-hint-percent-O2): Document.
9595 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9596 hint attribute.
9597 (can_inline_edge_by_limits_p): Use it.
9598
9599 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9600
9601 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9602 to print CONST_DOUBLEs.
9603
9604 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9605
9606 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9607 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9608 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9609
9610 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9611
9612 * Makefile.in (OBJS): Add range.o and range-op.o.
9613 Remove wide-int-range.o.
9614 * function-tests.c (test_ranges): New.
9615 (function_tests_c_tests): Call test_ranges.
9616 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9617 range_fold_unary_expr instead of extract_range_from_unary_expr.
9618 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9619 * range-op.cc: New file.
9620 * range-op.h: New file.
9621 * range.cc: New file.
9622 * range.h: New file.
9623 * selftest.h (range_tests): New prototype.
9624 * ssa.h: Include range.h.
9625 * tree-vrp.c (value_range_base::value_range_base): New
9626 constructors.
9627 (value_range_base::singleton_p): Do not call
9628 ranges_from_anti_range until sure we will need to.
9629 (value_range_base::type): Rename gcc_assert to
9630 gcc_checking_assert.
9631 (vrp_val_is_max): New argument.
9632 (vrp_val_is_min): Same.
9633 (wide_int_range_set_zero_nonzero_bits): Move from
9634 wide-int-range.cc.
9635 (extract_range_into_wide_ints): Remove.
9636 (extract_range_from_multiplicative_op): Remove.
9637 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9638 from extract_range_from_binary_expr.
9639 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9640 from extract_range_from_binary_expr.
9641 (extract_range_from_binary_expr): Remove.
9642 (normalize_for_range_ops): New.
9643 (range_fold_binary_expr): New.
9644 (range_fold_unary_expr): New.
9645 (value_range_base::num_pairs): New.
9646 (value_range_base::lower_bound): New.
9647 (value_range_base::upper_bound): New.
9648 (value_range_base::upper_bound): New.
9649 (value_range_base::contains_p): New.
9650 (value_range_base::invert): New.
9651 (value_range_base::union_): New.
9652 (value_range_base::intersect): New.
9653 (range_compatible_p): New.
9654 (value_range_base::operator==): New.
9655 (determine_value_range_1): Call range_fold_*expr instead of
9656 extract_range_from_*expr.
9657 * tree-vrp.h (class value_range_base): Add new constructors.
9658 Add methods for union_, intersect, operator==, contains_p,
9659 num_pairs, lower_bound, upper_bound, invert.
9660 (vrp_val_is_min): Add handle_pointers argument.
9661 (vrp_val_is_max): Same.
9662 (extract_range_from_unary_expr): Remove.
9663 (extract_range_from_binary_expr): Remove.
9664 (range_fold_unary_expr): New.
9665 (range_fold_binary_expr): New.
9666 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9667 range_fold_binary_expr instead of extract_range_from_binary_expr.
9668 (vr_values::extract_range_basic): Same.
9669 (vr_values::extract_range_from_unary_expr): Call
9670 range_fold_unary_expr instead of extract_range_from_unary_expr.
9671 * wide-int-range.cc: Remove.
9672 * wide-int-range.h: Remove.
9673
9674 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9675
9676 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9677 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9678 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9679 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9680 macro.
9681
9682 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9683
9684 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9685 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9686 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9687 * glimits.h: Likewise.
9688
9689 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9690
9691 PR rtl-optimization/91976
9692 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9693 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9694 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9695
9696 2019-10-02 Martin Sebor <msebor@redhat.com>
9697
9698 PR tree-optimization/80936
9699 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9700
9701 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9702
9703 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9704 instead of reg_class_contents[ALL_REGS].
9705
9706 2019-09-30 Jason Merrill <jason@redhat.com>
9707
9708 Add some hash_map_safe_* functions like vec_safe_*.
9709 * hash-map.h (default_hash_map_size): New variable.
9710 (create_ggc): Use it as default argument.
9711 (hash_map_maybe_create, hash_map_safe_get)
9712 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9713
9714 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9715
9716 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9717 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9718 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9719 (can_inline_edge_by_limits_p): Use it.
9720 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9721 (want_inline_small_function_p): Use O2 bounds.
9722 (edge_badness): LIkewise.
9723 * opts.c (default_options): Add OPT_finline_functions.
9724 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9725 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9726 New parameters.
9727 * doc/invoke.texi (-finline-functions): Update documentation.
9728 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9729 inline-min-speedup-O2): Document.
9730 (early-inlining-insns-O2): Simplify docs.
9731
9732 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9733
9734 PR rtl-optimization/87047
9735 * ifcvt.c (average_cost): New static function. Use it...
9736 (noce_process_if_block): ... here.
9737
9738 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9739
9740 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9741 * config/rs6000/rs6000-string.c (expand_block_move): Add
9742 might_overlap parm.
9743 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9744 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9745
9746 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9747
9748 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9749 (expand_builtin_memcpy): Use might_overlap parm.
9750 (expand_builtin_mempcpy_args): Use might_overlap parm.
9751 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9752 (expand_builtin_memory_copy_args): Add might_overlap parm.
9753 * expr.c (emit_block_move_via_cpymem): Rename to
9754 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9755 or movmem optab as appropriate.
9756 (emit_block_move_hints): Add might_overlap parm, do the right
9757 thing for might_overlap==true.
9758 * expr.h (emit_block_move_hints): Update prototype.
9759
9760 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9761
9762 * tree-eh.h (unsplit_eh_edges): Declare.
9763 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9764 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9765 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9766 (struct store_immediate_info): Add lp_nr field.
9767 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9768 initialize lp_nr with it.
9769 (struct merged_store_group): Add lp_nr and only_constants fields.
9770 (merged_store_group::merged_store_group): Initialize them.
9771 (merged_store_group::can_be_merged_into): Deal with them.
9772 (pass_store_merging): Rename terminate_and_release_chain into
9773 terminate_and_process_chain.
9774 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9775 renaming and remove useless assertions.
9776 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9777 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9778 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9779 instead of always recomputing it and compare lp_nr.
9780 (imm_store_chain_info::output_merged_store): If the group is in an
9781 active EH region, register new stores if they can throw. Moreover,
9782 if the insertion has created new basic blocks, adjust the PHI nodes
9783 of the post landing pad.
9784 (imm_store_chain_info::output_merged_stores): If the original stores
9785 are in an active EH region, deregister them.
9786 (lhs_valid_for_store_merging_p): Prettify.
9787 (adjust_bit_pos): New function extracted from...
9788 (mem_valid_for_store_merging): ...here. Use it for the base address
9789 and also for the offset if it is the addition of a constant.
9790 (lp_nr_for_store): New function.
9791 (pass_store_merging::process_store): Change return type to bool.
9792 Call lp_nr_for_store to initialize the store info. Propagate the
9793 return status of various called functions to the return value.
9794 (store_valid_for_store_merging_p): New predicate.
9795 (enum basic_block_status): New enumeration.
9796 (get_status_for_store_merging): New function.
9797 (pass_store_merging::execute): If the function can throw and catch
9798 non-call exceptions, unsplit the EH edges on entry and clean up the
9799 CFG on exit if something changed. Call get_status_for_store_merging
9800 for every basic block and keep the chains open across basic blocks
9801 when possible. Terminate and process open chains at the end, if any.
9802
9803 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9804
9805 * reginfo.c (globalize_reg): Fix shadowed variable in
9806 function_abis walk.
9807
9808 2019-10-02 Martin Jambor <mjambor@suse.cz>
9809
9810 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9811 do not compute some stuff when set.
9812 (cgraph_node::create_edge): Likewise.
9813 (cgraph_node::create_indirect_edge): Renamed last parameter to
9814 coning_p and flipped its meaning, don't even calculate
9815 inline_failed when set.
9816 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9817 (symbol_table::::create_edge): Likewise.
9818 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9819 the default value.
9820 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9821 call graph edge creating functions.
9822
9823 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9824
9825 PR c++/91222
9826 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9827 namespace types.
9828
9829 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9830
9831 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9832
9833 2019-10-02 Richard Biener <rguenther@suse.de>
9834
9835 * tree-vectorizer.h (vect_transform_reduction): Declare.
9836 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9837 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9838 stmt transform to ...
9839 (vect_transform_reduction): ... this.
9840
9841 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9842
9843 * omp-low.c (lower_omp_target): Dereference optional argument
9844 to work with the right pointer.
9845
9846 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9847
9848 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9849 false.
9850 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9851 * langhooks.h (omp_is_optional_argument): New hook.
9852 * omp-general.c (omp_is_optional_argument): New.
9853 * omp-general.h (omp_is_optional_argument): New declaration.
9854 * omp-low.c (lower_omp_target): Create temporary for received value
9855 and take the address for new_var if the original variable was a
9856 DECL_BY_REFERENCE. Use size of referenced object when a
9857 pass-by-reference optional argument used as argument to firstprivate.
9858
9859 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9860
9861 PR tree-optimization/91940
9862 * tree-vect-patterns.c: Include tree-vector-builder.h and
9863 vec-perm-indices.h.
9864 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9865 unpromoting the argument back to uint16_t, or by converting into a
9866 rotate, or into shifts plus ior.
9867
9868 2019-10-02 Richard Biener <rguenther@suse.de>
9869
9870 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9871 New.
9872 (vect_transform_cycle_phi): Declare.
9873 * tree-vect-stmts.c (vect_transform_stmt): Call
9874 vect_transform_cycle_phi.
9875 * tree-vect-loop.c (vectorizable_reduction): Split out
9876 PHI transformation stage to ...
9877 (vect_transform_cycle_phi): ... here.
9878
9879 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9880
9881 PR middle-end/91957
9882 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9883 eliminable registers.
9884 (make_hard_regno_live): Likewise, and don't make them live.
9885
9886 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9887
9888 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9889 Call pp_emit_prefix.
9890 (layout::print_source_line): Likewise.
9891 (layout::start_annotation_line): Likewise.
9892 (diagnostic_show_locus): Remove call to temporarily clear the
9893 prefix.
9894 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9895 interaction of pp_set_prefix with rulers and fix-it hints.
9896 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9897 prefix when calling diagnostic_show_locus, rather than destroying
9898 it afterwards.
9899 (print_parseable_fixits): Temporarily clear prefix.
9900 * pretty-print.c (pp_format): Save and restore line_length, rather
9901 than assuming it is zero.
9902 (pp_output_formatted_text): Remove assertion that line_length is
9903 zero.
9904
9905 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9906
9907 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9908 Rename to ...
9909 (nonoverlapping_refs_since_match_p): ... this; handle also
9910 ARRAY_REFs.
9911 (alias_stats): Update stats.
9912 (dump_alias_stats): Likewise.
9913 (cheap_array_ref_low_bound): New function.
9914 (aliasing_matching_component_refs_p): Add partial_overlap
9915 argument;
9916 pass it to nonoverlapping_refs_since_match_p.
9917 (aliasing_component_refs_walk): Update call of
9918 aliasing_matching_component_refs_p
9919 (nonoverlapping_array_refs_p): New function.
9920 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9921 indirect_refs_may_alias_p): Update calls of
9922 nonoverlapping_refs_since_match_p.
9923
9924 2019-10-01 Maya Rashish <coypu@sdf.org>
9925
9926 PR target/85401
9927 * ira-color.c (allocno_copy_cost_saving): Call
9928 ira_init_register_move_cost_if_necessary.
9929
9930 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9931
9932 * Makefile.in (gnat_install_lib): New variable.
9933 * configure.ac: Substitute it.
9934 * configure: Regenerate.
9935
9936 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9937
9938 PR lto/91222
9939 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9940 is matched with non-C++ type
9941
9942 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9943
9944 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9945 after local CSE.
9946
9947 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9948
9949 * doc/invoke.texi (early-inlining-insns-O2): Document.
9950 (early-inlining-insns): Update.
9951 * params.def (early-inlining-insns-O2): New bound.
9952 (early-inlining-insns): Update docs.
9953 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9954
9955 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9956
9957 PR target/88562
9958 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9959 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9960 a memory access insn.
9961
9962 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9963
9964 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9965 vpmsumd.
9966
9967 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9968
9969 PR target/77918
9970 * config/s390/s390.c (s390_expand_vec_compare): Use
9971 gen_vec_cmpordered and gen_vec_cmpunordered.
9972 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9973 vec_unordered): Delete.
9974 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9975 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9976 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9977 (vec_cmp<code>): Generic dispatcher.
9978
9979 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9980
9981 PR target/77918
9982 * config/s390/vector.md (V_HW): Add V1TI in order to make
9983 vcond$a$b generate vcondv1tiv1tf.
9984
9985 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9986
9987 PR rtl-optimization/91948
9988 * ira-build.c (ira_create_allocno): Initialize
9989 ALLOCNO_CROSSED_CALLS_ABIS.
9990 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9991 than regno to ira_need_caller_save_p.
9992
9993 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9994
9995 * config/i386/i386-options.c
9996 (ix86_recompute_optlev_based_flags): New, moved out of...
9997 (ix86_option_override_internal): ... this. Call it.
9998 (ix86_override_options_after_change): Call it here too.
9999
10000 PR debug/91507
10001 * dwarf2out.c (override_type_for_decl_p): New.
10002 (gen_variable_die): Use it.
10003
10004 2019-10-01 Richard Biener <rguenther@suse.de>
10005
10006 * tree-vect-loop.c (vectorizable_reduction): Move variables
10007 to where they are used.
10008
10009 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10010
10011 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10012 (build_def_use): Use PC instead of CC0 in a comment.
10013
10014 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10015
10016 * rtl.def (CLOBBER_HIGH): Delete.
10017 * doc/rtl.texi (clobber_high): Remove documentation.
10018 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10019 (reg_is_clobbered_by_clobber_high): Delete.
10020 (gen_hard_reg_clobber_high): Likewise.
10021 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10022 * cfgexpand.c (expand_gimple_stmt): Likewise.
10023 * combine-stack-adj.c (single_set_for_csa): Likewise.
10024 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10025 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10026 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10027 * cse.c (invalidate_reg): Remove clobber_high parameter.
10028 (invalidate): Update call accordingly.
10029 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10030 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10031 (count_reg_usage, insn_live_p): Likewise.
10032 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10033 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10034 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10035 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10036 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10037 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10038 (mark_nonreg_stores_2): Likewise.
10039 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10040 (df_get_call_refs): Likewise.
10041 * dwarf2out.c (mem_loc_descriptor): Likewise.
10042 * emit-rtl.c (verify_rtx_sharing): Likewise.
10043 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10044 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10045 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10046 * genemit.c (gen_exp, gen_insn): Likewise.
10047 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10048 * haifa-sched.c (haifa_classify_rtx): Likewise.
10049 * ira-build.c (create_insn_allocnos): Likewise.
10050 * ira-costs.c (scan_one_insn): Likewise.
10051 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10052 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10053 * jump.c (mark_jump_label_1): Likewise.
10054 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10055 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10056 handling.
10057 (mark_not_eliminable): Likewise.
10058 * lra-lives.c (process_bb_lives): Likewise.
10059 * lra.c (new_insn_reg): Remove clobber_high parameter.
10060 (collect_non_operand_hard_regs): Likewise. Update call to new
10061 insn_reg. Remove CLOBBER_HIGH handling.
10062 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10063 to collect_non_operand_hard_regs.
10064 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10065 Update call to new_insn_reg.
10066 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10067 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10068 (move2add_note_store): Likewise.
10069 * print-rtl.c (print_pattern): Likewise.
10070 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10071 (if_test_bypass_p): Likewise.
10072 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10073 * reginfo.c (reg_scan_mark_refs): Likewise.
10074 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10075 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10076 (forget_old_reloads_1): Likewise.
10077 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10078 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10079 (dbr_schedule): Likewise.
10080 * resource.c (update_live_status, mark_referenced_resources)
10081 (mark_set_resources): Likewise.
10082 * rtl.c (copy_rtx): Likewise.
10083 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10084 (note_pattern_stores): Likewise.
10085 (reg_is_clobbered_by_clobber_high): Delete.
10086 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10087 CLOBBER_HIGH handling.
10088
10089 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10090
10091 PR target/91452
10092 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10093 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10094 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10095 Handle ARM_PCS_TLSDESC.
10096 (aarch64_tlsdesc_abi_id): New function.
10097 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10098 rtx instead of a list of clobbers and clobber_highs.
10099 (tlsdesc_small_<mode>): Update accordingly.
10100
10101 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10102
10103 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10104 extra callee_abi argument.
10105 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10106 Insert a CALLEE_ABI unspec into the call pattern as the second
10107 element in the PARALLEL.
10108 (aarch64_simd_call_p): Delete.
10109 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10110 the new CALLEE_ABI element of the PARALLEL.
10111 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10112 from the function type, if given.
10113 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10114 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10115 when passed the function_arg_info end marker.
10116 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10117 final argument of gen_sibcall.
10118 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10119 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10120 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10121 pattern.
10122 (call_value): Likewise operand 3.
10123 (sibcall): Likewise operand 2. Place the unspec before rather than
10124 after the return.
10125 (sibcall_value): Likewise operand 3.
10126 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10127 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10128 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10129 constraint strings.
10130 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10131
10132 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10133
10134 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10135 choose_hard_reg_mode.
10136 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10137
10138 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10139
10140 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10141 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10142 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10143
10144 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10145
10146 * diagnostic-show-locus.c (line_label::line_label): Initialize
10147 m_has_vbar.
10148 (line_label::comparator): Reverse the sort order by m_state_idx,
10149 so that when the list is walked backwards the labels appear in
10150 order of insertion into the rich_location.
10151 (line_label::m_has_vbar): New field.
10152 (layout::print_any_labels): When dealing with multiple labels at
10153 the same line and column, only print vertical bars for the one
10154 with the highest label_line.
10155 (selftest::test_one_liner_labels): Update test for multiple labels
10156 to expect the labels to be in the order of insertion into the
10157 rich_location. Add a test for many such labels, where the column
10158 numbers are out-of-order relative to the insertion order.
10159
10160 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10161
10162 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10163 (ix86_frame::expensive_count): Likewise.
10164 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10165 of use_fast_prologue_epilogue robust against incidental changes
10166 in function size.
10167
10168 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10169
10170 PR target/77918
10171 * config/s390/vector.md (vec_unordered<mode>): Call
10172 gen_vec_ordered<mode>.
10173
10174 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10175
10176 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10177 New pattern for ASRD.
10178 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10179 * internal-fn.def (IFN_DIV_POW2): New internal function.
10180 * optabs.def (sdiv_pow2_optab): New optab.
10181 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10182 Modify pattern to support new operation.
10183 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10184 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10185 Document new target selector.
10186
10187 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10188
10189 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10190 to test whether we're compiling a vector PCS function and to test
10191 whether the function needs to save a particular register.
10192 Remove the vector PCS handling of df_set_regs_ever_live.
10193 (aarch64_components_for_bb): Use crtl->abi to test whether
10194 the function needs to save a particular register.
10195 (aarch64_process_components): Use crtl->abi to test whether
10196 we're compiling a vector PCS function.
10197 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10198 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10199
10200 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10201
10202 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10203 Delete.
10204 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10205 whether the block calls a function that clobbers more registers
10206 than the current function is allowed to.
10207 (aarch64_use_simple_return_insn_p): Delete.
10208 * config/aarch64/aarch64.md (simple_return): Remove condition.
10209
10210 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10211
10212 * function-abi.h (function_abi_aggregator): New class.
10213 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10214 function.
10215 * ira.c (update_equiv_regs_prescan): New function. Call
10216 set_paradoxical_subreg here rather than...
10217 (update_equiv_regs): ...here.
10218 (ira): Call update_equiv_regs_prescan.
10219
10220 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10221
10222 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10223 IN_TARGET_CODE.
10224 (call_used_or_fixed_regs): Likewise.
10225 (call_used_or_fixed_reg_p): Likewise.
10226 * reginfo.c (regs_invalidated_by_call): New macro.
10227
10228 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10229
10230 * shrink-wrap.c: Include function-abi.h.
10231 (requires_stack_frame_p): Use crtl->abi to test whether the
10232 current function can use a register without saving it first.
10233
10234 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10235
10236 * sel-sched-ir.h (_def::crosses_call): Replace with...
10237 (_def::crossed_call_abis): ..this new field.
10238 (def_list_add): Take a mask of ABIs instead of a crosses_call
10239 boolean.
10240 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10241 of _def accordingly.
10242 * sel-sched.c: Include function-abi.h.
10243 (hard_regs_data::regs_for_call_clobbered): Delete.
10244 (reg_rename::crosses_call): Replace with...
10245 (reg_rename::crossed_call_abis): ...this new field.
10246 (fur_static_params::crosses_call): Replace with...
10247 (fur_static_params::crossed_call_abis): ...this new field.
10248 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10249 (init_hard_regs_data): Use crtl->abi to test which registers the
10250 current function would need to save before it uses them.
10251 (mark_unavailable_hard_regs): Update handling of call-clobbered
10252 registers, using call_clobbers_in_region to find out which registers
10253 might be call-clobbered (but without taking -fipa-ra into account
10254 for now). Remove separate handling of partially call-clobbered
10255 registers.
10256 (verify_target_availability): Use crossed_call_abis instead of
10257 crosses_call.
10258 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10259 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10260
10261 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10262
10263 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10264 function to test whether a register is fully or partly clobbered.
10265
10266 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10267
10268 * rtlanal.c: Include function-abi.h.
10269 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10270 function and clobbers_reg_p to test whether the register
10271 is call-clobbered.
10272 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10273 to get the ABI of the called function and full_reg_clobbers to
10274 get the set of fully call-clobbered registers. Warn about the
10275 pitfalls of using this mode.
10276
10277 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10278
10279 * reload.c: Include function-abi.h.
10280 (find_equiv_reg): Use clobbers_reg_p to test whether either
10281 of the equivalent registers is clobbered by a call.
10282 * reload1.c: Include function-abi.h.
10283 (reg_reloaded_call_part_clobbered): Delete.
10284 (reload): Use crtl->abi to test which registers would need
10285 saving in the prologue before use.
10286 (find_reg): Likewise.
10287 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10288 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10289 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10290
10291 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10292
10293 * regrename.h (du_head::call_clobber_mask): New field.
10294 (du_head::need_caller_save_reg): Replace with...
10295 (du_head::call_abis): ...this new field.
10296 * regrename.c: Include function-abi.h.
10297 (call_clobbered_in_chain_p): New function.
10298 (check_new_reg_p): Use crtl->abi when deciding whether a register
10299 is free for use after RA. Use call_clobbered_in_chain_p to test
10300 whether a candidate register would be clobbered by a call.
10301 (find_rename_reg): Don't add call-clobber conflicts here.
10302 (rename_chains): Check call_abis instead of need_caller_save_reg.
10303 (merge_chains): Update for changes to du_head.
10304 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10305 target. Record the ABI identifier in call_abis and the set of
10306 fully or partially clobbered registers in call_clobber_mask.
10307 Add fully-clobbered registers to hard_conflicts here rather
10308 than in find_rename_reg.
10309 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10310 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10311 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10312 function-abi.h.
10313 * config/c6x/c6x.c: Likewise.
10314
10315 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10316
10317 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10318 mode of the register when deciding whether it is no longer
10319 available after a call.
10320
10321 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10322
10323 * recog.c: Include function-abi.h.
10324 (peep2_find_free_register): Use crtl->abi when deciding whether
10325 a register is free for use after RA.
10326
10327 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10328
10329 * postreload-gcse.c: Include regs.h and function-abi.h.
10330 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10331 call insn target. Conservatively assume that partially-clobbered
10332 registers are altered.
10333
10334 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10335
10336 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10337 when deciding whether a register is free for use after RA.
10338 (reload_combine): Remove unnecessary use of fixed_reg_set.
10339 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10340 call insn target. Use reg_mode when testing whether a register
10341 is no longer available.
10342
10343 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10344
10345 * target.def (return_call_with_max_clobbers): Delete.
10346 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10347 * doc/tm.texi: Regenerate.
10348 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10349 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10350 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10351 (lra_reg::call_insn): Delete.
10352 * lra.c: Include function-abi.h.
10353 (initialize_lra_reg_info_element): Don't initialize the fields above.
10354 (lra): Use crtl->abi to test whether the current function needs to
10355 save a register in the prologue. Remove special pre-inheritance
10356 lra_create_live_ranges pass for flag_ipa_ra.
10357 * lra-assigns.c: Include function-abi.h
10358 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10359 function needs to save a register in the prologue.
10360 (lra_assign): Assert that registers aren't allocated to a
10361 conflicting register, rather than checking only for overlaps
10362 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10363 and for registers that are not live across a call.
10364 * lra-constraints.c (last_call_for_abi): New variable.
10365 (full_and_partial_call_clobbers): Likewise.
10366 (setup_next_usage_insn): Remove the register from
10367 full_and_partial_call_clobbers.
10368 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10369 whether the register needs a caller save.
10370 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10371 of call_used_or_fixed_regs.
10372 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10373 full_and_partial_call_clobbers.
10374 * lra-lives.c (check_pseudos_live_through_calls): Replace
10375 last_call_used_reg_set and call_insn arguments with an abi argument.
10376 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10377 as the set of conflicting registers.
10378 (calls_have_same_clobbers_p): Delete.
10379 (process_bb_lives): Track the ABI of the last call instead of an
10380 insn/HARD_REG_SET pair. Update calls to
10381 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10382 the set of registers that could be clobbered by an EH edge.
10383 Include partially-clobbered as well as fully-clobbered registers.
10384 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10385 * lra-remat.c: Include function-abi.h.
10386 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10387 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10388 registers and bitmap_view to combine them into dead_regs.
10389 (call_used_input_regno_present_p): Take a function_abi argument
10390 and use it to test whether a register is call-clobbered.
10391 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10392 call insn target. Update tje call to call_used_input_regno_present_p.
10393 (do_remat): Likewise.
10394 (lra_remat): Remove the initialization of call_used_regs_arr_len
10395 and call_used_regs_arr.
10396
10397 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10398
10399 * loop-iv.c: Include regs.h and function-abi.h.
10400 (simplify_using_initial_values): Use insn_callee_abi to get the
10401 ABI of the call insn target. Conservatively assume that
10402 partially-clobbered registers are altered.
10403
10404 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10405
10406 * function-abi.h (call_clobbers_in_region): Declare.
10407 (call_clobbered_in_region_p): New function.
10408 * function-abi.cc (call_clobbers_in_region): Likewise.
10409 * ira-int.h: Include function-abi.h.
10410 (ira_allocno::crossed_calls_abis): New field.
10411 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10412 (ira_need_caller_save_regs): New function.
10413 (ira_need_caller_save_p): Likewise.
10414 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10415 of call_used_or_fixed_regs.
10416 (do_reload): Use crtl->abi to test whether the current function
10417 needs to save a register in the prologue. Count registers that
10418 need to be saved rather than registers that don't.
10419 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10420 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10421 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10422 (propagate_some_info_from_allocno): Likewise.
10423 (copy_info_to_removed_store_destinations): Likewise.
10424 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10425 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10426 (ira_build): Use ira_need_caller_save_regs instead of
10427 call_used_or_fixed_regs.
10428 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10429 whether the current function would need to save a register
10430 before using it.
10431 (calculate_spill_cost): Likewise.
10432 (allocno_reload_assign): Use ira_need_caller_save_regs and
10433 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10434 * ira-conflicts.c (ira_build_conflicts): Use
10435 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10436 as the set of call-clobbered registers. Remove the
10437 call_used_or_fixed_regs mask from the calculation of
10438 temp_hard_reg_set and mask its use instead. Remove special
10439 handling of partially-clobbered registers.
10440 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10441 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10442 calculate the set of conflicting registers for calls that
10443 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10444 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10445 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10446 Use eh_edge_abi to calculate the set of registers that could
10447 be clobbered by an EH edge. Include partially-clobbered as
10448 well as fully-clobbered registers.
10449
10450 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10451
10452 * haifa-sched.c: Include function-abi.h.
10453 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10454 the function would need to save a register before using it.
10455
10456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10457
10458 * gcse.c: Include function-abi.h.
10459 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10460 the call insn target. Invalidate partially call-clobbered
10461 registers as well as fully call-clobbered ones.
10462
10463 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10464
10465 * function.c (aggregate_value_p): Work out which ABI the
10466 function is using before testing which registers are at least
10467 partly preserved by a call.
10468
10469 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10470
10471 * early-remat.c: Include regs.h and function-abi.h.
10472 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10473 registers here.
10474 (early_remat::restrict_remat_for_unavail_regs): New function.
10475 (early_remat::restrict_remat_for_call): Likewise.
10476 (early_remat::process_block): Before calling emit_remat_insns
10477 for a previous call in the block, invalidate any candidates
10478 that would clobber call-preserved registers.
10479 (early_remat::emit_remat_insns_for_block): Likewise for the
10480 final call in a block. Do the same thing for live-in registers
10481 when calling emit_remat_insns at the head of a block.
10482
10483 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10484
10485 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10486 whether the current function needs to save at least part of a
10487 register before using it.
10488 (df_get_exit_block_use_set): Likewise for epilogue restores.
10489
10490 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10491
10492 * df-problems.c: Include regs.h and function-abi.h.
10493 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10494 sparse_invalidated_by_eh and dense_invalidated_by_call to
10495 dense_invalidated_by_eh.
10496 (df_print_bb_index): Update accordingly.
10497 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10498 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10499 that are clobbered by an EH edge. Clobber partially-clobbered
10500 registers as well as fully-clobbered ones.
10501 (df_md_confluence_n): Likewise.
10502 (df_rd_local_compute): Likewise. Update for changes to
10503 df_rd_problem_data.
10504 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10505 of registers that are clobbered by an EH edge. Includde partially-
10506 clobbered registers as well as fully-clobbered ones.
10507
10508 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10509
10510 * cselib.c (cselib_process_insn): If we know what mode a
10511 register was set in, check whether it is clobbered in that
10512 mode by a call. Only fall back to reg_raw_mode if that fails.
10513
10514 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10515
10516 * cse.c: Include regs.h and function-abi.h.
10517 (invalidate_for_call): Take the call insn as an argument.
10518 Use insn_callee_abi to get the ABI of the call and invalidate
10519 partially clobbered registers as well as fully clobbered ones.
10520 (cse_insn): Update call accordingly.
10521
10522 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10523
10524 * combine.c: Include function-abi.h.
10525 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10526 of the target of call insns. Invalidate partially-clobbered
10527 registers as well as fully-clobbered ones.
10528
10529 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10530
10531 * cfgloopanal.c: Include regs.h and function-abi.h.
10532 (init_set_costs): Use default_function_abi to test whether
10533 a general register is call-clobbered.
10534
10535 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10536
10537 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10538 instead of the call-clobbered sets.
10539
10540 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10541
10542 * caller-save.c (setup_save_areas): Remove redundant |s of
10543 fixed_reg_set.
10544 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10545 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10546 value is useful.
10547
10548 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10549
10550 * rtl.h (predefined_function_abi): Declare.
10551 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10552 instead of a boolean call_save flag.
10553 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10554 accordingly.
10555 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10556 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10557 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10558 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10559 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10560 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10561 * reginfo.c (init_reg_modes_target): Likewise.
10562 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10563 instead of a boolean call_save flag.
10564 * targhooks.c: Include function-abi.h.
10565 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10566 using eh_edge_abi to choose the mode.
10567
10568 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10569
10570 * target.def (hard_regno_call_part_clobbered): Take an ABI
10571 identifier instead of an rtx_insn.
10572 * doc/tm.texi: Regenerate.
10573 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10574 (hook_bool_uint_uint_mode_false): New function.
10575 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10576 (hook_bool_uint_uint_mode_false): New function.
10577 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10578 Take an ABI identifier instead of an rtx_insn.
10579 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10580 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10581 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10582 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10583 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10584 Likewise.
10585 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10586 * cselib.c: Include function-abi.h.
10587 (cselib_process_insn): Update call to
10588 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10589 to get the appropriate ABI identifier.
10590 * function-abi.cc (predefined_function_abi::initialize): Update call
10591 to targetm.hard_regno_call_part_clobbered.
10592 * ira-conflicts.c (ira_build_conflicts): Likewise.
10593 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10594 * lra-constraints.c: Include function-abi.h.
10595 (need_for_call_save_p): Update call to
10596 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10597 to get the appropriate ABI identifier.
10598 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10599 * regcprop.c (copyprop_hardreg_forward_1): Update call
10600 to targetm.hard_regno_call_part_clobbered.
10601 * reginfo.c (choose_hard_reg_mode): Likewise.
10602 * regrename.c (check_new_reg_p): Likewise.
10603 * reload.c (find_equiv_reg): Likewise.
10604 * reload1.c (emit_reload_insns): Likewise.
10605 * sched-deps.c: Include function-abi.h.
10606 (deps_analyze_insn): Update call to
10607 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10608 to get the appropriate ABI identifier.
10609 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10610 call to targetm.hard_regno_call_part_clobbered.
10611 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10612
10613 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10614
10615 * config/i386/i386.c: Include function-abi.h.
10616 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10617 if they preserve some 256-bit or 512-bit SSE registers.
10618
10619 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10620
10621 * target.def (insn_callee_abi): New hook.
10622 (remove_extra_call_preserved_regs): Delete.
10623 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10624 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10625 * doc/tm.texi: Regenerate.
10626 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10627 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10628 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10629 insn argument.
10630 (aarch64_remove_extra_call_preserved_regs): Delete.
10631 (aarch64_insn_callee_abi): New function.
10632 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10633 (TARGET_INSN_CALLEE_ABI): New macro.
10634 * rtl.h (get_call_fndecl): Declare.
10635 (cgraph_rtl_info): Fix formatting. Tweak comment for
10636 function_used_regs. Remove function_used_regs_valid.
10637 * rtlanal.c (get_call_fndecl): Moved from final.c
10638 * function-abi.h (insn_callee_abi): Declare.
10639 (target_function_abi_info): Mention insn_callee_abi.
10640 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10641 way to get_call_reg_set_usage did.
10642 (insn_callee_abi): New function.
10643 * regs.h (get_call_reg_set_usage): Delete.
10644 * final.c: Include function-abi.h.
10645 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10646 function_used_regs before the main loop rather than afterwards.
10647 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10648 if function_used_regs ends up not being useful.
10649 (get_call_fndecl): Move to rtlanal.c
10650 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10651 * caller-save.c: Include function-abi.h.
10652 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10653 instead of get_call_reg_set_usage.
10654 * cfgcleanup.c: Include function-abi.h.
10655 (old_insns_match_p): Use insn_callee_abi instead of
10656 get_call_reg_set_usage.
10657 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10658 a tree.
10659 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10660 function_used_regs.
10661 * df-scan.c: Include function-abi.h.
10662 (df_get_call_refs): Use insn_callee_abi instead of
10663 get_call_reg_set_usage.
10664 * ira-lives.c: Include function-abi.h.
10665 (process_bb_node_lives): Use insn_callee_abi instead of
10666 get_call_reg_set_usage.
10667 * lra-lives.c: Include function-abi.h.
10668 (process_bb_lives): Use insn_callee_abi instead of
10669 get_call_reg_set_usage.
10670 * postreload.c: Include function-abi.h.
10671 (reload_combine): Use insn_callee_abi instead of
10672 get_call_reg_set_usage.
10673 * regcprop.c: Include function-abi.h.
10674 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10675 get_call_reg_set_usage.
10676 * resource.c: Include function-abi.h.
10677 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10678 instead of get_call_reg_set_usage.
10679 * var-tracking.c: Include function-abi.h.
10680 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10681 get_call_reg_set_usage.
10682
10683 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10684
10685 * target.def (fntype_abi): New target hook.
10686 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10687 * doc/tm.texi: Regenerate.
10688 * target.h (predefined_function_abi): Declare.
10689 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10690 if defined.
10691 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10692 * config/aarch64/aarch64.c: Include function-abi.h.
10693 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10694 (TARGET_FNTYPE_ABI): Define.
10695
10696 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10697
10698 * Makefile.in (OBJS): Add function-abi.o.
10699 (GTFILES): Add function-abi.h.
10700 * function-abi.cc: New file.
10701 * function-abi.h: Likewise.
10702 * emit-rtl.h (rtl_data::abi): New field.
10703 * function.c: Include function-abi.h.
10704 (prepare_function_start): Initialize crtl->abi.
10705 * read-rtl-function.c: Include regs.h and function-abi.h.
10706 (read_rtl_function_body): Initialize crtl->abi.
10707 (read_rtl_function_body_from_file_range): Likewise.
10708 * reginfo.c: Include function-abi.h.
10709 (init_reg_sets_1): Initialize default_function_abi.
10710 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10711 when making a register global.
10712 * target-globals.h (this_target_function_abi_info): Declare.
10713 (target_globals::function_abi_info): New field.
10714 (restore_target_globals): Copy it.
10715 * target-globals.c: Include function-abi.h.
10716 (default_target_globals): Initialize the function_abi_info field.
10717 (target_globals): Allocate it.
10718 (save_target_globals): Free it.
10719
10720 2019-09-30 Nick Clifton <nickc@redhat.com>
10721
10722 PR target/85978
10723 * config/frv/frv.c (frv_register_move_cost): Add break statements
10724 to avoid falling through to the wrong cases. Tidy code.
10725
10726 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10727
10728 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10729 For multi-registers modes, test how big each register part is.
10730
10731 2019-09-30 Nick Clifton <nickc@redhat.com>
10732
10733 PR target/59205
10734 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10735 (TARGET_ASM_SELECT_SECTION): Remove definition.
10736 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10737
10738 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10739
10740 * emit-rtl.c (init_raw_REG): New function.
10741 (gen_raw_REG): Use init_raw_REG.
10742 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10743 macros.
10744 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10745 * rtl.h (rtx_init): New function.
10746 (rtx_alloca): New function.
10747 (init_raw_REG): New function.
10748 (alloca_raw_REG): New macro.
10749
10750 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10751
10752 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10753 (pcrel_local_address): Replace pcrel_address predicate, use the
10754 new function address_to_insn_form.
10755 (pcrel_external_address): Replace with new implementation using
10756 address_to_insn_form..
10757 (prefixed_mem_operand): Delete predicate which is now unused.
10758 (pcrel_external_mem_operand): Delete predicate which is now
10759 unused.
10760 * config/rs6000/rs6000-protos.h (enum insn_form): New
10761 enumeration.
10762 (enum non_prefixed_form): New enumeration.
10763 (address_to_insn_form): New declaration.
10764 (prefixed_load_p): New declaration.
10765 (prefixed_store_p): New declaration.
10766 (prefixed_paddi_p): New declaration.
10767 (rs6000_asm_output_opcode): New declaration.
10768 (rs6000_final_prescan_insn): Move declaration and update calling
10769 signature.
10770 (address_is_prefixed): New helper inline function.
10771 * config/rs6000/rs6000.c(print_operand_address): Check for either
10772 PC-relative local symbols or PC-relative external symbols.
10773 (rs6000_emit_move): Support loading PC-relative addresses.
10774 (mode_supports_prefixed_address_p): Delete, no longer used.
10775 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10776 (address_to_insn_form): New function to decode an address format.
10777 (reg_to_non_prefixed): New function to identify what the
10778 non-prefixed memory instruction format is for a register.
10779 (prefixed_load_p): New function to identify prefixed loads.
10780 (prefixed_store_p): New function to identify prefixed stores.
10781 (prefixed_paddi_p): New function to identify prefixed load
10782 immediates.
10783 (next_insn_prefixed_p): New static state variable.
10784 (rs6000_final_prescan_insn): New function to determine if an insn
10785 uses a prefixed instruction.
10786 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10787 prefixed instruction.
10788 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10789 (ASM_OUTPUT_OPCODE): New target hook.
10790 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10791 prefixed instructions.
10792 (prefixed_length): New insn attribute for the size of prefixed
10793 instructions.
10794 (non_prefixed_length): New insn attribute for the size of
10795 non-prefixed instructions.
10796 (pcrel_local_addr): New insn to load up a local PC-relative
10797 address.
10798 (pcrel_extern_addr): New insn to load up an external PC-relative
10799 address.
10800 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10801 GPR and loading a 128-bit floating point type to a GPR.
10802
10803 2019-09-30 Richard Biener <rguenther@suse.de>
10804
10805 * gimple.c (gimple_get_lhs): For PHIs return the result.
10806 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10807 SLP instance as argument.
10808 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10809 double-reduction PHIs with vectorizable_lc_phi.
10810 (vect_analyze_loop_operations): Adjust.
10811 (vect_create_epilog_for_reduction): Remove all code not dealing
10812 with reduction LC PHI or epilogue generation.
10813 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10814 for live stmts of reductions.
10815 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10816 do not handle defs that are not vect_internal_def.
10817 (can_vectorize_live_stmts): Adjust.
10818 (vect_analyze_stmt): When the vectorized stmt defined a value
10819 used on backedges adjust the backedge uses of vectorized PHIs.
10820
10821 2019-09-30 Martin Jambor <mjambor@suse.cz>
10822
10823 PR ipa/91853
10824 * tree-inline.c (force_value_to_type): New function.
10825 (setup_one_parameter): Use force_value_to_type to convert type.
10826 * tree-inline.c (force_value_to_type): Declare.
10827 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10828 with register type mismatches.
10829
10830 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10831
10832 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10833 32-bit PowerPC.
10834 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10835 * config/rs6000/t-freebsd64: Make use of the above define and build
10836 the 32-bit libraries with secure-plt.
10837
10838 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10839
10840 PR target/91931
10841 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10842 gen_int_mode instead of GEN_INT.
10843
10844 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10845
10846 * config/darwin.c (gen_macho_low): Amend to include the mode
10847 argument.
10848 (machopic_indirect_data_reference): Amend gen_macho_low call
10849 to include mode argument
10850 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10851 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10852 the macho_high expander and two define_insn entries.
10853
10854 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10855
10856 PR bootstrap/90543
10857 * optc-save-gen.awk: Fix up printing string option differences.
10858
10859 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10860
10861 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10862 vec_perm cost to 1 for non-Power7 VSX architectures.
10863
10864 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10865
10866 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10867 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10868 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10869
10870 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10871
10872 * config/darwin.c (gen_macho_high): Amend to include the mode
10873 argument.
10874 (machopic_indirect_data_reference): Amend gen_macho_high call
10875 to include mode argument.
10876 (machopic_legitimize_pic_address): Likewise.
10877 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10878 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10879 the macho_high expander and two define_insn entries.
10880
10881 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10882
10883 PR target/86805
10884 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10885
10886 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10887
10888 PR target/80672
10889 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10890 std::string::compare instead of std::string::find.
10891
10892 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10893
10894 * configure: Regenerate.
10895
10896 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10897
10898 PR middle-end/91920
10899 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10900 variables as shared.
10901
10902 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10903
10904 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10905 replaces the expander and two define_insn entries.
10906 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10907 call.
10908 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10909
10910 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10911
10912 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10913 (fibonacci_heap::nodes): Likewise.
10914 (fibonacci_heap::min_key): Likewise.
10915 (fibonacci_heap::min): Likewise.
10916
10917 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10918
10919 * cgraph.c (cgraph_node::get_fun): Make const.
10920 * cgraph.h (cgraph_node::get_fun): Likewise.
10921
10922 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10923
10924 PR target/91919
10925 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10926 of SImode MULT.
10927
10928 2019-09-27 Richard Biener <rguenther@suse.de>
10929
10930 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10931 (STMT_VINFO_REDUC_FN): Likewise.
10932 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10933 STMT_VINFO_REDUC_FN.
10934 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10935 for condition reductions.
10936 (vect_create_epilog_for_reduction): Compute all required state
10937 from the stmt to be vectorized.
10938 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10939 invocation and remove then dead code. For single def-use chains
10940 record only a single vector stmt.
10941
10942 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10943
10944 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10945 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10946 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10947 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10948 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10949 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10950 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10951 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10952 (aarch64_general_builtin_rsqrt): Declare.
10953 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10954 New function.
10955 (aarch64_mangle_builtin_type): Rename to...
10956 (aarch64_general_mangle_builtin_type): ...this.
10957 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10958 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10959 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10960 aarch64_general_add_builtin instead of add_builtin_function.
10961 (aarch64_init_builtins): Rename to...
10962 (aarch64_general_init_builtins): ...this. Use
10963 aarch64_general_add_builtin instead of add_builtin_function.
10964 (aarch64_builtin_decl): Rename to...
10965 (aarch64_general_builtin_decl): ...this and remove the unused
10966 arguments.
10967 (aarch64_expand_builtin): Rename to...
10968 (aarch64_general_expand_builtin): ...this and remove the unused
10969 arguments.
10970 (aarch64_builtin_rsqrt): Rename to...
10971 (aarch64_general_builtin_rsqrt): ...this.
10972 (aarch64_fold_builtin): Rename to...
10973 (aarch64_general_fold_builtin): ...this. Take the function subcode
10974 and return type as arguments. Remove the "ignored" argument.
10975 (aarch64_gimple_fold_builtin): Rename to...
10976 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10977 subcode and gcall as arguments, and return the new function call.
10978 * config/aarch64/aarch64.c (aarch64_init_builtins)
10979 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10980 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10981 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10982 instead of aarch64_builtin_rsqrt.
10983 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10984 instead of aarch64_mangle_builtin_type.
10985
10986 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10987
10988 * target.def (check_builtin_call): New target hook.
10989 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10990 * doc/tm.texi: Regenerate.
10991
10992 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10993
10994 PR tree-optimization/91909
10995 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10996 reduc_index parameter. When handling COND_REDUCTION, make sure
10997 that the reduction phi operand is in the correct arm of the
10998 VEC_COND_EXPR.
10999 (vectorizable_reduction): Pass reduc_index to the above.
11000
11001 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11002
11003 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11004 New combine pattern.
11005
11006 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11007
11008 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11009 loop instruction into new basic block before the loop when basic
11010 block that precedes the loop is empty.
11011
11012 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11013
11014 * function.c (gimplify_parameters): Use build_clobber function.
11015 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11016 * tree-inline.c (expand_call_inline): Likewise.
11017 * tree-sra.c (clobber_subtree): Likewise.
11018 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11019 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11020 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11021 lower_omp_target): Likewise.
11022 * omp-expand.c (expand_omp_for_generic): Likewise.
11023 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11024
11025 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11026
11027 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11028 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11029 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11030 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11031 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11032 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11033 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11034 LD_ELEMREV_V16QI): Use the PURE attribute.
11035
11036 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11037
11038 * config/rs6000/darwin.md: Replace the expanders for
11039 load_macho_picbase and reload_macho_picbase with use of '@'
11040 and <mode> in their respective define_insns.
11041 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11042 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11043 Pmode to gen_load_macho_picbase.
11044 * config/rs6000/rs6000.md: Likewise.
11045
11046 2019-09-25 Richard Biener <rguenther@suse.de>
11047
11048 PR tree-optimization/91896
11049 * tree-vect-loop.c (vectorizable_reduction): The single
11050 def-use cycle optimization cannot apply when there's more
11051 than one pattern stmt involved.
11052
11053 2019-09-26 Richard Biener <rguenther@suse.de>
11054
11055 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11056 loop-closed PHIs that are vect_internal_def.
11057 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11058 Simplify.
11059 (vectorizable_lc_phi): New.
11060 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11061 (vect_transform_stmt): Likewise.
11062 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11063 (vectorizable_lc_phi): Declare.
11064
11065 2019-09-26 Richard Biener <rguenther@suse.de>
11066
11067 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11068 vectorizable_reduction for vect_double_reduction_def.
11069 (vect_transform_loop): Likewise.
11070 (vect_create_epilog_for_reduction): Move double-reduction
11071 PHI creation and preheader argument setting of PHIs ...
11072 (vectorizable_reduction): ... here. Also process
11073 vect_double_reduction_def PHIs, creating the vectorized
11074 PHI nodes, remembering the scalar adjustment computed for
11075 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11076 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11077 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11078 Initialize STMT_VINFO_REDUC_CODE.
11079 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11080 (_stmt_vec_info::reduc_code): Likewise.
11081 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11082 (STMT_VINFO_REDUC_CODE): Likewise.
11083
11084 2019-09-26 Matt Turner <mattst88@gmail.com>
11085
11086 PR driver/69471
11087 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11088 (mtune=): Add Negative(mtune=).
11089 (mcpu=): Add Negative(mcpu=).
11090 * config/arm/arm.opt: Likewise.
11091
11092 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11093
11094 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11095 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11096 Define.
11097 * config/arm/arm_acle.h: Define builtins for the above.
11098 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11099 (simd32_op): Handle the above.
11100 * config/arm/unspecs.md: Define unspecs for the above.
11101
11102 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11103
11104 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11105 (arm_<sup>xtb16): Likewise.
11106 (arm_usada8): Likewise.
11107 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11108 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11109 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11110 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11111 __sxtb16, __uxtab16, __uxtb16): Define.
11112 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11113 * config/arm/unspecs.md: Define unspecs for the above.
11114 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11115 (USXTB16): Likewise.
11116 (simd32_op): New int_attribute.
11117 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11118 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11119
11120 2019-09-26 Martin Jambor <mjambor@suse.cz>
11121
11122 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11123 internal_error.
11124
11125 2019-09-26 Martin Jambor <mjambor@suse.cz>
11126
11127 * ipa-sra.c (process_scan_results): Fix continue condition.
11128
11129 2019-09-26 Martin Liska <mliska@suse.cz>
11130
11131 PR tree-optimization/91885
11132 * tree-vectorizer.c (try_vectorize_loop_1): Add
11133 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11134
11135 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11136
11137 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11138 aarch64_plus_immediate rather than aarch64_uimm12_shift
11139 to test for valid PLUS immediates.
11140
11141 2019-09-25 Martin Jambor <mjambor@suse.cz>
11142
11143 * tree-sra.c (no_accesses_p): Remove.
11144 (no_accesses_representant): Likewise.
11145
11146 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11147
11148 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11149 consistenly.
11150 (vaba_s16): Likewise.
11151 (vaba_s32): Likewise.
11152 (vaba_u8): Likewise.
11153 (vaba_u16): Likewise.
11154 (vaba_u32): Likewise.
11155 (vabal_high_s8): Likewise.
11156 (vabal_high_s16): Likewise.
11157 (vabal_high_s32): Likewise.
11158 (vabal_high_u8): Likewise.
11159 (vabal_high_u16): Likewise.
11160 (vabal_high_u32): Likewise.
11161 (vabal_s8): Likewise.
11162 (vabal_s16): Likewise.
11163 (vabal_s32): Likewise.
11164 (vabal_u8): Likewise.
11165 (vabal_u16): Likewise.
11166 (vabal_u32): Likewise.
11167 (vabaq_s8): Likewise.
11168 (vabaq_s16): Likewise.
11169 (vabaq_s32): Likewise.
11170 (vabaq_u8): Likewise.
11171 (vabaq_u16): Likewise.
11172 (vabaq_u32): Likewise.
11173 (vabd_s8): Likewise.
11174 (vabd_s16): Likewise.
11175 (vabd_s32): Likewise.
11176 (vabd_u8): Likewise.
11177 (vabd_u16): Likewise.
11178 (vabd_u32): Likewise.
11179 (vabdl_high_s8): Likewise.
11180 (vabdl_high_s16): Likewise.
11181 (vabdl_high_s32): Likewise.
11182 (vabdl_high_u8): Likewise.
11183 (vabdl_high_u16): Likewise.
11184 (vabdl_high_u32): Likewise.
11185 (vabdl_s8): Likewise.
11186 (vabdl_s16): Likewise.
11187 (vabdl_s32): Likewise.
11188 (vabdl_u8): Likewise.
11189 (vabdl_u16): Likewise.
11190 (vabdl_u32): Likewise.
11191 (vabdq_s8): Likewise.
11192 (vabdq_s16): Likewise.
11193 (vabdq_s32): Likewise.
11194 (vabdq_u8): Likewise.
11195 (vabdq_u16): Likewise.
11196 (vabdq_u32): Likewise.
11197 (vaddlv_s8): Likewise.
11198 (vaddlv_s16): Likewise.
11199 (vaddlv_u8): Likewise.
11200 (vaddlv_u16): Likewise.
11201 (vaddlvq_s8): Likewise.
11202 (vaddlvq_s16): Likewise.
11203 (vaddlvq_s32): Likewise.
11204 (vaddlvq_u8): Likewise.
11205 (vaddlvq_u16): Likewise.
11206 (vaddlvq_u32): Likewise.
11207 (vcvtx_f32_f64): Likewise.
11208 (vcvtx_high_f32_f64): Likewise.
11209 (vcvtxd_f32_f64): Likewise.
11210 (vmla_n_f32): Likewise.
11211 (vmla_n_s16): Likewise.
11212 (vmla_n_s32): Likewise.
11213 (vmla_n_u16): Likewise.
11214 (vmla_n_u32): Likewise.
11215 (vmla_s8): Likewise.
11216 (vmla_s16): Likewise.
11217 (vmla_s32): Likewise.
11218 (vmla_u8): Likewise.
11219 (vmla_u16): Likewise.
11220 (vmla_u32): Likewise.
11221 (vmlal_high_n_s16): Likewise.
11222 (vmlal_high_n_s32): Likewise.
11223 (vmlal_high_n_u16): Likewise.
11224 (vmlal_high_n_u32): Likewise.
11225 (vmlal_high_s8): Likewise.
11226 (vmlal_high_s16): Likewise.
11227 (vmlal_high_s32): Likewise.
11228 (vmlal_high_u8): Likewise.
11229 (vmlal_high_u16): Likewise.
11230 (vmlal_high_u32): Likewise.
11231 (vmlal_n_s16): Likewise.
11232 (vmlal_n_s32): Likewise.
11233 (vmlal_n_u16): Likewise.
11234 (vmlal_n_u32): Likewise.
11235 (vmlal_s8): Likewise.
11236 (vmlal_s16): Likewise.
11237 (vmlal_s32): Likewise.
11238 (vmlal_u8): Likewise.
11239 (vmlal_u16): Likewise.
11240 (vmlal_u32): Likewise.
11241 (vmlaq_n_f32): Likewise.
11242 (vmlaq_n_s16): Likewise.
11243 (vmlaq_n_s32): Likewise.
11244 (vmlaq_n_u16): Likewise.
11245 (vmlaq_n_u32): Likewise.
11246 (vmlaq_s8): Likewise.
11247 (vmlaq_s16): Likewise.
11248 (vmlaq_s32): Likewise.
11249 (vmlaq_u8): Likewise.
11250 (vmlaq_u16): Likewise.
11251 (vmlaq_u32): Likewise.
11252 (vmls_n_f32): Likewise.
11253 (vmls_n_s16): Likewise.
11254 (vmls_n_s32): Likewise.
11255 (vmls_n_u16): Likewise.
11256 (vmls_n_u32): Likewise.
11257 (vmls_s8): Likewise.
11258 (vmls_s16): Likewise.
11259 (vmls_s32): Likewise.
11260 (vmls_u8): Likewise.
11261 (vmls_u16): Likewise.
11262 (vmls_u32): Likewise.
11263 (vmlsl_high_n_s16): Likewise.
11264 (vmlsl_high_n_s32): Likewise.
11265 (vmlsl_high_n_u16): Likewise.
11266 (vmlsl_high_n_u32): Likewise.
11267 (vmlsl_high_s8): Likewise.
11268 (vmlsl_high_s16): Likewise.
11269 (vmlsl_high_s32): Likewise.
11270 (vmlsl_high_u8): Likewise.
11271 (vmlsl_high_u16): Likewise.
11272 (vmlsl_high_u32): Likewise.
11273 (vmlsl_n_s16): Likewise.
11274 (vmlsl_n_s32): Likewise.
11275 (vmlsl_n_u16): Likewise.
11276 (vmlsl_n_u32): Likewise.
11277 (vmlsl_s8): Likewise.
11278 (vmlsl_s16): Likewise.
11279 (vmlsl_s32): Likewise.
11280 (vmlsl_u8): Likewise.
11281 (vmlsl_u16): Likewise.
11282 (vmlsl_u32): Likewise.
11283 (vmlsq_n_f32): Likewise.
11284 (vmlsq_n_s16): Likewise.
11285 (vmlsq_n_s32): Likewise.
11286 (vmlsq_n_u16): Likewise.
11287 (vmlsq_n_u32): Likewise.
11288 (vmlsq_s8): Likewise.
11289 (vmlsq_s16): Likewise.
11290 (vmlsq_s32): Likewise.
11291 (vmlsq_u8): Likewise.
11292 (vmlsq_u16): Likewise.
11293 (vmlsq_u32): Likewise.
11294 (vmovl_high_s8): Likewise.
11295 (vmovl_high_s16): Likewise.
11296 (vmovl_high_s32): Likewise.
11297 (vmovl_high_u8): Likewise.
11298 (vmovl_high_u16): Likewise.
11299 (vmovl_high_u32): Likewise.
11300 (vmovl_s8): Likewise.
11301 (vmovl_s16): Likewise.
11302 (vmovl_s32): Likewise.
11303 (vmovl_u8): Likewise.
11304 (vmovl_u16): Likewise.
11305 (vmovl_u32): Likewise.
11306 (vmovn_high_s16): Likewise.
11307 (vmovn_high_s32): Likewise.
11308 (vmovn_high_s64): Likewise.
11309 (vmovn_high_u16): Likewise.
11310 (vmovn_high_u32): Likewise.
11311 (vmovn_high_u64): Likewise.
11312 (vmovn_s16): Likewise.
11313 (vmovn_s32): Likewise.
11314 (vmovn_s64): Likewise.
11315 (vmovn_u16): Likewise.
11316 (vmovn_u32): Likewise.
11317 (vmovn_u64): Likewise.
11318 (vmull_high_n_s16): Likewise.
11319 (vmull_high_n_s32): Likewise.
11320 (vmull_high_n_u16): Likewise.
11321 (vmull_high_n_u32): Likewise.
11322 (vmull_high_p8): Likewise.
11323 (vmull_high_s8): Likewise.
11324 (vmull_high_s16): Likewise.
11325 (vmull_high_s32): Likewise.
11326 (vmull_high_u8): Likewise.
11327 (vmull_high_u16): Likewise.
11328 (vmull_high_u32): Likewise.
11329 (vmull_n_s16): Likewise.
11330 (vmull_n_s32): Likewise.
11331 (vmull_n_u16): Likewise.
11332 (vmull_n_u32): Likewise.
11333 (vmull_p8): Likewise.
11334 (vmull_s8): Likewise.
11335 (vmull_s16): Likewise.
11336 (vmull_s32): Likewise.
11337 (vmull_u8): Likewise.
11338 (vmull_u16): Likewise.
11339 (vmull_u32): Likewise.
11340 (vpadal_s8): Likewise.
11341 (vpadal_s16): Likewise.
11342 (vpadal_s32): Likewise.
11343 (vpadal_u8): Likewise.
11344 (vpadal_u16): Likewise.
11345 (vpadal_u32): Likewise.
11346 (vpadalq_s8): Likewise.
11347 (vpadalq_s16): Likewise.
11348 (vpadalq_s32): Likewise.
11349 (vpadalq_u8): Likewise.
11350 (vpadalq_u16): Likewise.
11351 (vpadalq_u32): Likewise.
11352 (vpaddl_s8): Likewise.
11353 (vpaddl_s16): Likewise.
11354 (vpaddl_s32): Likewise.
11355 (vpaddl_u8): Likewise.
11356 (vpaddl_u16): Likewise.
11357 (vpaddl_u32): Likewise.
11358 (vpaddlq_s8): Likewise.
11359 (vpaddlq_s16): Likewise.
11360 (vpaddlq_s32): Likewise.
11361 (vpaddlq_u8): Likewise.
11362 (vpaddlq_u16): Likewise.
11363 (vpaddlq_u32): Likewise.
11364 (vpaddq_s8): Likewise.
11365 (vpaddq_s16): Likewise.
11366 (vpaddq_s32): Likewise.
11367 (vpaddq_s64): Likewise.
11368 (vpaddq_u8): Likewise.
11369 (vpaddq_u16): Likewise.
11370 (vpaddq_u32): Likewise.
11371 (vpaddq_u64): Likewise.
11372 (vqdmulh_n_s16): Likewise.
11373 (vqdmulh_n_s32): Likewise.
11374 (vqdmulhq_n_s16): Likewise.
11375 (vqdmulhq_n_s32): Likewise.
11376 (vqmovn_high_s16): Likewise.
11377 (vqmovn_high_s32): Likewise.
11378 (vqmovn_high_s64): Likewise.
11379 (vqmovn_high_u16): Likewise.
11380 (vqmovn_high_u32): Likewise.
11381 (vqmovn_high_u64): Likewise.
11382 (vqmovun_high_s16): Likewise.
11383 (vqmovun_high_s32): Likewise.
11384 (vqmovun_high_s64): Likewise.
11385 (vqrdmulh_n_s16): Likewise.
11386 (vqrdmulh_n_s32): Likewise.
11387 (vqrdmulhq_n_s16): Likewise.
11388 (vqrdmulhq_n_s32): Likewise.
11389 (vrsqrte_u32): Likewise.
11390 (vrsqrteq_u32): Likewise.
11391 (vtst_p8): Likewise.
11392 (vtst_p16): Likewise.
11393 (vtst_p64): Likewise.
11394 (vtstq_p8): Likewise.
11395 (vtstq_p16): Likewise.
11396 (vtstq_p64): Likewise.
11397 (vaddlv_s32): Likewise.
11398 (vaddlv_u32): Likewise.
11399 (vqtbl1_p8): Likewise.
11400 (vqtbl1_s8): Likewise.
11401 (vqtbl1_u8): Likewise.
11402 (vqtbl1q_p8): Likewise.
11403 (vqtbl1q_s8): Likewise.
11404 (vqtbl1q_u8): Likewise.
11405 (vqtbx1_s8): Likewise.
11406 (vqtbx1_u8): Likewise.
11407 (vqtbx1_p8): Likewise.
11408 (vqtbx1q_s8): Likewise.
11409 (vqtbx1q_u8): Likewise.
11410 (vqtbx1q_p8): Likewise.
11411 (vtbl1_s8): Likewise.
11412 (vtbl1_u8): Likewise.
11413 (vtbl1_p8): Likewise.
11414 (vtbl2_s8): Likewise.
11415 (vtbl2_u8): Likewise.
11416 (vtbl2_p8): Likewise.
11417 (vtbl3_s8): Likewise.
11418 (vtbl3_u8): Likewise.
11419 (vtbl3_p8): Likewise.
11420 (vtbl4_s8): Likewise.
11421 (vtbl4_u8): Likewise.
11422 (vtbl4_p8): Likewise.
11423 (vtbx2_s8): Likewise.
11424 (vtbx2_u8): Likewise.
11425 (vtbx2_p8): Likewise.
11426 (vld1_f32): Likewise.
11427 (vld1_f64): Likewise.
11428 (vld1_p8): Likewise.
11429 (vld1_p16): Likewise.
11430 (vld1_p64): Likewise.
11431 (vld1_s8): Likewise.
11432 (vld1_s16): Likewise.
11433 (vld1_s32): Likewise.
11434 (vld1_s64): Likewise.
11435 (vld1_u8): Likewise.
11436 (vld1_u16): Likewise.
11437 (vld1_u32): Likewise.
11438 (vld1_u64): Likewise.
11439 (vld1q_f32): Likewise.
11440 (vld1q_f64): Likewise.
11441 (vld1q_p8): Likewise.
11442 (vld1q_p16): Likewise.
11443 (vld1q_p64): Likewise.
11444 (vld1q_s8): Likewise.
11445 (vld1q_s16): Likewise.
11446 (vld1q_s32): Likewise.
11447 (vld1q_s64): Likewise.
11448 (vld1q_u8): Likewise.
11449 (vld1q_u16): Likewise.
11450 (vld1q_u32): Likewise.
11451 (vld1q_u64): Likewise.
11452 (vpmax_s8): Likewise.
11453 (vpmax_s16): Likewise.
11454 (vpmax_s32): Likewise.
11455 (vpmax_u8): Likewise.
11456 (vpmax_u16): Likewise.
11457 (vpmax_u32): Likewise.
11458 (vpmaxq_s8): Likewise.
11459 (vpmaxq_s16): Likewise.
11460 (vpmaxq_s32): Likewise.
11461 (vpmaxq_u8): Likewise.
11462 (vpmaxq_u16): Likewise.
11463 (vpmaxq_u32): Likewise.
11464 (vpmax_f32): Likewise.
11465 (vpmaxq_f32): Likewise.
11466 (vpmaxq_f64): Likewise.
11467 (vpmaxqd_f64): Likewise.
11468 (vpmaxs_f32): Likewise.
11469 (vpmaxnm_f32): Likewise.
11470 (vpmaxnmq_f32): Likewise.
11471 (vpmaxnmq_f64): Likewise.
11472 (vpmaxnmqd_f64): Likewise.
11473 (vpmaxnms_f32): Likewise.
11474 (vpmin_s8): Likewise.
11475 (vpmin_s16): Likewise.
11476 (vpmin_s32): Likewise.
11477 (vpmin_u8): Likewise.
11478 (vpmin_u16): Likewise.
11479 (vpmin_u32): Likewise.
11480 (vpminq_s8): Likewise.
11481 (vpminq_s16): Likewise.
11482 (vpminq_s32): Likewise.
11483 (vpminq_u8): Likewise.
11484 (vpminq_u16): Likewise.
11485 (vpminq_u32): Likewise.
11486 (vpmin_f32): Likewise.
11487 (vpminq_f32): Likewise.
11488 (vpminq_f64): Likewise.
11489 (vpminqd_f64): Likewise.
11490 (vpmins_f32): Likewise.
11491 (vpminnm_f32): Likewise.
11492 (vpminnmq_f32): Likewise.
11493 (vpminnmq_f64): Likewise.
11494 (vpminnmqd_f64): Likewise.
11495 (vpminnms_f32): Likewise.
11496 (vmla_f32): Likewise.
11497 (vmlaq_f32): Likewise.
11498 (vmlaq_f64): Likewise.
11499 (vmls_f32): Likewise.
11500 (vmlsq_f32): Likewise.
11501 (vmlsq_f64): Likewise.
11502 (vqtbl2_s8): Likewise.
11503 (vqtbl2_u8): Likewise.
11504 (vqtbl2_p8): Likewise.
11505 (vqtbl2q_s8): Likewise.
11506 (vqtbl2q_u8): Likewise.
11507 (vqtbl2q_p8): Likewise.
11508 (vqtbl3_s8): Likewise.
11509 (vqtbl3_u8): Likewise.
11510 (vqtbl3_p8): Likewise.
11511 (vqtbl3q_s8): Likewise.
11512 (vqtbl3q_u8): Likewise.
11513 (vqtbl3q_p8): Likewise.
11514 (vqtbl4_s8): Likewise.
11515 (vqtbl4_u8): Likewise.
11516 (vqtbl4_p8): Likewise.
11517 (vqtbl4q_s8): Likewise.
11518 (vqtbl4q_u8): Likewise.
11519 (vqtbl4q_p8): Likewise.
11520 (vqtbx2_s8): Likewise.
11521 (vqtbx2_u8): Likewise.
11522 (vqtbx2_p8): Likewise.
11523 (vqtbx2q_s8): Likewise.
11524 (vqtbx2q_u8): Likewise.
11525 (vqtbx2q_p8): Likewise.
11526 (vqtbx3_s8): Likewise.
11527 (vqtbx3_u8): Likewise.
11528 (vqtbx3_p8): Likewise.
11529 (vqtbx3q_s8): Likewise.
11530 (vqtbx3q_u8): Likewise.
11531 (vqtbx3q_p8): Likewise.
11532 (vqtbx4_s8): Likewise.
11533 (vqtbx4_u8): Likewise.
11534 (vqtbx4_p8): Likewise.
11535 (vqtbx4q_s8): Likewise.
11536 (vqtbx4q_u8): Likewise.
11537 (vqtbx4q_p8): Likewise.
11538 (vrev16_p8): Likewise.
11539 (vrev16_s8): Likewise.
11540 (vrev16_u8): Likewise.
11541 (vrev16q_p8): Likewise.
11542 (vrev16q_s8): Likewise.
11543 (vrev16q_u8): Likewise.
11544 (vrev32_p8): Likewise.
11545 (vrev32_p16): Likewise.
11546 (vrev32_s8): Likewise.
11547 (vrev32_s16): Likewise.
11548 (vrev32_u8): Likewise.
11549 (vrev32_u16): Likewise.
11550 (vrev32q_p8): Likewise.
11551 (vrev32q_p16): Likewise.
11552 (vrev32q_s8): Likewise.
11553 (vrev32q_s16): Likewise.
11554 (vrev32q_u8): Likewise.
11555 (vrev32q_u16): Likewise.
11556 (vrev64_f32): Likewise.
11557 (vrev64_p8): Likewise.
11558 (vrev64_p16): Likewise.
11559 (vrev64_s8): Likewise.
11560 (vrev64_s16): Likewise.
11561 (vrev64_s32): Likewise.
11562 (vrev64_u8): Likewise.
11563 (vrev64_u16): Likewise.
11564 (vrev64_u32): Likewise.
11565 (vrev64q_f32): Likewise.
11566 (vrev64q_p8): Likewise.
11567 (vrev64q_p16): Likewise.
11568 (vrev64q_s8): Likewise.
11569 (vrev64q_s16): Likewise.
11570 (vrev64q_s32): Likewise.
11571 (vrev64q_u8): Likewise.
11572 (vrev64q_u16): Likewise.
11573 (vrev64q_u32): Likewise.
11574 (vsha1cq_u32): Likewise.
11575 (vsha1mq_u32): Likewise.
11576 (vsha1pq_u32): Likewise.
11577 (vsha1h_u32): Likewise.
11578 (vsha1su0q_u32): Likewise.
11579 (vsha1su1q_u32): Likewise.
11580 (vsha256hq_u32): Likewise.
11581 (vsha256h2q_u32): Likewise.
11582 (vsha256su0q_u32): Likewise.
11583 (vsha256su1q_u32): Likewise.
11584 (vmull_p64): Likewise.
11585 (vmull_high_p64): Likewise.
11586 (vsqrt_f32): Likewise.
11587 (vsqrtq_f32): Likewise.
11588 (vsqrt_f64): Likewise.
11589 (vsqrtq_f64): Likewise.
11590 (vst1_f32): Likewise.
11591 (vst1_f64): Likewise.
11592 (vst1_p8): Likewise.
11593 (vst1_p16): Likewise.
11594 (vst1_p64): Likewise.
11595 (vst1_s8): Likewise.
11596 (vst1_s16): Likewise.
11597 (vst1_s32): Likewise.
11598 (vst1_s64): Likewise.
11599 (vst1_u8): Likewise.
11600 (vst1_u16): Likewise.
11601 (vst1_u32): Likewise.
11602 (vst1_u64): Likewise.
11603 (vst1q_f32): Likewise.
11604 (vst1q_f64): Likewise.
11605 (vst1q_p8): Likewise.
11606 (vst1q_p16): Likewise.
11607 (vst1q_p64): Likewise.
11608 (vst1q_s8): Likewise.
11609 (vst1q_s16): Likewise.
11610 (vst1q_s32): Likewise.
11611 (vst1q_s64): Likewise.
11612 (vst1q_u8): Likewise.
11613 (vst1q_u16): Likewise.
11614 (vst1q_u32): Likewise.
11615 (vst1q_u64): Likewise.
11616 (vst1_s64_x2): Likewise.
11617 (vst1_u64_x2): Likewise.
11618 (vst1_f64_x2): Likewise.
11619 (vst1_s8_x2): Likewise.
11620 (vst1_p8_x2): Likewise.
11621 (vst1_s16_x2): Likewise.
11622 (vst1_p16_x2): Likewise.
11623 (vst1_s32_x2): Likewise.
11624 (vst1_u8_x2): Likewise.
11625 (vst1_u16_x2): Likewise.
11626 (vst1_u32_x2): Likewise.
11627 (vst1_f16_x2): Likewise.
11628 (vst1_f32_x2): Likewise.
11629 (vst1_p64_x2): Likewise.
11630 (vst1q_s8_x2): Likewise.
11631 (vst1q_p8_x2): Likewise.
11632 (vst1q_s16_x2): Likewise.
11633 (vst1q_p16_x2): Likewise.
11634 (vst1q_s32_x2): Likewise.
11635 (vst1q_s64_x2): Likewise.
11636 (vst1q_u8_x2): Likewise.
11637 (vst1q_u16_x2): Likewise.
11638 (vst1q_u32_x2): Likewise.
11639 (vst1q_u64_x2): Likewise.
11640 (vst1q_f16_x2): Likewise.
11641 (vst1q_f32_x2): Likewise.
11642 (vst1q_f64_x2): Likewise.
11643 (vst1q_p64_x2): Likewise.
11644 (vst1_s64_x3): Likewise.
11645 (vst1_u64_x3): Likewise.
11646 (vst1_f64_x3): Likewise.
11647 (vst1_s8_x3): Likewise.
11648 (vst1_p8_x3): Likewise.
11649 (vst1_s16_x3): Likewise.
11650 (vst1_p16_x3): Likewise.
11651 (vst1_s32_x3): Likewise.
11652 (vst1_u8_x3): Likewise.
11653 (vst1_u16_x3): Likewise.
11654 (vst1_u32_x3): Likewise.
11655 (vst1_f16_x3): Likewise.
11656 (vst1_f32_x3): Likewise.
11657 (vst1_p64_x3): Likewise.
11658 (vst1q_s8_x3): Likewise.
11659 (vst1q_p8_x3): Likewise.
11660 (vst1q_s16_x3): Likewise.
11661 (vst1q_p16_x3): Likewise.
11662 (vst1q_s32_x3): Likewise.
11663 (vst1q_s64_x3): Likewise.
11664 (vst1q_u8_x3): Likewise.
11665 (vst1q_u16_x3): Likewise.
11666 (vst1q_u32_x3): Likewise.
11667 (vst1q_u64_x3): Likewise.
11668 (vst1q_f16_x3): Likewise.
11669 (vst1q_f32_x3): Likewise.
11670 (vst1q_f64_x3): Likewise.
11671 (vst1q_p64_x3): Likewise.
11672 (vst2_s64): Likewise.
11673 (vst2_u64): Likewise.
11674 (vst2_f64): Likewise.
11675 (vst2_s8): Likewise.
11676 (vst2_p8): Likewise.
11677 (vst2_s16): Likewise.
11678 (vst2_p16): Likewise.
11679 (vst2_s32): Likewise.
11680 (vst2_u8): Likewise.
11681 (vst2_u16): Likewise.
11682 (vst2_u32): Likewise.
11683 (vst2_f16): Likewise.
11684 (vst2_f32): Likewise.
11685 (vst2_p64): Likewise.
11686 (vst2q_s8): Likewise.
11687 (vst2q_p8): Likewise.
11688 (vst2q_s16): Likewise.
11689 (vst2q_p16): Likewise.
11690 (vst2q_s32): Likewise.
11691 (vst2q_s64): Likewise.
11692 (vst2q_u8): Likewise.
11693 (vst2q_u16): Likewise.
11694 (vst2q_u32): Likewise.
11695 (vst2q_u64): Likewise.
11696 (vst2q_f16): Likewise.
11697 (vst2q_f32): Likewise.
11698 (vst2q_f64): Likewise.
11699 (vst2q_p64): Likewise.
11700 (vst3_s64): Likewise.
11701 (vst3_u64): Likewise.
11702 (vst3_f64): Likewise.
11703 (vst3_s8): Likewise.
11704 (vst3_p8): Likewise.
11705 (vst3_s16): Likewise.
11706 (vst3_p16): Likewise.
11707 (vst3_s32): Likewise.
11708 (vst3_u8): Likewise.
11709 (vst3_u16): Likewise.
11710 (vst3_u32): Likewise.
11711 (vst3_f16): Likewise.
11712 (vst3_f32): Likewise.
11713 (vst3_p64): Likewise.
11714 (vst3q_s8): Likewise.
11715 (vst3q_p8): Likewise.
11716 (vst3q_s16): Likewise.
11717 (vst3q_p16): Likewise.
11718 (vst3q_s32): Likewise.
11719 (vst3q_s64): Likewise.
11720 (vst3q_u8): Likewise.
11721 (vst3q_u16): Likewise.
11722 (vst3q_u32): Likewise.
11723 (vst3q_u64): Likewise.
11724 (vst3q_f16): Likewise.
11725 (vst3q_f32): Likewise.
11726 (vst3q_f64): Likewise.
11727 (vst3q_p64): Likewise.
11728 (vst4_s64): Likewise.
11729 (vst4_u64): Likewise.
11730 (vst4_f64): Likewise.
11731 (vst4_s8): Likewise.
11732 (vst4_p8): Likewise.
11733 (vst4_s16): Likewise.
11734 (vst4_p16): Likewise.
11735 (vst4_s32): Likewise.
11736 (vst4_u8): Likewise.
11737 (vst4_u16): Likewise.
11738 (vst4_u32): Likewise.
11739 (vst4_f16): Likewise.
11740 (vst4_f32): Likewise.
11741 (vst4_p64): Likewise.
11742 (vst4q_s8): Likewise.
11743 (vst4q_p8): Likewise.
11744 (vst4q_s16): Likewise.
11745 (vst4q_p16): Likewise.
11746 (vst4q_s32): Likewise.
11747 (vst4q_s64): Likewise.
11748 (vst4q_u8): Likewise.
11749 (vst4q_u16): Likewise.
11750 (vst4q_u32): Likewise.
11751 (vst4q_u64): Likewise.
11752 (vst4q_f16): Likewise.
11753 (vst4q_f32): Likewise.
11754 (vst4q_f64): Likewise.
11755 (vst4q_p64): Likewise.
11756 (vtbx4_s8): Likewise.
11757 (vtbx4_u8): Likewise.
11758 (vtbx4_p8): Likewise.
11759 (vtrn_f32): Likewise.
11760 (vtrn_p8): Likewise.
11761 (vtrn_p16): Likewise.
11762 (vtrn_s8): Likewise.
11763 (vtrn_s16): Likewise.
11764 (vtrn_s32): Likewise.
11765 (vtrn_u8): Likewise.
11766 (vtrn_u16): Likewise.
11767 (vtrn_u32): Likewise.
11768 (vtrnq_f32): Likewise.
11769 (vtrnq_p8): Likewise.
11770 (vtrnq_p16): Likewise.
11771 (vtrnq_s8): Likewise.
11772 (vtrnq_s16): Likewise.
11773 (vtrnq_s32): Likewise.
11774 (vtrnq_u8): Likewise.
11775 (vtrnq_u16): Likewise.
11776 (vtrnq_u32): Likewise.
11777 (vrsqrte_f16): Likewise.
11778 (vrsqrteq_f16): Likewise.
11779 (vsqrt_f16): Likewise.
11780 (vsqrtq_f16): Likewise.
11781 (vabd_f16): Likewise.
11782 (vabdq_f16): Likewise.
11783 (vpadd_f16): Likewise.
11784 (vpaddq_f16): Likewise.
11785 (vpmax_f16): Likewise.
11786 (vpmaxq_f16): Likewise.
11787 (vpmaxnm_f16): Likewise.
11788 (vpmaxnmq_f16): Likewise.
11789 (vpmin_f16): Likewise.
11790 (vpminq_f16): Likewise.
11791 (vpminnm_f16): Likewise.
11792 (vpminnmq_f16): Likewise.
11793 (vrsqrts_f16): Likewise.
11794 (vrsqrtsq_f16): Likewise.
11795
11796 2019-09-25 Richard Biener <rguenther@suse.de>
11797
11798 PR tree-optimization/91896
11799 * tree-vect-loop.c (vectorizable_reduction): The single
11800 def-use cycle optimization cannot apply when there's more
11801 than one pattern stmt involved.
11802
11803 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11804
11805 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11806 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11807 (reload_macho_picbase_<mode>): Likewise.
11808
11809 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11810
11811 * config/rs6000/rs6000.md: Move darwin.md include until
11812 after the definition of the mode iterators.
11813
11814 2019-09-23 Martin Sebor <msebor@redhat.com>
11815
11816 PR tree-optimization/91570
11817 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11818 non-constant minlen, maxlen and maxbound.
11819
11820 2019-09-24 Richard Biener <rguenther@suse.de>
11821
11822 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11823 Rename to...
11824 (_stmt_vec_info::cond_reduc_code): ... this.
11825 (_stmt_vec_info::induc_cond_initial_val): Add.
11826 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11827 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11828 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11829 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11830 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11831 the reduction code.
11832 (vect_create_epilog_for_reduction): Drop special
11833 induction condition reduction params, pass in reduction code
11834 and simplify.
11835 (vectorizable_reduction): Perform condition reduction kind
11836 selection only at analysis time. Adjust passing on state.
11837
11838 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11839
11840 * config/aarch64/aarch64.md (mov<mode>): Don't call
11841 aarch64_split_dimode_const_store on volatile MEM.
11842
11843 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11844
11845 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11846 Update hwcap string for fp16fml.
11847
11848 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11849
11850 PR middle-end/91866
11851 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11852 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11853
11854 2019-09-24 Martin Liska <mliska@suse.cz>
11855
11856 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11857 instead of if-elseif-elseif-...
11858 * gimple-expr.c (extract_ops_from_tree): Likewise.
11859 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11860 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11861
11862 2019-09-24 Martin Jambor <mjambor@suse.cz>
11863
11864 PR ipa/91831
11865 * ipa-param-manipulation.c (carry_over_param): Make a method of
11866 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11867 in case of a context mismatch.
11868 (ipa_param_body_adjustments::common_initialization): Adjust call to
11869 carry_over_param.
11870 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11871 private method carry_over_param.
11872
11873 2019-09-24 Martin Jambor <mjambor@suse.cz>
11874
11875 PR ipa/91832
11876 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11877
11878 2019-09-24 Richard Biener <rguenther@suse.de>
11879
11880 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11881 base.
11882
11883 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11884
11885 * config/arm/t-arm (arm-builtins.o): Add dependency on
11886 arm_acle_builtins.def.
11887
11888 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11889
11890 PR target/91823
11891 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11892 canonical CONST_INTs. Use gen_rtvec.
11893
11894 2019-09-23 Richard Biener <rguenther@suse.de>
11895
11896 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11897 avoid adjusting by + 0 or * 1.
11898 (vect_create_epilog_for_reduction): Get reduction code only
11899 when necessary. Deal with adjustment_def only when necessary.
11900
11901 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11902
11903 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11904 memmodel index.
11905
11906 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11907
11908 PR ipa/91835
11909 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11910 "ipa-sra".
11911
11912 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11913
11914 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11915 code. Merge code blocks with common conditionals. Use declared
11916 macro instead of a magic number for PIC level.
11917
11918 2019-09-21 Martin Sebor <msebor@redhat.com>
11919
11920 PR middle-end/91830
11921 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11922 Simplify computation of the offset of the referenced subobject.
11923
11924 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11925
11926 * config/darwin.c (machopic_legitimize_pic_address): Check
11927 for lra not reload.
11928
11929 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11930
11931 * ira-conflicts.c (can_use_same_reg_p): New function.
11932 (process_reg_shuffles): Take an insn parameter. Ignore cases
11933 in which input operand op_num could seemingly never be allocated
11934 to the same register as the destination.
11935 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11936
11937 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11938
11939 * simplify-rtx.c (neg_const_int): Replace with...
11940 (neg_poly_int_rtx): ...this new function.
11941 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11942 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11943 (simplify_plus_minus): Likewise for constant terms here.
11944
11945 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11946
11947 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11948 HOST_WIDE_PRINT_UNSIGNED.
11949
11950 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11951
11952 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11953 character.
11954
11955 2019-09-20 Maya Rashish <coypu@sdf.org>
11956
11957 PR target/86811
11958 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11959 Define to speculation_safe_value_not_needed.
11960
11961 2019-09-20 Richard Biener <rguenther@suse.de>
11962 Uros Bizjak <ubizjak@gmail.com>
11963
11964 PR target/91814
11965 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11966 previous change.
11967 (general_scalar_chain::convert_op): Force not suitable memory
11968 operands to a register.
11969
11970 2019-09-20 Richard Biener <rguenther@suse.de>
11971
11972 PR tree-optimization/91821
11973 * tree-vect-loop.c (check_reduction_path): Check we can compute
11974 reduc_idx.
11975 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11976 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11977 operands in canonical order.
11978 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11979 STMT_VINFO_REDUC_IDX.
11980 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11981 (STMT_VINFO_REDUC_IDX): Likewise.
11982
11983 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11984
11985 PR target/91269
11986 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11987
11988 2019-09-20 Richard Biener <rguenther@suse.de>
11989
11990 PR tree-optimization/91822
11991 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11992 parameter.
11993 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11994 for reduc_index in nested cycles, adjust vectorizable_condition
11995 calls.
11996 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11997 parameter.
11998 (vect_analyze_stmt): Adjust.
11999 (vect_transform_stmt): Likewise.
12000
12001 2019-09-20 Richard Biener <rguenther@suse.de>
12002
12003 PR target/91767
12004 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12005 Ensure there's a sequence point between allocating the new register
12006 and passing a reference to a reg via regno_reg_rtx.
12007
12008 2019-09-20 Martin Jambor <mjambor@suse.cz>
12009
12010 * coretypes.h (cgraph_edge): Declare.
12011 * ipa-param-manipulation.c: Rewrite.
12012 * ipa-param-manipulation.h: Likewise.
12013 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12014 (OBJS): Added ipa-sra.o.
12015 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12016 and ref_p, added fields param_adjustments and performed_splits.
12017 (struct cgraph_clone_info): Remove ags_to_skip and
12018 combined_args_to_skip, new field param_adjustments.
12019 (cgraph_node::create_clone): Changed parameters to use
12020 ipa_param_adjustments.
12021 (cgraph_node::create_virtual_clone): Likewise.
12022 (cgraph_node::create_virtual_clone_with_body): Likewise.
12023 (tree_function_versioning): Likewise.
12024 (cgraph_build_function_type_skip_args): Removed.
12025 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12026 using ipa_param_adjustments.
12027 (clone_of_p): Likewise.
12028 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12029 (build_function_decl_skip_args): Likewise.
12030 (duplicate_thunk_for_node): Adjust parameters using
12031 ipa_param_body_adjustments, copy param_adjustments instead of
12032 args_to_skip.
12033 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12034 (cgraph_node::create_virtual_clone): Likewise.
12035 (cgraph_node::create_version_clone_with_body): Likewise.
12036 (cgraph_materialize_clone): Likewise.
12037 (symbol_table::materialize_all_clones): Likewise.
12038 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12039 ipa_replace_map check.
12040 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12041 (initialize_node_lattices): Make aware that some parameters might have
12042 already been removed.
12043 (want_remove_some_param_p): New function.
12044 (create_specialized_node): Convert to using ipa_param_adjustments and
12045 deal with possibly pre-existing adjustments.
12046 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12047 (output_node_opt_summary): Do not stream removed fields. Stream
12048 parameter adjustments instead of argumetns to skip.
12049 (input_node_opt_summary): Likewise.
12050 (input_node_opt_summary): Likewise.
12051 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12052 * lto-streamer.h (lto_section_type): Likewise.
12053 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12054 param_body_adjs.
12055 (copy_decl_to_var): Declare.
12056 * tree-inline.c (update_clone_info): Do not remap old_tree.
12057 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12058 statements, walk all extra generated statements and remap their
12059 operands.
12060 (redirect_all_calls): Add killed SSA names to a hash set.
12061 (remap_ssa_name): Do not remap killed SSA names.
12062 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12063 half of functionality moved to ipa_param_body_adjustments.
12064 (copy_decl_to_var): Make exported.
12065 (copy_body): Destroy killed_new_ssa_names hash set.
12066 (expand_call_inline): Remap performed splits.
12067 (update_clone_info): Likewise.
12068 (tree_function_versioning): Simplify tree_map processing. Updated to
12069 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12070 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12071 for the new interface.
12072 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12073 (simd_clone_compute_base_data_type): Likewise.
12074 (simd_clone_init_simd_arrays): Adjust for the new interface.
12075 (simd_clone_adjust_argument_types): Likewise.
12076 (struct modify_stmt_info): Likewise.
12077 (ipa_simd_modify_stmt_ops): Likewise.
12078 (ipa_simd_modify_function_body): Likewise.
12079 (simd_clone_adjust): Likewise.
12080 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12081 (type_internals_preclude_sra_p): Make public.
12082 * tree-sra.h: New file.
12083 * ipa-inline-transform.c (save_inline_function_body): Update to
12084 refelct new tree_function_versioning signature.
12085 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12086 ipa_param_adjustments to get current parameter indices.
12087 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12088 (ipcp_update_bits): Likewise.
12089 (ipcp_update_vr): Likewise.
12090 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12091 * ipa-sra.c: New file.
12092 * multiple_target.c (create_target_clone): Update to reflet new type
12093 of create_version_clone_with_body.
12094 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12095 tree_function_versioning.
12096 (modify_function): Update to reflect new type of
12097 tree_function_versioning.
12098 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12099 * passes.def: Remove old IPA-SRA and add new one.
12100 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12101 (make_pass_ipa_sra): Declare.
12102 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12103 ipa_sra_retvalues.
12104 * doc/invoke.texi (ipa-sra-max-replacements): New.
12105
12106 2019-09-19 Martin Sebor <msebor@redhat.com>
12107
12108 PR middle-end/91631
12109 * builtins.c (component_size): Correct trailing array computation,
12110 rename to component_ref_size and move...
12111 (compute_objsize): Adjust.
12112 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12113 (builtin_access::strict): Do not consider memmove.
12114 (builtin_access::write_off): New function.
12115 (builtin_memref::builtin_memref): Initialize refsize.
12116 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12117 refsize.
12118 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12119 Handle refsize.
12120 (builtin_access::builtin_access): Initialize dstoff to destination
12121 refeence offset here instead of in maybe_diag_overlap. Adjust
12122 referencess even to unrelated objects. Adjust sizrange of bounded
12123 string functions to reflect bound. For strcat, adjust destination
12124 sizrange by that of source.
12125 (builtin_access::strcat_overlap): Adjust offsets and sizes
12126 to reflect the increase in destination sizrange above.
12127 (builtin_access::overlap): Do not set dstoff here but instead
12128 in builtin_access::builtin_access.
12129 (check_bounds_or_overlap): Use builtin_access::write_off.
12130 (maybe_diag_access_bounds): Add argument. Add informational notes.
12131 (dump_builtin_memref, dump_builtin_access): New functions.
12132 * tree.c (component_ref_size): ...to here.
12133 * tree.h (component_ref_size): Declare.
12134 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12135 nul in the size of the source string.
12136
12137 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12138
12139 PR c/67224
12140 * doc/cpp.texi: Document support for extended characters in
12141 identifiers.
12142 * doc/cppopts.texi: Likewise.
12143
12144 2019-09-19 Richard Biener <rguenther@suse.de>
12145
12146 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12147 (check_reduction_path): New overload having the path as result.
12148 (vect_is_simple_reduction): From the detected reduction
12149 path build a SLP reduction chain if possible.
12150
12151 2019-09-19 Richard Biener <rguenther@suse.de>
12152
12153 PR target/91814
12154 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12155 Force operand to a register if it isn't nonimmediate_operand.
12156
12157 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12158
12159 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12160 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12161 (logical_op): Remove code attribute.
12162 (logical_OP): Likewise.
12163
12164 2019-09-19 Martin Liska <mliska@suse.cz>
12165
12166 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12167 Use proper casting.
12168
12169 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12170
12171 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12172 registers with %R.
12173
12174 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12175 for NE comparison of TImode values.
12176 (aarch64_emit_load_exclusive): Add support for TImode.
12177 (aarch64_emit_store_exclusive): Likewise.
12178 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12179 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12180 Change iterator from ALLI to ALLI_TI.
12181 (@atomic_compare_and_swap<JUST_TI>): New.
12182 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12183 (aarch64_load_exclusive_pair): New.
12184 (aarch64_store_exclusive_pair): New.
12185 * config/aarch64/iterators.md (JUST_TI): New.
12186
12187 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12188 strong_zero_p for aarch64_track_speculation; unify some code paths;
12189 use aarch64_gen_compare_reg instead of open-coding.
12190
12191 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12192 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12193 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12194 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12195 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12196 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12197 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12198 (atomic_<atomic_op><ALLI>): Likewise.
12199 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12200 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12201 * doc/invoke.texi: Document -moutline-atomics.
12202
12203 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12204
12205 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12206 trivial predicate for condition branch.
12207 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12208 for switch case.
12209 (compute_bb_predicates): Update predicate based on post-dominating
12210 relationship.
12211 (analyze_function_body): Calculate post-dominating information.
12212
12213 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12214
12215 * tree-vectorizer.h (vectorizable_condition): Take an int
12216 reduction index instead of a boolean flag.
12217 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12218 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12219 reductions if the reduction accumulator is the "then" rather
12220 than the "else" value.
12221 (vect_analyze_stmt): Update call accordingly.
12222 (vect_transform_stmt): Likewise.
12223 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12224 asserting that the index is > 0.
12225
12226 2019-09-19 Martin Liska <mliska@suse.cz>
12227
12228 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12229 (sort_congruence_classes_by_decl_uid): Likewise.
12230 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12231 easier sorting.
12232 (sem_item_optimizer::merge_classes): Likewise.
12233
12234 2019-09-19 Richard Biener <rguenther@suse.de>
12235
12236 PR tree-optimization/91812
12237 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12238 volatile loads.
12239
12240 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12241
12242 * defaults.h (TARGET_UNIT): New macro.
12243 (target_unit): New type.
12244 * rtl.h (native_encode_rtx, native_decode_rtx)
12245 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12246 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12247 * rtlanal.c (subreg_lsb_1): Delete.
12248 (subreg_size_lsb): New function.
12249 * simplify-rtx.c: Include rtx-vector-builder.h
12250 (simplify_immed_subreg): Delete.
12251 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12252 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12253 functions.
12254 (simplify_subreg): Use them.
12255 (test_vector_subregs_modes, test_vector_subregs_repeating)
12256 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12257 (test_vector_subregs): New functions.
12258 (test_vector_ops): Call test_vector_subregs for integer vector
12259 modes with at least 2 elements.
12260
12261 2019-09-19 Richard Biener <rguenther@suse.de>
12262
12263 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12264 LOOP_VINFO_OPERANDS_SWAPPED.
12265 (parloops_is_simple_reduction): Likewise.
12266 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12267 initialize operands_swapped.
12268 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12269 (vect_is_slp_reduction): Do not swap operands.
12270 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12271 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12272
12273 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12274
12275 PR target/87007
12276 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12277 Add avx_partial_xmm_update.
12278
12279 2019-09-18 Jim Wilson <jimw@sifive.com>
12280
12281 PR target/91683
12282 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12283 (riscv_move_integer): Likewise.
12284 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12285 riscv_move_integer arg.
12286 (riscv_legitimize_move): Likewise.
12287 (riscv_force_temporary): New parameter in_splitter. Don't call
12288 force_reg if true.
12289 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12290 arg.
12291 (riscv_add_offset): Likewise.
12292 (riscv_split_symbol): New parameter in_splitter. Pass to
12293 riscv_force_temporary.
12294 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12295 arg.
12296 (riscv_move_integer): New parameter in_splitter. New local
12297 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12298 in_splitter TRUE.
12299 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12300 riscv_split_symbol, and riscv_force_temporary args.
12301 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12302 riscv_move_integer arg.
12303 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12304
12305 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12306
12307 PR target/90878
12308 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12309 hard register store cost to 6.
12310
12311 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12312
12313 PR target/91446
12314 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12315 pseudo register store cost from 3 to 6 to make it the same as
12316 QImode and HImode.
12317
12318 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12319
12320 PR target/91738
12321 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12322 (one_cmpldi2): Likewise.
12323 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12324 of the constant parts is simple.
12325 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12326 (logical_op): Add new code attribute.
12327 (logical_OP): Likewise.
12328 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12329 (arm_iordi_operand): Add predicate.
12330 (arm_xordi_operand): Add predicate.
12331
12332 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12333
12334 * config/arm/arm.md (maddsidi4): Remove expander.
12335 (mulsidi3adddi): Remove pattern.
12336 (mulsidi3adddi_v6): Likewise.
12337 (mulsidi3_nov6): Likewise.
12338 (mulsidi3_v6): Likewise.
12339 (umulsidi3): Remove expander.
12340 (umulsidi3_nov6): Remove pattern.
12341 (umulsidi3_v6): Likewise.
12342 (umulsidi3adddi): Likewise.
12343 (umulsidi3adddi_v6): Likewise.
12344 (<Us>mulsidi3): Add combined expander.
12345 (<Us>maddsidi4): Likewise.
12346 (<US>mull): Add combined umull and smull pattern.
12347 (<US>mlal): Likewise.
12348 * config/arm/iterators.md (Us): Add new iterator.
12349
12350 2019-09-18 Richard Biener <rguenther@suse.de>
12351
12352 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12353 swapping.
12354 (vectorize_fold_left_reduction): Remove assert.
12355 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12356 operand in position 2. Remove assert.
12357
12358 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12359
12360 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12361 (smulsi3_highpart_nov6): Remove pattern.
12362 (smulsi3_highpart_v6): Likewise.
12363 (umulsi3_highpart): Likewise.
12364 (umulsi3_highpart_nov6): Likewise.
12365 (umulsi3_highpart_v6): Likewise.
12366 (<US>mull_high): Add new combined multiply pattern.
12367
12368 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12369
12370 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12371 (arm_mulsi3_v6): Likewise.
12372 (mulsi3addsi_v6): Likewise.
12373 (mulsi3subsi): Likewise.
12374 (mul): Add new multiply pattern.
12375 (mla): Likewise.
12376 (mls): Likewise.
12377
12378 2019-09-18 Richard Biener <rguenther@suse.de>
12379
12380 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12381 (parloops_valid_reduction_input_p): Copy from
12382 valid_reduction_input_p.
12383 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12384 (parloops_needs_fold_left_reduction_p): Copy from
12385 needs_fold_left_reduction_p.
12386 (parloops_is_simple_reduction): Copy from
12387 vect_is_simple_reduction.
12388 (parloops_force_simple_reduction): Copy from
12389 vect_force_simple_reduction.
12390 (gather_scalar_reductions): Adjust.
12391 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12392 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12393
12394 2019-09-18 Richard Biener <rguenther@suse.de>
12395
12396 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12397 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12398 static.
12399 (vect_create_epilog_for_reduction): Remove dead code.
12400
12401 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12402
12403 * varasm.c (assemble_real): Generate canonical const_ints.
12404
12405 2019-09-18 Richard Biener <rguenther@suse.de>
12406
12407 PR lto/91763
12408 * lto-streamer-in.c (input_eh_regions): Move EH init to
12409 lto_materialize_function.
12410 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12411 Likewise.
12412
12413 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12414
12415 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12416 are INTEGER_CSTs.
12417
12418 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12419
12420 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12421 of checking specifically for INTEGER_CST.
12422
12423 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12424
12425 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12426 sizes instead of uhwi sizes.
12427
12428 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12429
12430 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12431 (add_const_value_attribute): Handle CONST_POLY_INT.
12432
12433 2019-09-18 Martin Liska <mliska@suse.cz>
12434
12435 * dbgcnt.def (store_merging): New counter.
12436 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12437 Use it in store merging.
12438
12439 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12440
12441 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12442 function.
12443 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12444 * config/arm/arm.c (arm_sched_variable_issue): New function.
12445 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12446
12447 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12448
12449 * config/arm/types.md (no_reservation): New reservation.
12450 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12451 no_insn here.
12452 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12453 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12454 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12455 * config/arm/arm1020e.md (1020alu_op): Likewise.
12456 * config/arm/arm1026ejs.md (alu_op): Likewise.
12457 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12458 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12459 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12460 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12461 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12462 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12463 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12464 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12465 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12466 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12467 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12468 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12469 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12470 * config/arm/fa526.md (526_alu_op): Likewise.
12471 * config/arm/fa606te.md (606te_alu_op): Likewise.
12472 * config/arm/fa626te.md (626te_alu_op): Likewise.
12473 * config/arm/fa726te.md (726te_alu_op): Likewise.
12474 * config/arm/xgene1.md (xgene1_nop): Likewise.
12475
12476 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12477
12478 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12479 "no_insn" to "branch".
12480
12481 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12482
12483 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12484
12485 2019-09-17 Richard Biener <rguenther@suse.de>
12486
12487 PR debug/91772
12488 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12489 was missing generate locations only once.
12490
12491 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12492
12493 PR ipa/91089
12494 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12495 option.
12496 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12497 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12498 for switch default case using range analysis information.
12499
12500 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12501
12502 PR target/91749
12503 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12504 mode attributed is supported by FDPIC.
12505
12506 2019-09-17 Richard Biener <rguenther@suse.de>
12507
12508 PR tree-optimization/91790
12509 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12510 use the correct DR for setting up realignment.
12511
12512 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12513
12514 PR target/91719
12515 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12516 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12517 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12518 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12519
12520 2019-09-16 Jason Merrill <jason@redhat.com>
12521
12522 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12523
12524 2019-09-16 Martin Liska <mliska@suse.cz>
12525
12526 * gimple-fold.c (or_comparisons_1): Remove rules moved
12527 to ...
12528 * match.pd: ... here.
12529
12530 2019-09-16 Martin Liska <mliska@suse.cz>
12531
12532 * gimple-fold.c (or_comparisons_1): Remove rules
12533 moved to ...
12534 * match.pd: ... here.
12535
12536 2019-09-16 Martin Liska <mliska@suse.cz>
12537
12538 * genmatch.c (dt_node::append_simplify): Do not print
12539 warning when we have duplicate patterns belonging
12540 to a same simplify rule.
12541 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12542 (maybe_fold_comparisons_from_match_pd): Handle
12543 tcc_comparison as a results.
12544 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12545
12546 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12547 Qi Feng <ffengqi@linux.ibm.com>
12548
12549 PR middle-end/88784
12550 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12551 (x > y && x == XXX_MIN): Optimize into 'false'.
12552 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12553 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12554 (x < y && x == XXX_MAX): Optimize into 'false'.
12555 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12556 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12557 (x <= y || x != XXX_MIN): Optimize into 'true'.
12558 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12559 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12560 (x >= y || x != XXX_MAX): Optimize into 'true'.
12561 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12562
12563 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12564 Martin Liska <mliska@suse.cz>
12565
12566 * gimple-fold.c (and_comparisons_1): Add type as first
12567 argument.
12568 (and_var_with_comparison): Likewise.
12569 (and_var_with_comparison_1): Likewise.
12570 (or_comparisons_1): Likewise.
12571 (or_var_with_comparison): Likewise.
12572 (or_var_with_comparison_1): Likewise.
12573 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12574 (maybe_fold_or_comparisons): Likewise.
12575 (maybe_fold_comparisons_from_match_pd): New.
12576 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12577 (maybe_fold_or_comparisons): Likewise.
12578 * gimple.c (gimple_size): Make it public and add num_ops argument.
12579 (gimple_init): New function.
12580 (gimple_alloc): Call gimple_init.
12581 * gimple.h (gimple_size): New.
12582 (gimple_init): Likewise.
12583 * tree-if-conv.c (fold_or_predicates): Pass type.
12584 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12585 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12586 (optimize_vec_cond_expr): Likewise.
12587 (ovce_extract_ops): Return type of conditional expression.
12588 * tree-ssanames.c (init_ssa_name_imm_use): New.
12589 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12590 * tree-ssanames.h (init_ssa_name_imm_use): New.
12591
12592 2019-09-16 Richard Biener <rguenther@suse.de>
12593
12594 PR tree-optimization/91756
12595 PR tree-optimization/87132
12596 * tree-ssa-alias.h (enum translate_flags): New.
12597 (get_continuation_for_phi): Use it instead of simple bool flag.
12598 (walk_non_aliased_vuses): Likewise.
12599 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12600 (get_continuation_for_phi): When looking across backedges only
12601 disallow valueization.
12602 (walk_non_aliased_vuses): Adjust.
12603 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12604 if requested.
12605
12606 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12607
12608 PR middle-end/80791
12609 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12610 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12611 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12612 * target.def (have_count_reg_decr_p): New hook.
12613 (doloop_cost_for_generic): Likewise.
12614 (doloop_cost_for_address): Likewise.
12615 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12616 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12617 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12618 * doc/tm.texi: Regenerate.
12619 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12620 addend.
12621 (record_group): Init doloop_p.
12622 (add_candidate_1): Add optional argument doloop, change the handlings
12623 accordingly.
12624 (add_candidate): Likewise.
12625 (generic_predict_doloop_p): Update attribute.
12626 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12627 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12628 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12629 MIN_EXPR.
12630 (get_computation_cost): Update for doloop IV cand extra cost.
12631 (determine_group_iv_cost_cond): Update for doloop IV cand.
12632 (determine_iv_cost): Likewise.
12633 (ivopts_estimate_reg_pressure): Likewise.
12634 (may_eliminate_iv): Update handlings for doloop IV cand.
12635 (add_iv_candidate_for_doloop): New function.
12636 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12637 (iv_ca_set_no_cp): Update for doloop IV cand.
12638 (iv_ca_set_cp): Likewise.
12639 (iv_ca_dump): Dump register cost.
12640 (find_doloop_use): New function.
12641 (analyze_and_mark_doloop_use): Likewise.
12642 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12643
12644 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12645
12646 PR middle-end/91708
12647 * cse.c (cse_insn): Do not replace anything with a
12648 MEM.
12649
12650 2019-09-13 Ian Lance Taylor <iant@golang.org>
12651
12652 * doc/invoke.texi (Optimize Options): Fix typo.
12653
12654 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12655
12656 PR tree-optimization/89386
12657 * config/i386/sse.md (smulhrs<mode>3): New expander.
12658 (smulhrsv4hi3): Ditto.
12659
12660 2019-09-12 Richard Biener <rguenther@suse.de>
12661
12662 PR tree-optimization/91750
12663 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12664 in the type of the evolution.
12665
12666 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12667
12668 PR tree-optimization/89386
12669 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12670 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12671 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12672 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12673 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12674 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12675 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12676 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12677 (su, r): Handle the unspecs above.
12678 (bt): New int attribute.
12679 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12680 * internal-fn.c (first_commutative_argument): Commutativity info for
12681 above.
12682 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12683 (umulhrs_optab): New optabs.
12684 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12685 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12686 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12687 function.
12688 (vect_vect_recog_func_ptrs): Add it.
12689
12690 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12691
12692 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12693 code.
12694
12695 2019-09-11 Nathan Sidwell <nathan@acm.org>
12696
12697 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12698 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12699
12700 2019-09-11 Richard Biener <rguenther@suse.de>
12701
12702 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12703 * lto-wrapper.c (merge_and_complain): Pick up -g.
12704 (append_compiler_options): Likewise.
12705 (run_gcc): Re-instantiate handling -g0 at link-time.
12706 * doc/invoke.texi (flto): Document debug info generation.
12707
12708 2019-09-11 Richard Biener <rguenther@suse.de>
12709
12710 PR tree-optimization/90387
12711 * vr-values.c (vr_values::extract_range_basic): After inlining
12712 simplify non-constant __builtin_constant_p to false.
12713
12714 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12715
12716 PR rtl-optimization/89795
12717 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12718 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12719
12720 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12721
12722 PR tree-optimization/91723
12723 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12724 instead of pointer equality when checking if argument vectypes are
12725 the same.
12726
12727 PR middle-end/91725
12728 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12729 of get_nonzero_bits, only call it for integral types.
12730
12731 2019-09-11 Richard Biener <rguenther@suse.de>
12732
12733 Revert
12734 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12735
12736 * match.pd: Add flag_unsafe_math_optimizations check
12737 before deciding on the widest type in a binary math operation.
12738
12739 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12740
12741 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12742 and CALL_REALLY_USED_REGISTERS must be defined, and that
12743 CALL_REALLY_USED_REGISTERS is preferred.
12744 * doc/tm.texi: Regenerate.
12745 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12746 (call_really_used_regs): Likewise.
12747 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12748 CALL_REALLY_USED_REGISTERS are defined.
12749 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12750 initial value if defined.
12751 (initial_call_really_used_regs): Delete.
12752 (saved_call_really_used_regs): Likewise.
12753 (CALL_REALLY_USED_REGNO_P): Likewise.
12754 (init_reg_sets): Remove handling of call_really_used_regs.
12755 (save_register_info, restore_register_info, globalize_reg): Likewise.
12756 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12757 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12758 outside operand_reg_set.
12759 (fix_register): Don't change call_used_regs if
12760 CALL_REALLY_USED_REGISTERS is defined.
12761 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12762 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12763 instead of call_really_used_regs.
12764 (csky_conditional_register_usage): Remove the old handling of
12765 call_used_regs and change the handling of call_really_used_regs
12766 to use call_used_regs instead.
12767 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12768 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12769 making a register fixed.
12770 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12771 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12772 instead of call_really_used_regs.
12773 (m32r_conditional_register_usage): Don't set call_used_regs when
12774 making a register fixed.
12775 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12776 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12777 instead of call_really_used_regs.
12778 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12779 (mips_cfun_call_saved_reg_p): Likewise.
12780 (mips_swap_registers): Remove the old handling of call_used_regs
12781 and change the handling of call_really_used_regs to use call_used_regs
12782 instead.
12783 (mips_conditional_register_usage): Likewise.
12784 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12785 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12786 instead of call_really_used_regs.
12787 (mn10300_get_live_callee_saved_regs): Likewise.
12788 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12789 (mn10300_conditional_register_usage): Don't set call_used_regs when
12790 making a register fixed.
12791 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12792 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12793 Remove the old handling of call_used_regs and change the handling
12794 of call_really_used_regs to use call_used_regs instead.
12795 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12796 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12797 instead of call_really_used_regs.
12798 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12799 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12800 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12801 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12802 (s390_conditional_register_usage): Remove the old handling of
12803 call_used_regs and change the handling of call_really_used_regs
12804 to use call_used_regs instead.
12805 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12806 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12807 (sh_fix_range, reg_unused_after): Likewise.
12808 (sh_conditional_register_usage): Remove the old handling of
12809 call_used_regs and change the handling of call_really_used_regs
12810 to use call_used_regs instead.
12811 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12812 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12813 call_used_regs when making a register fixed.
12814 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12815 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12816 call_used_regs when making a register fixed.
12817 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12818 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12819 set call_used_regs when making a register fixed.
12820 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12821 * config/visium/visium.c (visium_conditional_register_usage): Remove
12822 the old handling of call_used_regs and change the handling of
12823 call_really_used_regs to use call_used_regs instead.
12824
12825 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12826
12827 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12828 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12829 * reginfo.c (call_used_regs): New macro.
12830
12831 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12832
12833 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12834 fixed_regs test.
12835 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12836 (bpf_expand_epilogue): Likewise.
12837 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12838 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12839 (ft32_expand_epilogue): Likewise.
12840 * config/i386/i386.c (ix86_save_reg): Likewise.
12841 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12842 (moxie_expand_epilogue): Likewise.
12843 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12844 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12845 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12846
12847 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12848
12849 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12850 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12851 instead of testing call_used_regs directly.
12852 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12853 (aarch64_components_for_bb): Likewise.
12854 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12855 * config/arc/arc.c (arc_must_save_register): Likewise.
12856 (arc_epilogue_uses): Likewise.
12857 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12858 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12859 (arm_compute_save_reg0_reg12_mask): Likewise.
12860 (arm_compute_save_core_reg_mask): Likewise.
12861 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12862 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12863 (cmse_nonsecure_entry_clear_before_return): Likewise.
12864 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12865 (arm_expand_epilogue): Likewise.
12866 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12867 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12868 (_reg_unused_after): Likewise.
12869 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12870 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12871 (add_to_reg, hwloop_optimize): Likewise.
12872 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12873 (bpf_expand_epilogue): Likewise.
12874 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12875 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12876 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12877 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12878 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12879 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12880 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12881 * config/frv/frv.c (frv_stack_info): Likewise.
12882 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12883 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12884 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12885 (move_callee_saved_registers): Likewise.
12886 * config/h8300/h8300.c (byte_reg): Likewise.
12887 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12888 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12889 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12890 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12891 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12892 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12893 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12894 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12895 * config/m32c/m32c.c (need_to_save): Likewise.
12896 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12897 * config/mcore/mcore.c (calc_live_regs): Likewise.
12898 * config/microblaze/microblaze.c (microblaze_must_save_register):
12899 Likewise.
12900 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12901 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12902 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12903 (mmix_expand_epilogue): Likewise.
12904 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12905 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12906 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12907 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12908 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12909 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12910 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12911 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12912 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12913 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12914 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12915 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12916 * config/rl78/rl78.c (need_to_save): Likewise.
12917 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12918 (rs6000_stack_info, generate_set_vrsave): Likewise.
12919 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12920 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12921 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12922 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12923 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12924 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12925 (save_local_or_in_reg_p): Likewise.
12926 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12927 (xstormy16_epilogue_uses): Likewise.
12928 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12929 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12930 * config/v850/v850.c (compute_register_save_size): Likewise.
12931 * config/vax/vax.c (vax_expand_prologue): Likewise.
12932 * config/visium/visium.c (visium_save_reg_p): Likewise.
12933 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12934 * cselib.c (cselib_process_insn): Likewise.
12935 * df-scan.c (df_get_entry_block_def_set): Likewise.
12936 * function.c (aggregate_value_p): Likewise.
12937 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12938 * ira-lives.c (process_bb_node_lives): Likewise.
12939 * ira.c (do_reload): Likewise.
12940 * lra-lives.c (process_bb_lives): Likewise.
12941 * lra-remat.c (lra_remat): Likewise.
12942 * lra.c (lra): Likewise.
12943 * postreload.c (reload_combine_recognize_pattern): Likewise.
12944 (reload_cse_move2add): Likewise.
12945 * recog.c (peep2_find_free_register): Likewise.
12946 * regrename.c (check_new_reg_p): Likewise.
12947 * reload.c (find_equiv_reg): Likewise.
12948 * reload1.c (reload, find_reg): Likewise.
12949 * sel-sched.c (init_hard_regs_data): Likewise.
12950
12951 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12952
12953 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12954 regs_invalidated_by_call & ~fixed_reg_set instead of
12955 call_used_or_fixed_regs & ~fixed_reg_set.
12956 * config/sh/sh.c (output_stack_adjust): Likewise.
12957
12958 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12959
12960 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12961 (call_used_reg_set): Delete.
12962 (call_used_or_fixed_regs): New macro.
12963 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12964 of call_used_reg_set.
12965 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12966 instead of call_used_regs.
12967 (save_call_clobbered_regs): Likewise.
12968 * cfgcleanup.c (old_insns_match_p): Likewise.
12969 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12970 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12971 Likewise.
12972 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12973 * config/sh/sh.c (output_stack_adjust): Likewise.
12974 * final.c (collect_fn_hard_reg_usage): Likewise.
12975 * ira-build.c (ira_build): Likewise.
12976 * ira-color.c (calculate_saved_nregs): Likewise.
12977 (allocno_reload_assign, calculate_spill_cost): Likewise.
12978 * ira-conflicts.c (ira_build_conflicts): Likewise.
12979 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12980 * ira-lives.c (process_bb_node_lives): Likewise.
12981 * ira.c (setup_reg_renumber): Likewise.
12982 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12983 * lra-constraints.c (need_for_call_save_p): Likewise.
12984 (need_for_split_p, inherit_in_ebb): Likewise.
12985 * lra-lives.c (process_bb_lives): Likewise.
12986 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12987 * postreload.c (reload_combine): Likewise.
12988 * regrename.c (find_rename_reg): Likewise.
12989 * reload1.c (reload_as_needed): Likewise.
12990 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12991 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12992 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12993
12994 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12995
12996 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12997 (no_caller_save_reg_set): Delete.
12998 * caller-save.c (init_caller_save): Don't initialize it.
12999 * ira-conflicts.c (ira_build_conflicts): Calculate
13000 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13001
13002 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13003
13004 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13005 (target_hard_regs::x_savable_regs): New field.
13006 (call_fixed_reg_set): Delete.
13007 (savable_regs): New macro,
13008 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13009 (init_reg_sets_1): Likewise. Initialize savable_regs.
13010 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13011 for all registers. Set savable_regs instead of call_fixed_reg_set.
13012 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13013 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13014 * config/sh/sh.c (output_stack_adjust): Likewise.
13015
13016 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13017
13018 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13019 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13020 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13021
13022 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13023
13024 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13025 * rtlanal.c (get_call_rtx_from): Likewise.
13026 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13027 than the pattern to get_call_rtx_from.
13028 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13029 an rtx_insn * instead of an rtx.
13030 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13031
13032 2019-09-10 Martin Liska <mliska@suse.cz>
13033
13034 * common.opt: Use newly added WarnRemoved.
13035 * config/aarch64/aarch64.opt: Likewise.
13036 * config/arm/arm.opt: Likewise.
13037 * config/i386/i386.opt: Likewise.
13038 * config/ia64/ia64.opt: Likewise.
13039 * config/rs6000/rs6000.opt: Likewise.
13040 * doc/options.texi: Document WarnRemoved properly.
13041 * dwarf2out.c (gen_producer_string): Handle renamed
13042 OPT_SPECIAL_warn_removed.
13043 * lto-opts.c (lto_write_options): Likewise.
13044 * lto-wrapper.c (merge_and_complain): Likewise.
13045 * opts-common.c (decode_cmdline_option): Likewise.
13046 (prune_options): Likewise.
13047 (read_cmdline_option): Likewise.
13048 (control_warning_option): Likewise.
13049 * opts.c (print_filtered_help): Likewise.
13050 * optc-gen.awk: Parse for WarnRemoved and make usage
13051 of Deprecated an error.
13052 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13053
13054 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13055
13056 * doc/install.texi: Fix syntax for html generation.
13057
13058 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13059
13060 PR middle-end/91680
13061 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13062 the shift type to type.
13063
13064 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13065
13066 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13067 FDPIC mode.
13068 (stack_protect_combined_test_insn): Likewise.
13069
13070 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13071 Mickaël Guêné <mickael.guene@st.com>
13072
13073 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13074 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13075 (load_tp_soft_fdpic): New pattern.
13076 (load_tp_soft): Disable in FDPIC mode.
13077
13078 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13079 Mickaël Guêné <mickael.guene@st.com>
13080
13081 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13082 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13083 (arm_call_tls_get_addr): Add FDPIC support.
13084 (legitimize_tls_address): Likewise.
13085 (arm_emit_tls_decoration): Likewise.
13086
13087 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13088 Mickaël Guêné <mickael.guene@st.com>
13089
13090 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13091 support.
13092 (arm_trampoline_init): Likewise.
13093 (arm_trampoline_adjust_address): Likewise.
13094 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13095
13096 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13097 Mickaël Guêné <mickael.guene@st.com>
13098
13099 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13100 (legitimize_pic_address): Enforce binding rules on function
13101 pointers in FDPIC mode.
13102 (arm_assemble_integer): Likewise.
13103
13104 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13105 Mickaël Guêné <mickael.guene@st.com>
13106
13107 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13108 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13109 FDPIC.
13110
13111 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13112 Mickaël Guêné <mickael.guene@st.com>
13113
13114 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13115 field.
13116
13117 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13118 Mickaël Guêné <mickael.guene@st.com>
13119
13120 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13121 in FDPIC mode.
13122 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13123 new function.
13124 * config/arm/arm.c (arm_option_override): Define pic register to
13125 FDPIC_REGNUM.
13126 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13127 have no decl or go through PLT.
13128 (calculate_pic_address_constant): New function.
13129 (legitimize_pic_address): Call calculate_pic_address_constant.
13130 (arm_load_pic_register): Handle TARGET_FDPIC.
13131 (arm_is_segment_info_known): New function.
13132 (arm_pic_static_addr): Add support for FDPIC.
13133 (arm_load_function_descriptor): New function.
13134 (arm_emit_call_insn): Add support for FDPIC.
13135 (arm_assemble_integer): Add support for FDPIC.
13136 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13137 Define. (FDPIC_REGNUM): New define.
13138 * config/arm/arm.md (call): Add support for FDPIC.
13139 (call_value): Likewise.
13140 (restore_pic_register_after_call): New pattern.
13141 (untyped_call): Disable if FDPIC.
13142 (untyped_return): Likewise.
13143 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13144
13145 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13146 Mickaël Guêné <mickael.guene@st.com>
13147
13148 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13149 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13150 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13151 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13152 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13153 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13154 * config/arm/uclinuxfdpiceabi.h: New file.
13155
13156 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13157
13158 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13159
13160 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13161 Mickaël Guêné <mickael.guene@st.com>
13162
13163 * config/arm/arm.opt: Add -mfdpic option.
13164 * doc/invoke.texi: Add documentation for -mfdpic.
13165
13166 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13167
13168 * expmed.c (extract_bit_field): Update function comment
13169 regarding alt_rtl.
13170 * expr.c (expand_expr_real): Update function comment
13171 regarding alt_rtl.
13172 (expand_misaligned_mem_ref): New helper function.
13173 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13174 Remove duplicate assignment to "base" at case MEM_REF.
13175 Remove a shadowed variable "unsignedp" at case VCE.
13176
13177 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13178
13179 * regset.h (regs_invalidated_by_call_regset): Delete.
13180 (fixed_reg_set_regset): Likewise.
13181 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13182 (fixed_reg_set_regset, persistent_obstack): Likewise.
13183 (init_reg_sets_1, globalize_reg): Update accordingly.
13184 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13185 instead of a bitmap.
13186 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13187 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13188 instead of regs_invalidated_by_call_regset.
13189 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13190 * df-scan.c (df_scan_start_dump): Likewise.
13191 * dse.c (copy_fixed_regs): Likewise.
13192 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13193
13194 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13195
13196 * array-traits.h: New file.
13197 * coretypes.h (array_traits, bitmap_view): New types.
13198 * bitmap.h: Include "array-traits.h"
13199 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13200 (base_bitmap_view, bitmap_view): New classes.
13201 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13202 * hard-reg-set.h: Include array-traits.h.
13203 (array_traits<HARD_REG_SET>): New struct.
13204 * regset.h (IOR_REG_SET_HRS): New macro.
13205 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13206 rather than iterating over each hard register.
13207 * sched-deps.c (sched_analyze_insn): Likewise.
13208 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13209
13210 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13211
13212 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13213 instead of a HARD_REG_SET *.
13214 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13215 (ira_build): Update call accordingly.
13216 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13217
13218 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13219
13220 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13221 (HARD_REG_SET::operator!=): Likewise.
13222 (hard_reg_set_equal_p): Delete.
13223 * cfgcleanup.c (old_insns_match_p): Use == instead of
13224 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13225 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13226 (add_allocno_hard_regs_to_forest): Likewise.
13227 (setup_allocno_available_regs_num): Likewise.
13228 * ira.c (setup_pressure_classes): Likewise.
13229 (setup_allocno_and_important_classes): Likewise.
13230 (setup_reg_class_relations): Likewise.
13231 * lra-lives.c (process_bb_lives): Likewise.
13232 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13233
13234 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13235
13236 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13237 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13238 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13239 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13240 Likewise.
13241 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13242 * ira.c (setup_reg_renumber): Likewise.
13243 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13244 * regrename.c (regrename_find_superclass): Likewise.
13245 * reload1.c (find_reg): Likewise.
13246
13247 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13248
13249 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13250 * caller-save.c (setup_save_areas): Use "&~" instead of
13251 AND_COMPL_HARD_REG_SET.
13252 (save_call_clobbered_regs): Likewise.
13253 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13254 Likewise.
13255 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13256 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13257 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13258 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13259 (mips_conditional_register_usage): Likewise.
13260 * config/sh/sh.c (output_stack_adjust): Likewise.
13261 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13262 (setup_profitable_hard_regs): Likewise.
13263 (get_conflict_and_start_profitable_regs): Likewise.
13264 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13265 (ira_build_conflicts): Likewise.
13266 * ira-costs.c (restrict_cost_classes): Likewise.
13267 (setup_regno_cost_classes_by_aclass): Likewise.
13268 * ira-lives.c (process_bb_node_lives): Likewise.
13269 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13270 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13271 (setup_allocno_and_important_classes, setup_class_translate_array)
13272 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13273 Likewise.
13274 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13275 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13276 (process_alt_operands, inherit_in_ebb): Likewise.
13277 * lra-eliminations.c (update_reg_eliminate): Likewise.
13278 * lra-lives.c (process_bb_lives): Likewise.
13279 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13280 * resource.c (find_dead_or_set_registers): Likewise.
13281 (mark_target_live_regs): Likewise.
13282 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13283 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13284 (implicit_clobber_conflict_p): Likewise.
13285 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13286 (try_shrink_wrapping): Likewise.
13287
13288 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13289
13290 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13291 (HARD_REG_SET::operator|=): Likewise.
13292 (IOR_HARD_REG_SET): Delete.
13293 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13294 IOR_HARD_REG_SET.
13295 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13296 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13297 * final.c (collect_fn_hard_reg_usage): Likewise.
13298 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13299 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13300 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13301 (propagate_some_info_from_allocno): Likewise.
13302 (copy_info_to_removed_store_destinations): Likewise.
13303 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13304 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13305 (fast_allocation): Likewise.
13306 * ira-conflicts.c (ira_build_conflicts): Likewise.
13307 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13308 (process_bb_node_lives): Likewise.
13309 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13310 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13311 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13312 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13313 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13314 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13315 (process_bb_lives): Likewise.
13316 * lra-spills.c (assign_spill_hard_regs): Likewise.
13317 * postreload.c (reload_combine): Likewise.
13318 * reginfo.c (init_reg_sets_1): Likewise.
13319 * regrename.c (merge_overlapping_regs, find_rename_reg)
13320 (merge_chains): Likewise.
13321 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13322 (find_reload_regs, finish_spills, choose_reload_regs_init)
13323 (emit_reload_insns): Likewise.
13324 * reorg.c (redundant_insn): Likewise.
13325 * resource.c (find_dead_or_set_registers, mark_set_resources)
13326 (mark_target_live_regs): Likewise.
13327 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13328 * sched-deps.c (sched_analyze_insn): Likewise.
13329 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13330 (find_best_reg_for_expr): Likewise.
13331 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13332
13333 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13334
13335 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13336 (HARD_REG_SET::operator&): Likewise.
13337 (AND_HARD_REG_SET): Delete.
13338 * caller-save.c (setup_save_areas): Use "&" instead of
13339 AND_HARD_REG_SET.
13340 (save_call_clobbered_regs): Likewise.
13341 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13342 * config/m32c/m32c.c (reduce_class): Likewise.
13343 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13344 * final.c (get_call_reg_set_usage): Likewise.
13345 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13346 (setup_left_conflict_sizes_p): Likewise.
13347 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13348 (ira_build_conflicts): Likewise.
13349 * ira-costs.c (restrict_cost_classes): Likewise.
13350 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13351 (setup_reg_class_relations): Likewise.
13352 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13353 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13354 * resource.c (find_dead_or_set_registers): Likewise.
13355 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13356
13357 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13358
13359 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13360 (COMPL_HARD_REG_SET): Delete.
13361 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13362 of COMPL_HARD_REG_SET.
13363 (try_rename_operands): Likewise.
13364 * config/sh/sh.c (push_regs): Likewise.
13365 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13366 * lra-constraints.c (contains_reg_p): Likewise.
13367 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13368
13369 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13370
13371 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13372 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13373 of COPY_HARD_REG_SET.
13374 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13375 (epiphany_conditional_register_usage): Likewise.
13376 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13377 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13378 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13379 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13380 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13381 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13382 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13383 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13384 * config/sh/sh.c (output_stack_adjust): Likewise.
13385 * final.c (collect_fn_hard_reg_usage): Likewise.
13386 (get_call_reg_set_usage): Likewise.
13387 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13388 (ira_flattening): Likewise.
13389 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13390 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13391 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13392 (ira_reassign_pseudos): Likewise.
13393 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13394 (ira_build_conflicts): Likewise.
13395 * ira-costs.c (restrict_cost_classes): Likewise.
13396 (setup_regno_cost_classes_by_aclass): Likewise.
13397 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13398 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13399 (setup_stack_reg_pressure_class, setup_pressure_classes)
13400 (setup_allocno_and_important_classes, setup_class_translate_array)
13401 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13402 (ira_setup_eliminable_regset): Likewise.
13403 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13404 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13405 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13406 (process_alt_operands, inherit_in_ebb): Likewise.
13407 * lra-lives.c (process_bb_lives): Likewise.
13408 * lra-spills.c (assign_spill_hard_regs): Likewise.
13409 * lra.c (lra): Likewise.
13410 * mode-switching.c (new_seginfo): Likewise.
13411 * postreload.c (reload_combine): Likewise.
13412 * reg-stack.c (straighten_stack): Likewise.
13413 * reginfo.c (save_register_info, restore_register_info): Likewise.
13414 (init_reg_sets_1, record_subregs_of_mode): Likewise
13415 * regrename.c (create_new_chain, rename_chains): Likewise.
13416 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13417 (find_reload_regs): Likewise.
13418 * resource.c (find_dead_or_set_registers): Likewise.
13419 (mark_target_live_regs): Likewise.
13420 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13421
13422 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13423
13424 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13425 (note_pattern_stores): Declare.
13426 (note_stores): Take an rtx_insn *.
13427 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13428 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13429 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13430 (note_stores): Take an rtx_insn * as argument and process
13431 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13432 (note_pattern_stores): ...this.
13433 (find_first_parameter_load): Pass the insn rather than
13434 its pattern to note_stores.
13435 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13436 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13437 (insert_one_insn): Likewise.
13438 * combine.c (combine_instructions): Likewise.
13439 (likely_spilled_retval_p): Likewise.
13440 (try_combine): Use note_pattern_stores instead of note_stores.
13441 (record_dead_and_set_regs): Pass the insn rather than its pattern
13442 to note_stores.
13443 (reg_dead_at_p): Likewise.
13444 * config/bfin/bfin.c (workaround_speculation): Likewise.
13445 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13446 rather than an rtx.
13447 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13448 instead of note_stores.
13449 (frv_optimize_membar_local): Pass the insn rather than its pattern
13450 to note_stores.
13451 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13452 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13453 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13454 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13455 (mips_reorg_process_insns): Likewise.
13456 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13457 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13458 rather than rtxes.
13459 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13460 its pattern to note_stores.
13461 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13462 of note_stores.
13463 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13464 the insn to note_stores.
13465 (prescan_insns_for_dce): Update call accordingly.
13466 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13467 to note_stores.
13468 * df-problems.c (can_move_insns_across): Likewise.
13469 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13470 * function.c (assign_parm_setup_reg): Likewise.
13471 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13472 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13473 (single_set_gcse): Likewise.
13474 * ira.c (validate_equiv_mem): Likewise.
13475 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13476 for no_equiv.
13477 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13478 pattern to note_stores.
13479 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13480 * loop-iv.c (simplify_using_initial_values): Likewise.
13481 * mode-switching.c (optimize_mode_switching): Likewise.
13482 * optabs.c (emit_libcall_block_1): Likewise.
13483 (expand_atomic_compare_and_swap): Likewise.
13484 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13485 (record_opr_changes): Likewise. Remove explicit handling of
13486 CALL_INSN_FUNCTION_USAGE.
13487 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13488 * regcprop.c (kill_clobbered_values): Likewise.
13489 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13490 to note_stores.
13491 * regrename.c (build_def_use): Likewise.
13492 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13493 for mark_not_eliminable.
13494 (reload_as_needed): Pass the insn rather than its pattern
13495 to note_stores.
13496 (emit_output_reload_insns): Likewise.
13497 * resource.c (mark_target_live_regs): Likewise.
13498 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13499 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13500 instead of note_stores.
13501 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13502 its pattern to note_stores.
13503 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13504 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13505
13506 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13507
13508 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13509 than a #define. Use a structure rather than an array as the
13510 fallback definition. Remove special cases for low array sizes.
13511 (const_hard_reg_set): New typedef.
13512 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13513 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13514 (hard_reg_set_empty_p): Likewise.
13515 (SET_HARD_REG_BIT): Use a function rather than a macro to
13516 handle the case in which HARD_REG_SET is a structure.
13517 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13518 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13519 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13520 (IOR_COMPL_HARD_REG_SET): Likewise.
13521 (hard_reg_set_iterator::pset): Constify the pointer target.
13522 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13523 of a "const HARD_REG_SET". Update the handling of non-integer
13524 HARD_REG_SETs.
13525 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13526 * reload.h: Likewise.
13527 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13528 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13529 of a "const HARD_REG_SET".
13530 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13531 (range_in_hard_reg_set_p): Likewise.
13532 * ira-costs.c (restrict_cost_classes): Likewise.
13533 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13534 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13535 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13536 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13537 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13538 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13539 take an unsigned int and open-code the HARD_REG_SET operations.
13540
13541 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13542
13543 * Makefile.in (OBJS): Remove bt-load.o.
13544 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13545 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13546 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13547 document that the option no longer does anything.
13548 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13549 * target.def (branch_target_register_class): Delete.
13550 (branch_target_register_callee_saved): Likewise.
13551 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13552 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13553 * doc/tm.texi: Regenerate.
13554 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13555 (make_pass_branch_target_load_optimize2): Likewise.
13556 * passes.def (pass_branch_target_load_optimize1): Likewise.
13557 (pass_branch_target_load_optimize2): Likewise.
13558 * targhooks.h (default_branch_target_register_class): Likewise.
13559 * targhooks.c (default_branch_target_register_class): Likewise.
13560 * opt-suggestions.c (test_completion_valid_options): Remove
13561 -fbtr-bb-exclusive from the list of test options.
13562 * bt-load.c: Remove.
13563
13564 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13565
13566 * match.pd: Add flag_unsafe_math_optimizations check
13567 before deciding on the widest type in a binary math operation.
13568
13569 2019-09-09 Martin Liska <mliska@suse.cz>
13570
13571 * config/i386/i386.opt: Update comment of removed
13572 options that are preserved only for backward
13573 compatibility.
13574
13575 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13576
13577 PR target/87853
13578 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13579 instead of __v16qs.
13580
13581 PR target/91704
13582 * config/i386/avxintrin.h (__v32qs): New typedef.
13583 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13584 instead of __v32qi.
13585
13586 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13587
13588 * doc/invoke.texi (Option Summary): Cover eBPF.
13589 (eBPF Options): New section.
13590 * doc/extend.texi (BPF Built-in Functions): Likewise.
13591 (BPF Kernel Helpers): Likewise.
13592
13593 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13594
13595 * config.gcc: Support for bpf-*-* targets.
13596 * common/config/bpf/bpf-common.c: New file.
13597 * config/bpf/t-bpf: Likewise.
13598 * config/bpf/predicates.md: Likewise.
13599 * config/bpf/constraints.md: Likewise.
13600 * config/bpf/bpf.opt: Likewise.
13601 * config/bpf/bpf.md: Likewise.
13602 * config/bpf/bpf.h: Likewise.
13603 * config/bpf/bpf.c: Likewise.
13604 * config/bpf/bpf-protos.h: Likewise.
13605 * config/bpf/bpf-opts.h: Likewise.
13606 * config/bpf/bpf-helpers.h: Likewise.
13607 * config/bpf/bpf-helpers.def: Likewise.
13608
13609 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13610
13611 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13612 indirect_calls.
13613
13614 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13615
13616 * opt-functions.awk (integer_range_info): Make sure values are in
13617 numeric context before operating with them.
13618
13619 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13620
13621 * genemit.c (gen_split): Print the filename and line number where the
13622 splitter (or peephole2) was defined, to the dump file.
13623
13624 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13625
13626 PR tree-optimization/91665
13627 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13628 incompatible with the type of PHI result.
13629
13630 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13631
13632 PR target/91684
13633 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13634 gen_unaligned_storedi for 4-byte aligned addresses.
13635
13636 2019-09-06 Jim Wilson <jimw@sifive.com>
13637
13638 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13639 change.
13640
13641 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13642
13643 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13644
13645 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13646
13647 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13648 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13649
13650 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13651
13652 PR target/91654
13653 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13654 cost of SSE->integer and integer->SSE moves from 2 to 6.
13655 (core_cost): Ditto.
13656
13657 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13658
13659 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13660 before testing TYPE_TRANSPARENT_AGGR.
13661 * calls.c (initialize_argument_information, load_register_parameters):
13662 Likewise.
13663
13664 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13665
13666 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13667 high regs.
13668 (cmp_ior): Likewise.
13669
13670 2019-09-06 Martin Liska <mliska@suse.cz>
13671
13672 * doc/match-and-simplify.texi: Separate tuples with ;.
13673
13674 2019-09-06 Martin Liska <mliska@suse.cz>
13675
13676 PR c++/91125
13677 * Makefile.in: Remove tlink.o.
13678 * collect2.c (do_link): New function isolated
13679 from do_tlink.
13680 (main): Use.
13681 * collect2.h (do_tlink): Remove declaration of do_tlink.
13682 * doc/extend.texi: Remove documentation of -frepo.
13683 * doc/invoke.texi: Likewise.
13684 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13685 * tlink.c: Remove.
13686
13687 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13688 Jim Wilson <jimw@sifive.com>
13689
13690 PR target/91635
13691 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13692 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13693 paradoxical_subreg_p (operands[0]).
13694 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13695 use as intermediate value.
13696
13697 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13698
13699 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13700 (sync_compare_and_swap<mode>_insn): Likewise.
13701
13702 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13703
13704 PR middle-end/91615
13705 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13706 without movmisalign optab.
13707
13708 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13709
13710 PR middle-end/91001
13711 PR middle-end/91105
13712 PR middle-end/91106
13713 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13714 types, use type of their first field instead of type of
13715 args[i].tree_value.
13716
13717 2019-09-05 Richard Biener <rguenther@suse.de>
13718
13719 PR rtl-optimization/91656
13720 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13721 of early out.
13722
13723 2019-09-05 Richard Biener <rguenther@suse.de>
13724
13725 PR middle-end/90501
13726 * tree-inline.c (declare_return_variable): Mark the return
13727 slot as addressable after building an address of it.
13728
13729 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13730
13731 * doc/install.texi: Update and clarify requirements to build GNAT.
13732
13733 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13734
13735 PR middle-end/91577
13736 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13737 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13738 call to be in memory.
13739 (pass_expand::execute): Call discover_nonconstant_array_refs before
13740 setting currently_expanding_to_rtl.
13741
13742 2019-09-04 Caroline Tice <cmtice@google.com>
13743
13744 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13745 specified together.
13746
13747 2019-09-04 Marek Polacek <polacek@redhat.com>
13748
13749 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13750
13751 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13752
13753 PR target/32413
13754 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13755 for QI and HImode moves between SSE and general registers.
13756
13757 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13758
13759 PR c/78736
13760 * doc/invoke.texi: Document -Wenum-conversion.
13761
13762 2019-09-04 Richard Biener <rguenther@suse.de>
13763
13764 PR rtl-optimization/36262
13765 * postreload-gcse.c: Include intl.h and gcse.h.
13766 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13767 to avoid linear list walk.
13768 (record_last_mem_set_info): Gate off if not computing transparentness.
13769 (get_bb_avail_insn): If transparentness isn't computed give up
13770 early.
13771 (gcse_after_reload_main): Skip compute_transp and extended PRE
13772 if gcse_or_cprop_is_too_expensive says so.
13773
13774 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13775
13776 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13777 noinit section.
13778 (msp430_select_section): Handle decls with the "noinit" attribute with
13779 default_elf_select_section.
13780 Handle SECCAT_RODATA_MERGE_* section types with
13781 default_elf_select_section.
13782 Add comments about handling of unsupported section types.
13783 (msp430_section_type_flags): Remove handling of the noinit section.
13784
13785 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13786
13787 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13788 conflicting msp430-specific attributes.
13789 (msp430_section_attr): Likewise.
13790 Add warnings about conflicts with generic "noinit" and "section"
13791 attributes.
13792 Fix grammar in -mlarge error message.
13793 (msp430_data_attr): Rename to msp430_persist_attr.
13794 Add warnings about conflicts with generic "noinit" and "section"
13795 attributes.
13796 Add warning for when variable is not initialized.
13797 Chain conditionals which prevent the attribute being added.
13798 (ATTR_EXCL): New helper.
13799 (attr_reent_exclusions): New exclusion table.
13800 (attr_naked_exclusions): Likewise.
13801 (attr_crit_exclusions): Likewise.
13802 (attr_lower_exclusions): Likewise.
13803 (attr_upper_exclusions): Likewise.
13804 (attr_either_exclusions): Likewise.
13805 (attr_persist_exclusions): Likewise.
13806 (msp430_attribute_table): Update with exclusion rules.
13807 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13808 has a section.
13809
13810 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13811
13812 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13813 (msp430_handle_generic_attribute): New function.
13814 * doc/tm.texi: Regenerate.
13815 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13816 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13817 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13818 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13819
13820 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13821
13822 PR tree-optimization/91504
13823 * match.pd: Add ((~a & b) ^a) --> (a | b).
13824
13825 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13826
13827 PR target/91604
13828 * config/i386/i386-expand.c (split_double_mode): If there is more than
13829 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13830 already split matching MEM operand instead of calling adjust_address
13831 again.
13832
13833 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13834
13835 * config.gcc: Obsolete spu target. Remove references to spu.
13836 * configure.ac: Remove references to spu.
13837 * configure: Regenerate.
13838 * config/spu/: Remove directory.
13839 * common/config/spu/: Remove directory.
13840
13841 * doc/extend.texi: Remove references to spu.
13842 * doc/invoke.texi: Likewise.
13843 * doc/md.texi: Likewise.
13844 * doc/sourcebuild.texi: Likewise.
13845
13846 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13847
13848 PR middle-end/91603
13849 PR middle-end/91612
13850 PR middle-end/91613
13851 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13852 and SSA_NAME referring to CONSTANT_P correctly.
13853
13854 2019-09-03 Richard Biener <rguenther@suse.de>
13855
13856 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13857 (vn_nary_op_insert): Likewise.
13858 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13859 (vn_nary_op_lookup): Likewise.
13860 (vn_nary_op_insert): Likewise.
13861
13862 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13863
13864 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13865 (*op0, 1) instead of XEXP (*op1, 0).
13866
13867 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13868
13869 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13870 (aarch64_fjcvtzs): New define_insn.
13871 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13872 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13873 Add AARCH64_JSCVT.
13874 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13875 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13876 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13877 __ARM_FEATURE_JCVT where appropriate.
13878 * config/aarch64/arm_acle.h (__jcvt): Define.
13879
13880 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13881
13882 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13883 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13884 (aarch64_<frintnzs_op><mode>): New define_insn.
13885 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13886 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13887 __ARM_FEATURE_FRINT when appropriate.
13888 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13889 frint32x, frint64z, frint64x.
13890 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13891 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13892 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13893 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13894 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13895 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13896 * config/aarch64/iterators.md (VSFDF): Define.
13897 (FRINTNZX): Likewise.
13898 (frintnzs_op): Likewise.
13899
13900 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13901
13902 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13903 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13904 Cortex-A34.
13905 * config/aarch64/aarch64-tune.md: Regenerated.
13906 * doc/invoke.texi: Document the new processors.
13907
13908 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13909
13910 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13911 string.
13912 (ssbs): Likewise.
13913 (sve2): Likewise.
13914 (sve2-sm4): Likewise.
13915 (sveaes): Likewise.
13916 (svesha3): Likewise.
13917 (svebitperm): Likewise.
13918
13919 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13920 Richard Biener <rguenther@suse.de>
13921
13922 PR tree-optimization/91597
13923 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13924 BIT_AND_EXPR optimization for pointers, even if both operand
13925 ranges don't include NULL, the result can be NULL.
13926
13927 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13928
13929 PR middle-end/91605
13930 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13931 (non_mem_decl_p): ...this.
13932 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13933 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13934 unconditionally as before.
13935
13936 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13937
13938 PR target/91323
13939 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13940 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13941 * tree.def (LTGT_EXPR): Likewise.
13942 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13943
13944 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13945
13946 PR go/91617
13947 * fold-const.c (range_check_type): For enumeral and boolean
13948 type, pass 1 to type_for_size langhook instead of
13949 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13950 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13951 (build_range_check): Don't call unsigned_type_for for pointer types.
13952 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13953 range_check_type result.
13954
13955 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13956
13957 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13958 (replace_ref): Do not replace a chain of only two candidates which are
13959 valid memory references.
13960
13961 2019-09-02 Martin Liska <mliska@suse.cz>
13962
13963 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13964 Bail out when we'll end up with the same number of clusters as
13965 at the beginning.
13966 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13967 (jump_table_cluster::can_be_handled): Remove the guard
13968 as it's already handled in ::is_enabled. Allocate output
13969 after early bail out.
13970
13971 2019-09-02 Martin Liska <mliska@suse.cz>
13972
13973 PR gcov-profile/91601
13974 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13975 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13976 also negative edges.
13977 (circuit): Handle also negative edges as they can happen
13978 in some situations.
13979
13980 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13981
13982 PR target/91472
13983 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13984 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13985 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13986
13987 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13988
13989 PR middle-end/91623
13990 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13991 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13992 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13993 zero vector.
13994
13995 PR lto/91572
13996 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13997 GIMPLE_ASM TREE_LIST operands.
13998
13999 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14000
14001 * doc/generic.texi (Unary and Binary Expressions): Mark up
14002 an instance of TYPE_MIN.
14003
14004 2019-08-31 Stafford Horne <shorne@gmail.com>
14005
14006 * config/or1k/constraints.md (t): New constraint.
14007 * config/or1k/or1k.h (GOT_REGS): New register class.
14008 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14009
14010 2019-08-30 Jim Wilson <jimw@sifive.com>
14011
14012 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14013 and -fpic and -mplt then disable -msave-restore and warn.
14014
14015 2019-08-30 Martin Sebor <msebor@redhat.com>
14016
14017 PR middle-end/91599
14018 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14019 the statement doesn't have one.
14020 * gimple-pretty-print.c (percent_G_format): Same.
14021
14022 PR middle-end/91584
14023 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14024 before using them to validate MEM_REF offset.
14025
14026 2019-08-30 Marek Polacek <polacek@redhat.com>
14027
14028 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14029
14030 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14031
14032 * config/arm/arm.md (unaligned_loaddi,
14033 unaligned_storedi): New unspec insn patterns.
14034 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14035 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14036 and unaligned_storedi for 4-byte aligned memory.
14037 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14038 4-byte aligned memory.
14039
14040 2019-08-30 Martin Jambor <mjambor@suse.cz>
14041
14042 tree-optimization/91579
14043 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14044 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14045 appropriate.
14046 (arg_needs_copy_p): Removed.
14047 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14048 arg_needs_copy_p.
14049 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14050
14051 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14052
14053 * config/i386/i386-features.c
14054 (general_scalar_chain::compute_convert_gain):
14055 Correct cost for double-word shifts.
14056 (general_scalar_to_vector_candidate_p): Reject count operands
14057 greater or equal to mode bitsize.
14058
14059 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14060
14061 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14062 for moves between SSE and non-general registers and between
14063 mask and non-general registers.
14064 (ix86_register_move_cost): Remove stalled comment.
14065
14066 2019-08-29 Richard Biener <rguenther@suse.de>
14067
14068 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14069 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14070
14071 2019-08-29 Richard Biener <rguenther@suse.de>
14072
14073 PR bootstrap/91580
14074 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14075 Do not emit scalar copies for debug-insns, instead replace
14076 their uses with the reg copy used in the chain or reset them
14077 if there is a reaching definition outside of the chain as well.
14078
14079 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14080
14081 PR target/91560
14082 * config/i386/i386-expand.c (expand_vec_perm_movs,
14083 expand_vec_perm_blend, expand_vec_perm_vpermil,
14084 expand_vec_perm_pshufb, expand_vec_perm_1,
14085 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14086 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14087 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14088 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14089 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14090 comments - replace ix86_expand_vec_perm_builtin_1 with
14091 ix86_expand_vec_perm_const_1.
14092 (expand_vec_perm2_vperm2f128_vblend): New function.
14093 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14094 expand_vec_perm2_vperm2f128_vblend as last resort.
14095 (canonicalize_perm): Formatting fix.
14096
14097 PR tree-optimization/91351
14098 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14099 unsigned_type_for.
14100 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14101 range_check_type returns NULL.
14102 * tree-switch-conversion.c (switch_conversion::build_one_array):
14103 Use range_check_type instead of unsigned_type_for, don't perform
14104 linear opt if it returns NULL.
14105 (bit_test_cluster::find_bit_tests): Formatting fix.
14106 (bit_test_cluster::emit): Use range_check_type instead of
14107 unsigned_type_for.
14108 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14109 returns NULL.
14110
14111 2019-08-29 Richard Biener <rguenther@suse.de>
14112
14113 PR tree-optimization/91568
14114 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14115 (vect_update_max_nunits): Add overload for poly_uint64.
14116 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14117 (vect_build_slp_tree): Record max_nunits into the subtree
14118 and merge it upwards.
14119 (vect_print_slp_tree): Print max_nunits.
14120
14121 2019-08-28 Marek Polacek <polacek@redhat.com>
14122
14123 Implement P1152R4: Deprecating some uses of volatile.
14124 PR c++/91361
14125 * doc/invoke.texi: Document -Wvolatile.
14126
14127 2019-08-28 Marek Polacek <polacek@redhat.com>
14128
14129 PR c++/91360 - Implement C++20 P1143R2: constinit.
14130 * doc/invoke.texi: Document -Wc++20-compat.
14131
14132 2019-08-28 Martin Sebor <msebor@redhat.com>
14133
14134 PR tree-optimization/91457
14135 * builtins.c (component_size): New function.
14136 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14137 * builtins.h (compute_objsize): Add argument.
14138 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14139 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14140 (vrp_prop::check_mem_ref): Same.
14141 (vrp_prop::search_for_addr_array): Set no-warning bit.
14142 (check_array_bounds): Same.
14143
14144 2019-08-28 Martin Sebor <msebor@redhat.com>
14145
14146 PR driver/80545
14147 * opts-common.c (option_enabled): Correct checking for language
14148 options.
14149
14150 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14151
14152 * config/i386/i386.c (ix86_register_move_cost): Do not
14153 limit the cost of moves to/from XMM register to minimum 8.
14154
14155 2019-08-28 Martin Jambor <mjambor@suse.cz>
14156
14157 PR ipa/91468
14158 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14159 checking assert a normal assert to test it really is redundant.
14160 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14161 redundant test.
14162 (update_jump_functions_after_inlining): Removed combining unary
14163 arithmetic operations with an ancestor jump function.
14164 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14165 instead of t.
14166
14167 2019-08-28 Richard Biener <rguenther@suse.de>
14168
14169 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14170 add the MD problem.
14171
14172 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14173 Richard Biener <rguenther@suse.de>
14174
14175 * expr.c (expand_assignment): Handle misaligned DECLs.
14176 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14177 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14178 too.
14179 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14180 * varasm.c (build_constant_desc): Align constants of misaligned types.
14181 * config/arm/predicates.md (aligned_operand): New predicate.
14182 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14183 aligned_operand to check restrictions on memory addresses.
14184 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14185 * config/arm/vec-common.md (mov<VALL>): Likewise.
14186
14187 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14188
14189 PR libgomp/91530
14190 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14191 V_128 iterator instead of VI_128.
14192
14193 2019-08-28 Martin Liska <mliska@suse.cz>
14194
14195 PR tree-optimization/90970
14196 * builtins.c (check_access): Remove assignment to maxread
14197 as it hasn't been used since when it was introduced in r255755.
14198
14199 2019-08-27 Martin Sebor <msebor@redhat.com>
14200
14201 PR tree-optimization/91567
14202 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14203 of unknown strings.
14204 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14205 to PTRDIFF_MAX - 2.
14206
14207 2019-08-27 Jeff Law <law@redhat.com>
14208
14209 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14210 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14211
14212 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14213
14214 PR target/91528
14215 * config/i386/i386-features.c (convert_scalars_to_vector):
14216 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14217 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14218 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14219 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14220
14221 2019-08-27 Richard Biener <rguenther@suse.de>
14222
14223 * config/i386/i386-features.h
14224 (general_scalar_chain::~general_scalar_chain): Add.
14225 (general_scalar_chain::insns_conv): New bitmap.
14226 (general_scalar_chain::n_sse_to_integer): New.
14227 (general_scalar_chain::n_integer_to_sse): Likewise.
14228 (general_scalar_chain::make_vector_copies): Adjust signature.
14229 * config/i386/i386-features.c
14230 (general_scalar_chain::general_scalar_chain): Outline,
14231 initialize new members.
14232 (general_scalar_chain::~general_scalar_chain): New.
14233 (general_scalar_chain::mark_dual_mode_def): Record insns
14234 we need to insert conversions at and count them.
14235 (general_scalar_chain::compute_convert_gain): Account
14236 for conversion instructions at chain boundary.
14237 (general_scalar_chain::make_vector_copies): Generate a single
14238 copy for a def by a specific insn.
14239 (general_scalar_chain::convert_registers): First populate
14240 defs_map, then make copies at out-of chain insns.
14241
14242 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14243
14244 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14245 comment.
14246 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14247
14248 2019-08-27 Martin Liska <mliska@suse.cz>
14249
14250 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14251 loop.
14252 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14253 Enclose in anonymous namespace.
14254 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14255 hard_register initialization in braces.
14256 * tree-vrp.h (value_range_base::supports_type_p): Return false
14257 for function with boolean return type.
14258
14259 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14260
14261 * config/i386/i386.c (emit_i387_cw_initialization)
14262 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14263
14264 2019-08-26 Martin Sebor <msebor@redhat.com>
14265
14266 PR c++/83431
14267 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14268 (sprintf_dom_walker): Remove class.
14269 (get_int_range): Make argument const.
14270 (directive::fmtfunc, directive::set_precision): Same.
14271 (format_none): Same.
14272 (build_intmax_type_nodes): Same.
14273 (adjust_range_for_overflow): Same.
14274 (format_floating): Same.
14275 (format_character): Same.
14276 (format_string): Same.
14277 (format_plain): Same.
14278 (get_int_range): Cast away constness.
14279 (format_integer): Same.
14280 (get_string_length): Call get_range_strlen_dynamic. Handle
14281 null lendata.maxbound.
14282 (should_warn_p): Adjust argument scope qualifier.
14283 (maybe_warn): Same.
14284 (format_directive): Same.
14285 (parse_directive): Same.
14286 (is_call_safe): Same.
14287 (try_substitute_return_value): Same.
14288 (sprintf_dom_walker::handle_printf_call): Rename...
14289 (handle_printf_call): ...to this. Initialize target to host charmap
14290 here instead of in pass_sprintf_length::execute.
14291 (struct call_info): Make global.
14292 (sprintf_dom_walker::compute_format_length): Make global.
14293 (sprintf_dom_walker::handle_gimple_call): Same.
14294 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14295 * print-rtl.c (print_pattern): Reduce the number of spaces to
14296 avoid -Wformat-truncation.
14297 * tree-pass.h (make_pass_warn_printf): New function.
14298 * tree-ssa-strlen.c (strlen_optimize): New variable.
14299 (get_string_length): Add comments.
14300 (get_range_strlen_dynamic): New function.
14301 (check_and_optimize_call): New function.
14302 (handle_integral_assign): New function.
14303 (strlen_check_and_optimize_stmt): Factor code out into
14304 strlen_check_and_optimize_call and handle_integral_assign.
14305 (strlen_dom_walker::evrp): New member.
14306 (strlen_dom_walker::before_dom_children): Use evrp member.
14307 (strlen_dom_walker::after_dom_children): Use evrp member.
14308 (printf_strlen_execute): New function.
14309 (pass_strlen::gate): Update to handle printf calls.
14310 (dump_strlen_info): New function.
14311 (pass_data_warn_printf): New variable.
14312 (pass_warn_printf): New class.
14313 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14314 (handle_printf_call): Same.
14315 * tree-vrp.c (value_range_base::type): Adjust assertion.
14316 * vr-values.c (vr_values::update_value_range): Use type of the first
14317 argument rather than the second.
14318
14319 2019-08-26 Richard Biener <rguenther@suse.de>
14320
14321 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14322 Remove.
14323 (convert_scalars_to_vector): Do not call it.
14324
14325 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14326 Uros Bizjak <ubizjak@gmail.com>
14327
14328 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14329 CASE_MATHFN_FLOATN for roundeven.
14330 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14331 I387_ROUNDEVEN.
14332 (ix86_mode_needed): Likewise.
14333 (ix86_mode_after): Likewise.
14334 (ix86_mode_entry): Likewise.
14335 (ix86_mode_exit): Likewise.
14336 (ix86_emit_mode_set): Likewise.
14337 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14338 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14339 (ix86_entity): Add I387_ROUNDEVEN.
14340 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14341 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14342 (define_int_iterator): Likewise.
14343 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14344 (define_constant): Define ROUND_ROUNDEVEN mode.
14345 (define_attr): Add roundeven mode for i387_cw.
14346 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14347 * internal-fn.def (ROUNDEVEN): New builtin function.
14348 * optabs.def (roundeven_optab): New optab.
14349
14350 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14351
14352 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14353 for ROUNDEVEN.
14354 * builtins.def: Added function definitions for roundeven function
14355 variants.
14356 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14357 function call. Adjust condition for floor, ceil, trunc and round.
14358 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14359 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14360 (integer_valued_real_call_p): Added case for roundeven function.
14361 * real.c (is_even): New function. Returns true if real number is even,
14362 otherwise returns false.
14363 (is_halfway_below): New function. Returns true if real number is
14364 halfway between two integers, else return false.
14365 (real_roundeven): New function. Round real number to nearest integer,
14366 rounding halfway cases towards even.
14367 * real.h (real_value): Added descriptive comments. Added function
14368 declaration for roundeven function.
14369 * doc/extend.texi (Other Builtins): List roundeven variants among
14370 functions which can be handled as builtins.
14371
14372 2019-08-26 Richard Biener <rguenther@suse.de>
14373
14374 PR target/91522
14375 PR target/91527
14376 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14377 New member.
14378 (general_scalar_chain::replace_with_subreg): Remove.
14379 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14380 (general_scalar_chain::convert_reg): Adjust signature.
14381 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14382 iterate over all defs of a reg.
14383 (general_scalar_chain::replace_with_subreg): Remove.
14384 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14385 (general_scalar_chain::make_vector_copies): Populate defs_map,
14386 place copy only after defs that are used as vectors in the chain.
14387 (general_scalar_chain::convert_reg): Emit a copy for a specific
14388 def in a specific instruction.
14389 (general_scalar_chain::convert_op): All reg uses are converted here.
14390 (general_scalar_chain::convert_insn): Emit copies for scalar
14391 uses of defs here. Replace uses with the copies we created.
14392 Replace and convert the def. Adjust REG_DEAD notes, remove
14393 REG_EQUIV/EQUAL notes.
14394 (general_scalar_chain::convert_registers): Only handle copies
14395 into the chain here.
14396
14397 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14398
14399 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14400
14401 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14402
14403 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14404 Add nop_convert case.
14405 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14406 Fold all statements if requested.
14407 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14408 Allow to fold all statements.
14409 * tree-vrp.c (class vrp_folder):
14410 Let substitute_and_fold_engine fold all statements.
14411
14412 2019-08-26 Richard Biener <rguenther@suse.de>
14413
14414 PR tree-optimization/91526
14415 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14416 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14417 TODO_update_address_taken.
14418
14419 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14420
14421 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14422 __STDC_HOSTED__.
14423
14424 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14425
14426 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14427 machine mode for unspec_volatile operand.
14428
14429 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14430
14431 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14432 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14433 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14434 (prefer_neon_for_64bits): Remove.
14435 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14436 (tune_params): Remove PREF_NEON_64_FALSE uses.
14437 (arm_option_override): Remove prefer_neon selection code.
14438 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14439 * config/arm/arm-protos.h (tune_params): Remove
14440 prefer_neon_for_64bits.
14441 (prefer_neon_for_64bits): Remove.
14442
14443 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14444
14445 PR pch/61250
14446 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14447 and issue any diagnostics needed before collecting the pre-PCH
14448 state.
14449
14450 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14451
14452 PR middle-end/91283
14453 * common.opt (fexcess-precision=): Add Optimization flag. Use
14454 flag_excess_precision variable instead of
14455 flag_excess_precision_cmdline.
14456 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14457 member.
14458 (flag_excess_precision): Don't define.
14459 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14460 flag_excess_precision_cmdline. Remove comment.
14461 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14462 and x_flag_excess_precision instead of
14463 frontend_set_flag_excess_precision_cmdline and
14464 x_flag_excess_precision_cmdline.
14465 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14466 x_flag_excess_precision_cmdline.
14467 * toplev.c (init_excess_precision): Remove.
14468 (lang_dependent_init_target): Don't call it.
14469
14470 2019-08-23 Martin Liska <mliska@suse.cz>
14471
14472 * lto-wrapper.c (run_gcc): When setting jobserver
14473 set also parallel to 1. This was done so before r273908.
14474
14475 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14476
14477 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14478 (cortex-a76ae): Likewise.
14479 (cortex-a77): Likewise
14480 * config/arm/arm-tables.opt: Regenerate.
14481 * config/arm/arm-tune.md: Likewise.
14482 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14483 cortex-a77 CPU options.
14484
14485 2019-08-23 Martin Liska <mliska@suse.cz>
14486
14487 * profile.c (instrument_values): Do not set
14488 0 as last argument.
14489 * tree-profile.c (gimple_gen_interval_profiler): Remove
14490 last argument.
14491 (gimple_gen_pow2_profiler): Likewise.
14492 (gimple_gen_topn_values_profiler): Likewise.
14493 (gimple_gen_ic_profiler): Likewise.
14494 (gimple_gen_time_profiler): Likewise.
14495 (gimple_gen_average_profiler): Likewise.
14496 (gimple_gen_ior_profiler): Likewise.
14497 * value-prof.c (dump_histogram_value): Use default
14498 in switch statement instead of HIST_TYPE_MAX.
14499 (stream_in_histogram_value): Likewise.
14500 (gimple_duplicate_stmt_histograms): Do not
14501 use NULL for implicitly set arguments.
14502 (gimple_divmod_values_to_profile): Do not use
14503 reserve+quick_push.
14504 (gimple_indirect_call_to_profile): Likewise.
14505 (gimple_find_values_to_profile): Use implicit
14506 function call arguments.
14507 * value-prof.h (gimple_alloc_histogram_value):
14508 Set default values.
14509 (gimple_gen_interval_profiler): Remove last argument.
14510 (gimple_gen_pow2_profiler): Likewise.
14511 (gimple_gen_topn_values_profiler): Likewise.
14512 (gimple_gen_ic_profiler): Likewise.
14513 (gimple_gen_time_profiler): Likewise.
14514 (gimple_gen_average_profiler): Likewise.
14515 (gimple_gen_ior_profiler): Likewise.
14516
14517 2019-08-22 Martin Sebor <msebor@redhat.com>
14518
14519 PR middle-end/91490
14520 * builtins.c (c_strlen): Rename argument and introduce new local.
14521 Set no-warning bit on original argument.
14522 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14523 Fold empty and zero constructors into empty strings.
14524 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14525 for missing initializers.
14526 * tree.c (build_string_literal): Handle optional argument.
14527 * tree.h (build_string_literal): Add defaulted argument.
14528 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14529 no-warning bit on original expression.
14530
14531 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14532
14533 PR target/91481
14534 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14535 and UNSPEC_DARN_RAW.
14536 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14537 UNSPECV_DARN_RAW.
14538 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14539 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14540 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14541
14542 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14543
14544 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14545 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14546 * config/rs6000/rs6000.md (unspec): ... here.
14547 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14548 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14549 cmpeqb, *cmpeqb_internal): Delete, move to...
14550 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14551 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14552 cmpeqb, *cmpeqb_internal): ... here.
14553
14554 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14555
14556 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14557 intrinsics if __ARM_FP.
14558 Use __ARM_FEATURE_CRC32 ifdef guard.
14559
14560 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14561
14562 * config/arm/arm.md (neon_for_64bits): Remove.
14563 (avoid_neon_for_64bits): Remove.
14564 (arm_adddi3): Always split early.
14565 (arm_subdi3): Always split early.
14566 (negdi2): Remove Neon expansion.
14567 (split zero_extend): Split before reload.
14568 (split sign_extend): Split before reload.
14569
14570 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14571
14572 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14573 (qhs_extenddi_cstr): Likewise.
14574 * config/arm/arm.md (ashldi3): Always expand early.
14575 (ashlsi3): Likewise.
14576 (ashrsi3): Likewise.
14577 (zero_extend<mode>di2): Remove Neon variants.
14578 (extend<mode>di2): Likewise.
14579 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14580 (signed_shift_di3_neon): Likewise.
14581 (unsigned_shift_di3_neon): Likewise.
14582 (ashrdi3_neon_imm_noclobber): Likewise.
14583 (lshrdi3_neon_imm_noclobber): Likewise.
14584 (<shift>di3_neon): Likewise.
14585 (split extend): Remove DI extend split patterns.
14586
14587 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14588
14589 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14590 (split not): Add DImode not splitter.
14591 (anddi3): Remove pattern.
14592 (anddi3_insn): Likewise.
14593 (anddi_zesidi_di): Likewise.
14594 (anddi_sesdi_di): Likewise.
14595 (anddi_notdi_di): Likewise.
14596 (anddi_notzesidi_di): Likewise.
14597 (anddi_notsesidi_di): Likewise.
14598 (iordi3): Likewise.
14599 (iordi3_insn): Likewise.
14600 (iordi_zesidi_di): Likewise.
14601 (iordi_sesidi_di): Likewise.
14602 (xordi3): Likewise.
14603 (xordi3_insn): Likewise.
14604 (xordi_sesidi_di): Likewise.
14605 (xordi_zesidi_di): Likewise.
14606 (one_cmpldi2): Likewise.
14607 (one_cmpldi2_insn): Likewise.
14608 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14609 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14610 alternative.
14611 (iwmmxt_xordi3): Likewise.
14612 (iwmmxt_anddi3): Likewise.
14613 * config/arm/neon.md (orndi3_neon): Remove pattern.
14614 (anddi_notdi_di): Likewise.
14615 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14616 (arm_iordi_operand_neon): Likewise.
14617 (arm_xordi_operand_neon): Likewise.
14618 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14619 (iordi_notzesidi_di): Likewise.
14620 (iordi_notdi_zesidi): Likewise.
14621 (iordi_notsesidi_di): Likewise.
14622
14623 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14624
14625 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14626 insn.
14627 (iorsi3_compare0_scratch): Likewise.
14628
14629 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14630
14631 * config/aarch64/aarch64-simd-builtins.def:
14632 (ld1x4): New.
14633 (st1x4): Likewise.
14634 * config/aarch64/aarch64-simd.md:
14635 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14636 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14637 (aarch64_ld1_x4_<mode>): Likewise.
14638 (aarch64_st1_x4_<mode>): Likewise.
14639 * config/aarch64/arm_neon.h:
14640 (vld1_s8_x4): New function.
14641 (vld1q_s8_x4): Likewise.
14642 (vld1_s16_x4): Likewise.
14643 (vld1q_s16_x4): Likewise.
14644 (vld1_s32_x4): Likewise.
14645 (vld1q_s32_x4): Likewise.
14646 (vld1_u8_x4): Likewise.
14647 (vld1q_u8_x4): Likewise.
14648 (vld1_u16_x4): Likewise.
14649 (vld1q_u16_x4): Likewise.
14650 (vld1_u32_x4): Likewise.
14651 (vld1q_u32_x4): Likewise.
14652 (vld1_f16_x4): Likewise.
14653 (vld1q_f16_x4): Likewise.
14654 (vld1_f32_x4): Likewise.
14655 (vld1q_f32_x4): Likewise.
14656 (vld1_p8_x4): Likewise.
14657 (vld1q_p8_x4): Likewise.
14658 (vld1_p16_x4): Likewise.
14659 (vld1q_p16_x4): Likewise.
14660 (vld1_s64_x4): Likewise.
14661 (vld1_u64_x4): Likewise.
14662 (vld1_p64_x4): Likewise.
14663 (vld1q_s64_x4): Likewise.
14664 (vld1q_u64_x4): Likewise.
14665 (vld1q_p64_x4): Likewise.
14666 (vld1_f64_x4): Likewise.
14667 (vld1q_f64_x4): Likewise.
14668 (vst1_s8_x4): Likewise.
14669 (vst1q_s8_x4): Likewise.
14670 (vst1_s16_x4): Likewise.
14671 (vst1q_s16_x4): Likewise.
14672 (vst1_s32_x4): Likewise.
14673 (vst1q_s32_x4): Likewise.
14674 (vst1_u8_x4): Likewise.
14675 (vst1q_u8_x4): Likewise.
14676 (vst1_u16_x4): Likewise.
14677 (vst1q_u16_x4): Likewise.
14678 (vst1_u32_x4): Likewise.
14679 (vst1q_u32_x4): Likewise.
14680 (vst1_f16_x4): Likewise.
14681 (vst1q_f16_x4): Likewise.
14682 (vst1_f32_x4): Likewise.
14683 (vst1q_f32_x4): Likewise.
14684 (vst1_p8_x4): Likewise.
14685 (vst1q_p8_x4): Likewise.
14686 (vst1_p16_x4): Likewise.
14687 (vst1q_p16_x4): Likewise.
14688 (vst1_s64_x4): Likewise.
14689 (vst1_u64_x4): Likewise.
14690 (vst1_p64_x4): Likewise.
14691 (vst1q_s64_x4): Likewise.
14692 (vst1q_u64_x4): Likewise.
14693 (vst1q_p64_x4): Likewise.
14694 (vst1_f64_x4): Likewise.
14695 (vst1q_f64_x4): Likewise.
14696
14697 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14698
14699 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14700
14701 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14702 Richard Sandiford <richard.sandiford@arm.com>
14703
14704 PR target/88839
14705 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14706 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14707
14708 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14709
14710 PR target/90724
14711 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14712 in reg if it fails aarch64_plus_operand predicate.
14713
14714 2019-08-21 Richard Biener <rguenther@suse.de>
14715
14716 PR tree-optimization/91482
14717 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14718 BUILT_IN_ASSUME_ALIGNED calls.
14719
14720 2019-08-21 Richard Biener <rguenther@suse.de>
14721
14722 PR target/91498
14723 PR target/91503
14724 * config/i386/i386-features.c
14725 (general_scalar_chain::make_vector_copies): Copy stack temporary
14726 rtx when using it multiple times.
14727 (general_scalar_chain::convert_reg): Likewise.
14728
14729 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14730
14731 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14732
14733 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14734
14735 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14736 catch more redundant zero initialization cases.
14737 (dse_dom_walker::dse_optimize_stmt): Likewise.
14738
14739 2019-08-20 Richard Biener <rguenther@suse.de>
14740
14741 PR lto/91307
14742 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14743 by collect2 when targetm.have_ctors_dtors which avoids dragging
14744 in temporary filenames from LTO input objects.
14745
14746 2019-08-20 Richard Biener <rguenther@suse.de>
14747
14748 PR tree-optimization/37242
14749 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14750 to (T)a + (T)b if we know that a + b does not overflow.
14751
14752 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14753
14754 PR rtl-optimization/91347
14755 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14756 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14757
14758 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14759
14760 * calls.h (function_arg_info): Add a pass_by_reference field,
14761 defaulting to false.
14762 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14763 when applying pass-by-reference semantics.
14764 (initialize_argument_information): Likewise.
14765 (emit_library_call_value_1): Likewise.
14766 * function.c (assign_parm_data_one): Remove passed_pointer field.
14767 (assign_parm_find_data_types): Don't set it.
14768 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14769 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14770 arg.pass_by_reference instead of passed_pointer.
14771
14772 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14773
14774 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14775 into a single function_arg_info, updating its fields when we
14776 apply pass-by-reference and promotion semantics. Use the
14777 function_arg_info to track the mode rather than keeping it in
14778 a separate local variable.
14779 (initialize_argument_information): Likewise. Base the final
14780 arg_to_skip on this new function_arg_info rather than creating
14781 a new one from scratch.
14782
14783 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14784
14785 * function.c (assign_parm_data_one): Replace passed_type,
14786 promoted_mode and named_arg with a function_arg_info field.
14787 (assign_parm_find_data_types): Remove local variables and
14788 assign directly to "data". Make data->passed_mode shadow
14789 data->arg.mode until promotion, then assign the promoted
14790 mode to data->arg.mode.
14791 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14792 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14793 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14794 (assign_parm_setup_block, assign_parm_setup_reg)
14795 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14796 arg.mode instead of promoted_mode, arg.type instead of passed_type
14797 and arg.named instead of named_arg. Use data->arg for
14798 function_arg_info structures that had the field values passed_type,
14799 promoted_mode and named_arg. Base other function_arg_infos on
14800 data->arg, changing the necessary properties.
14801
14802 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14803
14804 * calls.h (apply_pass_by_reference_rules): Declare.
14805 * calls.c (apply_pass_by_reference_rules): New function.
14806 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14807 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14808 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14809 * function.c (assign_parm_find_data_types): Likewise.
14810 * var-tracking.c (prepare_call_arguments): Likewise.
14811
14812 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14813
14814 * target.def (must_pass_in_stack): Take a function_arg_info instead
14815 of a mode and a type.
14816 * doc/tm.texi: Regenerate.
14817 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14818 instead of a mode and a type.
14819 (must_pass_in_stack_var_size_or_pad): Likewise.
14820 * calls.c (must_pass_in_stack_var_size): Likewise.
14821 (must_pass_in_stack_var_size_or_pad): Likewise.
14822 (initialize_argument_information): Update call to
14823 targetm.calls.must_pass_in_stack.
14824 (must_pass_va_arg_on_stack): Likewise.
14825 * function.c (assign_parm_find_entry_rtl): Likewise.
14826 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14827 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14828 (alpha_function_arg_advance): Likewise.
14829 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14830 (cr16_function_arg_advance): Likewise.
14831 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14832 (cris_arg_partial_bytes): Likewise.
14833 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14834 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14835 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14836 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14837 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14838 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14839 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14840 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14841 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14842 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14843 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14844 instead of a mode and a type.
14845 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14846 (fr30_num_arg_regs): Likewise.
14847 (fr30_setup_incoming_varargs): Update calls accordingly.
14848 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14849 (fr30_function_arg_advance): Likewise.
14850 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14851 instead of a mode and a type.
14852 * config/gcn/gcn.c (num_arg_regs): Likewise.
14853 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14854 num_arg_regs and targetm.calls.must_pass_in_stack.
14855 (gcn_arg_partial_bytes): Likewise.
14856 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14857 function_arg_info instead of a mode and a type.
14858 (classify_argument): Update call accordingly.
14859 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14860 function_arg_info instead of a mode and a type.
14861 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14862 Likewise.
14863 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14864 (rs6000_parm_needs_stack): Update call accordingly.
14865 (setup_incoming_varargs): Likewise.
14866
14867 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14868
14869 * target.def (callee_copies): Take a function_arg_info instead
14870 of a mode, type and named flag.
14871 * doc/tm.texi: Regenerate.
14872 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14873 instead of a mode, type and named flag.
14874 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14875 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14876 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14877 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14878 instead of a mode, type and named flag.
14879 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14880 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14881 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14882 * calls.h (reference_callee_copied): Take a function_arg_info
14883 instead of a mode, type and named flag.
14884 * calls.c (reference_callee_copied): Likewise.
14885 (initialize_argument_information): Update call accordingly.
14886 (emit_library_call_value_1): Likewise.
14887 * function.c (gimplify_parameters): Likewise.
14888 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14889 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14890 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14891 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14892 (TARGET_CALLEE_COPIES): Define to
14893 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14894 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14895 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14896 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14897 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14898 instead of a mode, type and named flag.
14899 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14900 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14901 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14902 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14903 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14904 (TARGET_CALLEE_COPIES): Define to
14905 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14906 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14907 instead of a mode, type and named flag.
14908 * config/sh/sh.c (sh_callee_copies): Likewise.
14909 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14910 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14911 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14912
14913 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14914
14915 * target.def (function_arg_advance): Take a function_arg_info instead
14916 of a mode, type and named flag.
14917 * doc/tm.texi: Regenerate.
14918 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14919 instead of a mode, type and named flag.
14920 * targhooks.c (default_function_arg_advance): Likewise.
14921 * calls.c (initialize_argument_information): Update call to
14922 targetm.calls.function_arg_advance.
14923 (emit_library_call_value_1): Likewise.
14924 * dse.c (get_call_args): Likewise.
14925 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14926 * function.c (assign_parms, gimplify_parameters): Likewise.
14927 * var-tracking.c (prepare_call_arguments): Likewise.
14928 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14929 function_arg_info instead of a mode, type and named flag.
14930 (aarch64_setup_incoming_varargs): Update call accordingly.
14931 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14932 function_arg_info instead of a mode, type and named flag.
14933 (alpha_setup_incoming_varargs): Update call accordingly.
14934 * config/arc/arc.c (arc_function_arg_advance): Take a
14935 function_arg_info instead of a mode, type and named flag.
14936 (arc_setup_incoming_varargs): Update call accordingly.
14937 * config/arm/arm.c (arm_function_arg_advance): Take a
14938 function_arg_info instead of a mode, type and named flag.
14939 (cmse_func_args_or_return_in_stack): Update call accordingly.
14940 (arm_function_ok_for_sibcall): Likewise.
14941 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14942 * config/avr/avr.c (avr_function_arg_advance): Take a
14943 function_arg_info instead of a mode, type and named flag.
14944 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14945 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14946 (c6x_call_saved_register_used): Update call accordingly.
14947 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14948 function_arg_info instead of a mode, type and named flag.
14949 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14950 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14951 (csky_setup_incoming_varargs): Update call accordingly.
14952 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14953 function_arg_info instead of a mode, type and named flag.
14954 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14955 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14956 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14957 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14958 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14959 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14960 (ix86_setup_incoming_varargs): Update call accordingly.
14961 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14962 function_arg_info instead of a mode, type and named flag.
14963 (ia64_setup_incoming_varargs): Update call accordingly.
14964 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14965 function_arg_info instead of a mode, type and named flag.
14966 (iq2000_expand_prologue): Update call accordingly.
14967 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14968 function_arg_info instead of a mode, type and named flag.
14969 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14970 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14971 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14972 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14973 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14974 Likewise.
14975 (microblaze_expand_prologue): Update call accordingly.
14976 * config/mips/mips.c (mips_function_arg_advance): Take a
14977 function_arg_info instead of a mode, type and named flag.
14978 (mips_setup_incoming_varargs): Update call accordingly.
14979 (mips_output_args_xfer): Likewise.
14980 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14981 function_arg_info instead of a mode, type and named flag.
14982 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14983 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14984 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14985 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14986 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14987 (nios2_setup_incoming_varargs): Update call accordingly.
14988 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14989 function_arg_info instead of a mode, type and named flag.
14990 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14991 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14992 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14993 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14994 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14995 (riscv_setup_incoming_varargs): Update call accordingly.
14996 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14997 function_arg_info instead of a mode, type and named flag.
14998 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14999 Likewise.
15000 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15001 (rs6000_parm_needs_stack): Update call accordingly.
15002 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15003 instead of a mode, type and named flag.
15004 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15005 (s390_call_saved_register_used): Update call accordingly.
15006 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15007 instead of a mode, type and named flag.
15008 (sh_output_mi_thunk): Update call accordingly.
15009 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15010 function_arg_info instead of a mode, type and named flag.
15011 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15012 (spu_setup_incoming_varargs): Update call accordingly.
15013 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15014 function_arg_info instead of a mode, type and named flag.
15015 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15016 (tilegx_setup_incoming_varargs): Update call accordingly.
15017 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15018 function_arg_info instead of a mode, type and named flag.
15019 (tilegx_setup_incoming_varargs): Update call accordingly.
15020 * config/v850/v850.c (v850_function_arg_advance): Take a
15021 function_arg_info instead of a mode, type and named flag.
15022 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15023 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15024 (visium_setup_incoming_varargs): Update call accordingly.
15025 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15026 function_arg_info instead of a mode, type and named flag.
15027
15028 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15029
15030 * target.def (function_arg, function_incoming_arg): Take a
15031 function_arg_info instead of a mode, tree and named flag.
15032 * doc/tm.texi: Regenerate.
15033 * targhooks.h (default_function_arg): Take a function_arg_info
15034 instead of a mode, tree and named flag.
15035 (default_function_incoming_arg): Likewise.
15036 * targhooks.c (default_function_arg): Likewise.
15037 (default_function_incoming_arg): Likewise.
15038 * calls.h (function_arg_info::end_marker_p): New function.
15039 (function_arg_info::end_marker): Likewise.
15040 * calls.c (prepare_call_address, initialize_argument_information)
15041 (expand_call, emit_library_call_value_1): Update calls to
15042 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15043 * dse.c: Include calls.h.
15044 (get_call_args): Update call to targetm.calls.function_arg.
15045 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15046 * var-tracking.c (prepare_call_arguments): Likewise.
15047 * function.c (assign_parm_find_entry_rtl): Update call to
15048 targetm.calls.function_incoming_arg.
15049 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15050 function_arg_info instead of a mode, tree and named flag.
15051 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15052 * config/arc/arc.c (arc_function_arg): Likewise.
15053 * config/arm/arm.c (arm_function_arg): Likewise.
15054 (cmse_func_args_or_return_in_stack): Update call accordingly.
15055 (arm_function_ok_for_sibcall): Likewise.
15056 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15057 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15058 instead of a mode, tree and named flag.
15059 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15060 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15061 (c6x_call_saved_register_used): Update call accordingly.
15062 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15063 instead of a mode, tree and named flag.
15064 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15065 (cris_function_arg_1): Likewise.
15066 * config/csky/csky.c (csky_function_arg): Likewise.
15067 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15068 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15069 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15070 (frv_function_arg_1): Likewise.
15071 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15072 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15073 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15074 * config/i386/i386.c (ix86_function_arg): Likewise.
15075 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15076 (ia64_function_arg_1): Likewise.
15077 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15078 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15079 accordingly.
15080 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15081 instead of a mode, tree and named flag.
15082 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15083 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15084 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15085 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15086 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15087 (microblaze_expand_prologue): Update call accordingly.
15088 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15089 instead of a mode, tree and named flag.
15090 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15091 (mmix_function_arg_1): Likewise.
15092 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15093 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15094 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15095 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15096 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15097 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15098 (nvptx_function_incoming_arg): Likewise.
15099 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15100 * config/pa/pa.c (pa_function_arg): Likewise.
15101 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15102 * config/pru/pru.c (pru_function_arg): Likewise.
15103 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15104 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15105 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15106 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15107 (rs6000_parm_needs_stack): Update call accordingly.
15108 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15109 instead of a mode, tree and named flag.
15110 * config/s390/s390.c (s390_function_arg): Likewise.
15111 (s390_call_saved_register_used): Update call accordingly.
15112 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15113 instead of a mode, tree and named flag.
15114 (sh_output_mi_thunk): Update call accordingly.
15115 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15116 (sparc_function_incoming_arg): Take a function_arg_info instead of
15117 a mode, tree and named flag.
15118 * config/spu/spu.c (spu_function_arg): Likewise.
15119 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15120 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15121 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15122 * config/v850/v850.c (v850_function_arg): Likewise.
15123 * config/vax/vax.c (vax_function_arg): Likewise.
15124 * config/visium/visium.c (visium_function_arg): Likewise.
15125 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15126 (xtensa_function_incoming_arg): Likewise.
15127
15128 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15129
15130 * target.def (setup_incoming_varargs): Take a function_arg_info
15131 instead of a mode and tree.
15132 * doc/tm.texi: Regenerate.
15133 * targhooks.h (default_setup_incoming_varargs): Take a
15134 function_arg_info instead of a mode and tree.
15135 * targhooks.c (default_setup_incoming_varargs): Likewise.
15136 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15137 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15138 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15139 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15140 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15141 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15142 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15143 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15144 Likewise.
15145 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15146 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15147 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15148 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15149 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15150 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15151 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15152 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15153 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15154 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15155 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15156 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15157 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15158 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15159 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15160 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15161 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15162 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15163 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15164 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15165 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15166 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15167 * function.c (assign_parms_setup_varargs): Update call to
15168 targetm.calls.setup_incoming_varargs.
15169
15170 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15171
15172 * target.def (pass_by_reference): Take a function_arg_info instead
15173 of a mode, type and named flag.
15174 * doc/tm.texi: Regenerate.
15175 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15176 accordingly.
15177 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15178 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15179 function_arg_info instead of a mode, type and named flag.
15180 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15181 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15182 mode, type and named flag.
15183 * calls.c (pass_by_reference): Likewise.
15184 (pass_va_arg_by_reference): Update call accordingly.
15185 (initialize_argument_information): Likewise.
15186 (emit_library_call_value_1): Likewise.
15187 * function.c (assign_parm_find_data_types): Likewise.
15188 * var-tracking.c (prepare_call_arguments): Likewise.
15189 * stor-layout.c: Include calls.h.
15190 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15191 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15192 function_arg_info instead of a mode, type and named flag.
15193 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15194 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15195 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15196 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15197 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15198 (c6x_call_saved_register_used): Update call to pass_by_reference.
15199 * config/cris/cris.c (cris_pass_by_reference): Take a
15200 function_arg_info instead of a mode, type and named flag.
15201 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15202 function_arg_info instead of a mode, type and named flag.
15203 (epiphany_arg_partial_bytes): Update call accordingly.
15204 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15205 function_arg_info instead of a mode, type and named flag.
15206 (ft32_arg_partial_bytes): Update call accordingly.
15207 * config/i386/i386.c (ix86_pass_by_reference): Take a
15208 function_arg_info instead of a mode, type and named flag.
15209 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15210 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15211 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15212 (m32r_return_in_memory): Update call accordingly.
15213 * config/mips/mips.c (mips_pass_by_reference): Take a
15214 function_arg_info instead of a mode, type and named flag.
15215 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15216 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15217 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15218 (moxie_arg_partial_bytes): Update call accordingly.
15219 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15220 function_arg_info instead of a mode, type and named flag.
15221 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15222 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15223 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15224 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15225 (riscv_return_in_memory): Update call accordingly.
15226 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15227 function_arg_info instead of a mode, type and named flag.
15228 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15229 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15230 * config/s390/s390.c (s390_pass_by_reference): Take a
15231 function_arg_info instead of a mode, type and named flag.
15232 (s390_call_saved_register_used): Update call accordingly.
15233 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15234 instead of a mode, type and named flag.
15235 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15236 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15237 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15238 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15239 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15240 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15241
15242 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15243
15244 * target.def (arg_partial_bytes): Take a function_arg_info instead
15245 of a mode, type and named flag.
15246 * doc/tm.texi: Regenerate.
15247 * target.h (function_arg_info): Declare.
15248 * calls.h (function_arg_info): New class.
15249 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15250 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15251 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15252 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15253 * calls.c (initialize_argument_information): Update call to
15254 targetm.calls.partial_bytes.
15255 (emit_library_call_value_1): Likewise.
15256 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15257 * function.c (assign_parm_find_entry_rtl): Likewise.
15258 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15259 function_arg_info instead of a mode, type and named flag.
15260 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15261 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15262 (cmse_func_args_or_return_in_stack): Update accordingly.
15263 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15264 function_arg_info instead of a mode, type and named flag.
15265 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15266 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15267 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15268 * config/fr30/fr30.c: Include calls.h.
15269 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15270 type and named flag.
15271 * config/frv/frv.c: Include calls.h.
15272 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15273 type and named flag.
15274 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15275 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15276 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15277 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15278 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15279 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15280 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15281 Likewise.
15282 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15283 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15284 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15285 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15286 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15287 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15288 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15289 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15290 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15291 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15292 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15293 (rs6000_parm_needs_stack): Update call accordingly.
15294 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15295 function_arg_info instead of a mode, type and named flag.
15296 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15297 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15298
15299 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15300
15301 * calls.h (must_pass_va_arg_in_stack): Declare.
15302 * calls.c (must_pass_va_arg_in_stack): New function.
15303 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15304 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15305 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15306 Likewise.
15307 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15308
15309 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15310
15311 * calls.h (pass_va_arg_by_reference): Declare.
15312 * calls.c (pass_va_arg_by_reference): New function.
15313 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15314 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15315 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15316 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15317 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15318 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15319 (mips_gimplify_va_arg_expr): Likewise.
15320 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15321 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15322 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15323 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15324 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15325 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15326 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15327 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15328 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15329 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15330 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15331
15332 2019-08-20 Richard Biener <rguenther@suse.de>
15333
15334 PR target/91498
15335 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15336 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15337 (convert_scalars_to_vector): Add timode_p parameter and use it
15338 to guard TImode-only operation.
15339 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15340 (pass_stv::execute): Pass down timode_p.
15341
15342 2019-08-20 Lili Cui <lili.cui@intel.com>
15343
15344 * common/config/i386/i386-common.c
15345 (processor_names): Add tigerlake and cooperlake.
15346 (processor_alias_table): Add tigerlake and cooperlake.
15347 * config.gcc: Add -march=tigerlake and cooperlake.
15348 * config/i386/driver-i386.c
15349 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15350 Add "has_avx" to classify processor.
15351 * config/i386/i386-builtins.c (processor_model) :
15352 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15353 (arch_names_table): Add tigerlake and cooperlake.
15354 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15355 and PROCESSOR_COOPERLAKE.
15356 * config/i386/i386-c.c
15357 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15358 * config/i386/i386-options.c
15359 (m_TIGERLAKE): Define.
15360 (m_COOPERLAKE): Ditto.
15361 (m_CORE_AVX512): Ditto.
15362 (processor_cost_table): Add cascadelake.
15363 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15364 * config/i386/i386.h
15365 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15366 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15367 (PTA_MOVDIRI): Ditto.
15368 (PTA_MOVDIR64B): Ditto.
15369 (PTA_COOPERLAKE): Ditto.
15370 (PTA_TIGERLAKE): Ditto.
15371 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15372 * doc/extend.texi: Add tigerlake and cooperlake.
15373 * doc/invoke.texi: Add tigerlake and cooperlake.
15374
15375 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15376
15377 * doc/install.texi (Specific, alpha): Remove note to use
15378 binutils 2.11.2 or later.
15379
15380 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15381
15382 PR middle-end/89544
15383 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15384 when possible.
15385
15386 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15387
15388 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15389 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15390 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15391 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15392 * config/aarch64/constraints.md (Dt): New constraint
15393 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15394
15395 2019-08-19 Richard Biener <rguenther@suse.de>
15396
15397 PR tree-optimization/91403
15398 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15399 cases we can handle with tail-recursion...
15400 (follow_ssa_edge_expr): ... here. Do so.
15401
15402 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15403
15404 PR target/91441
15405 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15406 implemented for -fsanitize=kernel-address, and merge check logic
15407 with -fsanitize=address.
15408
15409 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15410
15411 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15412 for cpu and machine. Factor 64/32b builtins.
15413
15414 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15415
15416 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15417 gone, point to sourceforge.net.
15418
15419 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15420
15421 * doc/ux.texi (User Experience Guidelines): Update reference.
15422
15423 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15424
15425 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15426 not LGPL".
15427
15428 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15429
15430 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15431 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15432
15433 2019-08-16 Martin Sebor <msebor@redhat.com>
15434
15435 * tree.def (TYPE_SIZE): Clarify.
15436 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15437
15438 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15439
15440 PR tree-optimization/91109
15441 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15442 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15443 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15444
15445 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15446
15447 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15448 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15449 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15450 (uavg<mode>3_ceil): New expander.
15451 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15452 mode iterator when creating CONST1_RTX.
15453 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15454 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15455 mode iterator for const1_operand predicate.
15456
15457 2019-08-16 Richard Biener <rguenther@suse.de>
15458
15459 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15460 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15461 follow_ssa_edge.
15462 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15463 (analyze_evolution_in_loop): Likewise.
15464 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15465 (follow_ssa_edge_expr): ... here. Refactor code.
15466
15467 2019-08-16 Richard Biener <rguenther@suse.de>
15468
15469 PR target/91469
15470 * config/i386/i386-features.c
15471 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15472
15473 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15474
15475 PR other/91255
15476 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15477 only if subst_name matches curr_attr string.
15478
15479 2019-08-16 Richard Biener <rguenther@suse.de>
15480
15481 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15482 stmt at gsi_p, instead replace it with a NOP removed later.
15483 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15484 that became dead because of that.
15485
15486 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15487
15488 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15489 for which we can't represent a range.
15490 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15491 set_varying.
15492 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15493 Set VR_UNDEFINED if type is not supported.
15494 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15495 * tree-vrp.c (value_range_base::check): Assert that a varying has
15496 min/max set.
15497 (value_range_base::equal_p): Early bail for undefines.
15498 (value_range_base::set_varying): Accept a type.
15499 (value_range::set_varying): Same.
15500 (value_range_base::type): VARYING can have a type, while UNDEFINE
15501 is typeless.
15502 (value_range_base::dump): Print type for VARYING nodes.
15503 (value_range_base::set): Add type to VARYING.
15504 (extract_range_from_multiplicative_op): Pass type to set_varying.
15505 (extract_range_from_binary_expr): Same.
15506 (value_range_base::intersect_helper): Same.
15507 (value_range_base::union_helper): Same.
15508 (value_range_base::normalize_symbolics): Same.
15509 (determine_value_range_1): Same.
15510 * tree-vrp.h (class value_range_base): Add type to set_varying.
15511 Add prototype for dump(void).
15512 Add prototype for supports_type_p.
15513 (class value_range): Add type to set_varying.
15514 Add prototype for dump(void).
15515 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15516 set_varying.
15517 (vr_values::get_lattice_entry): Set varying even if propagation
15518 finished.
15519 Pass type to set_varying.
15520 (vr_values::get_value_range): Remove vr_const_varying.
15521 Reallocate the lattice if needed.
15522 (vr_values::update_value_range): Pass type to set_varying.
15523 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15524 (vr_values::extract_range_from_binary_expr): Same.
15525 (vr_values::extract_range_from_unary_expr): Same.
15526 (vr_values::extract_range_from_cond_expr): Same.
15527 (vr_values::check_for_binary_op_overflow): Same.
15528 (vr_values::extract_range_basic): Same.
15529 (vr_values::extract_range_from_assignment): Same.
15530 (vr_values::vr_values): Increase size of num_vr_values.
15531 (vr_values::extract_range_from_phi_node): Pass type to
15532 set_varying.
15533
15534 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15535
15536 PR target/90878
15537 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15538 for costs of hard register moves.
15539 (ix86_register_move_cost): Likewise.
15540 * config/i386/i386.h (processor_costs): Move costs of hard
15541 register moves to hard_register. Add int_load, int_store,
15542 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15543 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15544 for costs of RTL expressions.
15545 * config/i386/x86-tune-costs.h: Move costs of hard register
15546 moves to hard_register. Duplicate int_load, int_store,
15547 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15548 sse_load, sse_store for costs of RTL expressions.
15549
15550 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15551
15552 * target.def (setup_incoming_vararg_bounds): Remove.
15553 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15554 * doc/tm.texi: Regenerate.
15555 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15556 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15557 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15558 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15559
15560 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15561
15562 MSP430: Fix lines over 80 characters long in
15563 config/msp430/*.{c,h} files
15564
15565 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15566 specifier in string.
15567 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15568 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15569 redundant old comment.
15570 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15571 Split line more than 80 characters long.
15572 * config/msp430/msp430.c (msp430_option_override): Likewise.
15573 (msp430_return_in_memory): Likewise.
15574 (msp430_gimplify_va_arg_expr): Likewise.
15575 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15576 (msp430_legitimate_constant): Likewise.
15577 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15578 (msp430_attr): Likewise.
15579 (msp430_data_attr): Likewise.
15580 (msp430_start_function): Likewise.
15581 (gen_prefix): Likewise.
15582 (msp430_init_sections): Likewise.
15583 (msp430_select_section): Likewise.
15584 (msp430_function_section): Likewise.
15585 (msp430_unique_section): Likewise.
15586 (msp430_output_aligned_decl_common): Likewise.
15587 (msp430_do_not_relax_short_jumps): Likewise.
15588 (msp430_init_builtins): Likewise.
15589 (msp430_expand_delay_cycles): Likewise.
15590 (msp430_expand_prologue): Likewise.
15591 (msp430_expand_epilogue): Likewise.
15592 (msp430_expand_helper): Likewise.
15593 (msp430_split_movsi): Likewise.
15594 (msp430_print_operand): Likewise.
15595 (msp430_return_addr_rtx): Likewise.
15596 (msp430x_extendhisi): Likewise.
15597 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15598 (ASM_SPEC): Likewise.
15599 Remove very obvious comments.
15600 (LIB_SPEC): Split line more than 80 characters long.
15601 (EH_RETURN_HANDLER_RTX): Likewise.
15602 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15603
15604 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15605
15606 MSP430: Fix whitespace errors and incorrect indentation in
15607 config/msp430/*.{c,h} files
15608
15609 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15610 (msp430_select_hwmult_lib): Likewise.
15611 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15612 (msp430_extract_mcu_data): Likewise.
15613 (struct t_msp430_mcu_data): Likewise.
15614 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15615 before left square bracket.
15616 (msp430_option_override): Fix indentation.
15617 (msp430_hard_regno_nregs_with_padding): Likewise.
15618 (msp430_initial_elimination_offset): Likewise.
15619 (msp430_special_register_convention_p): Remove whitespace before left
15620 square bracket and after exclamation mark.
15621 (msp430_evaluate_arg): Likewise.
15622 (msp430_callee_copies): Fix indentation.
15623 (msp430_gimplify_va_arg_expr): Likewise.
15624 (msp430_function_arg_advance): Remove whitespace before left square
15625 bracket.
15626 (reg_ok_for_addr): Likewise.
15627 (msp430_preserve_reg_p): Likewise.
15628 (msp430_compute_frame_info): Likewise.
15629 (msp430_asm_output_addr_const_extra): Add space between function name
15630 and open parenthesis.
15631 (has_section_name): Fix indentation.
15632 (msp430_attr): Remove trailing whitespace.
15633 (msp430_section_attr): Likewise.
15634 (msp430_data_attr): Likewise.
15635 (struct msp430_attribute_table): Fix comment and whitespace.
15636 (msp430_start_function): Remove whitespace before left square bracket.
15637 Add space between function name and open parenthesis.
15638 (msp430_select_section): Remove trailing whitespace.
15639 (msp430_section_type_flags): Remove trailing whitespace.
15640 (msp430_unique_section): Remove space before closing parenthesis.
15641 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15642 (msp430_builtins): Remove whitespace before left square bracket.
15643 (msp430_init_builtins): Fix indentation.
15644 (msp430_expand_prologue): Remove whitespace before left square bracket.
15645 Remove space before closing parenthesis.
15646 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15647 (msp430_split_movsi): Remove space before closing parenthesis.
15648 (helper_function_name_mappings): Fix indentation.
15649 (msp430_use_f5_series_hwmult): Fix whitespace.
15650 (use_32bit_hwmult): Likewise.
15651 (msp430_no_hwmult): Likewise.
15652 (msp430_output_labelref): Remove whitespace before left square bracket.
15653 (msp430_print_operand_raw): Likewise.
15654 (msp430_print_operand_addr): Likewise.
15655 (msp430_print_operand): Add two spaces after '.' in comment.
15656 Fix trailing whitespace.
15657 (msp430x_extendhisi): Fix indentation.
15658 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15659 tab.
15660 (PC_REGNUM): Likewise.
15661 (STACK_POINTER_REGNUM): Likewise.
15662 (CC_REGNUM): Likewise.
15663
15664 2019-08-15 Richard Biener <rguenther@suse.de>
15665
15666 PR target/91454
15667 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15668 helper.
15669 (general_scalar_chain::make_vector_copies): Use it.
15670
15671 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15672
15673 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15674
15675 2019-08-15 Martin Liska <mliska@suse.cz>
15676
15677 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15678 operators with no arguments.
15679 (eliminate_unnecessary_stmts): Likewise here.
15680
15681 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15682
15683 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15684 <case COMPARE>: Revert 2019-08-14 change.
15685 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15686 for (TARGET_64BIT || mode != DImode).
15687
15688 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15689
15690 * tree-vrp.c (value_range_base::set): Merge in code from
15691 value_range_base::set_and_canonicalize.
15692 Enforce canonicalization at set time.
15693 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15694 (value_range_base::set_undefined): Inline call to set().
15695 (value_range_base::set_varying): Same.
15696 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15697 (vrp_val_max): New argument handle_pointers.
15698 (vrp_val_min): Same.
15699 (ranges_from_anti_range): Same.
15700 (extract_range_into_wide_ints): Use tree argument instead of sign
15701 and precision.
15702 (extract_range_from_multiplicative_op): Take in tree type instead
15703 of precision and sign. Adapt function for canonicalized ranges.
15704 (extract_range_from_binary_expr): Pass type to
15705 extract_range_from_multiplicative_op.
15706 Adapt for canonicalized ranges.
15707 (extract_range_from_unary_expr): Same.
15708 (value_range_base::intersect_helper): Adjust for canonicalized
15709 ranges.
15710 (value_range_base::union_helper): Same.
15711 (value_range_base::normalize_symbolics): New.
15712 * tree-vrp.h (class value_range_base): Remove
15713 set_and_canonicalize.
15714 New prototype for normalize_symbolics.
15715 (class value_range): Remove set_and_canonicalize.
15716 (vrp_val_min): Adjust prototype.
15717 (vrp_val_max): Same.
15718 * vr-values.c
15719 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15720 instead of set_and_canonicalize.
15721
15722 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15723
15724 PR middle-end/91444
15725 * tree-vect-stmts.c (vectorizable_call): Check that the function
15726 is a BUILT_IN_MD function before passing it to
15727 targetm.vectorize.builtin_md_vectorized_function.
15728
15729 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15730
15731 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15732 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15733 (aarch64_select_early_remat_modes): Use it.
15734
15735 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15736
15737 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15738 16 for SVE predicates even if they are fixed-length.
15739
15740 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15741
15742 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15743 operand order match the MOV /Z alias.
15744
15745 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15746
15747 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15748 the vector pattern as an aarch64_svpattern argument. Update the
15749 overloaded caller accordingly.
15750 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15751 (aarch64_output_sve_vector_inc_dec): Likewise.
15752
15753 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15754
15755 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15756 multiplication case, try to compute VG * (lowest set bit) directly
15757 rather than always basing the multiplication on VG. Use
15758 expand_mult for the multiplication if we can.
15759
15760 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15761
15762 * config/aarch64/aarch64-protos.h
15763 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15764 (aarch64_sve_inc_dec_immediate_p): Rename to...
15765 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15766 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15767 (aarch64_output_sve_scalar_inc_dec): Declare.
15768 (aarch64_output_sve_inc_dec_immediate): Rename to...
15769 (aarch64_output_sve_vector_inc_dec): ...this.
15770 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15771 (aarch64_output_sve_scalar_inc_dec): New functions.
15772 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15773 arguments. Only handle true ADDVL and ADDPL instructions;
15774 don't emit an INC or DEC.
15775 (aarch64_sve_inc_dec_immediate_p): Rename to...
15776 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15777 (aarch64_output_sve_inc_dec_immediate): Rename to...
15778 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15779 aarch64_sve_vector_inc_dec_immediate_p.
15780 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15781 (aarch64_sve_plus_immediate): New predicates.
15782 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15783 rather than aarch64_sve_addvl_addpl_immediate.
15784 (aarch64_sve_inc_dec_immediate): Rename to...
15785 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15786 aarch64_sve_vector_inc_dec_immediate_p.
15787 (aarch64_sve_add_operand): Update accordingly.
15788 * config/aarch64/constraints.md (Uai): New constraint.
15789 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15790 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15791 operand into a register if it satisfies aarch64_sve_plus_immediate.
15792 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15793 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15794 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15795 aarch64_output_sve_vector_inc_dec instead of
15796 aarch64_output_sve_inc_dec_immediate.
15797
15798 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15799
15800 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15801 (UNSPEC_REVW): New constants.
15802 (elem_bits): New mode attribute.
15803 (SVE_INT_UNARY): New int iterator.
15804 (optab): Handle UNSPEC_REV[BHW].
15805 (sve_int_op): New int attribute.
15806 (min_elem_bits): Handle VNx16QI and the predicate modes.
15807 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15808 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15809 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15810 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15811 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15812 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15813 unspecs based on the total width of the reversed data.
15814 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15815 reinterpret followed by a subreg on big-endian targets.
15816
15817 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15818 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15819
15820 * config/aarch64/aarch64-sve.md
15821 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15822 alternatives in which one of the inputs is in the same register
15823 as the output.
15824
15825 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15826
15827 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15828 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15829
15830 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15831
15832 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15833 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15834
15835 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15836 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15837
15838 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15839 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15840 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15841
15842 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15843 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15844
15845 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15846 Add an alternative that uses reversed shifts.
15847
15848 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15849
15850 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15851 struct.
15852
15853 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15854
15855 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15856 a commutativity marker.
15857
15858 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15859 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15860
15861 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15862 (aarch64_prepare_sve_cond_int_fma): Declare.
15863 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15864 (aarch64_prepare_sve_int_fma): New functions.
15865 (aarch64_prepare_sve_cond_int_fma): Likewise.
15866 * config/aarch64/aarch64-sve.md
15867 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15868 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15869 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15870 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15871 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15872 (*madd<mode>): Rename to...
15873 (*fma<mode>4): ...this.
15874 (*msub<mode>): Rename to...
15875 (*fnma<mode>4): ...this.
15876
15877 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15878 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15879
15880 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15881 Print 2.0 naturally.
15882 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15883 * config/aarch64/predicates.md
15884 (aarch64_sve_float_negated_arith_immediate): New predicate,
15885 renamed from aarch64_sve_float_arith_with_sub_immediate.
15886 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15887 positive and negative constants.
15888 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15889 or an aarch64_sve_float_arith_with_sub_immediate.
15890 * config/aarch64/constraints.md (vsN): Use
15891 aarch64_sve_float_negated_arith_immediate.
15892 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15893 iterator.
15894 (sve_pred_fp_rhs2_immediate): New int attribute.
15895 * config/aarch64/aarch64-sve.md
15896 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15897 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15898 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15899 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15900 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15901 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15902
15903 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15904 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15905
15906 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15907 (*aarch64_cond_abd<SVE_F:mode>_3)
15908 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15909
15910 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15911 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15912
15913 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15914 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15915
15916 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15917 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15918
15919 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15920 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15921 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15922 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15923 optabs.
15924 * optabs.h (create_convert_operand_from): Expand comment.
15925 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15926 when mapping scalar rtxes to vector operands.
15927 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15928 ashiftrt and lshiftrt.
15929 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15930 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15931 (*cond_<optab><mode>_any_const): New patterns.
15932
15933 2019-08-15 Martin Liska <mliska@suse.cz>
15934
15935 PR ipa/91438
15936 * cgraph.c (cgraph_node::remove): When setting
15937 n->origin = NULL for all nested functions, reset
15938 also next_nested.
15939
15940 2019-08-15 Martin Liska <mliska@suse.cz>
15941
15942 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15943 and next_nested.
15944
15945 2019-08-15 Martin Liska <mliska@suse.cz>
15946
15947 PR ipa/91404
15948 * passes.c (order): Remove.
15949 (uid_hash_t): Likewise).
15950 (remove_cgraph_node_from_order): Remove from set
15951 of pointers (cgraph_node *).
15952 (insert_cgraph_node_to_order): New.
15953 (duplicate_cgraph_node_to_order): New.
15954 (do_per_function_toporder): Register all 3 cgraph hooks.
15955 Skip removed_nodes now as we know about all of them.
15956
15957 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15958
15959 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15960 <case E_V8QImode>: Use vector_set path for
15961 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15962 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15963 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15964
15965 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15966
15967 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15968
15969 2019-08-14 Martin Sebor <msebor@redhat.com>
15970
15971 PR tree-optimization/91294
15972 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15973 source length as exact.
15974
15975 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15976
15977 * doc/extend.texi: Add "noinit" attribute documentation.
15978 * doc/sourcebuild.texi: Add noinit effective target documentation.
15979 * varasm.c (default_section_type_flags): Add support for "noinit"
15980 section.
15981 (default_elf_select_section): Add support for "noinit" attribute.
15982 * config/msp430/msp430.c (msp430_attribute_table): Remove
15983 "noinit" entry.
15984
15985 2019-08-14 Richard Biener <rguenther@suse.de>
15986 Uroš Bizjak <ubizjak@gmail.com>
15987
15988 PR target/91154
15989 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15990 mode arguments.
15991 (scalar_chain::smode): New member.
15992 (scalar_chain::vmode): Likewise.
15993 (dimode_scalar_chain): Rename to...
15994 (general_scalar_chain): ... this.
15995 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15996 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15997 base with TImode and V1TImode.
15998 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15999 (general_scalar_chain::vector_const_cost): Adjust for SImode
16000 chains.
16001 (general_scalar_chain::compute_convert_gain): Likewise. Add
16002 {S,U}{MIN,MAX} support.
16003 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16004 (general_scalar_chain::make_vector_copies): Likewise. Handle
16005 non-DImode chains appropriately.
16006 (general_scalar_chain::convert_reg): Likewise.
16007 (general_scalar_chain::convert_op): Likewise.
16008 (general_scalar_chain::convert_insn): Likewise. Add
16009 fatal_insn_not_found if the result is not recognized.
16010 (convertible_comparison_p): Pass in the scalar mode and use that.
16011 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16012 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16013 (scalar_to_vector_candidate_p): Remove by inlining into single
16014 caller.
16015 (general_remove_non_convertible_regs): Rename from
16016 dimode_remove_non_convertible_regs.
16017 (remove_non_convertible_regs): Remove by inlining into single caller.
16018 (convert_scalars_to_vector): Handle SImode and DImode chains
16019 in addition to TImode chains.
16020 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16021 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16022 (*<maxmin>di3_doubleword): Likewise.
16023
16024 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16025 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16026
16027 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16028 (*cond_bic<mode>_any): New patterns.
16029
16030 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16031
16032 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16033 take the equivalent mask, as well as a bit count.
16034 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16035 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16036 (aarch64_sve_pred_and_operand): New predicates.
16037 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16038 code attribute.
16039 * config/aarch64/aarch64-sve.md
16040 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16041 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16042
16043 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16044
16045 * config/aarch64/aarch64-sve.md
16046 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16047 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16048 New patterns.
16049
16050 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16051 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16052
16053 * config/aarch64/aarch64-sve.md
16054 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16055 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16056
16057 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16058 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16059
16060 * config/aarch64/aarch64-sve.md
16061 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16062 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16063
16064 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16065
16066 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16067 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16068 New pattern.
16069
16070 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16071 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16072
16073 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16074
16075 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16076 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16077
16078 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16079 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16080 (aarch64_print_operand): Add support for %I.
16081 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16082 Bitcast floating-point constants to the corresponding integer constant.
16083 (aarch64_float_const_representable_p): Handle vectors as well
16084 as scalars.
16085 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16086 for the new vcond_mask_<mode><vpred> expander.
16087 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16088 test aarch64_float_const_representable_p.
16089 (aarch64_sve_reg_or_dup_imm): New predicate.
16090 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16091 gen_vcond_mask_<mode><vpred> instead of
16092 gen_aarch64_sve_dup<mode>_const.
16093 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16094 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16095 for operands 1 and 2 respectively. Force operand 2 into a
16096 register if operand 1 is a register. Fold old define_insn...
16097 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16098 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16099 floating-point constants that can be moved as integers. Add
16100 alternatives for MOV /M and FMOV /M.
16101 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16102 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16103 1 and 2 respectively.
16104 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16105 as scalars.
16106 (vss): New constraint.
16107
16108 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16109
16110 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16111 (aarch64_sve_float_maxmin_operand): New predicates.
16112 * config/aarch64/constraints.md (vsB): New constraint.
16113 (vsM): Fix typo.
16114 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16115 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16116 UNSPEC_COND_FMINNM.
16117 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16118 Use aarch64_sve_float_maxmin_operand for operand 2.
16119 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16120 Add alternatives for the constant forms.
16121
16122 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16123
16124 * config/aarch64/constraints.md (vsb): New constraint.
16125 (vsm): Generalize description.
16126 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16127 iterator.
16128 (sve_imm_con): Handle smax, smin, umax and umin.
16129 (sve_imm_prefix): New code attribute.
16130 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16131 (aarch64_sve_vsb_operand): New predicates.
16132 (aarch64_sve_mul_immediate): Rename to...
16133 (aarch64_sve_vsm_immediate): ...this.
16134 (aarch64_sve_mul_operand): Rename to...
16135 (aarch64_sve_vsm_operand): ...this.
16136 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16137 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16138 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16139 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16140 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16141 add movprfx support for the immediate alternatives.
16142 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16143 of the above.
16144 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16145 for operand 3.
16146
16147 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16148
16149 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16150 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16151 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16152
16153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16154
16155 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16156 (optab, sve_int_op): Handle them.
16157 * config/aarch64/aarch64-sve.md: Expand comment.
16158
16159 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16160
16161 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16162 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16163 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16164
16165 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16166
16167 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16168 (aarch64_expand_sve_const_pred_trn): New functions.
16169 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16170 use the above functions when the parameter is true.
16171 (aarch64_expand_sve_const_pred): Update call accordingly.
16172 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16173 Rename to...
16174 (@aarch64_sve_<perm_insn><mode>): ...this.
16175
16176 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16177
16178 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16179 Declare.
16180 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16181 (aarch64_sve_emit_int_cmp): New functions.
16182 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16183 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16184 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16185 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16186 (UNSPEC_PRED_Z): New unspec.
16187 (set_clobber_cc_nzc): Delete.
16188 * config/aarch64/aarch64-sve.md: Add a block comment about
16189 UNSPEC_PRED_Z.
16190 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16191 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16192 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16193 UNSPEC_MERGE_PTRUE.
16194 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16195 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16196 check for compatible predicates.
16197 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16198 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16199 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16200 comparisons above.
16201
16202 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16203
16204 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16205 * config/aarch64/aarch64-sve.md: Add a section describing it.
16206 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16207 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16208 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16209 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16210 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16211 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16212 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16213 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16214 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16215 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16216 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16217 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16218 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16219 (aarch64_evpc_rev_local): Update accordingly.
16220
16221 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16222
16223 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16224 iterators.
16225 (SVE_BHSI, SVE_SDI): Tweak comment.
16226 (SVE_HSDI): Likewise. Fix definition.
16227 (SVE_SDF): New mode iterator.
16228 (elem_bits): New mode attribute.
16229 (SVE_COND_FCVT): New int iterator.
16230 * config/aarch64/aarch64-sve.md
16231 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16232 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16233 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16234 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16235 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16236 ...these new patterns.
16237 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16238 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16239 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16240 Merge into...
16241 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16242 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16243 ...these new patterns.
16244 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16245 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16246 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16247 ...this new pattern.
16248 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16249 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16250 ...this new pattern.
16251 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16252
16253 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16254
16255 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16256 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16257 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16258 unspecs.
16259 (optab, su): Handle them.
16260 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16261 * config/aarch64/aarch64-sve.md
16262 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16263 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16264 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16265 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16266 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16267 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16268 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16269 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16270 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16271 FIXUORS.
16272 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16273 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16274 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16275 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16276 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16277 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16278 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16279 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16280 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16281 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16282 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16283 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16284 of UNSPEC_FLOAT_CONVERT.
16285 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16286 aarch64_sve_extend<mode><Vwide>2.
16287
16288 2019-08-14 Richard Biener <rguenther@suse.de>
16289
16290 PR target/91154
16291 * config/i386/i386-features.c
16292 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16293 individual instruction gain. Fix reg-reg copy GRP cost. Use
16294 ix86_cost->sse_op for vector instruction costs.
16295
16296 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16297
16298 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16299 (cmp_op): Handle it.
16300 (SVE_COND_FP_CMP): Rename to...
16301 (SVE_COND_FP_CMP_I0): ...this.
16302 (SVE_FP_CMP): Remove.
16303 * config/aarch64/aarch64-sve.md
16304 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16305 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16306 using unspecs to represent the comparison.
16307 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16308 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16309 accordingly.
16310 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16311 (aarch64_unspec_cond_code): Move after integer code. Handle
16312 UNORDERED.
16313 (aarch64_emit_sve_predicated_cond): Replace with...
16314 (aarch64_emit_sve_fp_cond): ...this new function.
16315 (aarch64_emit_sve_or_conds): Replace with...
16316 (aarch64_emit_sve_or_fp_conds): ...this new function.
16317 (aarch64_emit_sve_inverted_cond): Replace with...
16318 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16319 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16320
16321 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16322
16323 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16324 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16325 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16326 SVE_HSD instead of SVE_SD.
16327
16328 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16329 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16330
16331 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16332 iterator.
16333 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16334 attributes.
16335 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16336 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16337 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16338 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16339 (*div<SVE_F:mode>3): Generalize to...
16340 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16341
16342 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16343 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16344
16345 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16346 constants.
16347 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16348 predicate.
16349 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16350 Declare.
16351 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16352 function.
16353 * config/aarch64/aarch64-sve.md: Add a block comment about the
16354 handling of predicated FP operations.
16355 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16356 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16357 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16358 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16359 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16360 operand.
16361 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16362 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16363 operand.
16364 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16365 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16366 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16367 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16368 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16369 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16370 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16371 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16372 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16373 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16374 strictness operands. Use aarch64_sve_pred_dominates_p to check
16375 whether the predicate on the conditional operation is suitable
16376 for merging. Split patterns into the canonical equal-predicate form.
16377 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16378 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16379
16380 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16381 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16382
16383 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16384 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16385 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16386 rtx codes.
16387 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16388 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16389 unspecs.
16390
16391 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16392 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16393
16394 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16395 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16396 actually has, rather than relying on REG_EQUAL notes.
16397 Make the insn operand order match the SVE operand order.
16398 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16399 the SVE operand order.
16400
16401 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16402
16403 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16404 (aarch64_emit_set_immediate): Likewise.
16405 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16406 (aarch64_pfalse_reg): Likewise.
16407 (aarch64_convert_sve_data_to_pred): New function.
16408 (aarch64_sve_move_pred_via_while): Take an optional target register
16409 and the required register mode.
16410 (aarch64_expand_sve_const_pred_1): New function.
16411 (aarch64_expand_sve_const_pred): Likewise.
16412 (aarch64_expand_mov_immediate): Build an all-true predicate
16413 if the significant bits of the immediate are all true. Use
16414 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16415 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16416 before register allocation.
16417 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16418 a VNx16BI PTRUE when splitting the memory alternative.
16419 (vec_duplicate<mode>): Update accordingly.
16420 (*pred_cmp<cmp_op><mode>): Rename to...
16421 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16422
16423 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16424
16425 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16426 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16427 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16428 (UNSPEC_PTEST): New unspec.
16429 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16430 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16431 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16432 * config/aarch64/aarch64-sve.md: Add a new section describing the
16433 handling of UNSPEC_PTEST.
16434 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16435 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16436 (ptest_ptrue<mode>): Replace with...
16437 (aarch64_ptest<mode>): ...this new pattern.
16438 (cbranch<mode>4): Update after above changes.
16439 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16440 UNSPEC_PTEST_PTRUE.
16441 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16442 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16443 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16444
16445 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16446
16447 PR lto/91287
16448 * builtins.c (builtin_with_linkage_p): New function.
16449 * builtins.h (builtin_with_linkage_p): New function.
16450 * symtab.c (write_symbol): Remove redundant assert.
16451 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16452 Remove FIXME and use builtin_with_linkage_p.
16453
16454 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16455
16456 PR middle-end/91421
16457 * tree-core.h (function_decl::function_code): Change type to
16458 unsigned int.
16459 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16460 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16461 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16462 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16463 is BUILT_IN_NORMAL.
16464 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16465 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16466 (fndecl_built_in_p): Change the type of the "name" argument to
16467 unsigned int.
16468 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16469 after check for DECL_BUILT_IN_CLASS.
16470 * cgraphclones.c (build_function_decl_skip_args): Use
16471 set_decl_built_in_function.
16472 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16473 * ipa-split.c (split_function): Likewise.
16474 * langhooks.c (add_builtin_function_common): Likewise.
16475 * omp-simd-clone.c (simd_clone_create): Likewise.
16476 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16477 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16478 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16479 DECL_FUNCTION_CODE.
16480 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16481 instead of DECL_FUNCTION_CODE.
16482 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16483 instead of DECL_FUNCTION_CODE.
16484 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16485 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16486 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16487 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16488 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16489 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16490 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16491 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16492 (alpha_gimple_fold_builtin): Likewise.
16493 * config/arc/arc.c (arc_expand_builtin): Likewise.
16494 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16495 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16496 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16497 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16498 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16499 * config/frv/frv.c (frv_expand_builtin): Likewise.
16500 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16501 (gcn_expand_builtin): Likewise.
16502 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16503 (fold_builtin_cpu): Likewise.
16504 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16505 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16506 (ix86_gimple_fold_builtin): Likewise.
16507 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16508 (ia64_expand_builtin): Likewise.
16509 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16510 * config/mips/mips.c (mips_expand_builtin): Likewise.
16511 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16512 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16513 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16514 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16515 * config/pa/pa.c (pa_expand_builtin): Likewise.
16516 * config/pru/pru.c (pru_expand_builtin): Likewise.
16517 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16518 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16519 Likewise.
16520 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16521 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16522 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16523 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16524 (rs6000_builtin_reciprocal): Likewise.
16525 * config/rx/rx.c (rx_expand_builtin): Likewise.
16526 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16527 * config/s390/s390.c (s390_expand_builtin): Likewise.
16528 * config/sh/sh.c (sh_expand_builtin): Likewise.
16529 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16530 (sparc_fold_builtin): Likewise.
16531 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16532 * config/spu/spu.c (spu_expand_builtin): Likewise.
16533 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16534 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16535 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16536 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16537 (xtensa_expand_builtin): Likewise.
16538
16539 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16540
16541 PR middle-end/91421
16542 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16543 before the DECL_FUNCTION_CODE.
16544 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16545 to check for a BUILT_IN_ALLOCA call.
16546 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16547 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16548 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16549 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16550 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16551 for BUILT_IN_NORMAL functions.
16552 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16553 test for BUILT_IN_TM_ABORT.
16554 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16555 to check for a BUILT_IN_STACK_RESTORE call.
16556 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16557 * tree-ssa-threadedge.c
16558 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16559 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16560 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16561 test for a BUILT_IN_NORMAL call instead of a negative test for
16562 an internal function call.
16563
16564 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16565
16566 * tree.h (build_vector_a_then_b): Declare.
16567 * tree.c (build_vector_a_then_b): New function.
16568 * fold-const-call.c (fold_while_ult): Likewise.
16569 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16570 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16571 (aarch64_svpattern): New enum.
16572 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16573 constants through aarch64_expand_mov_immediate.
16574 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16575 than general_operand as the predicate for operand 1.
16576 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16577 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16578 insn_type.
16579 (simd_immediate_info::simd_immediate_info): New overload that
16580 takes a scalar_int_mode and an svpattern.
16581 (simd_immediate_info::u): Add a "pattern" field.
16582 (svpattern_token): New function.
16583 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16584 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16585 (aarch64_sve_move_pred_via_while): New functions.
16586 (aarch64_expand_mov_immediate): Try using
16587 aarch64_sve_move_pred_via_while for predicates that contain N ones
16588 followed by M zeros but that do not correspond to a VLnnn pattern.
16589 (aarch64_sve_pred_valid_immediate): New function.
16590 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16591 with PTRUE and PFALSE.
16592 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16593 forms.
16594
16595 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16596
16597 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16598 flag.
16599 (darwin_override_options): Likewise.
16600 * config/darwin.h: Likewise.
16601 * config/darwin.opt: Likewise.
16602 * config/i386/i386.c (output_pic_addr_const): Likewise.
16603 * config/rs6000/darwin.h: Likewise.
16604 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16605 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16606 ... this TARGET_MACHO_SYMBOL_STUBS.
16607 (FUNCTION_PROFILER):Likewise.
16608 * config/i386/i386.h: Likewise.
16609
16610 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16611
16612 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16613 <case E_V2SImode>: Use vec_extr path for
16614 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16615 <case E_V8QImode>: Ditto.
16616 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16617 Use SWI48 mode iterator. Use %k to output operand 0.
16618 (*mmx_pextrw): New insn pattern.
16619 (*mmx_pextrb): Ditto.
16620 (*mmx_pextrb_zext): Ditto.
16621
16622 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16623
16624 * target.def (libc_has_function, libc_has_fast_function): Improve
16625 documentation strings.
16626 * doc/tm.texi: Regenerate.
16627
16628 2019-08-13 Caroline Tice <cmtice@google.com>
16629
16630 PR other/91396
16631 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16632 vtv_end.o or vtv_end_preinit.o files if !static.
16633
16634 2019-08-13 Olivier Hainque <hainque@adacore.com>
16635
16636 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16637
16638 2019-08-13 Olivier Hainque <hainque@adacore.com>
16639
16640 * rtlanal.c (tablejump_casesi_pattern): New function, to
16641 determine if a tablejump insn is a casesi dispatcher. Extracted
16642 from patch_jump_insn.
16643 * rtl.h (tablejump_casesi_pattern): Declare.
16644 * cfgrtl.c (patch_jump_insn): Use it.
16645 * dwarf2cfi.c (create_trace_edges): Use it.
16646
16647 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16648
16649 PR target/81800
16650 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16651 operand is larger than a long int.
16652
16653 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16654
16655 * machmode.h (opt_mode::else_mode): New function.
16656 (opt_mode::else_blk): Use it.
16657 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16658 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16659 (aarch64_gen_stepped_int_parallel): Likewise.
16660 (aarch64_stepped_int_parallel_p): Likewise.
16661 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16662 argument.
16663 * config/aarch64/aarch64.c
16664 (aarch64_expand_sve_widened_duplicate): Delete.
16665 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16666 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16667 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16668 argument. Use early returns in the !CONST_INT_P handling.
16669 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16670 than handling some inline.
16671 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16672 from...
16673 (aarch64_simd_container_mode): ...here.
16674 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16675 (aarch64_sve_ld1rq_operand_p): New functions.
16676 * config/aarch64/predicates.md (descending_int_parallel)
16677 (aarch64_sve_ld1rq_operand): New predicates.
16678 * config/aarch64/constraints.md (UtQ): New constraint.
16679 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16680 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16681 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16682 (@aarch64_sve_reinterpret<mode>): New expander.
16683 (*aarch64_sve_reinterpret<mode>): New pattern.
16684 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16685 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16686 (*sve_ld1rq<Vesize>): Replace with...
16687 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16688
16689 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16690
16691 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16692 16:12.
16693
16694 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16695
16696 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16697 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16698 (msp430_check_path_for_devices): New.
16699 (parse_devices_csv_1): New.
16700 (parse_devices_csv): New.
16701 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16702 MCU data in devices.csv before using the hard-coded data.
16703 Warn if devices.csv isn't found and the MCU wasn't found in the
16704 hard-coded data either.
16705 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16706 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16707 Search for devices.csv on -I and -L paths.
16708 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16709 msp430_set_driver_var.
16710 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16711 -mdevices-csv-loc=.
16712 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16713 searched for devices.csv.
16714 (mwarn-devices-csv): Document option.
16715
16716 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16717
16718 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16719 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16720 Use a single Dn alternative instead of separate Dz and Dm
16721 alternatives. Use aarch64_output_sve_move_immediate.
16722 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16723 function.
16724 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16725 for predicates too.
16726 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16727 (aarch64_output_ptrue): Delete.
16728
16729 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16730
16731 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16732 INDEX.
16733 (simd_immediate_info::value, simd_immediate_info::step)
16734 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16735 with...
16736 (simd_immediate_info::u): ...this new union.
16737 (simd_immediate_info::simd_immediate_info): Update accordingly.
16738 (aarch64_output_simd_mov_immediate): Likewise.
16739 (aarch64_output_sve_mov_immediate): Likewise.
16740
16741 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16742
16743 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16744 extra_gcc_objs.
16745 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16746 (msp430_select_cpu): New spec function.
16747 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16748 MCU data.
16749 * config/msp430/msp430-devices.c: New file.
16750 * config/msp430/msp430-devices.h: New file.
16751 * config/msp430/msp430.c: Remove msp430_mcu_data.
16752 (msp430_option_override): Use msp430_extract_mcu_data to extract
16753 MCU data.
16754 (msp430_use_f5_series_hwmult): Likewise.
16755 (use_32bit_hwmult): Likewise.
16756 (msp430_no_hwmult): Likewise.
16757 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16758 assembler.
16759 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16760 and -mcpu option.
16761 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16762 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16763 Remove hard-coded MCU multilib data.
16764
16765 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16766
16767 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16768 based on the mode instead of testing properties of it.
16769
16770 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16771
16772 * doc/md.texi: Document the x and y constraints for AArch64.
16773 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16774 (FP_LO8_REGS): New reg_class.
16775 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16776 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16777 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16778 * config/aarch64/predicates.md (aarch64_simd_register): Use
16779 FP_REGNUM_P instead of checking the classes manually.
16780 * config/aarch64/constraints.md (y): New constraint.
16781
16782 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16783
16784 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16785 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16786 * config/aarch64/aarch64-simd.md
16787 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16788 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16789 from the asm template.
16790 * config/aarch64/aarch64-sve.md
16791 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16792 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16793 from the asm template.
16794 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16795 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16796 from the asm template.
16797 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16798
16799 2019-08-13 Martin Liska <mliska@suse.cz>
16800
16801 * value-prof.c (gimple_ic_transform): Add new line.
16802 Print details with MSG_NOTE.
16803
16804 2019-08-13 Martin Liska <mliska@suse.cz>
16805
16806 * doc/invoke.texi: Document automatic detection of jobserver.
16807 * lto-wrapper.c (run_gcc): Detect jobserver always.
16808
16809 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16810
16811 * config/i386/i386-expand.c (ix86_expand_vector_set)
16812 <case E_V2SImode>: Use vec_merge path for
16813 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16814 <case E_V8QImode>: Ditto.
16815 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16816 (*mmx_pinsrb): Ditto.
16817
16818 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16819
16820 PR target/83250
16821 PR target/91340
16822 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16823 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16824 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16825 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16826 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16827
16828 2019-08-12 Richard Biener <rguenther@suse.de>
16829
16830 PR lto/91375
16831 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16832 flag_devirtualize.
16833
16834 2019-08-12 Richard Biener <rguenther@suse.de>
16835
16836 PR driver/91130
16837 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16838 lang_mask option, always use CL_DRIVER.
16839 (get_options_from_collect_gcc_options): Adjust.
16840 (find_and_merge_options): Likewise.
16841 (run_gcc): Likewise.
16842
16843 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16844
16845 * ipa-predicate.c (add_condition): Restore inverted test.
16846
16847 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16848
16849 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16850 (enum omp_clause_device_type_kind): New enum.
16851 (struct tree_omp_clause): Add subcode.device_type_kind.
16852 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16853 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16854 for device_type clause.
16855 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16856 * tree-pretty-print.c (dump_omp_clause): Likewise.
16857
16858 PR target/91408
16859 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16860 vector_operand.
16861
16862 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16863
16864 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16865 handling spilled pseudos.
16866
16867 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16868
16869 PR target/91386
16870 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16871 to preserve the contents of the original insns.
16872
16873 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16874
16875 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16876 (addsi3_compare_op2): Likewise.
16877
16878 2019-08-09 Martin Liska <mliska@suse.cz>
16879
16880 * alias.c (alias_ptr_types_compatible_p): Strengten
16881 type comparison in LTO mode.
16882
16883 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16884
16885 PR middle-end/90313
16886 * tree-tailcall.c (find_tail_calls): Reject calls that might
16887 read from an escaped RESULT_DECL.
16888
16889 2019-08-09 Martin Liska <mliska@suse.cz>
16890
16891 * doc/invoke.texi: Document the option value.
16892 * lto-wrapper.c (run_gcc): Set auto_parallel
16893 only with -flto=auto.
16894
16895 2019-08-09 Martin Liska <mliska@suse.cz>
16896
16897 * opts.c (common_handle_option): Error for an invalid argument
16898 to -flto=.
16899
16900 2019-08-09 Martin Liska <mliska@suse.cz>
16901
16902 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16903 use dump_printf to report optimization.
16904 (sem_variable::merge): Likwise.
16905 (sem_item_optimizer::merge_classes): Use dump_printf to report
16906 ICF hits.
16907
16908 2019-08-09 Martin Liska <mliska@suse.cz>
16909
16910 * value-prof.c (gimple_divmod_fixed_value_transform):
16911 Use dump_printf_loc.
16912 (gimple_mod_pow2_value_transform): Likewise.
16913 (gimple_mod_subtract_transform): Likewise.
16914 (init_node_map): Likewise.
16915 (gimple_ic_transform): Likewise.
16916 (gimple_stringops_transform): Likewise.
16917
16918 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16919
16920 * doc/extend.texi: Add const qualifier to ld intrinsics.
16921
16922 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16923
16924 * config/rs6000/dfp.md (D64_D128): Rename to ...
16925 (DDTD): ... this, throughout.
16926 (dfp_suffix): Rename to ...
16927 (q): ... this, throughout.
16928
16929 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16930
16931 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16932 (dfp_suffix): Ditto.
16933 (adddd3, addtd3): Merge to ...
16934 (add<mode>3 for D64_D128): ... this.
16935 (subdd3, subtd3): Merge to ...
16936 (sub<mode>3 for D64_D128): ... this.
16937 (muldd3, multd3): Merge to ...
16938 (mul<mode>3 for D64_D128): ... this.
16939 (divdd3, divtd3): Merge to ...
16940 (div<mode>3 for D64_D128): ... this.
16941 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16942 (*cmp<mode>_internal1 for D64_D128): ... this.
16943 (ftruncdd2, ftrunctd2): Merge to ...
16944 (ftrunc<mode>2 for D64_D128): ... this.
16945 (fixdddi2, fixtddi2): Merge to ...
16946 (fix<mode>di2 for D64_D128): ... this.
16947
16948 2019-08-08 Jim Wilson <jimw@sifive.com>
16949
16950 PR target/91229
16951 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16952 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16953 Pass into recursive call.
16954 (riscv_flatten_aggregate_argument): New arg. Pass to
16955 riscv_flatten_aggregate_field.
16956 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16957 riscv_flatten_aggregate_argument twice, with false and true as last
16958 arg. Process result twice. Compare results and warn if different.
16959 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16960
16961 2019-08-08 Martin Liska <mliska@suse.cz>
16962
16963 PR bootstrap/91352
16964 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16965 * lto-wrapper.c (jobserver_active_p): Likewise.
16966
16967 2019-08-08 Martin Liska <mliska@suse.cz>
16968
16969 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16970 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16971 (create_version_clone_with_body): Likewise.
16972
16973 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16974
16975 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16976 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16977 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16978 GOVD_EXPLICIT flags.
16979 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16980 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16981 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16982 call install_var_field with mask 11 instead of 3.
16983 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16984 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16985
16986 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16987
16988 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16989 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16990
16991 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16992
16993 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16994 MOVPRFX alternatives. Make the GPR alternatives more expensive
16995 than the FPR ones.
16996
16997 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16998
16999 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17000 Disparage the GPR alternative relative to the FPR one.
17001 Fix handling of 8-bit and 16-bit FPR values.
17002
17003 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17004
17005 * config/aarch64/iterators.md (BITWISEV): Delete.
17006 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17007 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17008 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17009 UNSPEC_FMINNMV, UNSPEC_FMINV.
17010 (bit_reduc_op): Delete.
17011 (sve_int_op): New int attribute.
17012 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17013 UNSPEC_FMINNMV, UNSPEC_FMINV.
17014 * config/aarch64/aarch64-sve.md
17015 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17016 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17017 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17018 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17019 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17020 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17021 new patterns.
17022 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17023 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17024 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17025 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17026 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17027 new patterns.
17028
17029 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17030
17031 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17032 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17033 (fms<mode>4, *fms<mode>4): Replace with...
17034 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17035 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17036 Use unspecs instead of rtx codes.
17037 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17038 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17039
17040 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17041
17042 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17043 int iterator.
17044 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17045 * config/aarch64/aarch64-sve.md
17046 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17047 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17048 use a single unspec for the rhs.
17049 (*<su><maxmin><mode>3): Delete.
17050 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17051
17052 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17053
17054 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17055 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17056 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17057 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17058 (optab, sve_fp_op): Handle them.
17059 (SVE_FP_UNARY): Delete.
17060 (optab): Remove sqrt entry.
17061 (sve_fp_op): Remove neg, abs and sqrt entries.
17062 (SVE_COND_FP_UNARY): New int iterator.
17063 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17064 (*<frint_pattern><mode>2): Delete.
17065 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17066 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17067 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17068 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17069
17070 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17071
17072 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17073
17074 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17075
17076 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17077 (UNSPEC_COND_FADD): ...this.
17078 (UNSPEC_COND_SUB): Rename to...
17079 (UNSPEC_COND_FSUB): ...this.
17080 (UNSPEC_COND_MUL): Rename to...
17081 (UNSPEC_COND_FMUL): ...this.
17082 (UNSPEC_COND_DIV): Rename to...
17083 (UNSPEC_COND_FDIV): ...this.
17084 (UNSPEC_COND_MAX): Rename to...
17085 (UNSPEC_COND_FMAXNM): ...this.
17086 (UNSPEC_COND_MIN): Rename to...
17087 (UNSPEC_COND_FMINNM): ...this.
17088 (UNSPEC_COND_LT): Rename to...
17089 (UNSPEC_COND_FCMLT): ...this.
17090 (UNSPEC_COND_LE): Rename to...
17091 (UNSPEC_COND_FCMLE): ...this.
17092 (UNSPEC_COND_EQ): Rename to...
17093 (UNSPEC_COND_FCMEQ): ...this.
17094 (UNSPEC_COND_NE): Rename to...
17095 (UNSPEC_COND_FCMNE): ...this.
17096 (UNSPEC_COND_GE): Rename to...
17097 (UNSPEC_COND_FCMGE): ...this.
17098 (UNSPEC_COND_GT): Rename to...
17099 (UNSPEC_COND_FCMGT): ...this.
17100 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17101 (sve_fp_op_rev): Update accordingly.
17102 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17103
17104 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17105
17106 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17107 banner comments.
17108 * config/aarch64/check-sve-md.awk: New file.
17109 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17110 (insn-conditions.md): Depend on it.
17111
17112 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17113
17114 PR target/91385
17115 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17116 (*negsi2_cmpz_zext): Ditto.
17117
17118 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17119
17120 * config/aarch64/iterators.md (commutative): Remove.
17121
17122 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17123
17124 PR driver/91130
17125 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17126 processing COLLECT_GCC_OPTIONS.
17127 (run_gcc): Likewise.
17128
17129 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17130
17131 PR tree-optimization/91109
17132 * lra-remat.c (update_scratch_ops): Remove assignment of the
17133 hard register.
17134
17135 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17136
17137 * data-streamer.h (streamer_write_poly_uint64): Declare.
17138 (streamer_read_poly_uint64): Likewise.
17139 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17140 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17141 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17142 (add_condition): Take a poly_int64 size.
17143 * ipa-predicate.c (add_condition): Likewise.
17144 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17145 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17146 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17147 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17148 condition::size as a poly_int64.
17149 (unmodified_parm_1): Take a poly_int64 size pointer.
17150 (unmodified_parm): Likewise.
17151 (unmodified_parm_or_parm_agg_item): Likewise.
17152 (set_cond_stmt_execution_predicate): Update accordingly.
17153 (set_switch_stmt_execution_predicate): Likewise.
17154 (will_be_nonconstant_expr_predicate): Likewise.
17155 (will_be_nonconstant_predicate): Likewise.
17156 (inline_read_section): Stream condition::size as a poly_int.
17157 (ipa_fn_summary_write): Likewise.
17158
17159 2019-08-07 Martin Liska <mliska@suse.cz>
17160
17161 * fold-const.c (twoval_comparison_p): Replace int
17162 with bool as a return type.
17163 (simple_operand_p): Likewise.
17164 (operand_equal_p): Replace int with bool as a return type.
17165 * fold-const.h (operand_equal_p): Likewise.
17166
17167 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17168
17169 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17170 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17171 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17172 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17173 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17174 * tree-pretty-print.c (dump_omp_clause): Likewise.
17175 * tree-nested.c (convert_nonlocal_omp_clauses,
17176 convert_local_omp_clauses): Likewise.
17177 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17178 Likewise.
17179 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17180 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17181 clause with array or reference to array types, no matter what type
17182 except for reference it has.
17183
17184 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17185
17186 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17187
17188 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17189
17190 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17191 (arch_canonicalize): Support rv32g and rv64g and fix error
17192 handling.
17193
17194 2019-08-06 Martin Liska <mliska@suse.cz>
17195
17196 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17197 and DECL_IS_OPERATOR_DELETE_P.
17198
17199 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17200
17201 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17202 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17203 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17204 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17205 (gimplify_omp_for): Don't do C++ random access iterator clause
17206 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17207 don't predetermine the artificial iterator in case of C++ random
17208 access iterators as lastprivate, but private. For OMP_LOOP, force
17209 bind expr around simd body and force for_pre_body before the
17210 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17211 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17212 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17213 diff var of C++ random access iterators. Handle
17214 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17215 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17216 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17217 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17218 * omp-low.c (lower_rec_input_clauses): For
17219 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17220 variables instead of default constructing them.
17221 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17222 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17223 is_taskloop_ctx check from the assert to the guarding condition.
17224
17225 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17226
17227 * config/riscv/multilib-generator: (canonical_order): New.
17228 (arch_canonicalize): Dito.
17229 Apply arch_canonicalize for alts.
17230
17231 2019-08-05 Martin Sebor <msebor@redhat.com>
17232
17233 * doc/extend.texi (Common Variable Attributes): Document alias
17234 attribute.
17235
17236 2019-08-05 Marek Polacek <polacek@redhat.com>
17237
17238 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17239 * doc/invoke.texi: Document -Wcomma-subscript.
17240
17241 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17242
17243 * tree-core.h (tree_function_decl): Make function_code an
17244 independent field. Group the remaining bitfields into bytes
17245 and move decl_type so that it contines to be at a byte boundary.
17246 Leave 12 bits for future expansion.
17247
17248 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17249
17250 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17251 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17252 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17253 IFN_MASK_STORE.
17254
17255 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17256
17257 * gimple.h (gimple_move_vops): Declare.
17258 * gimple.c (gimple_move_vops): New function
17259 * gimple-fold.c (replace_call_with_call_and_fold)
17260 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17261 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17262 (gimple_fold_call): Use it.
17263 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17264 * tree-call-cdce.c (use_internal_fn): Likewise.
17265 * tree-if-conv.c (predicate_load_or_store): Likewise.
17266 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17267 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17268 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17269 (update_call_from_tree): Likewise.
17270 * tree-vect-stmts.c (vectorizable_load): Likewise.
17271 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17272
17273 2019-08-05 Martin Liska <mliska@suse.cz>
17274
17275 PR c++/91334
17276 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17277 with not arguments.
17278 (eliminate_unnecessary_stmts): Likewise.
17279
17280 2019-08-05 Richard Biener <rguenther@suse.de>
17281
17282 PR middle-end/91169
17283 * fold-const.c (get_array_ctor_element_at_index): Create
17284 offset_ints according to the sign of the index type and treat
17285 that as signed if it is obviously so.
17286
17287 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17288
17289 PR target/91341
17290 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17291 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17292 _mm256_storeu2_m128i): New function.
17293
17294 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17295
17296 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17297 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17298
17299 2019-08-05 Alan Modra <amodra@gmail.com>
17300
17301 PR target/91349
17302 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17303 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17304
17305 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17306
17307 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17308 bug that was fixed in Tcl 8.6.1.
17309
17310 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17311
17312 * config/rs6000/future.md: New file.
17313 * config/rs6000/rs6000.md: Include future.md.
17314 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17315
17316 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17317
17318 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17319 check to use targetm.slow_unaligned_access instead.
17320
17321 * function.c (assign_param_data_one): Remove unused data members.
17322
17323 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17324
17325 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17326 build_distinct_type_copy.
17327 (simd_clone_adjust_argument_types): Ditto.
17328 (simd_clone_adjust): Call build_distinct_type_copy here.
17329 (expand_simd_clones): Ditto.
17330
17331 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17332
17333 PR target/91201
17334 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17335
17336 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17337
17338 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17339 from 'const void *'.
17340 (sort_locs_in_loop_postorder_cmp): Likewise.
17341
17342 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17343
17344 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17345 (hot-bb-count-ws-permille): Likewise.
17346 (hot-bb-frequency-fraction): Likewise.
17347 (unlikely-bb-count-fraction): Likewise.
17348 * params.def (hot-bb-count-fraction): Rework description.
17349 (hot-bb-count-ws-permille): Likewise.
17350 (hot-bb-frequency-fraction): Likewise.
17351 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17352 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17353
17354 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17355
17356 PR target/91323
17357 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17358 Return false.
17359
17360 2019-08-02 Richard Biener <rguenther@suse.de>
17361
17362 * vec.h (vec::sort): Add gcc_qsort_r support.
17363 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17364 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17365 to gcc_qsort_r style callback.
17366 (sort_locs_in_loop_postorder_cmp): Likewise.
17367 (analyze_memory_references): Use gcc_sort_r interfaces.
17368 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17369
17370 2019-08-02 Martin Liska <mliska@suse.cz>
17371
17372 PR lto/91313
17373 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17374 to detect working job server.
17375 (driver::detect_jobserver): Test whether jobserver
17376 is active from GCC driver. That will prevent situation where
17377 GCC is invoked from a LD plugin and the linker already uses
17378 file descriptors suggested by make. That leads to a wrong
17379 detection.
17380 * gcc.h (driver): Add detect_jobserver.
17381 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17382 not scanning for --jobserver-auth prefix.
17383
17384 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17385
17386 PR tree-optimization/91201
17387 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17388 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17389 extraction.
17390
17391 2019-08-01 Martin Sebor <msebor@redhat.com>
17392
17393 PR c++/90947
17394 * tree.c (type_initializer_zero_p): Define.
17395 * tree.h (type_initializer_zero_p): New function.
17396
17397 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17398
17399 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17400
17401 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17402
17403 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17404 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17405 * predict.c (maybe_hot_count_p): Likewise.
17406 (maybe_hot_bb_p): Tweak comment.
17407 (maybe_hot_edge_p): Likewise.
17408 (probably_never_executed): Likewise. Minor tweak.
17409 (probably_never_executed_bb_p): Likewise.
17410 (unlikely_executed_edge_p): Likewise.
17411 (probably_never_executed_edge_p): Likewise.
17412 (optimize_function_for_size_p): Likewise.
17413 (optimize_function_for_speed_p): Likewise.
17414 (function_optimization_type): Likewise.
17415 (optimize_bb_for_size_p): Likewise.
17416 (optimize_bb_for_speed_p): Likewise.
17417 (bb_optimization_type): Likewise.
17418 (optimize_edge_for_size_p): Likewise.
17419 (optimize_edge_for_speed_p): Likewise.
17420 (optimize_insn_for_size_p): Likewise.
17421 (optimize_insn_for_speed_p): Likewise.
17422 (optimize_loop_for_size_p): Likewise.
17423 (optimize_loop_for_speed_p): Likewise.
17424 (optimize_loop_nest_for_speed_p): Likewise.
17425 (optimize_loop_nest_for_size_p): Likewise.
17426 (predictable_edge_p): Likewise.
17427 (handle_missing_profiles): Minor tweak.
17428
17429 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17430
17431 * config/rs6000/predicates.md (pcrel_external_address): Update
17432 comment.
17433
17434 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17435
17436 PR target/85693
17437 * config/i386/mmx.md (usadv8qi): New expander.
17438
17439 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17440
17441 PR c++/90590
17442 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17443 with reserved names that are in a system header.
17444
17445 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17446
17447 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17448 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17449 (*vec_extractv2si_0_zext): Ditto.
17450 (*vec_extractv2si_1): Add (rm,x) alternative.
17451 (*vec_extractv2si_1_zext): New insn pattern.
17452 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17453 insn constraint.
17454
17455 2019-08-01 Richard Biener <rguenther@suse.de>
17456
17457 * domwalk.c (bb_postorder): Remove static variable.
17458 (cmp_bb_postorder): Adjust.
17459 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17460 (dom_walker::walk): Adjust.
17461
17462 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17463
17464 * sort.cc (sort_r_ctx): New struct.
17465 (reorder23): Make templated on context type.
17466 (reorder45): Ditto.
17467 (cmp1): Ditto. Adjust signature.
17468 (netsort): Ditto.
17469 (mergesort): Ditto.
17470 [CHECKING_P] (cmp2to3): New static function. Use it...
17471 (gcc_qsort) [CHECKING_P]: ...here.
17472 (gcc_sort_r): New function.
17473 * system.h (sort_r_cmp_fn): New function typedef.
17474 (qsort_chk): Adjust signature.
17475 (gcc_sort_r): Declare.
17476 * vec.c (qsort_chk_error): Adjust.
17477 (qsort_chk): Adjust.
17478
17479 2019-08-01 Richard Biener <rguenther@suse.de>
17480
17481 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17482 (compute_antic): Localize it here.
17483
17484 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17485
17486 * common/config/riscv/riscv-common.c: Check -march string ends
17487 with null.
17488
17489 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17490
17491 * ipa-devirt.c (type_warning_cmp): Make static.
17492 (decl_warning_cmp): Ditto.
17493
17494 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17495
17496 PR target/91050
17497 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17498 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17499 use of deleted rs6000_dejagnu_cpu_index variable.
17500 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17501 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17502 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17503 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17504 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17505 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17506
17507 2019-07-31 Richard Biener <rguenther@suse.de>
17508
17509 PR tree-optimization/91280
17510 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17511 Decompose MEM_REF manually for offset handling.
17512
17513 2019-07-31 Richard Biener <rguenther@suse.de>
17514
17515 PR tree-optimization/91293
17516 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17517 of reduction stmts.
17518
17519 2019-07-31 Matt Thomas <matt@3am-software.com>
17520 Nick Hudson <nick@nthcliff.demon.co.uk>
17521 Matthew Green <mrg@eterna.com.au>
17522 Maya Rashish <coypu@sdf.org>
17523
17524 * config.gcc (hppa*-*-netbsd*): New target.
17525 * config/pa/pa-netbsd.h: New file.
17526 * config/pa/pa32-netbsd.h: New file.
17527
17528 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17529
17530 PR tree-optimization/91201
17531 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17532
17533 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17534
17535 * config/gcn/gcn-valu.md
17536 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17537 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17538 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17539 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17540 struct ilist. Add nops for delayeduse insns.
17541 * config/gcn/gcn.md (delayeduse): New attribute.
17542 (*movbi): Remove s_waitcnt from stores.
17543 (*mov<mode>_insn): Likewise.
17544 (*movti_insn): Likewise. Add delayeduse attribute.
17545 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17546 (atomic_store<mode>): Remove or adjust s_waitcnt.
17547
17548 2019-07-31 Richard Biener <rguenther@suse.de>
17549
17550 * vr-values.h (vr_values::swap_vr_value): New.
17551 (vr_values::free_value_range): likewise.
17552 * vr-values.c (vr_values::swap_vr_value): Implement.
17553 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17554 Do not return a range or take a var.
17555 (evrp_range_analyzer::stack): Change back to recording a non-const
17556 value_range *.
17557 * gimple-ssa-evrp-analyze.c
17558 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17559 value-range.
17560 (evrp_range_analyzer::pop_to_marker): Adjust.
17561 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17562 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17563 no longer needed value-range.
17564
17565 2019-07-31 Martin Liska <mliska@suse.cz>
17566
17567 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17568 have size and (or) alignment as 2nd and later arguments.
17569 Mark all of them as necessary.
17570
17571 2019-07-31 Richard Biener <rguenther@suse.de>
17572
17573 PR tree-optimization/91178
17574 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17575 Use tail-recursion.
17576
17577 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17578
17579 PR tree-optimization/91201
17580 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17581 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17582 TARGET_AVX512F.
17583 (reduc_plus_scal_<mode>): Improve formatting by introducing
17584 a temporary.
17585
17586 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17587
17588 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17589 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17590 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17591 (aarch64_init_tme_builtins): New.
17592 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17593 (aarch64_expand_builtin_tme): New.
17594 (aarch64_expand_builtin): Handle TME builtins.
17595 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17596 __ARM_FEATURE_TME when enabled.
17597 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17598 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17599 (TARGET_TME): New.
17600 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17601 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17602 UNSPECV_TCANCEL.
17603 (tstart, ttest, tcommit, tcancel): New instructions.
17604 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17605 (__tcancel, __ttest): New.
17606 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17607 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17608 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17609 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17610 * config/arm/types.md: Add new tme type attr.
17611 * doc/invoke.texi: Document "tme".
17612
17613 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17614
17615 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17616 warn_unused_result attribute.
17617 (cmse_check_address_range): Add warn_unused_result attribute.
17618
17619 2019-07-31 Richard Biener <rguenther@suse.de>
17620
17621 PR tree-optimization/91257
17622 * tree-vrp.c (union_ranges): Unify equality and less tests
17623 by using compare_values. Re-order cheap tests first.
17624
17625 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17626
17627 PR middle-end/91301
17628 * gimplify.c (gimplify_omp_for): If for class iterator on
17629 distribute parallel for there is no data sharing clause
17630 on inner_for_stmt, look for private clause on combined
17631 parallel too and if found, move it to inner_for_stmt.
17632
17633 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17634
17635 * lra-int.h (lra_operand_data): Remove early_clobber field.
17636 (lra_insn_reg): Likewise.
17637 * lra.c (debug_operand_data): Update accordingly.
17638 (setup_operand_alternative): Likewise.
17639 (new_insn_reg): Likewise. Remove early_clobber parameter.
17640 (collect_non_operand_hard_regs): Update call accordingly.
17641 Don't assign to lra_insn_reg::early_clobber.
17642 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17643 and update calls to new_insn_reg.
17644 (lra_update_insn_regno_info): Update calls accordingly.
17645 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17646 alternative number as a parameter and test whether the operand
17647 is earlyclobbered in that particular alternative.
17648 (process_alt_operands): Update call accordingly. Use per-alternative
17649 checks for earyclobber here too.
17650 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17651 against zero for IRA_UNKNOWN_ALT.
17652
17653 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17654
17655 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17656
17657 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17658
17659 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17660 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17661
17662 2019-07-30 Martin Liska <mliska@suse.cz>
17663
17664 PR ipa/89330
17665 * cgraph.c (cgraph_edge::make_direct): Use
17666 edge->indirect_unknown_callee as edge->resolve_speculation can
17667 deallocate edge which is this pointer.
17668
17669 2019-07-30 Richard Biener <rguenther@suse.de>
17670
17671 PR tree-optimization/91257
17672 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17673
17674 2019-07-30 Martin Liska <mliska@suse.cz>
17675
17676 * doc/invoke.texi: Document new behavior.
17677 * lto-wrapper.c (cpuset_popcount): New function
17678 is a copy of libgomp/config/linux/proc.c.
17679 (init_num_threads): Likewise.
17680 (run_gcc): Automatically detect core count for -flto.
17681 (jobserver_active_p): New function.
17682
17683 2019-07-30 Richard Biener <rguenther@suse.de>
17684
17685 PR tree-optimization/91257
17686 * bitmap.h (bitmap_ior_into_and_free): Declare.
17687 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17688 whether to add the unliked element to the freelist.
17689 (bitmap_list_insert_element_after): Add defaulted param for
17690 an already allocated element.
17691 (bitmap_ior_into_and_free): New function.
17692 * tree-ssa-structalias.c (condense_visit): Reduce the
17693 ponts-to and edge bitmaps of the SCC members in a
17694 logarithmic fashion rather than all to one.
17695
17696 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17697
17698 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17699 parameter. When nonnull, make sure that the addition or subtraction
17700 has the same condition.
17701 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17702 for CFN_COND_MUL too.
17703
17704 2019-07-30 Richard Biener <rguenther@suse.de>
17705
17706 PR tree-optimization/91291
17707 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17708 constant values.
17709
17710 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17711
17712 PR middle-end/91216
17713 * omp-low.c (global_nonaddressable_vars): New variable.
17714 (use_pointer_for_field): For global decls, if they are non-addressable,
17715 remember it in the global_nonaddressable_vars bitmap, if they are
17716 addressable and in the global_nonaddressable_vars bitmap, ignore their
17717 TREE_ADDRESSABLE bit.
17718 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17719 vars in global_nonaddressable_vars bitmap.
17720 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17721
17722 PR target/91150
17723 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17724 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17725 comparison to unsigned HOST_WIDE_INT before shifting it left.
17726
17727 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17728
17729 * config/i386/i386.md (movstrict<mode>): Use register_operand
17730 predicate for operand 0. Add expander condition. Assert that
17731 operand 0 is a SUBREG RTX.
17732 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17733 Update operand constraints and insn condition.
17734 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17735 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17736 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17737 Update operand 0 constraints.
17738 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17739
17740 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17741
17742 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17743 when -m{code,data}-region are used without -mlarge.
17744 * config/msp430/msp430.c (msp430_option_override): Error when a
17745 non-default code or data region is used without -mlarge.
17746 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17747 attributes when they are used without -mlarge.
17748
17749 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17750
17751 PR target/70320
17752 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17753
17754 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17755
17756 PR middle-end/91242
17757 * wide-int.h (generic_wide_int::sext_elt): New function.
17758 * inchash.h (hash::add_wide_int): Use it instead of elt.
17759
17760 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17761
17762 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17763 CODE_FOR_arm_##.
17764 * config/arm/arm.md (<crc_variant>): Rename to...
17765 (arm_<crc_variant>): ... This.
17766 (<cdp>): Rename to...
17767 (arm_<cdp>): ... This.
17768 (<ldc>): Rename to...
17769 (arm_<ldc>): ... This.
17770 (<stc>): Rename to...
17771 (arm_<stc>): ... This.
17772 (<mcr>): Rename to...
17773 (arm_<mcr>): ... This.
17774 (<mrc>): Rename to...
17775 (arm_<mrc>): ... This.
17776 (<mcrr>): Rename to...
17777 (arm_<mcrr>): ... This.
17778 (<mrrc>): Rename to...
17779 (arm_<mrrc>): ... This.
17780
17781 2019-07-29 Richard Biener <rguenther@suse.de>
17782
17783 PR tree-optimization/91257
17784 * tree-ssa-sccvn.h (struct vn_avail): New.
17785 (struct vn_ssa_aux): Add avail member.
17786 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17787 member, add m_avail_freelist one.
17788 (rpo_elim::~rpo_elim): Remove.
17789 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17790 data structure.
17791 (rpo_elim::eliminate_push_avail): Likewise.
17792 (do_unwind): Likewise.
17793 (do_rpo_vn): Likewise.
17794
17795 2019-07-29 Richard Biener <rguenther@suse.de>
17796
17797 PR tree-optimization/91257
17798 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17799 most cases, instead call compare_values which handles the
17800 symbolic ranges we handle specially.
17801 (compare_values_warnv): Do not call operand_less_p but open-code
17802 the effective fold calls. Avoid converting so much.
17803
17804 2019-07-29 Martin Liska <mliska@suse.cz>
17805
17806 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17807 remove LHS of operator new call. It's handled latter.
17808
17809 2019-07-29 Richard Biener <rguenther@suse.de>
17810
17811 PR tree-optimization/91267
17812 * vr-values.c (vr_values::update_value_range): Add early return
17813 for effectively VARYING lattice entry.
17814
17815 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17816
17817 PR debug/86638
17818 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17819 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17820 necessary if keep_all_vdefs_p is true.
17821 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17822 that keep_all_vdefs_p is false.
17823 (mark_all_reaching_defs_necessary): Likewise.
17824 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17825
17826 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17827
17828 * common.opt (Og): Change the initial value of flag_dse to 0.
17829 * opts.c (default_options_table): Move OPT_ftree_dse from
17830 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17831 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17832 entry before the OPT_ftree_sra entry.
17833 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17834 of flags disabled by Og.
17835
17836 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17837
17838 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17839 variables for -Og.
17840
17841 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17842
17843 * doc/sourcebuild.texi (check-function-bodies): Document.
17844
17845 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17846
17847 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17848 VEC_DUPLICATE of a fixed-length vector even if the result
17849 is variable-length. Likewise fold a duplicate of a
17850 variable-length vector if the variable-length vector is
17851 itself a duplicate of a fixed-length sequence.
17852 (test_vector_ops_duplicate): Test more cases.
17853
17854 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17855
17856 * vector-builder.h (vector_builder): Add a shape template parameter.
17857 (vector_builder::new_unary_operation): New function, generalizing
17858 the old tree_vector_builder function.
17859 (vector_builder::new_binary_operation): Likewise.
17860 (vector_builder::binary_encoded_nelts): Likewise.
17861 * int-vector-builder.h (int_vector_builder): Update template
17862 parameters to vector_builder.
17863 (int_vector_builder::shape_nelts): New function.
17864 * rtx-vector-builder.h (rtx_vector_builder): Update template
17865 parameters to vector_builder.
17866 (rtx_vector_builder::shape_nelts): New function.
17867 (rtx_vector_builder::nelts_of): Likewise.
17868 (rtx_vector_builder::npatterns_of): Likewise.
17869 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17870 * tree-vector-builder.h (tree_vector_builder): Update template
17871 parameters to vector_builder.
17872 (tree_vector_builder::shape_nelts): New function.
17873 (tree_vector_builder::nelts_of): Likewise.
17874 (tree_vector_builder::npatterns_of): Likewise.
17875 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17876 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17877 (tree_vector_builder::new_binary_operation): Delete.
17878 (tree_vector_builder::binary_encoded_nelts): Likewise.
17879 * simplify-rtx.c: Include rtx-vector-builder.h.
17880 (distributes_over_addition_p): New function.
17881 (simplify_const_unary_operation)
17882 (simplify_const_binary_operation): Generalize handling of vector
17883 constants to include variable-length vectors.
17884 (test_vector_ops_series): Add more tests.
17885
17886 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17887
17888 PR lto/91222
17889 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17890 than INDENTIFIER_POINTER.
17891
17892 2019-07-28 Martin Liska <mliska@suse.cz>
17893
17894 PR ipa/89330
17895 * cgraph.c (symbol_table::create_edge): Always allocate
17896 a cgraph_edge.
17897 (symbol_table::free_edge): Store summary_id to
17898 edge_released_summary_ids if != -1;
17899 * cgraph.h (NEXT_FREE_NODE): Remove.
17900 (SET_NEXT_FREE_NODE): Likewise.
17901 (NEXT_FREE_EDGE): Likewise.
17902 (symbol_table::release_symbol): Store summary_id to
17903 cgraph_released_summary_ids if != -1;
17904 (symbol_table::allocate_cgraph_symbol): Always allocate
17905 a cgraph_node.
17906
17907 2019-07-28 Alan Modra <amodra@gmail.com>
17908
17909 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17910 gen_sibcall.
17911
17912 2019-07-28 Alan Modra <amodra@gmail.com>
17913
17914 PR target/91135
17915 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17916 define.
17917 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17918 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17919 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17920
17921 2019-07-28 Alan Modra <amodra@gmail.com>
17922
17923 PR target/91050
17924 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17925 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17926 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17927 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17928 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17929 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17930 in asm_default spec.
17931 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17932 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17933
17934 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17935
17936 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17937
17938 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17939
17940 PR target/89517
17941 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17942 * config/aarch64/aarch64-option-extensions.def: Add new comments
17943 and restore easier to read options.
17944
17945 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17946
17947 * convert.c (convert_to_real_1): Move part of conversion code...
17948 * match.pd: ...To here.
17949
17950 2019-07-26 Martin Jambor <mjambor@suse.cz>
17951
17952 PR ipa/89330
17953 * ipa-inline-transform.c (check_speculations_1): New function.
17954 (push_all_edges_in_set_to_vec): Likewise.
17955 (check_speculations): Use check_speculations_1, new parameter
17956 new_edges.
17957 (inline_call): Pass new_edges to check_speculations.
17958 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17959 NULL.
17960 (speculation_useful_p): Early return true if edge is inlined, remove
17961 later checks for inline_failed.
17962
17963 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17964
17965 PR rtl-optimization/91223
17966 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17967 matching with INOUT operand.
17968
17969 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17970
17971 * stmt.c (expand_case): Try to narrow the index type if it's larger
17972 than a word. Tidy up.
17973
17974 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17975
17976 * cif-code.def (NEVER_CALL): New code.
17977 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17978 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17979
17980 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17981
17982 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17983 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17984
17985 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17986
17987 * ipa-devirt.c (add_type_duplicate): Fix return value.
17988
17989 2019-07-25 Richard Biener <rguenther@suse.de>
17990
17991 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17992 type parameter and use it instead of guessing expression
17993 type from the first operand.
17994 (extract_range_from_binary_expr): Pass expr_type down.
17995
17996 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17997
17998 * config/arm/arm.md (SATrev): Change to code attribute.
17999 (*satsi_<SAT:code>): Adjust for the above.
18000 (*satsi_<SAT:code>_shift): Likewise.
18001
18002 2019-07-25 Richard Biener <rguenther@suse.de>
18003
18004 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18005 Make value_range * temporary const.
18006 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18007 Likewise.
18008 (evrp_range_analyzer::record_ranges_from_): Likewise.
18009 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18010 deal with having recorded a const one.
18011 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18012 Return a const value_range *.
18013 (evrp_range_analyzer::pop_value_range): Likewise.
18014 (evrp_range_analyzer::stack): Record const value_range *s.
18015 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18016 Adjust.
18017 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18018 (format_integer): Likewise.
18019 (sprintf_dom_walker::handle_gimple_call): Likewise.
18020 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18021 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18022 (vrp_prop::get_value_range): Adjust.
18023 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18024 modifying the lattice in-place.
18025 (vrp_prop::visit_stmt): Likewise.
18026 * vr-values.c (vr_values::get_lattice_entry): New private method.
18027 (vr_values::get_value_range): Wrap it and return a const
18028 value_range *.
18029 (vr_values::set_def_to_varying): New.
18030 (vr_values::set_defs_to_varying): Use it.
18031 (vr_values::update_value_range): Likewise.
18032 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18033 (values::op_with_constant_singleton_va): Likewise.
18034 (vr_values::extract_range_for_var_from_co): Likewise.
18035 (vr_values::extract_range_from_ssa_name): Likewise.
18036 (vr_values::extract_range_from_cond_expr): Likewise.
18037 (vr_values::extract_range_basic): Likewise.
18038 (compare_ranges): Take const value_range *, adjust.
18039 (compare_range_with_value): Likewise.
18040 (vrp_valueize): Adjust.
18041 (vrp_valueize_1): Likewise.
18042 (vr_values::get_vr_for_comparison): Return a const value_range *.
18043 (vr_values::compare_name_with_value): Adjust.
18044 (vr_values::compare_names): Likewise.
18045 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18046 Likewise.
18047 (vr_values::vrp_evaluate_conditional): Likewise.
18048 (find_case_label_ranges): Take a const value_range *.
18049 (vr_values::vrp_visit_switch_stmt): Adjust.
18050 (vr_values::extract_range_from_phi_node): Likewise.
18051 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18052 (vr_values::simplify_abs_using_ranges): Likewise.
18053 (test_for_singularity): Take a const value_range *.
18054 (range_fits_type_p): Likewise.
18055 (vr_values::simplify_cond_using_ranges_1): Adjust.
18056 (vr_values::simplify_cond_using_ranges_2): Likewise.
18057 (vr_values::simplify_switch_using_ranges): Likewise.
18058 (vr_values::simplify_float_conversion_usi): Likewise.
18059 (vr_values::two_valued_val_range_p): Likewise.
18060 * vr-values.h (vr_values::get_value_range): Return a const
18061 value_range *.
18062 (vr_values::set_def_to_varying): New.
18063 (vr_values::get_lattice_entry): New private method.
18064 (vr_values::get_vr_for_comparison): Return a const value_range *.
18065
18066 2019-07-25 Martin Liska <mliska@suse.cz>
18067 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18068
18069 PR c++/23383
18070 * common.opt: Add -fallocation-dce
18071 * gimple.c (gimple_call_operator_delete_p): New.
18072 * gimple.h (gimple_call_operator_delete_p): Likewise.
18073 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18074 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18075 DECL_IS_OPERATOR_DELETE_P.
18076 (mark_all_reaching_defs_necessary_1): Likewise.
18077 (propagate_necessity): Likewise.
18078 (eliminate_unnecessary_stmts): Handle
18079 gimple_call_operator_delete_p.
18080 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18081 Add packing of OPERATOR_DELETE.
18082 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18083 Similarly here.
18084 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18085 (DECL_SET_IS_OPERATOR_DELETE): New.
18086 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18087
18088 2019-07-25 Martin Liska <mliska@suse.cz>
18089
18090 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18091 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18092 * coverage.c (coverage_begin_function): Likewise.
18093 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18094 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18095 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18096 (sem_item::hash_referenced_symbol_properties): Likewise.
18097 * lto-streamer-out.c (hash_tree): Likewise.
18098 * predict.c (expr_expected_value_1): Likewise.
18099 * tree-inline.c (expand_call_inline): Likewise.
18100 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18101 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18102 * tree-core.h (enum function_decl_type): New enum.
18103 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18104 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18105 (set_function_decl_type): Likewise.
18106 (DECL_IS_OPERATOR_NEW_P): New.
18107 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18108 (DECL_LAMBDA_FUNCTION): Likewise.
18109 (DECL_LAMBDA_FUNCTION_P): Likewise.
18110 (DECL_IS_OPERATOR_NEW): Remove.
18111 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18112
18113 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18114
18115 * ipa-profile.c (get_most_common_single_value): Use
18116 get_nth_most_common_value.
18117 * profile.c (sort_hist_value): New function.
18118 (compute_value_histograms): Call sort_hist_value to sort the
18119 values after loading from disk.
18120 * value-prof.c (get_most_common_single_value): Rename to ...
18121 get_nth_most_common_value. Add input params n, return
18122 the n_th value and count.
18123 (gimple_divmod_fixed_value_transform): Use
18124 get_nth_most_common_value.
18125 (gimple_ic_transform): Likewise.
18126 (gimple_stringops_transform): Likewise.
18127 * value-prof.h (get_most_common_single_value): Add input params
18128 n, default to 0.
18129
18130 2019-07-25 Richard Biener <rguenther@suse.de>
18131
18132 PR tree-optimization/91236
18133 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18134 size of CONSTRUCTOR write. Fix buffer size we pass to
18135 native_encode_expr.
18136
18137 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18138
18139 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18140 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18141 r273773.
18142
18143 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18144
18145 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18146 explicitly disabled with --disable-initfini-array.
18147
18148 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18149
18150 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18151 if-exists.
18152
18153 2019-07-24 Martin Sebor <msebor@redhat.com>
18154
18155 PR tree-optimization/91183
18156 PR tree-optimization/86688
18157 * builtins.c (compute_objsize): Handle MEM_REF.
18158 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18159 (get_min_string_length): Remove.
18160 (count_nonzero_bytes): New function.
18161 (handle_char_store): Rename...
18162 (handle_store): to this. Handle multibyte stores via integer types.
18163 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18164 function name.
18165
18166 2019-07-24 Martin Sebor <msebor@redhat.com>
18167
18168 PR driver/80545
18169 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18170 (diagnostic_report_diagnostic): Same.
18171 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18172 (diagnostic_context::lang_mask): New data member.
18173 * ipa-pure-const.c (suggest_attribute): Use
18174 lang_hooks.option_lang_mask ().
18175 * opts-common.c (option_enabled): Handle new argument.
18176 (get_option_state): Pass an additional argument.
18177 * opts.c (print_filtered_help): Print supported languages for
18178 unsupported options. Adjust printing of current state.
18179 * opts.h (option_enabled): Add argument.
18180 * toplev.c (print_switch_values): Use lang_mask.
18181 (general_init): Set global_dc->lang_mask.
18182
18183 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18184
18185 PR bootstrap/87030
18186 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18187
18188 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18189
18190 * cgraphunit.c (symbol_table::compile): Start and stop
18191 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18192 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18193
18194 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18195
18196 * gimplify.c (flag_instrument_functions_exclude_p): Include
18197 namespace/class information in the printable name.
18198 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18199 to tokens entered into the vector.
18200
18201 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18202
18203 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18204 (get_static_chain): Call it instead of build_simple_mem_ref.
18205 (get_frame_field): Likewise.
18206 (get_nonlocal_debug_decl): Likewise.
18207 (convert_nonlocal_reference_op): Likewise.
18208
18209 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18210
18211 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18212 declaration.
18213 (arc_compute_frame_size): Millicode is disabled when compiling
18214 ISR.
18215 (arc_return_address_register): Likewise.
18216 (arc_compute_function_type): Likewise.
18217 (arc_compute_frame_size): Likewise.
18218 (secondary_reload_info): Likewise.
18219 (arc_get_unalign): Likewise.
18220 (arc_can_use_return_insn): Declare.
18221 * config/arc/arc.c (AUX_LP_START): Define
18222 (AUX_LP_END): Likewise.
18223 (arc_frame_info): Update gmask member to 64-bit datum.
18224 (GMASK_LEN): Update.
18225 (arc_compute_function_type): Make it static, move it forward.
18226 (arc_must_save_register): Update, consider the extra regs.
18227 (arc_compute_millicode_save_restore_regs): Update to use the 64
18228 bit gmask.
18229 (arc_compute_frame_size): Likewise.
18230 (arc_enter_leave_p): Likewise.
18231 (arc_save_callee_saves): Likewise.
18232 (arc_restore_callee_saves): Likewise.
18233 (arc_save_callee_enter): Likewise.
18234 (arc_restore_callee_leave): Likewise.
18235 (arc_save_callee_milli): Likewise.
18236 (arc_restore_callee_milli): Likewise.
18237 (arc_expand_prologue): Add new interrupt handling.
18238 (arc_return_address_register): Make it static, move it forward.
18239 (arc_expand_epilogue): Add new interrupt handling.
18240 (arc_get_unalign): Delete.
18241 (arc_epilogue_uses): Make sure we do not remove the extra
18242 saved/restored registers when interrupt.
18243 (arc_can_use_return_insn): New function.
18244 (push_reg): Likewise.
18245 (pop_reg): Likewise.
18246 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18247 procedures.
18248 (arc_restore_callee_saves): Likewise, but restoring.
18249 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18250 (R33_REG): Likewise.
18251 (R34_REG): Likewise.
18252 (R35_REG): Likewise.
18253 (R36_REG): Likewise.
18254 (R37_REG): Likewise.
18255 (R38_REG): Likewise.
18256 (R39_REG): Likewise.
18257 (R45_REG): Likewise.
18258 (R46_REG): Likewise.
18259 (R47_REG): Likewise.
18260 (R48_REG): Likewise.
18261 (R49_REG): Likewise.
18262 (R50_REG): Likewise.
18263 (R51_REG): Likewise.
18264 (R52_REG): Likewise.
18265 (R53_REG): Likewise.
18266 (R54_REG): Likewise.
18267 (R55_REG): Likewise.
18268 (R56_REG): Likewise.
18269 (R58_REG): Likewise.
18270 (type): Add rtie attribute.
18271 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18272 (movsi_insn): Accept moves to lp_count.
18273 (rtie): Update pattern.
18274 (simple_return): Simplify it, don't use this pattern as a return
18275 from an interrupt.
18276 (arc600_rtie): New pattern.
18277 (p_return_i): Clean up.
18278 (return): Likewise.
18279 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18280 family CPUs.
18281 * config/arc/predicates.md (move_src_operand): Consider lp_count
18282 as a register.
18283
18284 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18285
18286 * config/s390/predicates.md (addv_const_operand): New predicate.
18287 * config/s390/s390-modes.def (CCO): New condition code mode.
18288 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18289 (s390_branch_condition_mask): Likewise.
18290 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18291 ("mulv<mode>4"): New expanders.
18292 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18293 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18294 pattern definitions.
18295
18296 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18297
18298 PR middle-end/91166
18299 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18300 (define_predicates): Add entry for uniform_vector_p.
18301 (vec_same_elem_p): New match pattern.
18302
18303 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18304
18305 PR bootstrap/87030
18306 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18307 * config/i386/darwin32-biarch.h .. to here.
18308 * config/i386/darwin64-biarch.h: Adjust comments.
18309 * config/rs6000/darwin32-biarch.h: Likewise.
18310 * config/rs6000/darwin64-biarch.h: Likewise.
18311 * config.gcc: Missed commit from r273746
18312 (*-*-darwin*): Don't include CPU t-darwin here.
18313 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18314 an error message if i686-darwin configuration is attempted for
18315 Darwin >= 18.
18316
18317 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18318
18319 PR bootstrap/87030
18320 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18321 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18322 an error message if i686-darwin configuration is attempted for
18323 Darwin >= 18.
18324 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18325 (powerpc-*-darwin*): Use biarch files where needed.
18326 (powerpc64-*-darwin*): Likewise.
18327 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18328 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18329 arch case.
18330 * config/i386/darwin32-biarch.h: New.
18331 * config/i386/darwin64.h: Rename.
18332 * config/i386/darwin64-biarch.h: To this.
18333 * config/i386/t-darwin: Rename.
18334 * config/i386/t-darwin32-biarch: To this.
18335 * config/i386/t-darwin64: Rename.
18336 * config/i386/t-darwin64-biarch: To this.
18337 * config/rs6000/darwin32-biarch.h: New.
18338 * config/rs6000/darwin64.h: Rename.
18339 * config/rs6000/darwin64-biarch.h: To this.
18340 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18341 arch case.
18342 * config/rs6000/t-darwin8: Rename.
18343 * config/rs6000/t-darwin32-biarch: To this.
18344 * config/rs6000/t-darwin64 Rename.
18345 * config/rs6000/t-darwin64-biarch: To this.
18346
18347 2019-07-23 Martin Sebor <msebor@redhat.com>
18348
18349 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18350
18351 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18352
18353 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18354 (rh): New alias for it.
18355
18356 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18357
18358 * gdbhooks.py: Pass replace=True to
18359 gdb.printing.register_pretty_printer.
18360
18361 2019-07-23 Richard Biener <rguenther@suse.de>
18362
18363 PR debug/91231
18364 * lto-streamer-in.c (input_function): Drop inline-entry markers
18365 that ended up with an unknown location block.
18366
18367 2019-07-23 Richard Biener <rguenther@suse.de>
18368
18369 PR tree-optimization/83518
18370 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18371 init from a constant even when partial defs are already recorded.
18372
18373 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18374
18375 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18376 * config/i386/znver1.md: Enable patterns for znver2 and add store
18377 variants which use extra AGU unit.
18378
18379 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18380
18381 * config/i386/i386-options.c (ix86_option_override_internal): Default
18382 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18383 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18384 for ZNVER2.
18385
18386 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18387
18388 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18389 (znver2_costs): Update 256 bit SSE costs and multiplication.
18390
18391 2019-07-23 Jan Beulich <jbeulich@suse.com>
18392
18393 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18394 Require only AVX512F.
18395 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18396 alternative expanding to vpternlog.
18397
18398 2019-07-23 Martin Liska <mliska@suse.cz>
18399
18400 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18401 to -flto in dwarf producer string.
18402
18403 2019-07-23 Richard Biener <rguenther@suse.de>
18404
18405 * tree-cfg.c (label_for_bb): Remove global var.
18406 (main_block_label): Take label_for_bb as argument.
18407 (cleanup_dead_labels_eh): Likewise, adjust.
18408 (cleanup_dead_labels): Adjust.
18409
18410 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18411
18412 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18413 Configurations): Add documentation for __builtin_mtfsf.
18414
18415 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18416
18417 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18418 * config/riscv/riscv.c (riscv_constant_alignment): Use
18419 riscv_align_data_type.
18420 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18421 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18422 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18423 * config/riscv/riscv.opt (malign-data): New.
18424 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18425
18426 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18427
18428 * cgraph.c (dump_graphviz): New function.
18429 * cgraph.h (dump_graphviz): New function.
18430 * symtab.c (dump_graphviz): New function.
18431
18432 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18433
18434 * config/aarch64/aarch64-simd.md
18435 (*aarch64_simd_sra<mode>): New.
18436 * config/aarch64/iterators.md
18437 (SHIFTRT): New iterator.
18438 (sra_op): New attribute.
18439
18440 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18441
18442 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18443 callee-saved regs R4->R10 in an interrupt function that calls another
18444 function.
18445
18446 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18447
18448 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18449 (_mm_blendv_epi8): New.
18450
18451 2019-07-22 Richard Biener <rguenther@suse.de>
18452
18453 PR tree-optimization/91221
18454 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18455 restrict partial-def handling of empty constructors and
18456 memset to refs with known offset.
18457
18458 2019-07-22 Jan Beulich <jbeulich@suse.com>
18459
18460 * config/i386/sse.md (ternlogsuffix): New.
18461 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18462 AVX512F is in use.
18463 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18464
18465 2019-07-22 Martin Liska <mliska@suse.cz>
18466
18467 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18468 comment.
18469 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18470
18471 2019-07-22 Martin Liska <mliska@suse.cz>
18472
18473 * lto-section-in.c (lto_get_section_data):
18474 Use new function get_compression.
18475 * lto-streamer-out.c (produce_lto_section): Use
18476 set_compression to encode compression algorithm.
18477 * lto-streamer.h (struct lto_section): Do not
18478 use bitfields in the format.
18479
18480 2019-07-22 Martin Liska <mliska@suse.cz>
18481
18482 PR driver/91172
18483 * opts-common.c (decode_cmdline_option): Decode
18484 argument of -Werror and check it for a wrong language.
18485 * opts-global.c (complain_wrong_lang): Remove such case.
18486
18487 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18488
18489 * config/arc/arc.c (prepare_move_operands): Always use an
18490 intermediate register when storing a TLS symbols.
18491
18492 2019-07-22 Stafford Horne <shorne@gmail.com>
18493
18494 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18495 force_reg.
18496
18497 2019-07-22 Stafford Horne <shorne@gmail.com>
18498
18499 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18500 and munordered-float validations.
18501 * config/or1k/constraints.md (d): New register constraint.
18502 * config/or1k/predicates.md (fp_comparison_operator): New.
18503 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18504 operands.
18505 (or1k_expand_compare): Normalize unordered comparisons.
18506 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18507 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18508 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18509 * config/or1k/or1k.md (type): Add fpu.
18510 (fpu): New instruction reservation.
18511 (F, f, fr, fi, FI, FOP, fop): New.
18512 (<fop><F:mode>3): New ALU instruction definition.
18513 (float<fi><F:mode>2): New conversion instruction definition.
18514 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18515 (fpcmpcc): New code iterator.
18516 (*sf_fp_insn): New instruction definition.
18517 (cstore<F:mode>4): New expand definition.
18518 (cbranch<F:mode>4): New expand definition.
18519 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18520 munordered-float): New options.
18521 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18522 munordered-float.
18523
18524 2019-07-22 Stafford Horne <shorne@gmail.com>
18525
18526 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18527 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18528 documenation to be more clear.
18529 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18530 more clear.
18531 * config/or1k/or1k.opt (mrori): New option.
18532 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18533 msfimm, mshftimm): Rewrite documentation to be more clear.
18534 * config/or1k/or1k.md (insn_support): Add ror and rori.
18535 (enabled): Add conditions for ror and rori.
18536 (rotrsi3): Replace condition for shftimm with ror and rori.
18537
18538 2019-07-22 Stafford Horne <shorne@gmail.com>
18539
18540 PR target/90363
18541 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18542 (extend<mode>si2): Update predicate.
18543 * config/or1k/predicates.md (volatile_mem_operand): New.
18544 (reg_or_mem_operand): New.
18545
18546 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18547
18548 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18549 * config/rs6000/rs6000-call.c: ... to here.
18550
18551 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18552
18553 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18554 memory.
18555
18556 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18557
18558 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18559
18560 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18561
18562 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18563
18564 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18565
18566 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18567 (any_memory_operand): New predicate.
18568 (reg_or_mem_operand): Use it.
18569
18570 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18571
18572 PR target/91204
18573 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18574
18575 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18576
18577 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18578 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18579
18580 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18581
18582 * tree.def (OMP_LOOP): New tree code.
18583 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18584 (enum omp_clause_bind_kind): New enum.
18585 (struct tree_omp_clause): Add subcode.bind_kind.
18586 * tree.h (OMP_LOOP_CHECK): Rename to ...
18587 (OMP_LOOPING_CHECK): ... this.
18588 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18589 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18590 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18591 (OMP_CLAUSE_BIND_KIND): Define.
18592 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18593 bind clause entries.
18594 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18595 * tree-pretty-print.c (dump_omp_clause): Likewise.
18596 (dump_generic_node): Handle OMP_LOOP.
18597 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18598 (in_omp_construct): New variable.
18599 (is_gimple_stmt): Handle OMP_LOOP.
18600 (gimplify_scan_omp_clauses): For lastprivate don't set
18601 check_non_private if code == OMP_LOOP. For reduction clause
18602 on OMP_LOOP combined with parallel or teams propagate as shared
18603 on the combined construct. Handle OMP_CLAUSE_BIND.
18604 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18605 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18606 for constructs from a loop construct to gimplify_scan_omp_clauses.
18607 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18608 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18609 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18610 to match the implicit ORT_TARGET construct around whole body.
18611 Temporarily clear in_omp_construct when processing body.
18612 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18613 etc. temporarily set in_omp_construct when processing body.
18614 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18615 * omp-low.c (struct omp_context): Add loop_p.
18616 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18617 in that the original var might be private.
18618 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18619 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18620 addition of loop construct.
18621 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18622
18623 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18624 lastprivate non-addressable iterator of a collapse(1) simd.
18625
18626 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18627
18628 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18629 as in rs6000.c.
18630
18631 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18632
18633 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18634 refer to default conditions. Warn for the 'y' spec which is ignored
18635 by current linkers.
18636
18637 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18638
18639 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18640 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18641 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18642 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18643 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18644 init_cumulative_args, rs6000_promote_function_mode,
18645 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18646 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18647 rs6000_function_arg_boundary, rs6000_parm_offset,
18648 rs6000_parm_start, rs6000_arg_size,
18649 rs6000_darwin64_record_arg_advance_flush,
18650 rs6000_darwin64_record_arg_advance_recurse,
18651 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18652 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18653 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18654 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18655 rs6000_finish_function_arg, rs6000_function_arg,
18656 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18657 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18658 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18659 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18660 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18661 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18662 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18663 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18664 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18665 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18666 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18667 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18668 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18669 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18670 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18671 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18672 get_element_number, altivec_expand_vec_set_builtin,
18673 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18674 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18675 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18676 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18677 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18678 rs6000_expand_builtin, rs6000_vector_type,
18679 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18680 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18681 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18682 to rs6000-call.c.
18683 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18684 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18685 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18686 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18687 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18688 init_cumulative_args, rs6000_promote_function_mode,
18689 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18690 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18691 rs6000_function_arg_boundary, rs6000_parm_offset,
18692 rs6000_parm_start, rs6000_arg_size,
18693 rs6000_darwin64_record_arg_advance_flush,
18694 rs6000_darwin64_record_arg_advance_recurse,
18695 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18696 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18697 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18698 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18699 rs6000_finish_function_arg, rs6000_function_arg,
18700 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18701 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18702 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18703 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18704 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18705 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18706 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18707 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18708 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18709 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18710 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18711 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18712 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18713 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18714 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18715 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18716 get_element_number, altivec_expand_vec_set_builtin,
18717 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18718 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18719 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18720 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18721 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18722 rs6000_expand_builtin, rs6000_vector_type,
18723 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18724 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18725 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18726 to here from rs6000.c.
18727 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18728 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18729 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18730 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18731 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18732 rs6000_return_in_memory, rs6000_return_in_msb,
18733 rs6000_pass_by_reference, setup_incoming_varargs,
18734 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18735 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18736 rs6000_function_arg_padding, rs6000_function_arg,
18737 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18738 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18739 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18740 rs6000_passes_long_double, rs6000_passes_vector,
18741 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18742 altivec_builtin_mask_for_load) Add declarations.
18743 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18744 * config/config.gcc: Add new source file rs6000-call.c to garbage
18745 collector and extra_objs.
18746
18747 2019-07-19 Jeff Law <law@redhat.com>
18748
18749 PR tree-optimization/86061
18750 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18751 strncpy. Drop some trivial dead code.
18752 (maybe_trim_memstar_call): Handle strncpy.
18753
18754 2019-07-19 Richard Biener <rguenther@suse.de>
18755
18756 PR tree-optimization/91211
18757 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18758 memset encoding size.
18759
18760 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18761
18762 PR target/91204
18763 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18764
18765 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18766
18767 PR ipa/91194
18768 * ipa-inline.c (recursive_inlining): Fix limits check.
18769
18770 2019-07-19 Richard Biener <rguenther@suse.de>
18771
18772 PR tree-optimization/91200
18773 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18774 no PHI nodes in middle-bb.
18775
18776 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18777
18778 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18779 to +sve-bitperm.
18780 * config/aarch64/aarch64-option-extensions.def: Likewise.
18781
18782 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18783
18784 PR middle-end/91190
18785 * function.c (insert_temp_slot_address): Store into the hash table
18786 a copy of address to avoid RTL sharing issues.
18787
18788 2019-07-19 Richard Biener <rguenther@suse.de>
18789
18790 PR tree-optimization/91207
18791 Revert
18792 2019-07-17 Richard Biener <rguenther@suse.de>
18793
18794 PR tree-optimization/91178
18795 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18796 loads with a gap larger than the vector size always use
18797 VMAT_STRIDED_SLP.
18798 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18799 avoid loading vectors that are only contained in the gap
18800 and thus are not needed.
18801
18802 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18803
18804 * config/i386/i386.md (*addqi_2_slp): Remove.
18805 (*<code>qi_2_slp): Ditto.
18806
18807 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18808
18809 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18810 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18811 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18812 Rename function from rs6000_prefixed_address.
18813 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18814 TARGET_HAS_TOC.
18815 (TARGET_TOC): Likewise.
18816 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18817 rs6000.h.
18818 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18819 TARGET_HAS_TOC.
18820 (TARGET_TOC): Likewise.
18821 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18822 rs6000.h.
18823 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18824 TARGET_HAS_TOC.
18825 (TARGET_TOC): Likewise.
18826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18827 check to require -mcmodel=medium for pc-relative addressing.
18828 (create_TOC_reference): Add assertion for TARGET_TOC.
18829 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18830 TARGET_NO_TOC.
18831 (rs6000_emit_move): Likewise.
18832 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18833 to 'TOC_alias_set'.
18834 (get_TOC_alias_set): Likewise.
18835 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18836 TARGET_NO_TOC.
18837 (rs6000_can_eliminate): Likewise.
18838 (rs6000_prefixed_address_mode_p): Rename function from
18839 rs6000_prefixed_address.
18840 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18841 TARGET_HAS_TOC and not pc-relative.
18842 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18843 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18844 TARGET_HAS_TOC.
18845 (TARGET_TOC): Likewise.
18846 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18847 rs6000.h.
18848
18849 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18850
18851 PR target/91188
18852 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18853 for operand 0. Do not use (match_dup) to match operand 1 with
18854 operand 0. Add check in insn constraint that either input operand
18855 matches operand 0. Use SWI12 mode iterator to also handle
18856 HImode operands.
18857 (*and<mode>_1_slp): Ditto.
18858 (*<code>qi_1_slp): Ditto.
18859 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18860 Do not use (match_dup) to match operand 1 with operand 0. Add
18861 check in insn constraint that operand 1 matches operand 0.
18862 Use SWI12 mode iterator to also handle HImode operands.
18863 (*ashl<mode>3_1_slp): Ditto.
18864 (*<shift_insn><mode>3_1_slp): Ditto.
18865 (*<rotate_insn><mode>3_1_slp): Ditto.
18866
18867 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18868
18869 * config/arm/arm-builtins.c
18870 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18871 (arm_expand_unop_builtin): Likewise.
18872 * config/arm/crypto.md
18873 (crypto_sha1h): Convert from define_insn to define_expand.
18874 (crypto_<crypto_pattern>): Likewise.
18875 (crypto_sha1h_lb): New define_insn.
18876 (crypto_<crypto_pattern>_lb): Likewise.
18877
18878 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18879
18880 PR target/90317
18881 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18882 (vsha1cq_u32): Likewise.
18883 (vsha1pq_u32): Likewise.
18884 (vsha1mq_u32): Likewise.
18885 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18886 vec select.
18887 (crypto_sha1c): Correct vec select.
18888 (crypto_sha1m): Likewise.
18889 (crypto_sha1p): Likewise.
18890
18891 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18892
18893 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18894 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18895 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18896 (subdi_zesidi_zesidi): Likewise.
18897 (negdi2_compare, negdi2_insn): Likewise.
18898 (negdi_extensidi): Likewise.
18899 (negdi_zero_extendsidi): Likewise.
18900 (arm_cmpdi_insn): Likewise.
18901 (subsi3_carryin): Use arm_borrow_operation.
18902 (subsi3_carryin_const): Likewise.
18903 (subsi3_carryin_const0): Likewise.
18904 (subsi3_carryin_compare): Likewise.
18905 (subsi3_carryin_compare_const): Likewise.
18906 (subsi3_carryin_compare_const0): Likewise.
18907 (subsi3_carryin_shift): Likewise.
18908 (rsbsi3_carryin_shift): Likewise.
18909 (negsi2_carryin_compare): Likewise.
18910
18911 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18912
18913 PR tree-optimization/91137
18914 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18915 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18916 Init, use and fini the above new field.
18917 (determine_base_object_1): New function.
18918 (determine_base_object): Reimplement using walk_tree.
18919
18920 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18921
18922 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18923 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18924 CLEANUP_FORCE_FAST_DCE is set.
18925 * ifcvt.c (rest_of_handle_if_conversion): Pass
18926 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18927 if-conversion succeeded.
18928
18929 2019-07-18 Richard Biener <rguenther@suse.de>
18930
18931 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18932 branches to make code less indented.
18933
18934 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18935
18936 PR middle-end/81824
18937 * attribs.c (decls_mismatched_attributes): Simplify the logic
18938 that avoids duplicates and false positives.
18939
18940 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18941
18942 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18943 data into data section when generating PIC code.
18944 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18945 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18946 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18947 return 2 for SOM and 0 for other targets.
18948
18949 2019-07-17 Jeff Law <law@redhat.com>
18950
18951 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18952 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18953 avoid unexpected switch statement fallthru.
18954
18955 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18956
18957 * config/i386/i386.md (*add<dwi>3_doubleword):
18958 Remove redundant constraints.
18959 (*add<mode>_1): Ditto.
18960 (*addhi_1): Ditto.
18961 (*addqi_1): Ditto.
18962 (*addqi_1_slp): Ditto.
18963 (*add<mode>_2): Ditto.
18964 (*addv<mode>4): Ditto.
18965 (*sub<dwi>3_doubleword): Ditto.
18966 (*sub<mode>_1): Ditto.
18967 (*subqi_1_slp): Ditto.
18968 (*sub<mode>_2): Ditto.
18969 (*subv<mode>4): Ditto.
18970 (*sub<mode>_3): Ditto.
18971 (@add<mode>3_carry): Ditto.
18972 (@sub<mode>3_carry): Ditto.
18973 (*add<mode>3_cc_overflow_1): Ditto.
18974 (*add<mode>3_zext_cc_overflow_2): Ditto.
18975 (*anddi_1): Ditto.
18976 (*and<mode>_1): Ditto.
18977 (*andqi_1): Ditto.
18978 (*andqi_1_slp): Ditto.
18979 (*anddi_2): Ditto.
18980 (*andqi_2_maybe_si): Ditto.
18981 (*and<mode>_2): Ditto.
18982 (*andqi_2_slp): Ditto.
18983 (*<code><mode>_1): Ditto.
18984 (*<code>qi_1): Ditto.
18985 (*<code>qi_1_slp): Ditto.
18986 (*<code><mode>_2): Ditto.
18987 (*<code>qi_2_slp): Ditto.
18988
18989 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18990
18991 * alias.c (record_component_aliases): Do not simplify pointed-to
18992 types of ODR types.
18993
18994 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18995
18996 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18997 partial reg stall on alternative 2.
18998
18999 2019-07-17 Richard Biener <rguenther@suse.de>
19000
19001 PR tree-optimization/91178
19002 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19003 lower SSA names to avoid quadratic behavior in the common case.
19004 * tree-data-ref.c (split_constant_offset): Add limit argument
19005 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19006 (split_constant_offset_1): Add limit argument and use it to
19007 limit SSA def walking. Optimize the common plus/minus case.
19008
19009 2019-07-17 Richard Biener <rguenther@suse.de>
19010
19011 PR tree-optimization/91178
19012 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19013 loads with a gap larger than the vector size always use
19014 VMAT_STRIDED_SLP.
19015 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19016 avoid loading vectors that are only contained in the gap
19017 and thus are not needed.
19018
19019 2019-07-17 Richard Biener <rguenther@suse.de>
19020
19021 PR tree-optimization/91180
19022 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19023 computation for memset partial defs.
19024
19025 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19026
19027 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19028 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19029 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19030 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19031 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19032 * omp-grid.c (grid_process_grid_body,
19033 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19034 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19035 == GF_OMP_FOR_KIND_SIMD.
19036 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19037 check_omp_nesting_restrictions, scan_omp_1_stmt,
19038 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19039 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19040 omp_find_scan): Likewise.
19041 * omp-expand.c (expand_omp_for): Likewise.
19042 * omp-general.c (omp_extract_for_data): Likewise.
19043
19044 PR tree-optimization/91157
19045 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19046 a vector boolean with scalar mode.
19047 (expand_vector_condition): Handle first operand being a vector boolean
19048 with scalar mode.
19049 (expand_vector_operations_1): For comparisons, don't bail out early
19050 if the return type is vector boolean with scalar mode, but comparison
19051 operand type is not.
19052
19053 2019-07-17 Richard Biener <rguenther@suse.de>
19054
19055 PR tree-optimization/91181
19056 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19057 IFN_LOADs as calls.
19058
19059 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19060
19061 * config/i386/i386.md (*testdi_1): Match CCZmode for
19062 constants that might have the SImode sign bit set.
19063 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19064 Use correct constraints for pentium pairing.
19065 (*test<mode>_1): Ditto.
19066
19067 2019-07-16 Jeff Law <law@redhat.com>
19068
19069 PR rtl-optimization/91173
19070 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19071 SSA_NAME with a constant value, fold its value into the offset
19072 and clear the base before calling gen_addr_rtx.
19073
19074 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19075
19076 PR rtl-optimization/91164
19077 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19078 invalidate dominance info.
19079
19080 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19081
19082 * read-md.h (md_reader::record_potential_iterator_use): Add a
19083 file_location parameter.
19084 * read-rtl.c (attribute_use::loc): New field.
19085 (map_attr_string): Take a file_location parameter. Report cases
19086 in which attributes map to multiple distinct values.
19087 (apply_attribute_uses): Update call accordingly.
19088 (md_reader::handle_overloaded_name): Likewise.
19089 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19090 nonnull strings.
19091 (record_attribute_use): Take a file_location parameter.
19092 Initialize attribute_use::loc.
19093 (md_reader::record_potential_iterator_use): Take a file_location
19094 parameter. Update call to record_attribute_use.
19095 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19096 (rtx_reader::read_rtx_code): Likewise.
19097 (rtx_reader::read_rtx_operand): Likewise. Record a location
19098 for implicitly-expanded empty strings.
19099
19100 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19101
19102 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19103 Use file_location instead of separate fields.
19104 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19105 separate filename and line number.
19106 * read-md.c (ptr_loc): As above.
19107 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19108 (md_reader::fprint_md_ptr_loc): Likewise.
19109 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19110 instead of a separate filename and line number.
19111 (md_reader::read_string): Update call accordingly.
19112
19113 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19114
19115 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19116 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19117 leaving the choice between SFDF and P implicit.
19118 (*mov<mode>_update2): Likewise.
19119 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19120 rather than leaving the choice betweem IBM128 and GPR implicit.
19121 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19122 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19123 QHSI implicit.
19124 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19125 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19126 * config/rs6000/vsx.md
19127 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19128 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19129 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19130 and VSX_EXTRACT_I implicit.
19131
19132 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19133
19134 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19135 Explicitly use <MOVEP1:MODE> for the mode attribute.
19136
19137 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19138
19139 PR bootstrap/91176
19140 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19141
19142 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19143
19144 PR target/91050
19145 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19146 .machine directive.
19147
19148 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19149
19150 * config/i386/i386.md (@test<mode>_ccno_1):
19151 Rename from test<mode>_ccno_1.
19152 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19153 (*testqi_1_maybe_si): Remove modrm attribute.
19154 (*test<mode>_1): Ditto.
19155 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19156 gen_test_ccno_1 and gen_extend_insn.
19157
19158 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19159
19160 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19161 to 0.
19162
19163 2019-07-15 Richard Biener <rguenther@suse.de>
19164
19165 PR middle-end/91162
19166 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19167 node make sure to replace all uses with something valid.
19168
19169 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19170
19171 PR tree-optimization/88497
19172 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19173 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19174 function undistribute_bitref_for_vector.
19175 (undistribute_bitref_for_vector): New function.
19176 (cleanup_vinfo_map): Likewise.
19177 (sort_by_mach_mode): Likewise.
19178
19179 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19180
19181 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19182 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19183 and testdi_ccno_1 using SWI48 mode attribute.
19184 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19185 x86_64_szext_general_operand.
19186 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19187 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19188 instead of genera_operand mode attribute.
19189
19190 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19191
19192 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19193 fopen and fclose to their respective types.
19194 (DotFn.invoke): Ditto.
19195
19196 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19197
19198 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19199 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19200 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19201 (array_index_predicate): Remove.
19202 (analyze_function_body): Account cost for variable ofsetted array
19203 indexing.
19204 (estimate_node_size_and_time): Do not compute array index hint.
19205 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19206 (inline_read_section): Do not read array index hint.
19207 (ipa_fn_summary_write): Do not write array index hint.
19208 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19209 * ipa-cp.c (hint_time_bonus): Remove.
19210 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19211 (ipa_fnsummary): Remove array_index.
19212 * ipa-inline.c (want_inline_small_function_p): Do not use
19213 array_index.
19214 (edge_badness): Likewise.
19215 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19216
19217 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19218
19219 PR target/91148
19220 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19221 superfluous "builtin function" phrasing.
19222
19223 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19224
19225 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19226 Break out from ...
19227 (aliasing_component_refs_walk): Break out from ...
19228 (aliasing_component_refs_p): ... here.
19229
19230 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19231
19232 PR target/91148
19233 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19234 "builtin function" phrasing.
19235
19236 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19237
19238 PR target/90723
19239 * recog.h (temporary_volatile_ok): New class.
19240 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19241 volatile_ok temporarily to true using temporary_volatile_ok.
19242 * expr.c (emit_block_move_via_cpymem): Likewise.
19243 * optabs.c (maybe_legitimize_operand): Likewise.
19244
19245 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19246
19247 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19248 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19249 uses inside of order(concurrent) constructs.
19250 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19251 OMP_CLAUSE_ORDER is seen.
19252 * omp-low.c (struct omp_context): Add order_concurrent member.
19253 (scan_sharing_clauses): Set ctx->order_concurrent if
19254 OMP_CLAUSE_ORDER is seen.
19255 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19256 of simd order(concurrent). Diagnose constructs not allowed inside of
19257 for order(concurrent).
19258 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19259 complaining about static double setjmp (double); or class static
19260 methods or non-global namespace setjmps.
19261 (omp_runtime_api_call): New function.
19262 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19263 order(concurrent) loops.
19264
19265 2019-07-12 Martin Sebor <msebor@redhat.com>
19266
19267 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19268 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19269 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19270 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19271
19272 2019-07-12 Jan Hubicka <jh@suse.cz>
19273
19274 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19275 (indirect_refs_may_alias_p): ... here.
19276 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19277 mem refs in the access paths.
19278
19279 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19280
19281 PR tree-optimization/89430
19282 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19283 store elimination for local variable without address escape.
19284
19285 2019-07-12 Jeff Law <law@redhat.com>
19286
19287 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19288 for the ".far" section.
19289
19290 2019-07-12 Richard Biener <rguenther@suse.de>
19291
19292 PR tree-optimization/91145
19293 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19294 chain check.
19295
19296 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19297
19298 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19299 rather than this_state as the lowering context for the ELSE
19300 seq in a GIMPLE_EH_ELSE.
19301
19302 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19303
19304 * vector-builder.h (vector_builder::elt): Allow already-supplied
19305 elements to be read back before building is complete.
19306
19307 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19308
19309 PR rtl-optimization/91136
19310 * df-core.c (ACCESSING REFS): Fix typos in comment.
19311 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19312 the beginning of the block to the initial set of live registers.
19313
19314 2019-07-12 Richard Biener <rguenther@suse.de>
19315
19316 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19317 * fold-const.c (get_array_ctor_element_at_index): Add
19318 ctor_idx output parameter informing the caller where in
19319 the constructor the element was (not) found. Add early exit
19320 for when the ctor is sorted.
19321 * gimple-fold.c (fold_array_ctor_reference): Support constant
19322 folding across multiple array elements.
19323
19324 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19325
19326 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19327 doesn't have location, set the current location to the function's end.
19328
19329 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19330
19331 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19332 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19333 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19334 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19335 * config/aarch64/aarch64-simd.md
19336 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19337 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19338 * config/aarch64/aarch64-sve.md
19339 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19340 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19341
19342 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19343
19344 * doc/md.texi: Document that @ patterns can have different
19345 numbers of operands.
19346 * genemit.c (handle_overloaded_gen): Handle this case.
19347 * genopinit.c (handle_overloaded_gen): Likewise.
19348 * gensupport.c (replace_operands_with_dups): Iterate over
19349 the new rtx's format rather than the old one's.
19350
19351 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19352
19353 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19354 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19355 order clause entries.
19356 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19357 * tree-pretty-print.c (dump_omp_clause): Likewise.
19358 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19359 Likewise.
19360 * omp-low.c (scan_sharing_clauses): Likewise.
19361 * tree-nested.c (convert_nonlocal_omp_clauses,
19362 convert_local_omp_clauses): Likewise.
19363
19364 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19365
19366 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19367 fallthrough target of current basic block isn't the placed
19368 right next.
19369
19370 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19371
19372 PR target/90980
19373 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19374 (_mm512_storeu_epi64): Likewise.
19375 (_mm512_loadu_epi32): Likewise.
19376 (_mm512_storeu_epi32): Likewise.
19377 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19378 (_mm_storeu_epi64): Likewise.
19379 (_mm256_storeu_epi32): Likewise.
19380 (_mm_storeu_epi32): Likewise.
19381
19382 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19383
19384 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19385
19386 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19387
19388 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19389 Handle Modula-2.
19390
19391 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19392
19393 PR target/91124
19394 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19395 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19396 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19397 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19398 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19399 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19400 define_insns.
19401 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19402 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19403 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19404 define_insns.
19405 (sse2_cvttpd2dq<mask_name>): Change into ...
19406 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19407 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19408 (*sse2_cvtpd2dq<mask_name>): Change into ...
19409 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19410 Add "C" constraint to const0_operand.
19411 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19412 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19413 changes.
19414
19415 PR target/91124
19416 * config/i386/i386-builtin-types.def
19417 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19418 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19419 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19420 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19421 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19422 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19423 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19424 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19425 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19426 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19427 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19428 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19429 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19430 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19431 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19432 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19433 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19434 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19435 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19436 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19437 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19438 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19439 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19440 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19441 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19442 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19443 __builtin_ia32_vpdpbusd_v4si_maskz,
19444 __builtin_ia32_vpdpbusds_v16si_mask,
19445 __builtin_ia32_vpdpbusds_v16si_maskz,
19446 __builtin_ia32_vpdpbusds_v8si_mask,
19447 __builtin_ia32_vpdpbusds_v8si_maskz,
19448 __builtin_ia32_vpdpbusds_v4si_mask,
19449 __builtin_ia32_vpdpbusds_v4si_maskz,
19450 __builtin_ia32_vpdpwssd_v16si_mask,
19451 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19452 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19453 __builtin_ia32_vpdpwssd_v4si_maskz,
19454 __builtin_ia32_vpdpwssds_v16si_mask,
19455 __builtin_ia32_vpdpwssds_v16si_maskz,
19456 __builtin_ia32_vpdpwssds_v8si_mask,
19457 __builtin_ia32_vpdpwssds_v8si_maskz,
19458 __builtin_ia32_vpdpwssds_v4si_mask,
19459 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19460 suffixed types rather than *_INT.
19461 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19462 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19463 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19464 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19465 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19466 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19467
19468 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19469
19470 * tree-vrp.c (intersect_ranges): If we know the intersection is
19471 empty, there is no need to conservatively add anything else to
19472 the set.
19473
19474 2019-07-11 Richard Biener <rguenther@suse.de>
19475
19476 PR middle-end/91131
19477 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19478 when the object is volatile and we have not cleared it even though
19479 there are no nonzero elements.
19480
19481 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19482
19483 * config/rs6000/predicates.md (cint34_operand): Update
19484 SIGNED_34BIT_OFFSET_P call.
19485 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19486 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19487 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19488 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19489 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19490 argument.
19491 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19492 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19493 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19494 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19495 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19496
19497 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19498
19499 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19500 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19501 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19502 (DEF_MIN_OSX_VERSION): New.
19503
19504 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19505
19506 * fold-const.c (fold_relational_const): Fix folding of
19507 vector-to-scalar NE_EXPRs.
19508 (test_vector_folding): Add more tests.
19509
19510 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19511
19512 PR target/91060
19513 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19514 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19515 (vec_setv2di_internal): Reexpress as...
19516 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19517 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19518 rather than gen_neon_vset_lane<mode>.
19519
19520 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19521
19522 PR target/91102
19523 * lra-constraints.c (process_alt_operands): Don't match user
19524 defined regs only if they are early clobbers.
19525
19526 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19527
19528 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19529
19530 2019-07-10 Richard Biener <rguenther@suse.de>
19531
19532 PR tree-optimization/91126
19533 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19534 native encoding offset for BYTES_BIG_ENDIAN.
19535 (vn_reference_lookup_3): Likewise.
19536
19537 2019-07-10 Richard Biener <rguenther@suse.de>
19538
19539 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19540 LHS whenever possible.
19541
19542 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19543
19544 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19545 from ...; work also on duplicated types.
19546 (nonoverlapping_component_refs_since_match): ... here
19547 (ncr_type_uid): Break out from ...
19548 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19549 available.
19550 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19551 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19552
19553 2019-07-09 Martin Sebor <msebor@redhat.com>
19554
19555 PR tree-optimization/90989
19556 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19557 optimization to just single character stores.
19558
19559 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19560
19561 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19562 Swap operands only once.
19563
19564 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19565
19566 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19567 for both call instructions.
19568
19569 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19570
19571 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19572 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19573
19574 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19575
19576 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19577 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19578 function from rs6000-logue.c back to rs6000.c.
19579 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19580
19581 2019-07-09 Martin Sebor <msebor@redhat.com>
19582
19583 PR c++/61339
19584 * auto-profile.c: Change class-key of PODs to struct and others
19585 to class.
19586 * basic-block.h: Same.
19587 * bitmap.c (bitmap_alloc): Same.
19588 * bitmap.h: Same.
19589 * builtins.c (expand_builtin_prefetch): Same.
19590 (expand_builtin_interclass_mathfn): Same.
19591 (expand_builtin_strlen): Same.
19592 (expand_builtin_mempcpy_args): Same.
19593 (expand_cmpstr): Same.
19594 (expand_builtin___clear_cache): Same.
19595 (expand_ifn_atomic_bit_test_and): Same.
19596 (expand_builtin_thread_pointer): Same.
19597 (expand_builtin_set_thread_pointer): Same.
19598 * caller-save.c (setup_save_areas): Same.
19599 (replace_reg_with_saved_mem): Same.
19600 (insert_restore): Same.
19601 (insert_save): Same.
19602 (add_used_regs): Same.
19603 * cfg.c (get_bb_copy): Same.
19604 (set_loop_copy): Same.
19605 * cfg.h: Same.
19606 * cfganal.h: Same.
19607 * cfgexpand.c (alloc_stack_frame_space): Same.
19608 (add_stack_var): Same.
19609 (add_stack_var_conflict): Same.
19610 (add_scope_conflicts_1): Same.
19611 (update_alias_info_with_stack_vars): Same.
19612 (expand_used_vars): Same.
19613 * cfghooks.c (redirect_edge_and_branch_force): Same.
19614 (delete_basic_block): Same.
19615 (split_edge): Same.
19616 (make_forwarder_block): Same.
19617 (force_nonfallthru): Same.
19618 (duplicate_block): Same.
19619 (lv_flush_pending_stmts): Same.
19620 * cfghooks.h: Same.
19621 * cfgloop.c (flow_loops_cfg_dump): Same.
19622 (flow_loop_nested_p): Same.
19623 (superloop_at_depth): Same.
19624 (get_loop_latch_edges): Same.
19625 (flow_loop_dump): Same.
19626 (flow_loops_dump): Same.
19627 (flow_loops_free): Same.
19628 (flow_loop_nodes_find): Same.
19629 (establish_preds): Same.
19630 (flow_loop_tree_node_add): Same.
19631 (flow_loop_tree_node_remove): Same.
19632 (flow_loops_find): Same.
19633 (find_subloop_latch_edge_by_profile): Same.
19634 (find_subloop_latch_edge_by_ivs): Same.
19635 (mfb_redirect_edges_in_set): Same.
19636 (form_subloop): Same.
19637 (merge_latch_edges): Same.
19638 (disambiguate_multiple_latches): Same.
19639 (disambiguate_loops_with_multiple_latches): Same.
19640 (flow_bb_inside_loop_p): Same.
19641 (glb_enum_p): Same.
19642 (get_loop_body_with_size): Same.
19643 (get_loop_body): Same.
19644 (fill_sons_in_loop): Same.
19645 (get_loop_body_in_dom_order): Same.
19646 (get_loop_body_in_custom_order): Same.
19647 (release_recorded_exits): Same.
19648 (get_loop_exit_edges): Same.
19649 (num_loop_branches): Same.
19650 (remove_bb_from_loops): Same.
19651 (find_common_loop): Same.
19652 (delete_loop): Same.
19653 (cancel_loop): Same.
19654 (verify_loop_structure): Same.
19655 (loop_preheader_edge): Same.
19656 (loop_exit_edge_p): Same.
19657 (single_exit): Same.
19658 (loop_exits_to_bb_p): Same.
19659 (loop_exits_from_bb_p): Same.
19660 (get_loop_location): Same.
19661 (record_niter_bound): Same.
19662 (get_estimated_loop_iterations_int): Same.
19663 (max_stmt_executions_int): Same.
19664 (likely_max_stmt_executions_int): Same.
19665 (get_estimated_loop_iterations): Same.
19666 (get_max_loop_iterations): Same.
19667 (get_max_loop_iterations_int): Same.
19668 (get_likely_max_loop_iterations): Same.
19669 * cfgloop.h (simple_loop_desc): Same.
19670 (get_loop): Same.
19671 (loop_depth): Same.
19672 (loop_outer): Same.
19673 (loop_iterator::next): Same.
19674 (loop_outermost): Same.
19675 * cfgloopanal.c (mark_irreducible_loops): Same.
19676 (num_loop_insns): Same.
19677 (average_num_loop_insns): Same.
19678 (expected_loop_iterations_unbounded): Same.
19679 (expected_loop_iterations): Same.
19680 (mark_loop_exit_edges): Same.
19681 (single_likely_exit): Same.
19682 * cfgloopmanip.c (fix_bb_placement): Same.
19683 (fix_bb_placements): Same.
19684 (remove_path): Same.
19685 (place_new_loop): Same.
19686 (add_loop): Same.
19687 (scale_loop_frequencies): Same.
19688 (scale_loop_profile): Same.
19689 (create_empty_if_region_on_edge): Same.
19690 (create_empty_loop_on_edge): Same.
19691 (loopify): Same.
19692 (unloop): Same.
19693 (fix_loop_placements): Same.
19694 (copy_loop_info): Same.
19695 (duplicate_loop): Same.
19696 (duplicate_subloops): Same.
19697 (loop_redirect_edge): Same.
19698 (can_duplicate_loop_p): Same.
19699 (duplicate_loop_to_header_edge): Same.
19700 (mfb_keep_just): Same.
19701 (has_preds_from_loop): Same.
19702 (create_preheader): Same.
19703 (create_preheaders): Same.
19704 (lv_adjust_loop_entry_edge): Same.
19705 (loop_version): Same.
19706 * cfgloopmanip.h: Same.
19707 * cgraph.h: Same.
19708 * cgraphbuild.c: Same.
19709 * combine.c (make_extraction): Same.
19710 * config/i386/i386-features.c: Same.
19711 * config/i386/i386-features.h: Same.
19712 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19713 (ix86_emit_outlined_ms2sysv_restore): Same.
19714 (ix86_noce_conversion_profitable_p): Same.
19715 (ix86_init_cost): Same.
19716 (ix86_simd_clone_usable): Same.
19717 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19718 Wstruct-not-pod.
19719 * coretypes.h: Same.
19720 * data-streamer-in.c (string_for_index): Change class-key of PODs
19721 to struct and others to class.
19722 (streamer_read_indexed_string): Same.
19723 (streamer_read_string): Same.
19724 (bp_unpack_indexed_string): Same.
19725 (bp_unpack_string): Same.
19726 (streamer_read_uhwi): Same.
19727 (streamer_read_hwi): Same.
19728 (streamer_read_gcov_count): Same.
19729 (streamer_read_wide_int): Same.
19730 * data-streamer.h (streamer_write_bitpack): Same.
19731 (bp_unpack_value): Same.
19732 (streamer_write_char_stream): Same.
19733 (streamer_write_hwi_in_range): Same.
19734 (streamer_write_record_start): Same.
19735 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19736 (add_cross_iteration_register_deps): Same.
19737 (build_intra_loop_deps): Same.
19738 * df-core.c (df_analyze): Same.
19739 (loop_post_order_compute): Same.
19740 (loop_inverted_post_order_compute): Same.
19741 * df-problems.c (df_rd_alloc): Same.
19742 (df_rd_simulate_one_insn): Same.
19743 (df_rd_local_compute): Same.
19744 (df_rd_init_solution): Same.
19745 (df_rd_confluence_n): Same.
19746 (df_rd_transfer_function): Same.
19747 (df_rd_free): Same.
19748 (df_rd_dump_defs_set): Same.
19749 (df_rd_top_dump): Same.
19750 (df_lr_alloc): Same.
19751 (df_lr_reset): Same.
19752 (df_lr_local_compute): Same.
19753 (df_lr_init): Same.
19754 (df_lr_confluence_n): Same.
19755 (df_lr_free): Same.
19756 (df_lr_top_dump): Same.
19757 (df_lr_verify_transfer_functions): Same.
19758 (df_live_alloc): Same.
19759 (df_live_reset): Same.
19760 (df_live_init): Same.
19761 (df_live_confluence_n): Same.
19762 (df_live_finalize): Same.
19763 (df_live_free): Same.
19764 (df_live_top_dump): Same.
19765 (df_live_verify_transfer_functions): Same.
19766 (df_mir_alloc): Same.
19767 (df_mir_reset): Same.
19768 (df_mir_init): Same.
19769 (df_mir_confluence_n): Same.
19770 (df_mir_free): Same.
19771 (df_mir_top_dump): Same.
19772 (df_word_lr_alloc): Same.
19773 (df_word_lr_reset): Same.
19774 (df_word_lr_init): Same.
19775 (df_word_lr_confluence_n): Same.
19776 (df_word_lr_free): Same.
19777 (df_word_lr_top_dump): Same.
19778 (df_md_alloc): Same.
19779 (df_md_simulate_one_insn): Same.
19780 (df_md_reset): Same.
19781 (df_md_init): Same.
19782 (df_md_free): Same.
19783 (df_md_top_dump): Same.
19784 * df-scan.c (df_insn_delete): Same.
19785 (df_insn_rescan): Same.
19786 (df_notes_rescan): Same.
19787 (df_sort_and_compress_mws): Same.
19788 (df_install_mws): Same.
19789 (df_refs_add_to_chains): Same.
19790 (df_ref_create_structure): Same.
19791 (df_ref_record): Same.
19792 (df_def_record_1): Same.
19793 (df_find_hard_reg_defs): Same.
19794 (df_uses_record): Same.
19795 (df_get_conditional_uses): Same.
19796 (df_get_call_refs): Same.
19797 (df_recompute_luids): Same.
19798 (df_get_entry_block_def_set): Same.
19799 (df_entry_block_defs_collect): Same.
19800 (df_get_exit_block_use_set): Same.
19801 (df_exit_block_uses_collect): Same.
19802 (df_mws_verify): Same.
19803 (df_bb_verify): Same.
19804 * df.h (df_scan_get_bb_info): Same.
19805 * doc/tm.texi: Same.
19806 * dse.c (record_store): Same.
19807 * dumpfile.h: Same.
19808 * emit-rtl.c (const_fixed_hasher::equal): Same.
19809 (set_mem_attributes_minus_bitpos): Same.
19810 (change_address): Same.
19811 (adjust_address_1): Same.
19812 (offset_address): Same.
19813 * emit-rtl.h: Same.
19814 * except.c (dw2_build_landing_pads): Same.
19815 (sjlj_emit_dispatch_table): Same.
19816 * explow.c (allocate_dynamic_stack_space): Same.
19817 (emit_stack_probe): Same.
19818 (probe_stack_range): Same.
19819 * expmed.c (store_bit_field_using_insv): Same.
19820 (store_bit_field_1): Same.
19821 (store_integral_bit_field): Same.
19822 (extract_bit_field_using_extv): Same.
19823 (extract_bit_field_1): Same.
19824 (emit_cstore): Same.
19825 * expr.c (emit_block_move_via_cpymem): Same.
19826 (expand_cmpstrn_or_cmpmem): Same.
19827 (set_storage_via_setmem): Same.
19828 (emit_single_push_insn_1): Same.
19829 (expand_assignment): Same.
19830 (store_constructor): Same.
19831 (expand_expr_real_2): Same.
19832 (expand_expr_real_1): Same.
19833 (try_casesi): Same.
19834 * flags.h: Same.
19835 * function.c (try_fit_stack_local): Same.
19836 (assign_stack_local_1): Same.
19837 (assign_stack_local): Same.
19838 (cut_slot_from_list): Same.
19839 (insert_slot_to_list): Same.
19840 (max_slot_level): Same.
19841 (move_slot_to_level): Same.
19842 (temp_address_hasher::equal): Same.
19843 (remove_unused_temp_slot_addresses): Same.
19844 (assign_temp): Same.
19845 (combine_temp_slots): Same.
19846 (update_temp_slot_address): Same.
19847 (preserve_temp_slots): Same.
19848 * function.h: Same.
19849 * fwprop.c: Same.
19850 * gcc-rich-location.h: Same.
19851 * gcov.c: Same.
19852 * genattrtab.c (check_attr_test): Same.
19853 (check_attr_value): Same.
19854 (convert_set_attr_alternative): Same.
19855 (convert_set_attr): Same.
19856 (check_defs): Same.
19857 (copy_boolean): Same.
19858 (get_attr_value): Same.
19859 (expand_delays): Same.
19860 (make_length_attrs): Same.
19861 (min_fn): Same.
19862 (make_alternative_compare): Same.
19863 (simplify_test_exp): Same.
19864 (tests_attr_p): Same.
19865 (get_attr_order): Same.
19866 (clear_struct_flag): Same.
19867 (gen_attr): Same.
19868 (compares_alternatives_p): Same.
19869 (gen_insn): Same.
19870 (gen_delay): Same.
19871 (find_attrs_to_cache): Same.
19872 (write_test_expr): Same.
19873 (walk_attr_value): Same.
19874 (write_attr_get): Same.
19875 (eliminate_known_true): Same.
19876 (write_insn_cases): Same.
19877 (write_attr_case): Same.
19878 (write_attr_valueq): Same.
19879 (write_attr_value): Same.
19880 (write_dummy_eligible_delay): Same.
19881 (next_comma_elt): Same.
19882 (find_attr): Same.
19883 (make_internal_attr): Same.
19884 (copy_rtx_unchanging): Same.
19885 (gen_insn_reserv): Same.
19886 (check_tune_attr): Same.
19887 (make_automaton_attrs): Same.
19888 (handle_arg): Same.
19889 * genextract.c (gen_insn): Same.
19890 (VEC_char_to_string): Same.
19891 * genmatch.c (print_operand): Same.
19892 (lower): Same.
19893 (parser::parse_operation): Same.
19894 (parser::parse_capture): Same.
19895 (parser::parse_c_expr): Same.
19896 (parser::parse_simplify): Same.
19897 (main): Same.
19898 * genoutput.c (output_operand_data): Same.
19899 (output_get_insn_name): Same.
19900 (compare_operands): Same.
19901 (place_operands): Same.
19902 (process_template): Same.
19903 (validate_insn_alternatives): Same.
19904 (validate_insn_operands): Same.
19905 (gen_expand): Same.
19906 (note_constraint): Same.
19907 * genpreds.c (write_one_predicate_function): Same.
19908 (add_constraint): Same.
19909 (process_define_register_constraint): Same.
19910 (write_lookup_constraint_1): Same.
19911 (write_lookup_constraint_array): Same.
19912 (write_insn_constraint_len): Same.
19913 (write_reg_class_for_constraint_1): Same.
19914 (write_constraint_satisfied_p_array): Same.
19915 * genrecog.c (optimize_subroutine_group): Same.
19916 * gensupport.c (process_define_predicate): Same.
19917 (queue_pattern): Same.
19918 (remove_from_queue): Same.
19919 (process_rtx): Same.
19920 (is_predicable): Same.
19921 (change_subst_attribute): Same.
19922 (subst_pattern_match): Same.
19923 (alter_constraints): Same.
19924 (alter_attrs_for_insn): Same.
19925 (shift_output_template): Same.
19926 (alter_output_for_subst_insn): Same.
19927 (process_one_cond_exec): Same.
19928 (subst_dup): Same.
19929 (process_define_cond_exec): Same.
19930 (mnemonic_htab_callback): Same.
19931 (gen_mnemonic_attr): Same.
19932 (read_md_rtx): Same.
19933 * ggc-page.c: Same.
19934 * gimple-loop-interchange.cc (dump_reduction): Same.
19935 (dump_induction): Same.
19936 (loop_cand::~loop_cand): Same.
19937 (free_data_refs_with_aux): Same.
19938 (tree_loop_interchange::interchange_loops): Same.
19939 (tree_loop_interchange::map_inductions_to_loop): Same.
19940 (tree_loop_interchange::move_code_to_inner_loop): Same.
19941 (compute_access_stride): Same.
19942 (compute_access_strides): Same.
19943 (proper_loop_form_for_interchange): Same.
19944 (tree_loop_interchange_compute_ddrs): Same.
19945 (prune_datarefs_not_in_loop): Same.
19946 (prepare_data_references): Same.
19947 (pass_linterchange::execute): Same.
19948 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19949 (unroll_jam_possible_p): Same.
19950 (fuse_loops): Same.
19951 (adjust_unroll_factor): Same.
19952 (tree_loop_unroll_and_jam): Same.
19953 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19954 (loop_versioning::expensive_stmt_p): Same.
19955 (loop_versioning::version_for_unity): Same.
19956 (loop_versioning::dump_inner_likelihood): Same.
19957 (loop_versioning::find_per_loop_multiplication): Same.
19958 (loop_versioning::analyze_term_using_scevs): Same.
19959 (loop_versioning::record_address_fragment): Same.
19960 (loop_versioning::analyze_expr): Same.
19961 (loop_versioning::analyze_blocks): Same.
19962 (loop_versioning::prune_conditions): Same.
19963 (loop_versioning::merge_loop_info): Same.
19964 (loop_versioning::add_loop_to_queue): Same.
19965 (loop_versioning::decide_whether_loop_is_versionable): Same.
19966 (loop_versioning::make_versioning_decisions): Same.
19967 (loop_versioning::implement_versioning_decisions): Same.
19968 * gimple-ssa-evrp-analyze.c
19969 (evrp_range_analyzer::record_ranges_from_phis): Same.
19970 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19971 (count_multiple_uses): Same.
19972 (split_group): Same.
19973 (imm_store_chain_info::output_merged_store): Same.
19974 (pass_store_merging::process_store): Same.
19975 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19976 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19977 (is_max): Same.
19978 (alloca_call_type): Same.
19979 (pass_walloca::execute): Same.
19980 * gimple-streamer-in.c (input_phi): Same.
19981 (input_gimple_stmt): Same.
19982 * gimple-streamer.h: Same.
19983 * godump.c (go_force_record_alignment): Same.
19984 (go_format_type): Same.
19985 (go_output_type): Same.
19986 (go_output_fndecl): Same.
19987 (go_output_typedef): Same.
19988 (keyword_hash_init): Same.
19989 (find_dummy_types): Same.
19990 * graph.c (draw_cfg_nodes_no_loops): Same.
19991 (draw_cfg_nodes_for_loop): Same.
19992 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19993 * hsa-brig.c: Same.
19994 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19995 * hsa-dump.c (dump_hsa_cfun): Same.
19996 * hsa-gen.c (gen_function_def_parameters): Same.
19997 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19998 * input.c (dump_line_table_statistics): Same.
19999 (test_lexer): Same.
20000 * input.h: Same.
20001 * internal-fn.c (get_multi_vector_move): Same.
20002 (expand_load_lanes_optab_fn): Same.
20003 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20004 (expand_GOMP_SIMT_EXIT): Same.
20005 (expand_GOMP_SIMT_LAST_LANE): Same.
20006 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20007 (expand_GOMP_SIMT_VOTE_ANY): Same.
20008 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20009 (expand_GOMP_SIMT_XCHG_IDX): Same.
20010 (expand_addsub_overflow): Same.
20011 (expand_neg_overflow): Same.
20012 (expand_mul_overflow): Same.
20013 (expand_call_mem_ref): Same.
20014 (expand_mask_load_optab_fn): Same.
20015 (expand_scatter_store_optab_fn): Same.
20016 (expand_gather_load_optab_fn): Same.
20017 * ipa-cp.c (ipa_get_parm_lattices): Same.
20018 (print_all_lattices): Same.
20019 (ignore_edge_p): Same.
20020 (build_toporder_info): Same.
20021 (free_toporder_info): Same.
20022 (push_node_to_stack): Same.
20023 (ipcp_lattice<valtype>::set_contains_variable): Same.
20024 (set_agg_lats_to_bottom): Same.
20025 (ipcp_bits_lattice::meet_with): Same.
20026 (set_single_call_flag): Same.
20027 (initialize_node_lattices): Same.
20028 (ipa_get_jf_ancestor_result): Same.
20029 (ipcp_verify_propagated_values): Same.
20030 (propagate_scalar_across_jump_function): Same.
20031 (propagate_context_across_jump_function): Same.
20032 (propagate_bits_across_jump_function): Same.
20033 (ipa_vr_operation_and_type_effects): Same.
20034 (propagate_vr_across_jump_function): Same.
20035 (set_check_aggs_by_ref): Same.
20036 (set_chain_of_aglats_contains_variable): Same.
20037 (merge_aggregate_lattices): Same.
20038 (agg_pass_through_permissible_p): Same.
20039 (propagate_aggs_across_jump_function): Same.
20040 (call_passes_through_thunk_p): Same.
20041 (propagate_constants_across_call): Same.
20042 (devirtualization_time_bonus): Same.
20043 (good_cloning_opportunity_p): Same.
20044 (context_independent_aggregate_values): Same.
20045 (gather_context_independent_values): Same.
20046 (perform_estimation_of_a_value): Same.
20047 (estimate_local_effects): Same.
20048 (value_topo_info<valtype>::add_val): Same.
20049 (add_all_node_vals_to_toposort): Same.
20050 (value_topo_info<valtype>::propagate_effects): Same.
20051 (ipcp_propagate_stage): Same.
20052 (ipcp_discover_new_direct_edges): Same.
20053 (same_node_or_its_all_contexts_clone_p): Same.
20054 (cgraph_edge_brings_value_p): Same.
20055 (gather_edges_for_value): Same.
20056 (create_specialized_node): Same.
20057 (find_more_scalar_values_for_callers_subset): Same.
20058 (find_more_contexts_for_caller_subset): Same.
20059 (copy_plats_to_inter): Same.
20060 (intersect_aggregates_with_edge): Same.
20061 (find_aggregate_values_for_callers_subset): Same.
20062 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20063 (decide_about_value): Same.
20064 (decide_whether_version_node): Same.
20065 (spread_undeadness): Same.
20066 (identify_dead_nodes): Same.
20067 (ipcp_store_vr_results): Same.
20068 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20069 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20070 (redirect_to_unreachable): Same.
20071 (edge_set_predicate): Same.
20072 (evaluate_conditions_for_known_args): Same.
20073 (evaluate_properties_for_edge): Same.
20074 (ipa_fn_summary_t::duplicate): Same.
20075 (ipa_call_summary_t::duplicate): Same.
20076 (dump_ipa_call_summary): Same.
20077 (ipa_dump_fn_summary): Same.
20078 (eliminated_by_inlining_prob): Same.
20079 (set_cond_stmt_execution_predicate): Same.
20080 (set_switch_stmt_execution_predicate): Same.
20081 (compute_bb_predicates): Same.
20082 (will_be_nonconstant_expr_predicate): Same.
20083 (phi_result_unknown_predicate): Same.
20084 (analyze_function_body): Same.
20085 (compute_fn_summary): Same.
20086 (estimate_edge_devirt_benefit): Same.
20087 (estimate_edge_size_and_time): Same.
20088 (estimate_calls_size_and_time): Same.
20089 (estimate_node_size_and_time): Same.
20090 (remap_edge_change_prob): Same.
20091 (remap_edge_summaries): Same.
20092 (ipa_merge_fn_summary_after_inlining): Same.
20093 (ipa_fn_summary_generate): Same.
20094 (inline_read_section): Same.
20095 (ipa_fn_summary_read): Same.
20096 (ipa_fn_summary_write): Same.
20097 * ipa-fnsummary.h: Same.
20098 * ipa-hsa.c (ipa_hsa_read_section): Same.
20099 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20100 * ipa-icf.c (sem_function::param_used_p): Same.
20101 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20102 * ipa-inline.c (edge_badness): Same.
20103 (inline_small_functions): Same.
20104 * ipa-polymorphic-call.c
20105 (ipa_polymorphic_call_context::stream_out): Same.
20106 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20107 (predicate::remap_after_inlining): Same.
20108 (predicate::stream_out): Same.
20109 * ipa-predicate.h: Same.
20110 * ipa-profile.c (ipa_profile_read_summary): Same.
20111 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20112 (count_formal_params): Same.
20113 (ipa_dump_param): Same.
20114 (ipa_alloc_node_params): Same.
20115 (ipa_print_node_jump_functions_for_edge): Same.
20116 (ipa_print_node_jump_functions): Same.
20117 (ipa_load_from_parm_agg): Same.
20118 (get_ancestor_addr_info): Same.
20119 (ipa_compute_jump_functions_for_edge): Same.
20120 (ipa_analyze_virtual_call_uses): Same.
20121 (ipa_analyze_stmt_uses): Same.
20122 (ipa_analyze_params_uses_in_bb): Same.
20123 (update_jump_functions_after_inlining): Same.
20124 (try_decrement_rdesc_refcount): Same.
20125 (ipa_impossible_devirt_target): Same.
20126 (update_indirect_edges_after_inlining): Same.
20127 (combine_controlled_uses_counters): Same.
20128 (ipa_edge_args_sum_t::duplicate): Same.
20129 (ipa_write_jump_function): Same.
20130 (ipa_write_indirect_edge_info): Same.
20131 (ipa_write_node_info): Same.
20132 (ipa_read_edge_info): Same.
20133 (ipa_prop_read_section): Same.
20134 (read_replacements_section): Same.
20135 * ipa-prop.h (ipa_get_param_count): Same.
20136 (ipa_get_param): Same.
20137 (ipa_get_type): Same.
20138 (ipa_get_param_move_cost): Same.
20139 (ipa_set_param_used): Same.
20140 (ipa_get_controlled_uses): Same.
20141 (ipa_set_controlled_uses): Same.
20142 (ipa_get_cs_argument_count): Same.
20143 * ipa-pure-const.c (analyze_function): Same.
20144 (pure_const_read_summary): Same.
20145 * ipa-ref.h: Same.
20146 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20147 * ipa-split.c (test_nonssa_use): Same.
20148 (dump_split_point): Same.
20149 (dominated_by_forbidden): Same.
20150 (split_part_set_ssa_name_p): Same.
20151 (find_split_points): Same.
20152 * ira-build.c (finish_loop_tree_nodes): Same.
20153 (low_pressure_loop_node_p): Same.
20154 * ira-color.c (ira_reuse_stack_slot): Same.
20155 * ira-int.h: Same.
20156 * ira.c (setup_reg_equiv): Same.
20157 (print_insn_chain): Same.
20158 (ira): Same.
20159 * loop-doloop.c (doloop_condition_get): Same.
20160 (add_test): Same.
20161 (record_reg_sets): Same.
20162 (doloop_optimize): Same.
20163 * loop-init.c (loop_optimizer_init): Same.
20164 (fix_loop_structure): Same.
20165 * loop-invariant.c (merge_identical_invariants): Same.
20166 (compute_always_reached): Same.
20167 (find_exits): Same.
20168 (may_assign_reg_p): Same.
20169 (find_invariants_bb): Same.
20170 (find_invariants_body): Same.
20171 (replace_uses): Same.
20172 (can_move_invariant_reg): Same.
20173 (free_inv_motion_data): Same.
20174 (move_single_loop_invariants): Same.
20175 (change_pressure): Same.
20176 (mark_ref_regs): Same.
20177 (calculate_loop_reg_pressure): Same.
20178 * loop-iv.c (biv_entry_hasher::equal): Same.
20179 (iv_extend_to_rtx_code): Same.
20180 (check_iv_ref_table_size): Same.
20181 (clear_iv_info): Same.
20182 (latch_dominating_def): Same.
20183 (iv_get_reaching_def): Same.
20184 (iv_constant): Same.
20185 (iv_subreg): Same.
20186 (iv_extend): Same.
20187 (iv_neg): Same.
20188 (iv_add): Same.
20189 (iv_mult): Same.
20190 (get_biv_step): Same.
20191 (record_iv): Same.
20192 (analyzed_for_bivness_p): Same.
20193 (record_biv): Same.
20194 (iv_analyze_biv): Same.
20195 (iv_analyze_expr): Same.
20196 (iv_analyze_def): Same.
20197 (iv_analyze_op): Same.
20198 (iv_analyze): Same.
20199 (iv_analyze_result): Same.
20200 (biv_p): Same.
20201 (eliminate_implied_conditions): Same.
20202 (simplify_using_initial_values): Same.
20203 (shorten_into_mode): Same.
20204 (canonicalize_iv_subregs): Same.
20205 (determine_max_iter): Same.
20206 (check_simple_exit): Same.
20207 (find_simple_exit): Same.
20208 (get_simple_loop_desc): Same.
20209 * loop-unroll.c (report_unroll): Same.
20210 (decide_unrolling): Same.
20211 (unroll_loops): Same.
20212 (loop_exit_at_end_p): Same.
20213 (decide_unroll_constant_iterations): Same.
20214 (unroll_loop_constant_iterations): Same.
20215 (compare_and_jump_seq): Same.
20216 (unroll_loop_runtime_iterations): Same.
20217 (decide_unroll_stupid): Same.
20218 (unroll_loop_stupid): Same.
20219 (referenced_in_one_insn_in_loop_p): Same.
20220 (reset_debug_uses_in_loop): Same.
20221 (analyze_iv_to_split_insn): Same.
20222 * lra-eliminations.c (lra_debug_elim_table): Same.
20223 (setup_can_eliminate): Same.
20224 (form_sum): Same.
20225 (lra_get_elimination_hard_regno): Same.
20226 (lra_eliminate_regs_1): Same.
20227 (eliminate_regs_in_insn): Same.
20228 (update_reg_eliminate): Same.
20229 (init_elimination): Same.
20230 (lra_eliminate): Same.
20231 * lra-int.h: Same.
20232 * lra-lives.c (initiate_live_solver): Same.
20233 * lra-remat.c (create_remat_bb_data): Same.
20234 * lra-spills.c (lra_spill): Same.
20235 * lra.c (lra_set_insn_recog_data): Same.
20236 (lra_set_used_insn_alternative_by_uid): Same.
20237 (init_reg_info): Same.
20238 (expand_reg_info): Same.
20239 * lto-cgraph.c (output_symtab): Same.
20240 (read_identifier): Same.
20241 (get_alias_symbol): Same.
20242 (input_node): Same.
20243 (input_varpool_node): Same.
20244 (input_ref): Same.
20245 (input_edge): Same.
20246 (input_cgraph_1): Same.
20247 (input_refs): Same.
20248 (input_symtab): Same.
20249 (input_offload_tables): Same.
20250 (output_cgraph_opt_summary): Same.
20251 (input_edge_opt_summary): Same.
20252 (input_cgraph_opt_section): Same.
20253 * lto-section-in.c (lto_free_raw_section_data): Same.
20254 (lto_create_simple_input_block): Same.
20255 (lto_free_function_in_decl_state_for_node): Same.
20256 * lto-streamer-in.c (lto_tag_check_set): Same.
20257 (lto_location_cache::revert_location_cache): Same.
20258 (lto_location_cache::input_location): Same.
20259 (lto_input_location): Same.
20260 (stream_input_location_now): Same.
20261 (lto_input_tree_ref): Same.
20262 (lto_input_eh_catch_list): Same.
20263 (input_eh_region): Same.
20264 (lto_init_eh): Same.
20265 (make_new_block): Same.
20266 (input_cfg): Same.
20267 (fixup_call_stmt_edges): Same.
20268 (input_struct_function_base): Same.
20269 (input_function): Same.
20270 (lto_read_body_or_constructor): Same.
20271 (lto_read_tree_1): Same.
20272 (lto_read_tree): Same.
20273 (lto_input_scc): Same.
20274 (lto_input_tree_1): Same.
20275 (lto_input_toplevel_asms): Same.
20276 (lto_input_mode_table): Same.
20277 (lto_reader_init): Same.
20278 (lto_data_in_create): Same.
20279 * lto-streamer-out.c (output_cfg): Same.
20280 * lto-streamer.h: Same.
20281 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20282 (generate_prolog_epilog): Same.
20283 (mark_loop_unsched): Same.
20284 (dump_insn_location): Same.
20285 (loop_canon_p): Same.
20286 (sms_schedule): Same.
20287 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20288 (expand_omp_for_generic): Same.
20289 (expand_omp_for_static_nochunk): Same.
20290 (expand_omp_for_static_chunk): Same.
20291 (expand_omp_simd): Same.
20292 (expand_omp_taskloop_for_inner): Same.
20293 (expand_oacc_for): Same.
20294 (expand_omp_atomic_pipeline): Same.
20295 (mark_loops_in_oacc_kernels_region): Same.
20296 * omp-offload.c (oacc_xform_loop): Same.
20297 * omp-simd-clone.c (simd_clone_adjust): Same.
20298 * optabs-query.c (get_traditional_extraction_insn): Same.
20299 * optabs.c (expand_vector_broadcast): Same.
20300 (expand_binop_directly): Same.
20301 (expand_twoval_unop): Same.
20302 (expand_twoval_binop): Same.
20303 (expand_unop_direct): Same.
20304 (emit_indirect_jump): Same.
20305 (emit_conditional_move): Same.
20306 (emit_conditional_neg_or_complement): Same.
20307 (emit_conditional_add): Same.
20308 (vector_compare_rtx): Same.
20309 (expand_vec_perm_1): Same.
20310 (expand_vec_perm_const): Same.
20311 (expand_vec_cond_expr): Same.
20312 (expand_vec_series_expr): Same.
20313 (maybe_emit_atomic_exchange): Same.
20314 (maybe_emit_sync_lock_test_and_set): Same.
20315 (expand_atomic_compare_and_swap): Same.
20316 (expand_atomic_load): Same.
20317 (expand_atomic_store): Same.
20318 (maybe_emit_op): Same.
20319 (valid_multiword_target_p): Same.
20320 (create_integer_operand): Same.
20321 (maybe_legitimize_operand_same_code): Same.
20322 (maybe_legitimize_operand): Same.
20323 (create_convert_operand_from_type): Same.
20324 (can_reuse_operands_p): Same.
20325 (maybe_legitimize_operands): Same.
20326 (maybe_gen_insn): Same.
20327 (maybe_expand_insn): Same.
20328 (maybe_expand_jump_insn): Same.
20329 (expand_insn): Same.
20330 * optabs.h (create_expand_operand): Same.
20331 (create_fixed_operand): Same.
20332 (create_output_operand): Same.
20333 (create_input_operand): Same.
20334 (create_convert_operand_to): Same.
20335 (create_convert_operand_from): Same.
20336 * optinfo.h: Same.
20337 * poly-int.h: Same.
20338 * predict.c (optimize_insn_for_speed_p): Same.
20339 (optimize_loop_for_size_p): Same.
20340 (optimize_loop_for_speed_p): Same.
20341 (optimize_loop_nest_for_speed_p): Same.
20342 (get_base_value): Same.
20343 (predicted_by_loop_heuristics_p): Same.
20344 (predict_extra_loop_exits): Same.
20345 (predict_loops): Same.
20346 (predict_paths_for_bb): Same.
20347 (predict_paths_leading_to): Same.
20348 (propagate_freq): Same.
20349 (pass_profile::execute): Same.
20350 * predict.h: Same.
20351 * profile-count.c (profile_count::differs_from_p): Same.
20352 (profile_probability::differs_lot_from_p): Same.
20353 * profile-count.h: Same.
20354 * profile.c (branch_prob): Same.
20355 * regrename.c (free_chain_data): Same.
20356 (mark_conflict): Same.
20357 (create_new_chain): Same.
20358 (merge_overlapping_regs): Same.
20359 (init_rename_info): Same.
20360 (merge_chains): Same.
20361 (regrename_analyze): Same.
20362 (regrename_do_replace): Same.
20363 (scan_rtx_reg): Same.
20364 (record_out_operands): Same.
20365 (build_def_use): Same.
20366 * regrename.h: Same.
20367 * reload.h: Same.
20368 * reload1.c (init_reload): Same.
20369 (maybe_fix_stack_asms): Same.
20370 (copy_reloads): Same.
20371 (count_pseudo): Same.
20372 (count_spilled_pseudo): Same.
20373 (find_reg): Same.
20374 (find_reload_regs): Same.
20375 (select_reload_regs): Same.
20376 (spill_hard_reg): Same.
20377 (fixup_eh_region_note): Same.
20378 (set_reload_reg): Same.
20379 (allocate_reload_reg): Same.
20380 (compute_reload_subreg_offset): Same.
20381 (reload_adjust_reg_for_icode): Same.
20382 (emit_input_reload_insns): Same.
20383 (emit_output_reload_insns): Same.
20384 (do_input_reload): Same.
20385 (inherit_piecemeal_p): Same.
20386 * rtl.h: Same.
20387 * sanopt.c (maybe_get_dominating_check): Same.
20388 (maybe_optimize_ubsan_ptr_ifn): Same.
20389 (can_remove_asan_check): Same.
20390 (maybe_optimize_asan_check_ifn): Same.
20391 (sanopt_optimize_walker): Same.
20392 * sched-deps.c (add_dependence_list): Same.
20393 (chain_to_prev_insn): Same.
20394 (add_insn_mem_dependence): Same.
20395 (create_insn_reg_set): Same.
20396 (maybe_extend_reg_info_p): Same.
20397 (sched_analyze_reg): Same.
20398 (sched_analyze_1): Same.
20399 (get_implicit_reg_pending_clobbers): Same.
20400 (chain_to_prev_insn_p): Same.
20401 (deps_analyze_insn): Same.
20402 (deps_start_bb): Same.
20403 (sched_free_deps): Same.
20404 (init_deps): Same.
20405 (init_deps_reg_last): Same.
20406 (free_deps): Same.
20407 * sched-ebb.c: Same.
20408 * sched-int.h: Same.
20409 * sched-rgn.c (add_branch_dependences): Same.
20410 (concat_insn_mem_list): Same.
20411 (deps_join): Same.
20412 (sched_rgn_compute_dependencies): Same.
20413 * sel-sched-ir.c (reset_target_context): Same.
20414 (copy_deps_context): Same.
20415 (init_id_from_df): Same.
20416 (has_dependence_p): Same.
20417 (change_loops_latches): Same.
20418 (bb_top_order_comparator): Same.
20419 (make_region_from_loop_preheader): Same.
20420 (sel_init_pipelining): Same.
20421 (get_loop_nest_for_rgn): Same.
20422 (make_regions_from_the_rest): Same.
20423 (sel_is_loop_preheader_p): Same.
20424 * sel-sched-ir.h (inner_loop_header_p): Same.
20425 (get_all_loop_exits): Same.
20426 * selftest.h: Same.
20427 * sese.c (sese_build_liveouts): Same.
20428 (sese_insert_phis_for_liveouts): Same.
20429 * sese.h (defined_in_sese_p): Same.
20430 * sreal.c (sreal::stream_out): Same.
20431 * sreal.h: Same.
20432 * streamer-hooks.h: Same.
20433 * target-globals.c (save_target_globals): Same.
20434 * target-globals.h: Same.
20435 * target.def: Same.
20436 * target.h: Same.
20437 * targhooks.c (default_has_ifunc_p): Same.
20438 (default_empty_mask_is_expensive): Same.
20439 (default_init_cost): Same.
20440 * targhooks.h: Same.
20441 * toplev.c: Same.
20442 * tree-affine.c (aff_combination_mult): Same.
20443 (aff_combination_expand): Same.
20444 (aff_combination_constant_multiple_p): Same.
20445 * tree-affine.h: Same.
20446 * tree-cfg.c (build_gimple_cfg): Same.
20447 (replace_loop_annotate_in_block): Same.
20448 (replace_uses_by): Same.
20449 (remove_bb): Same.
20450 (dump_cfg_stats): Same.
20451 (gimple_duplicate_sese_region): Same.
20452 (gimple_duplicate_sese_tail): Same.
20453 (move_block_to_fn): Same.
20454 (replace_block_vars_by_duplicates): Same.
20455 (move_sese_region_to_fn): Same.
20456 (print_loops_bb): Same.
20457 (print_loop): Same.
20458 (print_loops): Same.
20459 (debug): Same.
20460 (debug_loops): Same.
20461 * tree-cfg.h: Same.
20462 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20463 (chrec_fold_multiply_poly_poly): Same.
20464 (chrec_evaluate): Same.
20465 (chrec_component_in_loop_num): Same.
20466 (reset_evolution_in_loop): Same.
20467 (is_multivariate_chrec): Same.
20468 (chrec_contains_symbols): Same.
20469 (nb_vars_in_chrec): Same.
20470 (chrec_convert_1): Same.
20471 (chrec_convert_aggressive): Same.
20472 * tree-chrec.h: Same.
20473 * tree-core.h: Same.
20474 * tree-data-ref.c (dump_data_dependence_relation): Same.
20475 (canonicalize_base_object_address): Same.
20476 (data_ref_compare_tree): Same.
20477 (prune_runtime_alias_test_list): Same.
20478 (get_segment_min_max): Same.
20479 (create_intersect_range_checks): Same.
20480 (conflict_fn_no_dependence): Same.
20481 (object_address_invariant_in_loop_p): Same.
20482 (analyze_ziv_subscript): Same.
20483 (analyze_siv_subscript_cst_affine): Same.
20484 (analyze_miv_subscript): Same.
20485 (analyze_overlapping_iterations): Same.
20486 (build_classic_dist_vector_1): Same.
20487 (add_other_self_distances): Same.
20488 (same_access_functions): Same.
20489 (build_classic_dir_vector): Same.
20490 (subscript_dependence_tester_1): Same.
20491 (subscript_dependence_tester): Same.
20492 (access_functions_are_affine_or_constant_p): Same.
20493 (get_references_in_stmt): Same.
20494 (loop_nest_has_data_refs): Same.
20495 (graphite_find_data_references_in_stmt): Same.
20496 (find_data_references_in_bb): Same.
20497 (get_base_for_alignment): Same.
20498 (find_loop_nest_1): Same.
20499 (find_loop_nest): Same.
20500 * tree-data-ref.h (dr_alignment): Same.
20501 (ddr_dependence_level): Same.
20502 * tree-if-conv.c (fold_build_cond_expr): Same.
20503 (add_to_predicate_list): Same.
20504 (add_to_dst_predicate_list): Same.
20505 (phi_convertible_by_degenerating_args): Same.
20506 (idx_within_array_bound): Same.
20507 (all_preds_critical_p): Same.
20508 (pred_blocks_visited_p): Same.
20509 (predicate_bbs): Same.
20510 (build_region): Same.
20511 (if_convertible_loop_p_1): Same.
20512 (is_cond_scalar_reduction): Same.
20513 (predicate_scalar_phi): Same.
20514 (remove_conditions_and_labels): Same.
20515 (combine_blocks): Same.
20516 (version_loop_for_if_conversion): Same.
20517 (versionable_outer_loop_p): Same.
20518 (ifcvt_local_dce): Same.
20519 (tree_if_conversion): Same.
20520 (pass_if_conversion::gate): Same.
20521 * tree-if-conv.h: Same.
20522 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20523 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20524 (free_rdg): Same.
20525 (stmt_has_scalar_dependences_outside_loop): Same.
20526 (copy_loop_before): Same.
20527 (create_bb_after_loop): Same.
20528 (const_with_all_bytes_same): Same.
20529 (generate_memset_builtin): Same.
20530 (generate_memcpy_builtin): Same.
20531 (destroy_loop): Same.
20532 (build_rdg_partition_for_vertex): Same.
20533 (compute_access_range): Same.
20534 (data_ref_segment_size): Same.
20535 (latch_dominated_by_data_ref): Same.
20536 (compute_alias_check_pairs): Same.
20537 (fuse_memset_builtins): Same.
20538 (finalize_partitions): Same.
20539 (find_seed_stmts_for_distribution): Same.
20540 (prepare_perfect_loop_nest): Same.
20541 * tree-parloops.c (lambda_transform_legal_p): Same.
20542 (loop_parallel_p): Same.
20543 (reduc_stmt_res): Same.
20544 (add_field_for_name): Same.
20545 (create_call_for_reduction_1): Same.
20546 (replace_uses_in_bb_by): Same.
20547 (transform_to_exit_first_loop_alt): Same.
20548 (try_transform_to_exit_first_loop_alt): Same.
20549 (transform_to_exit_first_loop): Same.
20550 (num_phis): Same.
20551 (gen_parallel_loop): Same.
20552 (gather_scalar_reductions): Same.
20553 (get_omp_data_i_param): Same.
20554 (try_create_reduction_list): Same.
20555 (oacc_entry_exit_single_gang): Same.
20556 (parallelize_loops): Same.
20557 * tree-pass.h: Same.
20558 * tree-predcom.c (determine_offset): Same.
20559 (last_always_executed_block): Same.
20560 (split_data_refs_to_components): Same.
20561 (suitable_component_p): Same.
20562 (valid_initializer_p): Same.
20563 (find_looparound_phi): Same.
20564 (insert_looparound_copy): Same.
20565 (add_looparound_copies): Same.
20566 (determine_roots_comp): Same.
20567 (predcom_tmp_var): Same.
20568 (initialize_root_vars): Same.
20569 (initialize_root_vars_store_elim_1): Same.
20570 (initialize_root_vars_store_elim_2): Same.
20571 (finalize_eliminated_stores): Same.
20572 (initialize_root_vars_lm): Same.
20573 (remove_stmt): Same.
20574 (determine_unroll_factor): Same.
20575 (execute_pred_commoning_cbck): Same.
20576 (base_names_in_chain_on): Same.
20577 (combine_chains): Same.
20578 (pcom_stmt_dominates_stmt_p): Same.
20579 (try_combine_chains): Same.
20580 (prepare_initializers_chain_store_elim): Same.
20581 (prepare_initializers_chain): Same.
20582 (prepare_initializers): Same.
20583 (prepare_finalizers_chain): Same.
20584 (prepare_finalizers): Same.
20585 (insert_init_seqs): Same.
20586 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20587 (compute_overall_effect_of_inner_loop): Same.
20588 (add_to_evolution_1): Same.
20589 (add_to_evolution): Same.
20590 (follow_ssa_edge_binary): Same.
20591 (follow_ssa_edge_expr): Same.
20592 (backedge_phi_arg_p): Same.
20593 (follow_ssa_edge_in_condition_phi_branch): Same.
20594 (follow_ssa_edge_in_condition_phi): Same.
20595 (follow_ssa_edge_inner_loop_phi): Same.
20596 (follow_ssa_edge): Same.
20597 (analyze_evolution_in_loop): Same.
20598 (analyze_initial_condition): Same.
20599 (interpret_loop_phi): Same.
20600 (interpret_condition_phi): Same.
20601 (interpret_rhs_expr): Same.
20602 (interpret_expr): Same.
20603 (interpret_gimple_assign): Same.
20604 (analyze_scalar_evolution_1): Same.
20605 (analyze_scalar_evolution): Same.
20606 (analyze_scalar_evolution_for_address_of): Same.
20607 (get_instantiated_value_entry): Same.
20608 (loop_closed_phi_def): Same.
20609 (instantiate_scev_name): Same.
20610 (instantiate_scev_poly): Same.
20611 (instantiate_scev_binary): Same.
20612 (instantiate_scev_convert): Same.
20613 (instantiate_scev_not): Same.
20614 (instantiate_scev_r): Same.
20615 (instantiate_scev): Same.
20616 (resolve_mixers): Same.
20617 (initialize_scalar_evolutions_analyzer): Same.
20618 (scev_reset_htab): Same.
20619 (scev_reset): Same.
20620 (derive_simple_iv_with_niters): Same.
20621 (simple_iv_with_niters): Same.
20622 (expression_expensive_p): Same.
20623 (final_value_replacement_loop): Same.
20624 * tree-scalar-evolution.h (block_before_loop): Same.
20625 * tree-ssa-address.h: Same.
20626 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20627 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20628 (record_edge_info): Same.
20629 * tree-ssa-live.c (var_map_base_fini): Same.
20630 (remove_unused_locals): Same.
20631 * tree-ssa-live.h: Same.
20632 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20633 (pass_ch_vect::execute): Same.
20634 (pass_ch::process_loop_p): Same.
20635 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20636 (movement_possibility): Same.
20637 (outermost_invariant_loop): Same.
20638 (stmt_cost): Same.
20639 (determine_max_movement): Same.
20640 (invariantness_dom_walker::before_dom_children): Same.
20641 (move_computations): Same.
20642 (may_move_till): Same.
20643 (force_move_till_op): Same.
20644 (force_move_till): Same.
20645 (memref_free): Same.
20646 (record_mem_ref_loc): Same.
20647 (set_ref_stored_in_loop): Same.
20648 (mark_ref_stored): Same.
20649 (sort_bbs_in_loop_postorder_cmp): Same.
20650 (sort_locs_in_loop_postorder_cmp): Same.
20651 (analyze_memory_references): Same.
20652 (mem_refs_may_alias_p): Same.
20653 (find_ref_loc_in_loop_cmp): Same.
20654 (rewrite_mem_ref_loc::operator): Same.
20655 (first_mem_ref_loc_1::operator): Same.
20656 (sm_set_flag_if_changed::operator): Same.
20657 (execute_sm_if_changed_flag_set): Same.
20658 (execute_sm): Same.
20659 (hoist_memory_references): Same.
20660 (ref_always_accessed::operator): Same.
20661 (refs_independent_p): Same.
20662 (record_dep_loop): Same.
20663 (ref_indep_loop_p_1): Same.
20664 (ref_indep_loop_p): Same.
20665 (can_sm_ref_p): Same.
20666 (find_refs_for_sm): Same.
20667 (loop_suitable_for_sm): Same.
20668 (store_motion_loop): Same.
20669 (store_motion): Same.
20670 (fill_always_executed_in): Same.
20671 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20672 (estimated_unrolled_size): Same.
20673 (loop_edge_to_cancel): Same.
20674 (remove_exits_and_undefined_stmts): Same.
20675 (remove_redundant_iv_tests): Same.
20676 (unloop_loops): Same.
20677 (estimated_peeled_sequence_size): Same.
20678 (try_peel_loop): Same.
20679 (canonicalize_loop_induction_variables): Same.
20680 (canonicalize_induction_variables): Same.
20681 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20682 (name_info): Same.
20683 (stmt_after_inc_pos): Same.
20684 (contains_abnormal_ssa_name_p): Same.
20685 (niter_for_exit): Same.
20686 (find_bivs): Same.
20687 (mark_bivs): Same.
20688 (find_givs_in_bb): Same.
20689 (find_induction_variables): Same.
20690 (find_interesting_uses_cond): Same.
20691 (outermost_invariant_loop_for_expr): Same.
20692 (idx_find_step): Same.
20693 (add_candidate_1): Same.
20694 (add_iv_candidate_derived_from_uses): Same.
20695 (alloc_use_cost_map): Same.
20696 (prepare_decl_rtl): Same.
20697 (generic_predict_doloop_p): Same.
20698 (computation_cost): Same.
20699 (determine_common_wider_type): Same.
20700 (get_computation_aff_1): Same.
20701 (get_use_type): Same.
20702 (determine_group_iv_cost_address): Same.
20703 (iv_period): Same.
20704 (difference_cannot_overflow_p): Same.
20705 (may_eliminate_iv): Same.
20706 (determine_set_costs): Same.
20707 (cheaper_cost_pair): Same.
20708 (compare_cost_pair): Same.
20709 (iv_ca_cand_for_group): Same.
20710 (iv_ca_recount_cost): Same.
20711 (iv_ca_set_remove_invs): Same.
20712 (iv_ca_set_no_cp): Same.
20713 (iv_ca_set_add_invs): Same.
20714 (iv_ca_set_cp): Same.
20715 (iv_ca_add_group): Same.
20716 (iv_ca_cost): Same.
20717 (iv_ca_compare_deps): Same.
20718 (iv_ca_delta_reverse): Same.
20719 (iv_ca_delta_commit): Same.
20720 (iv_ca_cand_used_p): Same.
20721 (iv_ca_delta_free): Same.
20722 (iv_ca_new): Same.
20723 (iv_ca_free): Same.
20724 (iv_ca_dump): Same.
20725 (iv_ca_extend): Same.
20726 (iv_ca_narrow): Same.
20727 (iv_ca_prune): Same.
20728 (cheaper_cost_with_cand): Same.
20729 (iv_ca_replace): Same.
20730 (try_add_cand_for): Same.
20731 (get_initial_solution): Same.
20732 (try_improve_iv_set): Same.
20733 (find_optimal_iv_set_1): Same.
20734 (create_new_iv): Same.
20735 (rewrite_use_compare): Same.
20736 (remove_unused_ivs): Same.
20737 (determine_scaling_factor): Same.
20738 * tree-ssa-loop-ivopts.h: Same.
20739 * tree-ssa-loop-manip.c (create_iv): Same.
20740 (compute_live_loop_exits): Same.
20741 (add_exit_phi): Same.
20742 (add_exit_phis): Same.
20743 (find_uses_to_rename_use): Same.
20744 (find_uses_to_rename_def): Same.
20745 (find_uses_to_rename_in_loop): Same.
20746 (rewrite_into_loop_closed_ssa): Same.
20747 (check_loop_closed_ssa_bb): Same.
20748 (split_loop_exit_edge): Same.
20749 (ip_end_pos): Same.
20750 (ip_normal_pos): Same.
20751 (copy_phi_node_args): Same.
20752 (gimple_duplicate_loop_to_header_edge): Same.
20753 (can_unroll_loop_p): Same.
20754 (determine_exit_conditions): Same.
20755 (scale_dominated_blocks_in_loop): Same.
20756 (niter_for_unrolled_loop): Same.
20757 (tree_transform_and_unroll_loop): Same.
20758 (rewrite_all_phi_nodes_with_iv): Same.
20759 * tree-ssa-loop-manip.h: Same.
20760 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20761 (number_of_iterations_ne): Same.
20762 (assert_no_overflow_lt): Same.
20763 (assert_loop_rolls_lt): Same.
20764 (number_of_iterations_lt): Same.
20765 (adjust_cond_for_loop_until_wrap): Same.
20766 (tree_simplify_using_condition): Same.
20767 (simplify_using_initial_conditions): Same.
20768 (simplify_using_outer_evolutions): Same.
20769 (loop_only_exit_p): Same.
20770 (ssa_defined_by_minus_one_stmt_p): Same.
20771 (number_of_iterations_popcount): Same.
20772 (number_of_iterations_exit): Same.
20773 (find_loop_niter): Same.
20774 (finite_loop_p): Same.
20775 (chain_of_csts_start): Same.
20776 (get_val_for): Same.
20777 (loop_niter_by_eval): Same.
20778 (derive_constant_upper_bound_ops): Same.
20779 (do_warn_aggressive_loop_optimizations): Same.
20780 (record_estimate): Same.
20781 (get_cst_init_from_scev): Same.
20782 (record_nonwrapping_iv): Same.
20783 (idx_infer_loop_bounds): Same.
20784 (infer_loop_bounds_from_ref): Same.
20785 (infer_loop_bounds_from_array): Same.
20786 (infer_loop_bounds_from_pointer_arith): Same.
20787 (infer_loop_bounds_from_signedness): Same.
20788 (bound_index): Same.
20789 (discover_iteration_bound_by_body_walk): Same.
20790 (maybe_lower_iteration_bound): Same.
20791 (estimate_numbers_of_iterations): Same.
20792 (estimated_loop_iterations): Same.
20793 (estimated_loop_iterations_int): Same.
20794 (max_loop_iterations): Same.
20795 (max_loop_iterations_int): Same.
20796 (likely_max_loop_iterations): Same.
20797 (likely_max_loop_iterations_int): Same.
20798 (estimated_stmt_executions_int): Same.
20799 (max_stmt_executions): Same.
20800 (likely_max_stmt_executions): Same.
20801 (estimated_stmt_executions): Same.
20802 (stmt_dominates_stmt_p): Same.
20803 (nowrap_type_p): Same.
20804 (loop_exits_before_overflow): Same.
20805 (scev_var_range_cant_overflow): Same.
20806 (scev_probably_wraps_p): Same.
20807 (free_numbers_of_iterations_estimates): Same.
20808 * tree-ssa-loop-niter.h: Same.
20809 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20810 (idx_analyze_ref): Same.
20811 (analyze_ref): Same.
20812 (gather_memory_references_ref): Same.
20813 (mark_nontemporal_store): Same.
20814 (emit_mfence_after_loop): Same.
20815 (may_use_storent_in_loop_p): Same.
20816 (mark_nontemporal_stores): Same.
20817 (should_unroll_loop_p): Same.
20818 (volume_of_dist_vector): Same.
20819 (add_subscript_strides): Same.
20820 (self_reuse_distance): Same.
20821 (insn_to_prefetch_ratio_too_small_p): Same.
20822 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20823 (patch_loop_exit): Same.
20824 (find_or_create_guard_phi): Same.
20825 (easy_exit_values): Same.
20826 (connect_loop_phis): Same.
20827 (connect_loops): Same.
20828 (compute_new_first_bound): Same.
20829 (split_loop): Same.
20830 (tree_ssa_split_loops): Same.
20831 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20832 (is_maybe_undefined): Same.
20833 (tree_may_unswitch_on): Same.
20834 (simplify_using_entry_checks): Same.
20835 (tree_unswitch_single_loop): Same.
20836 (tree_unswitch_loop): Same.
20837 (tree_unswitch_outer_loop): Same.
20838 (empty_bb_without_guard_p): Same.
20839 (used_outside_loop_p): Same.
20840 (get_vop_from_header): Same.
20841 (hoist_guard): Same.
20842 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20843 (get_lsm_tmp_name): Same.
20844 * tree-ssa-loop.h: Same.
20845 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20846 (build_and_add_sum): Same.
20847 (no_side_effect_bb): Same.
20848 (get_ops): Same.
20849 (linearize_expr): Same.
20850 (should_break_up_subtract): Same.
20851 (linearize_expr_tree): Same.
20852 * tree-ssa-scopedtables.c: Same.
20853 * tree-ssa-scopedtables.h: Same.
20854 * tree-ssa-structalias.c (condense_visit): Same.
20855 (label_visit): Same.
20856 (dump_pred_graph): Same.
20857 (perform_var_substitution): Same.
20858 (move_complex_constraints): Same.
20859 (remove_preds_and_fake_succs): Same.
20860 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20861 (determine_bb_domination_status): Same.
20862 (duplicate_thread_path): Same.
20863 (thread_through_all_blocks): Same.
20864 * tree-ssa-threadupdate.h: Same.
20865 * tree-streamer-in.c (streamer_read_string_cst): Same.
20866 (input_identifier): Same.
20867 (unpack_ts_type_common_value_fields): Same.
20868 (unpack_ts_block_value_fields): Same.
20869 (unpack_ts_translation_unit_decl_value_fields): Same.
20870 (unpack_ts_omp_clause_value_fields): Same.
20871 (streamer_read_tree_bitfields): Same.
20872 (streamer_alloc_tree): Same.
20873 (lto_input_ts_common_tree_pointers): Same.
20874 (lto_input_ts_vector_tree_pointers): Same.
20875 (lto_input_ts_poly_tree_pointers): Same.
20876 (lto_input_ts_complex_tree_pointers): Same.
20877 (lto_input_ts_decl_minimal_tree_pointers): Same.
20878 (lto_input_ts_decl_common_tree_pointers): Same.
20879 (lto_input_ts_decl_non_common_tree_pointers): Same.
20880 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20881 (lto_input_ts_field_decl_tree_pointers): Same.
20882 (lto_input_ts_function_decl_tree_pointers): Same.
20883 (lto_input_ts_type_common_tree_pointers): Same.
20884 (lto_input_ts_type_non_common_tree_pointers): Same.
20885 (lto_input_ts_list_tree_pointers): Same.
20886 (lto_input_ts_vec_tree_pointers): Same.
20887 (lto_input_ts_exp_tree_pointers): Same.
20888 (lto_input_ts_block_tree_pointers): Same.
20889 (lto_input_ts_binfo_tree_pointers): Same.
20890 (lto_input_ts_constructor_tree_pointers): Same.
20891 (lto_input_ts_omp_clause_tree_pointers): Same.
20892 (streamer_read_tree_body): Same.
20893 * tree-streamer.h: Same.
20894 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20895 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20896 (vect_analyze_possibly_independent_ddr): Same.
20897 (vect_analyze_data_ref_dependence): Same.
20898 (vect_compute_data_ref_alignment): Same.
20899 (vect_enhance_data_refs_alignment): Same.
20900 (vect_analyze_data_ref_access): Same.
20901 (vect_check_gather_scatter): Same.
20902 (vect_find_stmt_data_reference): Same.
20903 (vect_create_addr_base_for_vector_ref): Same.
20904 (vect_setup_realignment): Same.
20905 (vect_supportable_dr_alignment): Same.
20906 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20907 (adjust_phi_and_debug_stmts): Same.
20908 (vect_set_loop_mask): Same.
20909 (add_preheader_seq): Same.
20910 (vect_maybe_permute_loop_masks): Same.
20911 (vect_set_loop_masks_directly): Same.
20912 (vect_set_loop_condition_masked): Same.
20913 (vect_set_loop_condition_unmasked): Same.
20914 (slpeel_duplicate_current_defs_from_edges): Same.
20915 (slpeel_add_loop_guard): Same.
20916 (slpeel_can_duplicate_loop_p): Same.
20917 (create_lcssa_for_virtual_phi): Same.
20918 (iv_phi_p): Same.
20919 (vect_update_ivs_after_vectorizer): Same.
20920 (vect_gen_vector_loop_niters_mult_vf): Same.
20921 (slpeel_update_phi_nodes_for_loops): Same.
20922 (slpeel_update_phi_nodes_for_guard1): Same.
20923 (find_guard_arg): Same.
20924 (slpeel_update_phi_nodes_for_guard2): Same.
20925 (slpeel_update_phi_nodes_for_lcssa): Same.
20926 (vect_do_peeling): Same.
20927 (vect_create_cond_for_alias_checks): Same.
20928 (vect_loop_versioning): Same.
20929 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20930 (vect_inner_phi_in_double_reduction_p): Same.
20931 (vect_analyze_scalar_cycles_1): Same.
20932 (vect_fixup_scalar_cycles_with_patterns): Same.
20933 (vect_get_loop_niters): Same.
20934 (bb_in_loop_p): Same.
20935 (vect_get_max_nscalars_per_iter): Same.
20936 (vect_verify_full_masking): Same.
20937 (vect_compute_single_scalar_iteration_cost): Same.
20938 (vect_analyze_loop_form_1): Same.
20939 (vect_analyze_loop_form): Same.
20940 (vect_active_double_reduction_p): Same.
20941 (vect_analyze_loop_operations): Same.
20942 (neutral_op_for_slp_reduction): Same.
20943 (vect_is_simple_reduction): Same.
20944 (vect_model_reduction_cost): Same.
20945 (get_initial_def_for_reduction): Same.
20946 (get_initial_defs_for_reduction): Same.
20947 (vect_create_epilog_for_reduction): Same.
20948 (vectorize_fold_left_reduction): Same.
20949 (vectorizable_reduction): Same.
20950 (vectorizable_induction): Same.
20951 (vectorizable_live_operation): Same.
20952 (loop_niters_no_overflow): Same.
20953 (vect_get_loop_mask): Same.
20954 (vect_transform_loop_stmt): Same.
20955 (vect_transform_loop): Same.
20956 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20957 (vect_determine_precisions): Same.
20958 (vect_pattern_recog_1): Same.
20959 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20960 * tree-vect-stmts.c (stmt_vectype): Same.
20961 (process_use): Same.
20962 (vect_init_vector_1): Same.
20963 (vect_truncate_gather_scatter_offset): Same.
20964 (get_group_load_store_type): Same.
20965 (vect_build_gather_load_calls): Same.
20966 (vect_get_strided_load_store_ops): Same.
20967 (vectorizable_simd_clone_call): Same.
20968 (vectorizable_store): Same.
20969 (permute_vec_elements): Same.
20970 (vectorizable_load): Same.
20971 (vect_transform_stmt): Same.
20972 (supportable_widening_operation): Same.
20973 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20974 (vec_info::free_stmt_vec_info): Same.
20975 (vect_free_loop_info_assumptions): Same.
20976 (vect_loop_vectorized_call): Same.
20977 (set_uid_loop_bbs): Same.
20978 (vectorize_loops): Same.
20979 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20980 * tree.c (add_tree_to_fld_list): Same.
20981 (fld_type_variant_equal_p): Same.
20982 (fld_decl_context): Same.
20983 (fld_incomplete_type_of): Same.
20984 (free_lang_data_in_binfo): Same.
20985 (need_assembler_name_p): Same.
20986 (find_decls_types_r): Same.
20987 (get_eh_types_for_runtime): Same.
20988 (find_decls_types_in_eh_region): Same.
20989 (find_decls_types_in_node): Same.
20990 (assign_assembler_name_if_needed): Same.
20991 * value-prof.c (stream_out_histogram_value): Same.
20992 * value-prof.h: Same.
20993 * var-tracking.c (use_narrower_mode): Same.
20994 (prepare_call_arguments): Same.
20995 (vt_expand_loc_callback): Same.
20996 (resolve_expansions_pending_recursion): Same.
20997 (vt_expand_loc): Same.
20998 * varasm.c (const_hash_1): Same.
20999 (compare_constant): Same.
21000 (tree_output_constant_def): Same.
21001 (simplify_subtraction): Same.
21002 (get_pool_constant): Same.
21003 (output_constant_pool_2): Same.
21004 (output_constant_pool_1): Same.
21005 (mark_constants_in_pattern): Same.
21006 (mark_constant_pool): Same.
21007 (get_section_anchor): Same.
21008 * vr-values.c (compare_range_with_value): Same.
21009 (vr_values::extract_range_from_phi_node): Same.
21010 * vr-values.h: Same.
21011 * web.c (unionfind_union): Same.
21012 * wide-int.h: Same.
21013
21014 2019-07-09 Martin Sebor <msebor@redhat.com>
21015
21016 PR c++/61339
21017 * align.h: Change class-key from class to struct and vice versa
21018 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21019 * alloc-pool.h: Same.
21020 * asan.c (shadow_mem_size): Same.
21021 * auto-profile.c: Same.
21022 * basic-block.h: Same.
21023 * bitmap.h: Same.
21024 * cfgexpand.c (set_rtl): Same.
21025 (expand_one_stack_var_at): Same.
21026 * cfghooks.h: Same.
21027 * cfgloop.h: Same.
21028 * cgraph.h: Same.
21029 * config/i386/i386.h: Same.
21030 * df-problems.c (df_print_bb_index): Same.
21031 * df-scan.c: Same.
21032 * df.h (df_single_use): Same.
21033 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21034 (layout::annotation_line_showed_range_p): Same.
21035 (get_printed_columns): Same.
21036 (correction::ensure_terminated): Same.
21037 (line_corrections::~line_corrections): Same.
21038 * dojump.h: Same.
21039 * dse.c: Same.
21040 * dump-context.h: Same.
21041 * dumpfile.h: Same.
21042 * dwarf2out.c: Same.
21043 * edit-context.c: Same.
21044 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21045 * flags.h: Same.
21046 * function.c (assign_stack_local): Same.
21047 * function.h: Same.
21048 * gcc.c: Same.
21049 * gcov.c (block_info::block_info): Same.
21050 * genattrtab.c: Same.
21051 * genextract.c: Same.
21052 * genmatch.c (comparison_code_p): Same.
21053 (id_base::id_base): Same.
21054 (decision_tree::print): Same.
21055 * genoutput.c: Same.
21056 * genpreds.c (write_one_predicate_function): Same.
21057 * genrecog.c (validate_pattern): Same.
21058 (find_operand_positions): Same.
21059 (optimize_subroutine_group): Same.
21060 (merge_pattern_transition::merge_pattern_transition): Same.
21061 (merge_pattern_info::merge_pattern_info): Same.
21062 (merge_state_result::merge_state_result): Same.
21063 (merge_into_state): Same.
21064 * gensupport.c: Same.
21065 * gensupport.h: Same.
21066 * ggc-common.c (init_ggc_heuristics): Same.
21067 * ggc-tests.c (test_union): Same.
21068 * gimple-loop-interchange.cc (dump_induction): Same.
21069 * gimple-loop-versioning.cc: Same.
21070 * gimple-match.h (gimple_match_cond::any_else): Same.
21071 * gimple-ssa-backprop.c: Same.
21072 * gimple-ssa-sprintf.c: Same.
21073 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21074 Same.
21075 (store_immediate_info::store_immediate_info): Same.
21076 (merged_store_group::apply_stores): Same.
21077 (get_location_for_stmts): Same.
21078 * gimple-ssa-strength-reduction.c: Same.
21079 * gimple-ssa-warn-alloca.c: Same.
21080 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21081 * godump.c (go_type_decl): Same.
21082 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21083 * hash-map.h: Same.
21084 * hash-set-tests.c (test_set_of_strings): Same.
21085 * hsa-brig.c: Same.
21086 * hsa-common.h: Same.
21087 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21088 * input.c (assert_loceq): Same.
21089 * input.h: Same.
21090 * ipa-cp.c: Same.
21091 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21092 * ipa-fnsummary.h: Same.
21093 * ipa-inline.h: Same.
21094 * ipa-prop.h: Same.
21095 * ipa-split.c (visit_bb): Same.
21096 * ira-int.h (minmax_set_iter_next): Same.
21097 * loop-invariant.c: Same.
21098 * loop-iv.c: Same.
21099 * lra-eliminations.c: Same.
21100 * lra-int.h: Same.
21101 * lra-lives.c (mark_regno_dead): Same.
21102 * lra-remat.c: Same.
21103 * lra-spills.c: Same.
21104 * lto-streamer.h: Same.
21105 * mem-stats.h: Same.
21106 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21107 * omp-low.c (omp_clause_aligned_alignment): Same.
21108 * optabs-query.h (get_vcond_eq_icode): Same.
21109 * optabs.h: Same.
21110 * opts.c (wrap_help): Same.
21111 * poly-int.h: Same.
21112 * predict.c (predict_paths_leading_to_edge): Same.
21113 * pretty-print.h: Same.
21114 * profile-count.h: Same.
21115 * read-md.h: Same.
21116 * read-rtl-function.c: Same.
21117 * ree.c: Same.
21118 * reginfo.c: Same.
21119 * regrename.c: Same.
21120 * regrename.h: Same.
21121 * reload.h: Same.
21122 * rtl-iter.h: Same.
21123 * rtl.h (costs_add_n_insns): Same.
21124 * sanopt.c: Same.
21125 * sched-int.h: Same.
21126 * sel-sched-ir.h: Same.
21127 * selftest.h: Same.
21128 * sese.h (vec_find): Same.
21129 * stmt.c: Same.
21130 * target-globals.h: Same.
21131 * tree-affine.c (aff_combination_find_elt): Same.
21132 * tree-affine.h: Same.
21133 * tree-data-ref.h: Same.
21134 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21135 * tree-predcom.c: Same.
21136 * tree-scalar-evolution.c (find_var_scev_info): Same.
21137 * tree-ssa-alias.h: Same.
21138 * tree-ssa-ccp.c: Same.
21139 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21140 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21141 (rewrite_mem_refs): Same.
21142 (execute_sm_if_changed): Same.
21143 (hoist_memory_references): Same.
21144 * tree-ssa-loop-ivopts.c (operator<=): Same.
21145 * tree-ssa-loop.h: Same.
21146 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21147 * tree-ssa-structalias.c: Same.
21148 * tree-switch-conversion.h (cluster::cluster): Same.
21149 (simple_cluster::simple_cluster): Same.
21150 * tree-vect-patterns.c (type_conversion_p): Same.
21151 * tree-vectorizer.c (dump_stmt_cost): Same.
21152 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21153 * tree.c (protected_set_expr_location): Same.
21154 * tree.h (desired_pro_or_demotion_p): Same.
21155 (fndecl_built_in_p): Same.
21156 * unique-ptr-tests.cc: Same.
21157 * var-tracking.c (delete_variable_part): Same.
21158 * varasm.c (assemble_real): Same.
21159 (tree_output_constant_def): Same.
21160 * vec.c: Same.
21161 * wide-int-bitmask.h: Same.
21162 * wide-int.h (decompose): Same.
21163
21164 2019-07-09 Richard Biener <rguenther@suse.de>
21165
21166 PR tree-optimization/91114
21167 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21168 find a vector type isn't fatal.
21169
21170 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21171
21172 * config/aarch64/aarch64-simd.md
21173 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21174 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21175 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21176 (*aarch64_crypto_aese_fused,
21177 *aarch64_crypto_aesd_fused): Update to new definition.
21178 * config/aarch64/aarch64.c
21179 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21180
21181 2019-07-09 Richard Biener <rguenther@suse.de>
21182
21183 * gimple-match.h (gimple_match_op::resimplify): New.
21184 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21185 gimple_resimplify4, gimple_resimplify5): Remove.
21186 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21187 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21188 Make static.
21189 (gimple_match_op::resimplify): New.
21190 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21191 according to availability. Use gimple_match_op::resimplify.
21192
21193 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21194
21195 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21196
21197 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21198
21199 * config/arm/crypto.md:
21200 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21201 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21202 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21203 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21204 * config/arm/arm.c
21205 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21206 * config/arm/aarch-common-protos.h
21207 (aarch_crypto_can_dual_issue): Remove.
21208 * config/arm/aarch-common.c
21209 (aarch_crypto_can_dual_issue): Likewise.
21210 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21211 * config/arm/cortex-a53.md: Likewise.
21212 * config/arm/cortex-a57.md: Likewise.
21213 * config/arm/iterators.md:
21214 (CRYPTO_BINARY): Redefine.
21215 (CRYPTO_UNARY): Removed.
21216 (CRYPTO_AES, CRYPTO_AESMC): New.
21217
21218 2019-07-09 Richard Biener <rguenther@suse.de>
21219
21220 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21221 (vn_reference_lookup_3): If the main ref has no access path recorded
21222 but orig_ref has use it to do access-path based disambiguation.
21223 (vn_reference_lookup_pieces): Adjust.
21224 (vn_reference_lookup): Pass down original ref if we valueized.
21225
21226 2019-07-09 Martin Liska <mliska@suse.cz>
21227
21228 * doc/extend.texi: Document influence on loop
21229 optimizers.
21230
21231 2019-07-09 Martin Liska <mliska@suse.cz>
21232
21233 * lto-compress.c (lto_normalized_zstd_level): Do not use
21234 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21235 of libzstd. One can use 0 as a default compression level.
21236
21237 2019-07-09 Martin Liska <mliska@suse.cz>
21238
21239 * doc/invoke.texi: Add link from -fprofile-dir option.
21240 Use better wording for 'gcno filename'.
21241
21242 2019-07-08 Martin Sebor <msebor@redhat.com>
21243
21244 PR middle-end/71924
21245 PR middle-end/90549
21246 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21247 comment.
21248 (args_loc_t): New type.
21249 (args_loc_t, locmap_t): same.
21250 (diag_returned_locals): New function.
21251 (is_addr_local): Same.
21252 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21253 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21254 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21255
21256 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21257
21258 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21259 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21260 and casts in offset when different, both through gimple stmts
21261 and through trees. Rewritten using loops to minimize code duplication
21262 for each operand.
21263
21264 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21265
21266 * emit-rtl.c (set_insn_locations): New function moved from...
21267 * function.c (set_insn_locations): ...here.
21268 * ira-emit.c (emit_moves): Propagate location of the first instruction
21269 to the inserted move instructions.
21270 * reg-stack.c (compensate_edge): Set the location if the sequence is
21271 inserted on the edge.
21272 * rtl.h (set_insn_locations): Declare.
21273
21274 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21275
21276 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21277 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21278 .machine string.
21279
21280 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21281
21282 PR rtl-optimization/88233
21283 * common.opt (fsplit-wide-types-early): New option.
21284 * common/config/rs6000/rs6000-common.c
21285 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21286 OPT_LEVELS_ALL.
21287 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21288 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21289 flag_split_wide_types_early.
21290 (pass_data_lower_subreg3): New.
21291 (pass_lower_subreg3): New.
21292 (make_pass_lower_subreg3): New.
21293 * passes.def (pass_lower_subreg2): Move after the loop passes.
21294 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21295 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21296 the pass pipeline; its previous place is taken by ...
21297 (make_pass_lower_subreg3): ... this.
21298
21299 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21300
21301 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21302 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21303
21304 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21305
21306 * config/s390/constraints.md: Add new jsc constraint.
21307 * config/s390/predicates.md: New predicates.
21308 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21309 * config/s390/s390.c (s390_valid_shift_count): New function.
21310 (print_shift_count_operand): Use s390_valid_shift_count.
21311 (print_operand): Likewise.
21312 * config/s390/s390.md: Use new predicate.
21313 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21314 * config/s390/vector.md: Use new predicate.
21315
21316 2019-07-08 Andrew Waterman <andrew@sifive.com>
21317 Jim Wilson <jimw@sifive.com>
21318
21319 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21320 bitsize instead of BITS_PER_WORD.
21321
21322 2019-07-08 Martin Liska <mliska@suse.cz>
21323
21324 * collect2.c (defined): Revert to before r254460.
21325 (scan_prog_file): Revert to before r254460.
21326
21327 2019-07-08 Richard Biener <rguenther@suse.de>
21328
21329 PR tree-optimization/83518
21330 * tree-ssa-sccvn.c: Include splay-tree.h.
21331 (struct pd_range, struct pd_data): New.
21332 (struct vn_walk_cb_data): Add data to track partial definitions.
21333 (vn_walk_cb_data::~vn_walk_cb_data): New.
21334 (vn_walk_cb_data::push_partial_def): New.
21335 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21336 (vn_reference_lookup_2): When partial defs are registered give up.
21337 (vn_reference_lookup_3): Track partial defs for memset and
21338 constructor zeroing and for defs from constants.
21339
21340 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21341
21342 * doc/install.texi (bootstrap-Og): Document.
21343
21344 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21345
21346 * config/riscv/pic.md (*local_pic_load_s<mode>)
21347 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21348 referenced by <mode>, giving...
21349 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21350 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21351 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21352 use <X:MODE> for the mode attribute.
21353
21354 2019-07-07 Jeff Law <law@redhat.com>
21355
21356 PR tree-optimization/91090
21357 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21358 in handling of ranges to simplify switch statements.
21359
21360 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21361
21362 * config/darwin.c (darwin_override_options): Make a final check on PIC
21363 options.
21364
21365 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21366
21367 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21368 on for kernel code.
21369
21370 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21371
21372 PR target/91068
21373 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21374 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21375 instead of matching them to "l" output operands.
21376
21377 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21378
21379 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21380 and check whether addr.reg is nonnull before using it.
21381
21382 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21383
21384 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21385 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21386 variable(s). For conditional lastprivate look through outer
21387 GIMPLE_OMP_SCAN context.
21388 (lower_omp_1): For conditional lastprivate look through outer
21389 GIMPLE_OMP_SCAN context.
21390
21391 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21392 member to combined_into_simd_safelen1.
21393 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21394 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21395 clauses if ctx->combined_into_simd_safelen1 put statements after the
21396 predicate conditionalized block rather than into it.
21397
21398 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21399
21400 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21401 operand 1.
21402 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21403 Make the choice of <mode> explicit, giving...
21404 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21405
21406 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21407
21408 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21409 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21410 of .md attributes.
21411 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21412 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21413 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21414 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21415 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21416 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21417 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21418 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21419 (*avx512f_scatterdi<mode>): Likewise.
21420 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21421
21422 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21423
21424 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21425 specify the mode iterator referenced by <mode>, giving...
21426 (*push1_h8300hs_<QHI:mode>): ...this.
21427
21428 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21429
21430 * config/gcn/gcn-valu.md
21431 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21432 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21433 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21434 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21435 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21436 but using the _exec comparison patterns.
21437 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21438 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21439 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21440 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21441 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21442 but using the _exec comparison patterns.
21443
21444 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21445
21446 * config/arm/sync.md
21447 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21448 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21449 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21450 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21451 <SIDI:cas_cmp_str>.
21452
21453 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21454
21455 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21456 (maybe_lookup_ctx): Add forward declaration.
21457 (omp_find_scan): Likewise. Walk into body of simd if composited
21458 with worksharing loop.
21459 (scan_omp_simd_scan): New function.
21460 (scan_omp_1_stmt): Call it.
21461 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21462 ctx->for_simd_scan_phase.
21463 (lower_rec_input_clauses): Do much less work for inscan reductions
21464 in ctx->for_simd_scan_phase is_simd regions.
21465 (lower_omp_scan): Set is_simd also on simd constructs composited
21466 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21467 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21468 emit their body after in simd constructs composited with worksharing
21469 loop.
21470 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21471
21472 * omp-low.c (omp_find_scan): Make static.
21473 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21474 the second loop, var2 represents the first partial sum and so needs
21475 to go before rprivb[ivar].
21476
21477 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21478
21479 * config/rs6000/rs6000-logue.c: Remove unused code.
21480
21481 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21482
21483 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21484
21485 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21486
21487 PR target/90712
21488 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21489 check with a frame laid out check.
21490
21491 2019-07-05 Richard Biener <rguenther@suse.de>
21492
21493 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21494 when comparing against a store with possibly the same value.
21495
21496 2019-07-05 Richard Biener <rguenther@suse.de>
21497
21498 PR tree-optimization/91091
21499 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21500 (walk_non_aliased_vuses): Likewise.
21501 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21502 (get_continuation_for_phi): New tbaa_p parameter and pass
21503 it down.
21504 (walk_non_aliased_vuses): Likewise.
21505 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21506 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21507 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21508 Likewise.
21509 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21510 (adjust_offsets_for_equal_base_address): New function.
21511 (vn_reference_lookup_3): Use it to catch more base equivalences.
21512 Handle and pass down tbaa_p flag.
21513 (vn_reference_lookup_pieces): Adjust.
21514 (vn_reference_lookup): Remove alias-set altering, instead pass
21515 down false as tbaa_p.
21516
21517 2019-07-05 Richard Biener <rguenther@suse.de>
21518
21519 PR tree-optimization/91091
21520 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21521 accesses can happen with -fno-strict-aliasing.
21522
21523 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21524
21525 * tree-ssa-alias.c (alias_stats): Add
21526 nonoverlapping_component_refs_since_match_p_must_overlap.
21527 (dump_alias_stats): Print it.
21528 (nonoverlapping_component_refs_since_match_p): Add early exit.
21529 (nonoverlapping_component_refs_p): Do not account early exit.
21530
21531 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21532
21533 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21534 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21535 (emit_eh_dispatch): Delete.
21536 (lower_catch): Emit the eh_dispatch manually and set the location of
21537 the first catch statement onto it.
21538 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21539 (lower_eh_dispatch): Propagate location.
21540 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21541 (eliminate_build): Likewise.
21542
21543 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21544
21545 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21546 phi nodes if possible.
21547 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21548 location info on the newly created statement.
21549 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21550 newly created increment if needed.
21551
21552 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21553
21554 PR middle-end/78884
21555 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21556 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21557 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21558 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21559 ctx->add_safelen1 is set.
21560
21561 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21562 GOMP_loop_start at the start of second worksharing loop in a scan.
21563 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21564 worksharing loop in a scan even if there are conditional lastprivates,
21565 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21566
21567 2019-07-04 Jan Hubicka <jh@suse.cz>
21568
21569 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21570 Fix check for match in the ref walk.
21571
21572 2019-07-04 Martin Liska <mliska@suse.cz>
21573
21574 * tree-ssa-loop-niter.c
21575 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21576 (estimate_numbers_of_iterations):
21577 Support __builtin_expect_with_probability for analysis
21578 of # of loop iterations.
21579
21580 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21581
21582 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21583 * except.c: Likewise.
21584 * expr.c (expand_expr_real_1): Reject it.
21585 * gimplify.c (gimplify_expr): Gimplify it, within
21586 TRY_FINALLY_EXPR.
21587 * tree-dump.c (dequeue_and_dump): Dump it.
21588 * tree-pretty-print.c (dump_generic_node): Likewise.
21589 * tree.c (block_may_fallthru): Handle it.
21590 * tree.def (EH_ELSE_EXPR): Introduce it.
21591 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21592 with GIMPLE_EH_ELSE as try/finally/else.
21593
21594 2019-07-04 Richard Biener <rguenther@suse.de>
21595
21596 PR ipa/91062
21597 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21598 parameter whether to disable GC collection.
21599 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21600 honor it.
21601 (execute_all_ipa_transforms): Likewise and pass it down.
21602 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21603 collection from applying IPA transforms.
21604 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21605 from applying IPA transforms.
21606
21607 2019-07-04 Richard Biener <rguenther@suse.de>
21608
21609 PR tree-optimization/90911
21610 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21611 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21612 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21613 scalar_loop_scaling.
21614 (vect_transform_loop): Scale scalar loop profile if needed.
21615 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21616 the loop copy from if-conversion adjust edge probabilities
21617 and scale the vectorized loop body profile, queue the scalar
21618 profile for updating after peeling.
21619
21620 2019-07-04 Jan Hubicka <jh@suse.cz>
21621
21622 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21623 parameters; return early for must-alias.
21624 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21625 outer types match, try nonoverlapping_component_refs
21626 if must-alias is not obvious.
21627 (indirect_refs_may_alias_p): Likewise.
21628 (refs_may_alias_p_2): Likewise.
21629
21630 2019-07-04 Richard Biener <rguenther@suse.de>
21631
21632 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21633 argument.
21634 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21635 globals into...
21636 (struct vn_walk_cb_data): New callback data struct.
21637 (vn_reference_lookup_2): Adjust.
21638 (vn_reference_lookup_3): Likewise.
21639 (vn_reference_lookup_pieces): Likewise.
21640 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21641 (visit_reference_op_load): Adjust.
21642
21643 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21644
21645 PR tree-optimization/91063
21646 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21647 stmt from stmts sequence before calling vect_init_vector_1.
21648 Formatting fix.
21649
21650 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21651
21652 PR target/88833
21653 * fwprop.c (reg_single_def_p): New function.
21654 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21655 (forward_propagate_into): New parameter reg_prop_only
21656 with default value false.
21657 Propagate def's src into loop only if SET_SRC and SET_DEST
21658 of def_set have single definitions.
21659 Likewise if reg_prop_only is set to true.
21660 (fwprop): New param fwprop_addr_p.
21661 Integrate fwprop_addr into fwprop.
21662 (fwprop_addr): Remove.
21663 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21664 to true.
21665 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21666 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21667 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21668
21669 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21670
21671 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21672 in worksharing loop scans.
21673
21674 PR tree-optimization/91074
21675 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21676 temporary.
21677
21678 PR rtl-optimization/90756
21679 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21680 for VECTOR_TYPE_P.
21681
21682 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21683
21684 * config/aarch64/aarch64.md: Remove redundant constraints from
21685 define_expand but keep some patterns untouched if they are
21686 specially selected by TARGET_SECONDARY_RELOAD hook.
21687 * config/aarch64/aarch64-sve.md: Likewise.
21688 * config/aarch64/atomics.md: Remove redundant constraints from
21689 define_expand.
21690 * config/aarch64/aarch64-simd.md: Likewise.
21691
21692 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21693
21694 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21695 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21696 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21697 clauses.
21698 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21699 DARWIN_NOPIE_SPEC.
21700
21701 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21702
21703 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21704 (STARTFILE_SPEC): Split crt3 into a separate spec.
21705 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21706 (DARWIN_CRT2_SPEC): New.
21707 (DARWIN_CRT3_SPEC): New.
21708 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21709 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21710 (DARWIN_CRT3_SPEC): New.
21711
21712 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21713
21714 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21715 Change the RTL attribute "length" from "4" to "*" to allow the
21716 length attribute to be adjusted automatically for prefixed load,
21717 store, and add immediate instructions.
21718 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21719 Likewise.
21720 (extendsi<mode>2, EXTSI iterator): Likewise.
21721 (movsi_internal1): Likewise.
21722 (movsi_from_sf): Likewise.
21723 (movdi_from_sf_zero_ext): Likewise.
21724 (mov<mode>_internal): Likewise.
21725 (movcc_internal1, QHI iterator): Likewise.
21726 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21727 (movsf_from_si): Likewise.
21728 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21729 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21730 (mov<mode>, FMOVE128 iterator): Likewise.
21731 (movdi_internal64): Likewise.
21732 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21733 Likewise.
21734 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21735 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21736 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21737 (vsx_splat_v4sf): Likewise.
21738
21739 2019-07-03 Mark Wielaard <mark@klomp.org>
21740
21741 PR debug/90981
21742 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21743 DW_AT_addr_base if there is actually a .debug_addr section with
21744 addresses.
21745 (output_addr_table): Add DWARF5 table header generation here after
21746 checking there are actually any addresses from...
21747 (dwarf2out_finish): ...here.
21748
21749 2019-07-03 Richard Biener <rguenther@suse.de>
21750
21751 PR middle-end/91069
21752 * match.pd (vec_perm -> bit_insert): Fix element read from
21753 first vector.
21754
21755 2019-07-03 Martin Liska <mliska@suse.cz>
21756
21757 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21758 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21759 condition.
21760 * generic-match-head.c: Include dbgcnt.h.
21761 * gimple-match-head.c: Likewise.
21762
21763 2019-07-03 Martin Liska <mliska@suse.cz>
21764
21765 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21766 (GCOV_COUNTER_V_TOPN): New.
21767 (GCOV_COUNTER_V_INDIR): Use _topn.
21768 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21769 (GCOV_TOPN_VALUES): New.
21770 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21771 (GCOV_TOPN_VALUES_COUNTERS): New.
21772 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21773 * tree-profile.c:
21774 (gimple_init_gcov_profiler): Rename variables from one_value
21775 to topn_values.
21776 (gimple_gen_one_value_profiler): Remove.
21777 (gimple_gen_topn_values_profiler): New function.
21778 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21779 names instead of SINGLE_VALUE.
21780 (stream_out_histogram_value): Likewise.
21781 (stream_in_histogram_value): Likewise.
21782 (get_most_common_single_value): Likewise.
21783 (gimple_divmod_fixed_value_transform): Likewise.
21784 (gimple_stringops_transform): Likewise.
21785 (gimple_divmod_values_to_profile): Likewise.
21786 (gimple_stringops_values_to_profile): Likewise.
21787 (gimple_find_values_to_profile): Likewise.
21788 * value-prof.h (enum hist_type): Rename to TOPN.
21789 (gimple_gen_one_value_profiler): Remove.
21790 (gimple_gen_topn_values_profiler): New.
21791
21792 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21793
21794 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21795 if it has the DW_AT_data_member_location attribute.
21796
21797 2019-07-03 Richard Biener <rguenther@suse.de>
21798
21799 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21800 dumping.
21801
21802 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21803
21804 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21805 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21806 (tlsdesc_small_sve_<mode>): Likewise.
21807
21808 2019-07-03 Martin Liska <mliska@suse.cz>
21809
21810 * Makefile.in: Define ZSTD_LIB.
21811 * common.opt: Adjust compression level
21812 to support also zstd levels.
21813 * config.in: Regenerate.
21814 * configure: Likewise.
21815 * configure.ac: Add --with-zstd and --with-zstd-include options
21816 and detect ZSTD.
21817 * doc/install.texi: Mention zstd dependency.
21818 * gcc.c: Print supported LTO compression algorithms.
21819 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21820 (lto_compression_zstd): Likewise.
21821 (lto_uncompression_zstd): Likewise.
21822 (lto_end_compression): Dispatch in between zlib and zstd.
21823 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21824 (lto_uncompression_zlib): Make it static.
21825 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21826 * lto-section-in.c (lto_get_section_data): Pass info
21827 about used compression.
21828 * lto-streamer-out.c: By default use zstd when possible.
21829 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21830 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21831
21832 2019-07-03 Martin Liska <mliska@suse.cz>
21833
21834 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21835 * lto-section-out.c (lto_destroy_simple_output_block): Never
21836 compress LTO_section_lto section.
21837 * lto-streamer-out.c (produce_asm): Do not set major_version
21838 and minor_version.
21839 (lto_output_toplevel_asms): Likewise.
21840 (produce_lto_section): New function.
21841 (lto_output): Call produce_lto_section.
21842 (lto_write_mode_table): Do not set major_version and
21843 minor_version.
21844 (produce_asm_for_decls): Likewise.
21845 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21846 type.
21847 (struct lto_header): Remove.
21848 (struct lto_section): New struct.
21849 (struct lto_simple_header): Do not inherit from lto_header.
21850 (struct lto_file_decl_data): Add lto_section_header field.
21851
21852 2019-07-03 Martin Liska <mliska@suse.cz>
21853
21854 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21855 dead assignemts.
21856 * reg-stack.c (check_asm_stack_operands): Likewise.
21857 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21858 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21859 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21860 force_expand_binop.
21861
21862 2019-07-03 Martin Liska <mliska@suse.cz>
21863
21864 PR tree-optimization/90892
21865 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21866 in string constants.
21867
21868 2019-07-03 Martin Liska <mliska@suse.cz>
21869
21870 PR middle-end/90899
21871 * multiple_target.c (create_dispatcher_calls): Add to comdat
21872 group only if set for ifunc.
21873
21874 2019-07-03 Martin Liska <mliska@suse.cz>
21875
21876 PR target/88056
21877 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21878 Define local_object_name in outer scope in order to handle
21879 use-after-scope issue.
21880
21881 2019-07-03 Martin Liska <mliska@suse.cz>
21882
21883 * common.opt: Add fprofile-note.
21884 * coverage.c (coverage_init): Append the option
21885 to bbg_file_name.
21886 * doc/invoke.texi: Document -fprofile-note.
21887
21888 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21889
21890 PR tree-optimization/91033
21891 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21892 vect_analyze_data_refs): Add bool * arguments.
21893 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21894 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21895 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21896 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21897 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21898 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21899 vect_analyze_data_refs caller.
21900
21901 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21902 clause.
21903 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21904 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21905 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21906 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21907 OMP_CLAUSE__SCANTEMP_ entry.
21908 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21909 * tree-pretty-print.c (dump_omp_clause): Likewise.
21910 * tree-nested.c (convert_nonlocal_omp_clauses,
21911 convert_local_omp_clauses): Likewise.
21912 * omp-general.h (struct omp_for_data): Add have_scantemp and
21913 have_nonctrl_scantemp members.
21914 * omp-general.c (omp_extract_for_data): Initialize them.
21915 * omp-low.c (struct omp_context): Add scan_exclusive member.
21916 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21917 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21918 ctx->scan_exclusive.
21919 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21920 of !ctx->scan_inclusive.
21921 (lower_rec_input_clauses): Simplify gimplification of dtors using
21922 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21923 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21924 loops. Don't add barrier for reduction_omp_orig_ref if
21925 ctx->scan_??xclusive.
21926 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21927 (lower_omp_scan): Use ctx->scan_exclusive instead
21928 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21929 reductions. Use new_vard != new_var instead of repeated
21930 omp_is_reference calls.
21931 (omp_find_scan, lower_omp_for_scan): New functions.
21932 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21933 inscan reductions.
21934 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21935 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21936 and fd->have_scantemp.
21937
21938 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21939 on worksharing loop propagate it as shared clause to containing
21940 combined parallel.
21941
21942 * omp-expand.c (expand_omp_for_static_nochunk,
21943 expand_omp_for_static_chunk): For nowait worksharing loop with
21944 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21945 at the end.
21946
21947 2019-07-02 qing zhao <qing.zhao@oracle.com>
21948
21949 PR preprocessor/90581
21950 * doc/cppopts.texi: Add document for -fmax-include-depth.
21951 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21952
21953 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21954
21955 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21956 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21957 (mmx_packssdw): Ditto.
21958 (mmx_punpckhbw): Ditto.
21959 (mmx_punpcklbw): Ditto.
21960 (mmx_punpckhwd): Ditto.
21961 (mmx_punpcklwd): Ditto.
21962 (mmx_punpckhdq): Ditto.
21963 (mmx_punpckldq): Ditto.
21964 (*vec_dupv4hi): Ditto.
21965 (*vec_dupv2si): Ditto.
21966 (mmx_pmovmskb): Ditto.
21967 * config/i386/sse.md (sse_cvtpi2ps): Use
21968 TARGET_SSE2 && SSE_REG_P in split condition.
21969 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21970 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21971 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21972 (ssse3_pshufbv8qi3): Ditto.
21973 (ssse3_palignrdi): Ditto.
21974
21975 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21976
21977 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21978 with inlined save and restore.
21979
21980 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21981
21982 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21983 to be inserted on single successor edge of the entry block. Then call
21984 commit_edge_insertions instead of inserting the instructions manually.
21985 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21986 RTL expansion and rebuild jump labels chain.
21987
21988 2019-07-02 Richard Biener <rguenther@suse.de>
21989
21990 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21991 TI_CHREC_KNOWN.
21992 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21993 Define here.
21994 * tree.c (build_common_tree_nodes): Initialize them.
21995 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21996 Make declarations comments.
21997 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21998 chrec_known): Remove definitions.
21999 (initialize_scalar_evolutions_analyzer): Remove.
22000 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22001 * tree-streamer.c (preload_common_nodes): Do not preload
22002 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22003
22004 2019-07-02 Jan Hubicka <jh@suse.cz>
22005
22006 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22007 sanity check.
22008
22009 2019-07-02 Jan Hubicka <jh@suse.cz>
22010
22011 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22012 to ..
22013 (nonoverlapping_component_refs_since_match_p): ... this one;
22014 handle also non-decl bases; return -1 if search gave up.
22015 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22016 nonoverlapping_component_refs_of_decl_p_no_alias to
22017 nonoverlapping_component_refs_since_match_p_may_alias,
22018 nonoverlapping_component_refs_since_match_p_no_alias.
22019 (dump_alias_stats): Update dumping.
22020 (aliasing_matching_component_refs_p): Break out from ...;
22021 dispatch to nonoverlapping_component_refs_for_decl_p
22022 and nonoverlapping_component_refs_since_match_p.
22023 (aliasing_component_refs_p): ... here; call
22024 nonoverlapping_component_refs_p in scenarios where we can not
22025 precisely determine base match.
22026 (decl_refs_may_alias_p): Use
22027 nonoverlapping_component_refs_since_match_p.
22028 (indirect_ref_may_alias_decl_p): Do not call
22029 nonoverlapping_component_refs_p.
22030 (indirect_refs_may_alias_p): Likewise.
22031
22032 2019-07-02 Jan Hubicka <jh@suse.cz>
22033
22034 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22035 to clobber of return value.
22036
22037 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22038
22039 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22040 for is_neon_type instructions that have not already been categorized.
22041
22042 2019-07-02 Richard Biener <rguenther@suse.de>
22043
22044 PR tree-optimization/58483
22045 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22046 for MEM_REF base hashing.
22047 (equal_mem_array_ref_p): Likewise for base comparison.
22048
22049 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22050
22051 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22052 parameterized name.
22053 (signbit<mode>2): Use that name. Simplify.
22054
22055 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22056
22057 PR middle-end/66726
22058 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22059 Tune heuristic from PR71016 to allow MIN / MAX.
22060
22061 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22062
22063 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22064 parameterized name.
22065 (abs<mode>2): Use that name. Simplify.
22066
22067 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22068
22069 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22070 parameterized name.
22071 (neg<mode>2): Use that name. Simplify.
22072
22073 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22074
22075 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22076 name.
22077 (abs<mode>2): Use that name. Simplify.
22078
22079 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22080
22081 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22082 name.
22083 (neg<mode>2): Use that name. Simplify.
22084
22085 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22086
22087 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22088 ("enabled" attribute): Handle sse_noavx isa attribute.
22089 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22090 Use TARGET_SSE && SSE_REGNO_P in split condition.
22091 (*vec_dupv2sf): Ditto.
22092
22093 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22094
22095 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22096 name.
22097 (floatsi<mode>2): Use that name. Simplify.
22098
22099 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22100
22101 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22102 parameterized name.
22103 (extenddf<mode>2_vsx): Make this a parameterized name.
22104 (extenddf<mode>2): Use those names. Simplify.
22105
22106 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22107
22108 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22109 name.
22110 (eh_return): Use that name. Simplify.
22111
22112 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22113
22114 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22115 (doloop_end): Use that name. Simplify.
22116
22117 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22118
22119 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22120 parameterized name.
22121 (indirect_jump): Use that name. Simplify.
22122
22123 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22124
22125 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22126 parameterized name.
22127 (abs<mode>2): Use that name. Simplify.
22128
22129 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22130
22131 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22132 parameterized name.
22133 (fix_trunc<mode>si2): Use that name. Simplify.
22134
22135 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22136
22137 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22138 (allocate_stack): Use that name. Simplify.
22139
22140 2019-07-01 Martin Sebor <msebor@redhat.com>
22141
22142 PR middle-end/90923
22143 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22144 (hash_map::get_or_insert): Same. Reformat comment.
22145 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22146 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22147 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22148 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22149 (hash_table::hash_table (const hash_table&)): Use copy ctor
22150 instead of assignment to copy elements.
22151
22152 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22153 John David Anglin <danglin@gcc.gnu.org>
22154
22155 PR target/90963
22156 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22157 using saved frame pointer.
22158
22159 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22160
22161 PR middle-end/64242
22162 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22163 Add frame clobber and schedule blockage.
22164
22165 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22166
22167 * doc/invoke.texi (Link Options): Further editorial changes to
22168 -flinker-output docs.
22169
22170 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22171
22172 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22173 Load both operands of a PLUS into registers separately.
22174
22175 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22176
22177 * config/s390/vector.md: Fix shift count operand printing.
22178
22179 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22180
22181 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22182
22183 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22184
22185 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22186 Use recog_data to test for an output operand.
22187
22188 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22189
22190 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22191 exclude any others that are disparaged or that are bound to need
22192 a reload or spill.
22193 (ira_get_dup_out_num): Expand comment.
22194
22195 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22196
22197 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22198 constraint string for each operand/alternative combo. Only handle
22199 '%' at the start of constraint strings, and look for it outside
22200 the main loop.
22201
22202 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22203
22204 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22205 alternative_mask instead of HARD_REG_SET to represent a
22206 bitmask of alternatives.
22207 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22208 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22209
22210 2019-07-01 Martin Liska <mliska@suse.cz>
22211
22212 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22213 use () for a constructor call.
22214 (test_applying_fixits_line_out_of_range): Likewise.
22215 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22216 argument.
22217 (free_page): Likewise.
22218
22219 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22220
22221 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22222 parameter names to match usage (no functional change).
22223 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22224
22225 2019-07-01 Richard Biener <rguenther@suse.de>
22226
22227 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22228 pass parameter.
22229 (pass_fre::execute): Honor it.
22230 * passes.def: Adjust pass_fre invocations to allow iterating,
22231 add non-iterating pass_fre before late threading/dom.
22232
22233 2019-07-01 Richard Biener <rguenther@suse.de>
22234
22235 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22236 TARGET_MEM_REF handling to also handle address-taken ones.
22237
22238 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22239
22240 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22241 hardware attributes): Document avx512vp2intersect.
22242
22243 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22244
22245 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22246 (abs<mode>2): New expander.
22247 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22248 Use CODE_FOR_ssse3_absv8qi2.
22249 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22250 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22251
22252 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22253
22254 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22255 to sse, sse_noavx and avx. Update all uses.
22256
22257 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22258
22259 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22260 (*mmx_<plusminus_insn><mode>3): Ditto.
22261 (*mmx_mulv4hi3"): Ditto.
22262 (*mmx_smulv4hi3_highpart): Ditto.
22263 (*mmx_umulv4hi3_highpart): Ditto.
22264 (*mmx_pmaddwd): Ditto.
22265 (*sse2_umulv1siv1di3): Ditto.
22266 (*mmx_<code>v4hi3): Ditto.
22267 (*mmx_<code>v8qi3): Ditto.
22268 (mmx_ashr<mode>3): Ditto.
22269 ("mmx_<shift_insn><mode>3): Ditto.
22270 (*mmx_eq<mode>3): Ditto.
22271 (mmx_gt<mode>3): Ditto.
22272 (mmx_andnot<mode>3): Ditto.
22273 (*mmx_<code><mode>3): Ditto.
22274 (*mmx_pinsrw): Ditto.
22275 (*mmx_pextrw): Ditto.
22276 (mmx_pshufw_1): Ditto.
22277 (*mmx_uavgv8qi3): Ditto.
22278 (*mmx_uavgv4hi3): Ditto.
22279 ("mmx_psadbw): Ditto.
22280 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22281 (sse_cvttps2pi): Ditto.
22282 (ssse3_pmaddubsw): Ditto.
22283 (*ssse3_pmulhrswv4hi3): Ditto.
22284 (ssse3_psign<mode>3): Ditto.
22285
22286 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22287
22288 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22289 adjustment for bit-fields to all aggregate types.
22290
22291 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22292
22293 * config/rs6000/predicates.md (pcrel_address): Use
22294 SYMBOL_REF_LOCAL_P to determine if a label is local.
22295 (pcrel_external_address): New predicate.
22296 (non_prefixed_mem_operand): Delete, predicate not used.
22297 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22298 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22299 addressing.
22300 (SYMBOL_REF_PCREL_P): Likewise.
22301
22302 PR target/91009
22303 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22304 alternative.
22305 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22306 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22307 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22308
22309 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22310
22311 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22312 override on extra_headers.
22313
22314 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22315
22316 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22317 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22318 from warning.
22319 (darwin_driver_init): Likewise.
22320
22321 2019-06-28 Jan Beulich <jbeulich@suse.com>
22322
22323 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22324 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22325 Eliminate redundant alternative.
22326
22327 2019-06-28 Jan Beulich <jbeulich@suse.com>
22328
22329 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22330 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22331 Use vector_operand.
22332
22333 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22334
22335 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22336 having a lower cost regardless of the speed option.
22337
22338 2019-06-28 Jan Beulich <jbeulich@suse.com>
22339
22340 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22341 vector_operand plus, on both alternatives, "Bm" constraint.
22342
22343 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22344
22345 * config/arm/arm.md: Remove redundant constraints from
22346 define_expand but leave reload_inm and reload_outm patterns
22347 untouched since they need special constraints to work.
22348 * config/arm/arm-fixed.md: Remove redundant constraints from
22349 define_expand.
22350 * config/arm/iwmmxt.md: Likewise.
22351 * config/arm/neon.md: Likewise.
22352 * config/arm/sync.md: Likewise.
22353 * config/arm/thumb1.md: Likewise.
22354 * config/arm/vec-common.md: Likewise.
22355
22356 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22357
22358 * doc/install.texi: Document --disable-tm-clone-registry.
22359
22360 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22361
22362 PR c++/91024
22363 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22364 statements.
22365
22366 PR tree-optimization/91010
22367 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22368 return true. Otherwise, don't call operand_equal_p if offset1 or
22369 offset2 is NULL and just return false.
22370
22371 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22372
22373 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22374 user-specified float mode choice for kernel mode code.
22375
22376 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22377
22378 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22379 spec.
22380
22381 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22382
22383 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22384 use longcall for 64b code.
22385
22386 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22387
22388 * builtins.c (get_memory_rtx): Fix comment.
22389 * optabs.def (movmem_optab): Change to cpymem_optab.
22390 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22391 (emit_block_move_hints): Change movmem to cpymem.
22392 * defaults.h: Change movmem to cpymem.
22393 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22394 (default_use_by_pieces_infrastructure_p): Ditto.
22395 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22396 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22397 to cpymem.
22398 * config/aarch64/aarch64.h: Change movmem to cpymem.
22399 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22400 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22401 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22402 movmem to cpymem.
22403 * config/arc/arc-protos.h: Change movmem to cpymem.
22404 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22405 * config/arc/arc.h: Change movmem to cpymem in comment.
22406 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22407 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22408 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22409 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22410 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22411 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22412 * config/avr/avr-protos.h: Change movmem to cpymem.
22413 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22414 avr_out_movmem): Change movmem to cpymem.
22415 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22416 Change movmem to cpymem.
22417 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22418 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22419 Change movmem to cpymem.
22420 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22421 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22422 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22423 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22424 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22425 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22426 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22427 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22428 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22429 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22430 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22431 expand_small_cpymem_or_setmem,
22432 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22433 expand_set_or_cpymem_constant_prologue,
22434 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22435 * config/i386/i386-protos.h: Change movmem to cpymem.
22436 * config/i386/i386.h: Change movmem to cpymem in comment.
22437 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22438 (setmem<mode>): Change expansion function name.
22439 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22440 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22441 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22442 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22443 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22444 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22445 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22446 to cpymem.
22447 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22448 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22449 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22450 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22451 Change movmem to cpymem.
22452 * config/mips/mips.h: Change movmem to cpymem.
22453 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22454 * config/nds32/nds32-memory-manipulation.c
22455 (nds32_expand_movmemsi_loop_unknown_size,
22456 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22457 nds32_expand_movmemsi_unroll,
22458 nds32_expand_movmemsi): Change movmem to cpymem.
22459 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22460 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22461 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22462 (pa_adjust_insn_length): Change call to compute_movmem_length.
22463 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22464 movmemdi, movmemdi_prereload,
22465 movmemdi_postreload): Change movmem to cpymem.
22466 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22467 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22468 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22469 * config/riscv/riscv.h: Change movmem to cpymem.
22470 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22471 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22472 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22473 movmem to cpymem.
22474 * config/s390/s390-protos.h: Change movmem to cpymem.
22475 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22476 s390_expand_insv): Change movmem to cpymem.
22477 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22478 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22479 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22480 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22481 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22482 for nonexistent function.
22483 * config/vax/vax.h: Change movmem to cpymem in comment.
22484 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22485 * config/visium/visium.h: Change movmem to cpymem in comment.
22486 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22487 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22488 * doc/md.texi: Change movmem to cpymem and update description to match.
22489 * doc/rtl.texi: Change movmem to cpymem.
22490 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22491 * doc/tm.texi: Regenerate.
22492
22493 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22494
22495 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22496 -fvariable-expansion-in-unroller by default.
22497 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22498 default for Power.
22499
22500 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22501
22502 Revert
22503 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22504 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22505
22506 * config.gcc(rs6000-*-*): Define target_gtfiles.
22507
22508 2019-06-27 Jan Hubicka <jh@suse.cz>
22509
22510 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22511 (add_type_duplicate): When odr hash is not allocated, to nothing.
22512 (odr_based_tbaa_p): New function.
22513 (set_type_canonical_for_odr_type): New function.
22514 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22515 set_type_canonical_for_odr_type): New.
22516 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22517 ODR based TBAA are not equivalent to non-ODR types.
22518
22519 2019-06-27 Martin Liska <mliska@suse.cz>
22520
22521 PR tree-optimization/90974
22522 PR rtl-optimization/90975
22523 PR rtl-optimization/90976
22524 PR target/91016
22525 PR tree-optimization/91017
22526 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22527 unused tmp.
22528 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22529 initial commit of IRA.
22530 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22531 of op0 and op1.
22532 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22533 Remove unused mode1.
22534 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22535 to new_stmt_info.
22536
22537 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22538
22539 PR target/90991
22540 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22541 instead of register_operand for operands[1], add m to its constraints
22542 if operands[2] uses "C" constraint. Ensure in condition that if
22543 operands[2] is not 0, then operands[1] is not a MEM. For last two
22544 alternatives, use unaligned loads instead of aligned if operands[1] is
22545 misaligned_operand.
22546
22547 2019-06-27 Martin Liska <mliska@suse.cz>
22548
22549 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22550 dead assignments.
22551 * bt-load.c (move_btr_def): Likewise.
22552 * builtins.c (expand_builtin_apply_args_1): Likewise.
22553 (expand_builtin_apply): Likewise.
22554 * cfgexpand.c (expand_asm_stmt): Likewise.
22555 (construct_init_block): Likewise.
22556 * cfghooks.c (verify_flow_info): Likewise.
22557 * cfgloopmanip.c (remove_path): Likewise.
22558 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22559 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22560 * combine.c (simplify_if_then_else): Likewise.
22561 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22562 (choose_basereg): Likewise.
22563 (ix86_expand_prologue): Likewise.
22564 (ix86_preferred_output_reload_class): Likewise.
22565 * cselib.c (cselib_record_sets): Likewise.
22566 * df-scan.c (df_scan_alloc): Likewise.
22567 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22568 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22569 * emit-rtl.c (try_split): Likewise.
22570 * graphite-scop-detection.c (assign_parameter_index_in_region):
22571 Likewise.
22572 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22573 * ira-color.c (setup_profitable_hard_regs): Likewise.
22574 * ira.c (rtx_moveable_p): Likewise.
22575 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22576 * read-rtl.c (read_subst_mapping): Likewise.
22577 * regrename.c (scan_rtx): Likewise.
22578 * reorg.c (fill_slots_from_thread): Likewise.
22579 * tree-inline.c (tree_function_versioning): Likewise.
22580 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22581 * tree-ssa-sink.c (statement_sink_location): Likewise.
22582 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22583 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22584 (vect_create_epilog_for_reduction): Likewise.
22585 * tree.c (build_nonstandard_integer_type): Likewise.
22586
22587 2019-06-27 Richard Biener <rguenther@suse.de>
22588
22589 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22590
22591 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22592
22593 PR tree-optimization/89772
22594 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22595 out-of-bound accesses checking.
22596
22597 2019-06-27 Martin Liska <mliska@suse.cz>
22598
22599 PR tree-optimization/91014
22600 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22601 when LHS is NULL_TREE.
22602
22603 2019-06-27 Martin Liska <mliska@suse.cz>
22604
22605 * symbol-summary.h (traverse): Pass
22606 argument a to the call of callback.
22607 (gt_ggc_mx): Mark arguments as unused.
22608 (gt_pch_nx): Likewise.
22609
22610 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22611
22612 PR target/62147
22613 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22614 finiteness.
22615
22616 2019-06-26 Jeff Law <law@redhat.com>
22617
22618 PR tree-optimization/90883
22619 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22620 (delete_dead_or_redundant_assignment): Likewise.
22621
22622 PR tree-optimization/90883
22623 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22624 * tree-ssa-dse.c: Update various comments to distinguish between
22625 dead and redundant stores.
22626 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22627 (dse_optimize_redundant_stores): New function.
22628 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22629 Distinguish between dead and redundant calls in dump output. All
22630 callers updated.
22631 (delete_dead_or_redundant_assignment): Similarly for assignments.
22632 (dse_optimize_stmt): Handle _CHK variants. For statements which
22633 store 0 into multiple memory locations, try to prove a subsequent
22634 store is redundant.
22635
22636 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22637
22638 PR target/89021
22639 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22640 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22641
22642 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22643
22644 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22645 (branch_islands): New extern.
22646 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22647 * config/rs6000/rs6000.c: .. here.
22648
22649 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22650
22651 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22652 (powerpc*-*-*) ... to here.
22653
22654 2019-06-26 Jeff Law <law@redhat.com>
22655
22656 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22657 memcpy, memmove and memset builtins.
22658 (maybe_trim_memstar_call): Likewise.
22659
22660 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22661
22662 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22663
22664 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22665
22666 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22667
22668 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22669
22670 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22671 declaration.
22672 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22673 "static".
22674 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22675 declaration.
22676
22677 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22678
22679 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22680
22681 2019-06-26 Richard Biener <rguenther@suse.de>
22682
22683 PR ipa/90982
22684 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22685
22686 2019-06-26 Richard Biener <rguenther@suse.de>
22687
22688 * lto-streamer.h (lto_bitmap_alloc): Remove.
22689 (lto_bitmap_free): Likewise.
22690 * lto-streamer.c (lto_bitmap_alloc): Remove.
22691 (lto_bitmap_free): Likewise.
22692 (lto_obstack): Likewise.
22693 (lto_obstack_initialized): Likewise.
22694 * lto-streamer-out.c (lto_output): Use own obstack for local
22695 bitmap, free it consistently.
22696
22697 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22698
22699 PR target/90991
22700 * config/i386/sse.md
22701 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22702 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22703 insns if operands[2] is misaligned_operand.
22704
22705 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22706
22707 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22708 TARGET_POWERPC64.
22709 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22710 to GPR.
22711
22712 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22713
22714 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22715
22716 2019-06-26 Martin Liska <mliska@suse.cz>
22717
22718 PR tree-optimization/90973
22719 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22720 epilogue_cost_vec instead of prologue_cost_vec for
22721 a epilogue cost.
22722
22723 2019-06-26 Martin Liska <mliska@suse.cz>
22724
22725 * bb-reorder.c (connect_better_edge_p): Add missing else
22726 statement in the middle of if-else statements.
22727
22728 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22729 H.J. Lu <hongjiu.lu@intel.com>
22730 Olga Makhotina <olga.makhotina@intel.com>
22731
22732 * common/config/i386/i386-common.c
22733 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22734 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22735 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22736 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22737 (ix86_handle_option): Handle -mavx512vp2intersect.
22738 * config/i386/avx512vp2intersectintrin.h: New.
22739 * config/i386/avx512vp2intersectvlintrin.h: New.
22740 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22741 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22742 AVX512VP2INTERSECT.
22743 * config/i386/i386-builtin-types.def: Add new types.
22744 * config/i386/i386-builtin.def: Add new builtins.
22745 * config/i386/i386-builtins.c: (enum processor_features): Add
22746 F_AVX512VP2INTERSECT.
22747 (static const _isa_names_table isa_names_table): Ditto.
22748 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22749 __AVX512VP2INTERSECT__.
22750 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22751 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22752 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22753 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22754 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22755 * config/i386/i386-options.c (ix86_target_string): Add
22756 -mavx512vp2intersect.
22757 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22758 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22759 P2HImode and P2QImode.
22760 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22761 number for P2QImode and P2HImode.
22762 (ix86_regmode_natural_size): New function.
22763 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22764 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22765 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22766 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22767 * config/i386/i386.opt: Add -mavx512vp2intersect.
22768 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22769 avx512vp2intersectvlintrin.h.
22770 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22771 (define_mode_iterator VI48_AVX512VP2VL): New.
22772 (avx512vp2intersect_2intersect<mode>,
22773 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22774 * config.gcc: Add avx512vp2intersectvlintrin.h and
22775 avx512vp2intersectintrin.h to extra_headers.
22776 * doc/invoke.texi: Document -mavx512vp2intersect.
22777
22778 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22779
22780 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22781
22782 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22783
22784 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22785 savres_routine_syms, savres_routine_name, morestack_ref,
22786 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22787 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22788 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22789 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22790 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22791 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22792 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22793 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22794 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22795 get_stack_clash_protection_probe_interval,
22796 get_stack_clash_protection_guard_size,
22797 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22798 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22799 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22800 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22801 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22802 gen_frame_mem_offset, rs6000_savres_routine_name,
22803 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22804 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22805 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22806 rs6000_global_entry_point_prologue_needed_p,
22807 rs6000_get_separate_components, rs6000_components_for_bb,
22808 rs6000_disqualify_components, rs6000_emit_prologue_components,
22809 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22810 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22811 rs6000_output_savres_externs, rs6000_output_function_prologue,
22812 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22813 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22814 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22815 rs6000_output_function_epilogue, gen_add3_const,
22816 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22817 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22818 to rs6000-logue.c.
22819 (machine_function): Moved to rs6000.h.
22820 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22821 rs6000-internal.h.
22822 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22823 savres_routine_syms, savres_routine_name, morestack_ref,
22824 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22825 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22826 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22827 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22828 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22829 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22830 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22831 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22832 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22833 get_stack_clash_protection_probe_interval,
22834 get_stack_clash_protection_guard_size,
22835 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22836 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22837 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22838 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22839 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22840 gen_frame_mem_offset, rs6000_savres_routine_name,
22841 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22842 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22843 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22844 rs6000_global_entry_point_prologue_needed_p,
22845 rs6000_get_separate_components, rs6000_components_for_bb,
22846 rs6000_disqualify_components, rs6000_emit_prologue_components,
22847 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22848 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22849 rs6000_output_savres_externs, rs6000_output_function_prologue,
22850 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22851 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22852 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22853 rs6000_output_function_epilogue, gen_add3_const,
22854 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22855 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22856 to here from rs6000.c.
22857 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22858 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22859 quad_address_offset_p) Moved to here from rs6000.c.
22860 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22861 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22862 collector.
22863
22864 2019-06-25 Martin Liska <mliska@suse.cz>
22865
22866 * hash-table.c (hashtab_chk_error): Move here from ...
22867 * hash-table.h (hashtab_chk_error): ... here.
22868
22869 2019-06-25 Martin Liska <mliska@suse.cz>
22870
22871 PR tree-optimization/90978
22872 * df-scan.c (df_update_entry_block_defs): Remove dead else
22873 branch.
22874 (df_update_exit_block_uses): Likewise.
22875
22876 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22877 Andrew Stubbs <ams@codesourcery.com>
22878
22879 * config.gcc (thread_file): Set to gcn for AMD GCN.
22880 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22881 (TARGET_EMUTLS_VAR_INIT): New hook.
22882
22883 2019-06-25 Martin Jambor <mjambor@suse.cz>
22884
22885 PR ipa/90939
22886 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22887
22888 2019-06-25 Richard Biener <rguenther@suse.de>
22889
22890 PR tree-optimization/90930
22891 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22892 into parallel form in the last pass instance.
22893
22894 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22895
22896 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22897 (arc_legitimize_pic_address): Simplify and cleanup the function.
22898 (SYMBOLIC_CONST): Remove.
22899 (prepare_pic_move): Likewise.
22900 (prepare_move_operands): Handle complex mov cases here.
22901 (arc_legitimize_address_0): Remove call to
22902 arc_legitimize_pic_address.
22903 (arc_legitimize_address): Remove call to
22904 arc_legitimize_tls_address.
22905 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22906 (movhi_insn): Likewise.
22907
22908 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22909
22910 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22911 PTRDIFF_TYPE.
22912 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22913 format of "__intN" types for UINTMAX_TYPE.
22914 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22915 format of "__intN" types for SIZETYPE.
22916 * tree.c (build_common_tree_nodes): Accept "__intN__"
22917 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22918 * doc/invoke.texi: Document that __intN__ disables pedantic
22919 warnings.
22920
22921 2019-06-25 Jan Hubicka <jh@suse.cz>
22922
22923 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22924 base2_alias_set is non-zero before doing TBAA based disambiguation.
22925
22926 2019-06-25 Martin Liska <mliska@suse.cz>
22927
22928 PR tree-optimization/90973
22929 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22930 of prologue and epilogue.
22931
22932 2019-06-24 Jan Hubicka <jh@suse.cz>
22933
22934 * ipa-utils.h (type_with_linkage_p): Verify that type is
22935 CXX_ODR_P.
22936 (odr_type_p): Remove extra return.
22937 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22938 hash STRING_FLAG only for arrays and integers.
22939 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22940 Update analogously.
22941 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22942 Likewise.
22943 * print-tree.c (print_node): Print cxx-odr-p
22944 and string-flag.
22945 * tree.c (need_assembler_name_p): Also check that type
22946 is CXX_ODR_TYPE_P
22947 (verify_type_variant): Update verification of SRING_FLAG;
22948 also check CXX_ODR_P.
22949 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22950 (TYPE_STRING_FLAG): Use it.
22951 (TYPE_CXX_ODR_P): New macro.
22952 * dwarf2out.c (gen_array_type_die): First check that type
22953 is an array and then test string flag.
22954
22955 2019-06-24 Richard Biener <rguenther@suse.de>
22956
22957 PR tree-optimization/90972
22958 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22959 in common code, dealing with STRING_CST properly.
22960
22961 2019-06-24 Richard Biener <rguenther@suse.de>
22962
22963 PR tree-optimization/90930
22964 PR tree-optimization/90316
22965 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22966 decrement of limit.
22967
22968 2019-06-24 Martin Sebor <msebor@redhat.com>
22969
22970 * tree-pretty-print.h: Remove unnecessary punctuation characters
22971 from a diagnostic.
22972 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22973
22974 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22975
22976 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22977 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22978 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22979
22980 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22981
22982 * config/rs6000/darwin.h: Handle GCC target pragma.
22983
22984 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22985
22986 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22987
22988 2019-06-22 Jeff Law <law@redhat.com>
22989
22990 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22991
22992 2019-06-22 Jan Hubicka <jh@suse.cz>
22993
22994 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22995 give up on bitfields; continue searching for different refs
22996 appearing later.
22997
22998 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22999
23000 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23001 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23002 containing the offset as possible simd lane access. Look through
23003 widening conversion. Move the
23004 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23005
23006 2019-06-21 Richard Biener <rguenther@suse.de>
23007
23008 PR tree-optimization/90930
23009 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23010 flag on new stmts to avoid re-processing them.
23011
23012 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23013
23014 PR c++/90875 - added -Wswitch-outside-range option
23015 * doc/invoke.texi (Wswitch-outside-range): Document.
23016
23017 2019-06-21 Jeff Law <law@redhat.com>
23018
23019 PR tree-optimization/90949
23020 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23021 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23022
23023 2019-06-21 Richard Biener <rguenther@suse.de>
23024
23025 PR debug/90914
23026 * dwarf2out.c (prune_unused_types_walk): Always consider
23027 function-local extern declarations as used.
23028
23029 2019-06-21 Richard Biener <rguenther@suse.de>
23030
23031 PR tree-optimization/90913
23032 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23033 the scalar variant of if-conversion versioning.
23034
23035 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23036
23037 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23038 create another "omp scan inscan exclusive" array if
23039 !ctx->scan_inclusive.
23040 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23041 (lower_omp_scan): Likewise.
23042 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23043 2-bit bitfield for simd_lane_access_p member.
23044 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23045 aux == (void *)-4 as simd lane access.
23046 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23047 comment with permutations to show the canonical permutation order.
23048 (vectorizable_scan_store): Handle exclusive scan.
23049 (vectorizable_store): Call vectorizable_scan_store even for
23050 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23051
23052 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23053 "omp simd array" arrays with one byte elements.
23054
23055 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23056
23057 * config/alpha/alpha.md (@unaligned_store<mode>):
23058 Rename from unaligned_store<mode>.
23059 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23060 * config/alpha/sync.md (@load_locked_<mode>): Rename
23061 from load_locked_<mode>.
23062 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23063 (@atomic_compare_and_swap<mode>_1): Rename
23064 from atomic_compare_and_swap<mode>_1.
23065 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23066 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23067 Use gen_reload_in_aligned and gen_unaligned_store.
23068 (emit_load_locked): Remove.
23069 (emit_store_conditional): Ditto.
23070 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23071 (alpha_split_compare_and_swap): Ditto.
23072 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23073 (alpha_split_compare_and_swap_12): Use gen_load_locked
23074 and gen_store_conditional.
23075 (alpha_split_atomic_exchange): Ditto.
23076 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23077 (alpha_split_atomic_exchange_12): Use gen_load_locked
23078 and gen_store_conditional.
23079
23080 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23081
23082 * config/aarch64/aarch64-errata.h: New file.
23083 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23084 (CA53_ERR_843419_SPEC): Delete.
23085 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23086 * config/aarch64/aarch64-linux.h: Likewise.
23087 * config/aarch64/aarch64-netbsd.h: Likewise.
23088 * config/aarch64/aarch64-freebsd.h: Likewise.
23089
23090 2019-06-20 Marek Polacek <polacek@redhat.com>
23091
23092 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23093
23094 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23095
23096 * config/rs6000/rs6000.md (isa attribute): Add support for
23097 for a future processor.
23098
23099 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23100
23101 PR target/54855
23102 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23103 standard scalar operation pattern for V2DF.
23104 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23105 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23106 (*ieee_<ieee_maxmin><mode>3): Likewise.
23107 (vec_setv2df_0): Likewise.
23108
23109 2019-06-20 Jan Hubicka <jh@suse.cz>
23110
23111 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23112 parameter; it has no use in gimple memory model.
23113 (indirect_ref_may_alias_decl_p): Update.
23114
23115 2019-06-20 Martin Liska <mliska@suse.cz>
23116
23117 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23118 to 10.
23119
23120 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23121
23122 * tree-vect-stmts.c (enum scan_store_kind): New type.
23123 (scan_store_can_perm_p): Change last argument from int * to
23124 vec<enum scan_store_kind> *, record precisely which permutations
23125 need whole vector left shift or that plus VEC_COND_EXPR.
23126 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23127 and additional VEC_COND_EXPR only for those iterations that need it.
23128
23129 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23130
23131 * config.gcc: Fix ARM --with-fpu checking and error message.
23132
23133 2019-06-19 Marek Polacek <polacek@redhat.com>
23134
23135 PR c++/60364 - noreturn after first decl not diagnosed.
23136 * attribs.c (get_attribute_namespace): No longer static.
23137 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23138 attributes.
23139 (attr_noreturn_exclusions): Make it extern.
23140 * attribs.h (get_attribute_namespace): Declare.
23141 * tree-inline.c (function_attribute_inlinable_p): Use
23142 get_attribute_name.
23143
23144 2019-06-19 Martin Sebor <msebor@redhat.com>
23145
23146 PR tree-optimization/90626
23147 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23148
23149 PR tree-optimization/90626
23150 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23151 (handle_builtin_string_cmp): Call it.
23152
23153 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23154
23155 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23156 and DARWIN_NOPIE_SPEC.
23157 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23158 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23159 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23160 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23161 (DARWIN_EXPORT_DYNAMIC): Delete.
23162 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23163 and pie options processing to darwin.h.
23164 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23165
23166 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23167
23168 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23169 in computing the number of options to be moved.
23170
23171 2019-06-19 Maya Rashish <coypu@sdf.org>
23172
23173 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23174 (CLEAR_INSN_CACHE) Use it.
23175
23176 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23177
23178 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23179
23180 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23181
23182 PR middle-end/84521
23183 * builtins.c (expand_builtin_setjmp_setup): Save
23184 hard_frame_pointer_rtx.
23185 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23186 restore fp.
23187 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23188 non-local goto.
23189 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23190 elimination code.
23191 (remove_reg_equal_offset_note): Remove unused function.
23192 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23193 code.
23194 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23195 (arc_builtin_setjmp_frame_value): Remove function.
23196 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23197 (avr_builtin_setjmp_frame_value): Remove function.
23198 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23199 (ix86_builtin_setjmp_frame_value): Remove function.
23200 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23201 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23202 (sparc_builtin_setjmp_frame_value): Remove function.
23203 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23204 (vax_builtin_setjmp_frame_value): Remove function.
23205 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23206 pointer if has_nonlocal_label.
23207
23208 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23209
23210 * doc/md.texi: Document vec_shl_<mode> pattern.
23211 * optabs.def (vec_shl_optab): New optab.
23212 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23213 argument, if == vec_shl_optab, check for left whole vector shift
23214 pattern rather than right shift.
23215 (expand_vec_perm_const): Add vec_shl_optab support.
23216 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23217 in the comment.
23218 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23219 can be handled by vec_shl_optab.
23220 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23221 (check_scan_store): Use it.
23222 (vectorizable_scan_store): If target can't do normal permutations,
23223 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23224 after it.
23225 * config/i386/sse.md (vec_shl_<mode>): New expander.
23226
23227 * omp-low.c (lower_rec_input_clauses): Handle references properly
23228 in inscan clauses.
23229 (lower_omp_scan): Likewise.
23230
23231 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23232
23233 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23234 mem_mode is BLKmode.
23235
23236 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23237
23238 PR target/90922
23239 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23240 pointer adjustment for the case of no callee-saved registers and
23241 stack frame bigger than 128 bytes.
23242
23243 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23244
23245 PR middle-end/90862
23246 * omp-low.c (check_omp_nesting_restrictions): Handle
23247 GF_OMP_TARGET_KIND_OACC_DECLARE.
23248
23249 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23250
23251 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23252 (@add<mode>3_carry): Rename from add<mode>3_carry.
23253 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23254 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23255 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23256 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23257 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23258 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23259 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23260 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23261 (cmpstrnsi): Use gen_cmp_1.
23262 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23263 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23264 (@umonitor_<mode>): Rename from umonitor_<mode>.
23265 * config/i386/i386-expand.c (ix86_expand_copysign):
23266 Use gen_copysign3_const and gen_copysign3_var.
23267 (ix86_expand_xorsign): Use gen_xorsign3_1.
23268 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23269 gen_sub3_carry_ccgz and gen_cmp1.
23270 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23271 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23272 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23273 (ix86_split_lshr): Ditto.
23274 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23275
23276 2019-06-18 Jason Merrill <jason@redhat.com>
23277
23278 * tree.c (build_constructor): Add MEM_STAT_DECL.
23279
23280 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23281
23282 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23283 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23284 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23285 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23286 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23287 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23288 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23289 Use CC_NZC instead of CC.
23290 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23291 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23292 (aarch64_print_operand): Handle E_CC_NZCmode.
23293 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23294 of gen_set_clobber_cc.
23295
23296 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23297
23298 * config/aarch64/aarch64-sve.md: Tabify file.
23299
23300 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23301
23302 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23303 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23304 * config/aarch64/aarch64-sve.md: Use it.
23305
23306 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23307
23308 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23309 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23310 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23311 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23312 (aarch64_expand_sve_vec_cmp_int): Use it.
23313 (aarch64_expand_sve_vec_cmp_float): Likewise.
23314 * config/aarch64/aarch64-sve.md: Likewise throughout.
23315
23316 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23317 Kugan Vivekanandarajah <kuganv@linaro.org>
23318
23319 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23320 (*cond_<optab><mode>_z): Fold into...
23321 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23322 operand 4 can be tied to operand 0 (either inherently or via RA).
23323
23324 2019-06-18 Richard Biener <rguenther@suse.de>
23325
23326 PR debug/90900
23327 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23328 as if optimized away.
23329
23330 2019-06-18 Tom de Vries <tdevries@suse.de>
23331
23332 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23333 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23334 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23335 Rename to ...
23336 (define_insn "@set_softstack_<mode>"): ... this.
23337 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23338 (define_insn "@omp_simt_enter_<mode>"): ... this.
23339 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23340 (define_insn "@omp_simt_exit_<mode>"): ... this.
23341
23342 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23343
23344 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23345 vf parameter. Restore the previous iv step of nscalars_step,
23346 but give it iv_type rather than compare_type. Tweak code order
23347 to match the comments.
23348 (vect_set_loop_condition_masked): Update accordingly.
23349 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23350 for iv_precision. Tweak comment formatting.
23351
23352 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23353
23354 * config/darwin.c: Strip trailing whitespace.
23355
23356 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23357
23358 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23359 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23360
23361 2019-06-18 Martin Jambor <mjambor@suse.cz>
23362
23363 PR ipa/90889
23364 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23365 caller does not have flag_ipa_cp set.
23366
23367 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23368
23369 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23370 from "*fold_left_plus_<mode>", updated operands order.
23371 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23372 * internal-fn.c (mask_fold_left_direct): New define.
23373 (expand_mask_fold_left_optab_fn): Likewise.
23374 (direct_mask_fold_left_optab_supported_p): Likewise.
23375 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23376 * optabs.def (mask_fold_left_plus_optab): New optab.
23377 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23378 masked internal_fn for a reduction ifn.
23379 (vectorize_fold_left_reduction): Add support for masking reductions.
23380
23381 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23382
23383 PR middle-end/80791
23384 * target.def (predict_doloop_p): New hook.
23385 * targhooks.h (default_predict_doloop_p): New declaration.
23386 * targhooks.c (default_predict_doloop_p): New function.
23387 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23388 * doc/tm.texi: Regenerate.
23389 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23390 (TARGET_PREDICT_DOLOOP_P): New macro.
23391 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23392
23393 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23394
23395 * omp-low.c (struct omp_context): Add scan_inclusive field.
23396 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23397 if inclusive scan.
23398 (struct omplow_simd_context): Add lastlane member.
23399 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23400 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23401 1 or 2 argument.
23402 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23403 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23404 (lower_omp_scan): New function.
23405 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23406 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23407 check 3rd argument if present rather than 2nd.
23408 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23409 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23410 2-bit bitfield.
23411 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23412 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23413 than 2nd.
23414 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23415 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23416 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23417 init.
23418 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23419 IFN_GOMP_SIMD_LANE argument.
23420 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23421 encoded ->aux value.
23422 * tree-vect-stmts.c: Include attribs.h.
23423 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23424 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23425 functions.
23426 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23427 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23428
23429 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23430
23431 PR target/62055
23432 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23433 (*nabs<mode>2_1): Ditto.
23434 (nabs sse-reg splitter): New splitter.
23435 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23436
23437 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23438
23439 PR bootstrap/90873.
23440 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23441 TMR index check.
23442
23443 2019-06-17 Tom de Vries <tdevries@suse.de>
23444
23445 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23446 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23447 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23448 ...
23449 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23450 match_operand 0.
23451 (define_insn "omp_simt_enter_insn"): Rename to ...
23452 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23453 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23454 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23455 gen_omp_simt_enter_si.
23456 (define_expand "omp_simt_exit"): New.
23457 (define_insn "omp_simt_exit"): Rename to ...
23458 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23459 match_operand 0.
23460
23461 2019-06-17 Matthew Green <mrg@eterna.com.au>
23462 Maya Rashish <coypu@sdf.org>
23463
23464 * config.gcc (aarch64*-*-netbsd*): New target.
23465 * config/aarch64/aarch64-netbsd.h: New file.
23466 * config/aarch64/t-aarch64-netbsd: Likewise.
23467
23468 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23469
23470 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23471 the access path from base to first VIEW_CONVERT_EXPR or
23472 BIT_FIELD_REF.
23473
23474 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23475
23476 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23477 access path on BIT_FIELD_REFs.
23478
23479 2019-06-17 Martin Liska <mliska@suse.cz>
23480
23481 PR ipa/90874
23482 * ipa-utils.h (odr_type_p): Remove dead code.
23483
23484 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23485
23486 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23487 alternative Solaris 11.4 format.
23488 * configure: Regenerate.
23489
23490 2019-06-17 Tom de Vries <tdevries@suse.de>
23491
23492 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23493 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23494 match_operand 0.
23495 (define_insn "call_value_insn"): Rename to ...
23496 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23497 match_operand 0.
23498 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23499 DI.
23500
23501 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23502
23503 PR middle-end/64242
23504 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23505 frame clobbers and schedule block.
23506 (builtin_longjmp): Likewise.
23507
23508 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23509
23510 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23511 describe how to perform MSPABI compliant 64-bit shift.
23512 * config/msp430/msp430.md (ashldi3): New define_expand.
23513 (ashrdi3): New define_expand.
23514 (lshrdi3): New define_expand.
23515
23516 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23517
23518 * doc/sourcebuild.texi: Document new effective target keyword
23519 longlong64.
23520
23521 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23522
23523 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23524 indirect_refs_may_alias_p): Revert accidental commits.
23525
23526 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23527 at the end of structures.
23528
23529 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23530
23531 * config/darwin.c (machopic_indirect_call_target): Use renamed
23532 darwin_picsymbol_stubs to decide on output.
23533 (darwin_override_options): Handle darwin_picsymbol_stubs.
23534 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23535 (LD64_VERSION): Revise default.
23536 * config/darwin.opt: (mpic-symbol-stubs): New option.
23537 (darwin_picsymbol_stubs): New variable.
23538 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23539 rename to TARGET_MACHO_PICSYM_STUBS.
23540 * config/i386/i386.c (output_pic_addr_const): Likewise.
23541 * config/i386/i386.h Likewise.
23542 * config/rs6000/darwin.h: Likewise.
23543 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23544 darwin_picsymbol_stubs.
23545
23546 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23547
23548 * config/darwin.opt (prebind, noprebind, seglinkedit,
23549 noseglinkedit): Add RejectNegative.
23550
23551 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23552
23553 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23554 in my previous patch.
23555
23556 2019-06-16 Tom de Vries <tdevries@suse.de>
23557
23558 PR tree-optimization/89376
23559 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23560
23561 2019-06-15 Maya Rashish <coypu@sdf.org>
23562
23563 * doc/invoke.texi (Spec Files): Update location of the
23564 Fortran spec file.
23565
23566 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23567
23568 * doc/extend.texi (Common Function Attributes): Clarify
23569 no_sanitize. Fix grammar.
23570
23571 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23572
23573 * tree-ssa-alias.c (alias_stats): Add
23574 nonoverlapping_component_refs_p_may_alias,
23575 nonoverlapping_component_refs_p_no_alias,
23576 nonoverlapping_component_refs_of_decl_p_may_alias,
23577 nonoverlapping_component_refs_of_decl_p_no_alias.
23578 (dump_alias_stats): Dump them.
23579 (nonoverlapping_component_refs_of_decl_p): Add stats.
23580 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23581 ARRAY_REF.
23582
23583 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23584
23585 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23586 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23587 only.
23588 (*anddi3_doubleword): Split before reload. Merge with
23589 anddi->zext pre-reload splitter.
23590 (*andndi3_doubleword): Split before reload.
23591 (*<code>di3_doubleword): Ditto.
23592 (*one_cmpldi2_doubleword): Ditto.
23593
23594 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23595
23596 PR middle-end/90779
23597 * gimplify.c: Include omp-offload.h and context.h.
23598 (gimplify_bind_expr): Add "omp declare target" attributes
23599 to static block scope variables inside of target region or target
23600 functions.
23601
23602 2019-06-15 Tom de Vries <tdevries@suse.de>
23603
23604 PR tree-optimization/90009
23605 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23606 Return NULL if bb contains IFN_UNIQUE.
23607
23608 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23609
23610 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23611 (un): New define_mode_attr.
23612 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23613 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23614 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23615 merge into ...
23616 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23617
23618 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23619
23620 * config/darwin.opt: Add RejectNegative where needed, reorder
23621 and add minimal functional descriptions.
23622
23623 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23624
23625 PR rtl-optimization/90765
23626 * calls.c (update_stack_alignment_for_call): New function.
23627 (expand_call): Call update_stack_alignment_for_call when
23628 outgoing parameter is passed in the stack.
23629 (emit_library_call_value_1): Likewise.
23630 * function.c (locate_and_pad_parm): Don't update
23631 stack_alignment_needed and preferred_stack_boundary.
23632
23633 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23634
23635 PR target/90877
23636 * config/i386/i386-features.c
23637 (dimode_scalar_chain::compute_convert_gain): Replace
23638 mmxsse_to_integer with sse_to_integer.
23639 * config/i386/i386.c (ix86_register_move_cost): Verify that
23640 moves between MMX and non-MMX units require secondary memory.
23641 Correct costs of moves between SSE and integer units.
23642 * config/i386/i386.h (processor_costs): Rename cost of moving
23643 SSE register to integer to sse_to_integer. Rename cost of
23644
23645 2019-06-14 Matt Thomas <matt@3am-software.com>
23646 Matthew Green <mrg@eterna.com.au>
23647 Nick Hudson <skrll@netbsd.org>
23648 Maya Rashish <coypu@sdf.org>
23649 Richard Earnshaw <rearnsha@arm.com>
23650
23651 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23652 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23653 * config/arm/netbsd-eabi.h: New file.
23654 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23655 redefining.
23656 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23657 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23658 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23659 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23660
23661 2019-06-14 Richard Biener <rguenther@suse.de>
23662
23663 * tree-loop-distribution.c (classify_partition): Return
23664 whether a reduction appeared in all partitions and do not
23665 stop builtin detection because of this.
23666 (distribute_loop): Sort a non-builtin partition last if
23667 there's a reduction in all partitions and make sure the
23668 partition prevailing as last is not a builtin.
23669
23670 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23671
23672 PR ipa/90401
23673 * ipa-prop.c (add_to_agg_contents_list): New function.
23674 (clobber_by_agg_contents_list_p): Likewise.
23675 (extract_mem_content): Likewise.
23676 (get_place_in_agg_contents_list): Delete.
23677 (determine_known_aggregate_parts): Renamed from
23678 determine_locally_known_aggregate_parts. New parameter
23679 aa_walk_budget_p.
23680
23681 2019-06-13 Martin Sebor <msebor@redhat.com>
23682
23683 PR tree-optimization/90662
23684 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23685 to the same type.
23686
23687 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23688
23689 PR bootstrap/90873
23690 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23691 dbase is not TARGET_MEM_REF.
23692
23693 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23694
23695 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23696 Update all uses.
23697 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23698 Do not generate DImode extends for 32bit targets.
23699 (and->zext post-reload splitter): Use gen_extend_insn
23700 instead of indirect functions.
23701 (anddi->zext pre-reload splitter): New.
23702 (*zext<mode>_doubleword_and): Remove.
23703 (*zext<mode>_doubleword): Ditto.
23704 (*zextsi_doubleword): Dittto.
23705
23706 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23707
23708 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23709 Use gen_sub3_insn instead of indirect function.
23710 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23711 indirect function.
23712 (ix86_adjust_counter): Ditto.
23713
23714 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23715 Lijia He <helijia@linux.ibm.com>
23716
23717 PR tree-optimization/77820
23718 * tree-ssa-threadedge.c
23719 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23720 function.
23721 (thread_across_edge): Add call to
23722 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23723
23724 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23725
23726 * config/darwin-driver.c (validate_macosx_version_min): New.
23727 (darwin_default_min_version): Cleanup and validate supplied version.
23728 (darwin_driver_init): Likewise and push cleaned version into opts.
23729
23730 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23731
23732 PR tree-optimization/90869
23733 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23734 converts in MEM_REF referencing decl rather than view converts
23735 from decl type to MEM_REF type.
23736
23737 2019-06-13 Richard Biener <rguenther@suse.de>
23738
23739 PR tree-optimization/90856
23740 * tree-sra.c (build_ref_for_model): Only use
23741 build_reconstructed_reference when address-spaces are the same.
23742
23743 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23744
23745 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23746 wrap ei variable name in the declaration in ()s.
23747 (nvptx_single): Actually use mode_label variable. Formatting fix.
23748
23749 2019-06-13 Richard Biener <rguenther@suse.de>
23750
23751 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23752 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23753 also return the condition stmt.
23754 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23755 loop we can version and version that, reusing the loop version
23756 created by if-conversion instead of versioning again.
23757
23758 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23759
23760 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23761 may_contain_p.
23762 * tree-vrp (value_range_base::may_contain_p): Call into
23763 value_inside_range.
23764 (value_inside_range): Make private inside value_range_base class.
23765 Take min/max from *this.
23766 (range_includes_p): Remove.
23767 * tree-vrp.h (value_range_base): Add value_inside_range.
23768 (range_includes_p): Remove.
23769 (range_includes_zero_p): Call may_contain_p.
23770 * vr-values.c (compare_range_with_value): Same.
23771
23772 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23773
23774 * doc/extend.texi (ARC Function Attributes): Update info.
23775
23776 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23777
23778 PR tree-optimization/89713
23779 * doc/invoke.texi (-ffinite-loops): Document new option.
23780 * common.opt (-ffinite-loops): New option.
23781 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23782 IFN_GOACC_LOOP calls as necessary.
23783 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23784 is finite.
23785 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23786 IFN_GOACC_LOOP call is not used.
23787 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23788
23789 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23790
23791 PR target/88838
23792 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23793 compare_type is not with Pmode size, we will create an IV with
23794 Pmode size with truncated use (i.e. converted to the correct type).
23795 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23796 (vect_iv_limit_for_full_masking): New. Factored out of
23797 vect_set_loop_condition_masked.
23798 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23799 (vect_iv_limit_for_full_masking): Declare.
23800
23801 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23802
23803 PR target/88834
23804 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23805 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23806 (get_alias_ptr_type_for_ptr_address): Likewise.
23807 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23808 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23809 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23810 allow_reg_index_p.
23811
23812 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23813
23814 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23815
23816 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23817
23818 * common/config/pru/pru-common.c: New file.
23819 * config.gcc: Add PRU target.
23820 * config/pru/alu-zext.md: New file.
23821 * config/pru/constraints.md: New file.
23822 * config/pru/predicates.md: New file.
23823 * config/pru/pru-opts.h: New file.
23824 * config/pru/pru-passes.c: New file.
23825 * config/pru/pru-pragma.c: New file.
23826 * config/pru/pru-protos.h: New file.
23827 * config/pru/pru.c: New file.
23828 * config/pru/pru.h: New file.
23829 * config/pru/pru.md: New file.
23830 * config/pru/pru.opt: New file.
23831 * config/pru/t-pru: New file.
23832 * doc/extend.texi: Document PRU pragmas.
23833 * doc/invoke.texi: Document PRU-specific options.
23834 * doc/md.texi: Document PRU asm constraints.
23835
23836 2019-06-12 Martin Sebor <msebor@redhat.com>
23837
23838 PR middle-end/90676
23839 * tree-pretty-print.c (dump_mem_ref): New function. Include
23840 MEM_REF type in output when different size than operand.
23841 (dump_generic_node): Move code to dump_mem_ref and call it.
23842
23843 2019-06-12 Martin Sebor <msebor@redhat.com>
23844
23845 PR tree-optimization/90662
23846 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23847 to arrays.
23848
23849 2019-06-12 Tom de Vries <tdevries@suse.de>
23850
23851 PR tree-optimization/90009
23852 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23853
23854 2019-06-12 Martin Liska <mliska@suse.cz>
23855
23856 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23857 the created map.
23858 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23859 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23860 Do not sanitize created maps.
23861
23862 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23863
23864 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23865 value_range::singleton_p.
23866 * tree-vrp.c (value_range_constant_singleton): Remove.
23867 * tree-vrp.h (value_range_constant_singleton): Remove.
23868 * vr-values.c (vr_values::singleton): Use
23869 value_range::singleton_p.
23870
23871 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23872
23873 PR target/90811
23874 * cfgexpand.c (align_local_variable): Add really_expand argument,
23875 don't SET_DECL_ALIGN if it is false.
23876 (add_stack_var): Add really_expand argument, pass it through to
23877 align_local_variable.
23878 (expand_one_stack_var_1): Pass true as really_expand to
23879 align_local_variable.
23880 (expand_one_ssa_partition): Pass true as really_expand to
23881 add_stack_var.
23882 (expand_one_var): Pass really_expand through to add_stack_var.
23883
23884 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23885
23886 * config/arm/iterators.md (VABAL): New int iterator.
23887 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23888 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23889 UNSPEC_VABAL_U values.
23890
23891 2019-06-12 Martin Liska <mliska@suse.cz>
23892
23893 * value-prof.c (stream_out_histogram_value): Only first value
23894 can't be negative.
23895
23896 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23897
23898 PR c/90760
23899 * symtab.c (symtab_node::set_section): Allow being called on aliases
23900 as long as they aren't analyzed yet.
23901
23902 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23903
23904 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23905 to `mips_set_text_contents_type' to indicate whether a
23906 non-debug insn follows.
23907
23908 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23909
23910 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23911 enabling -mpcrel by default.
23912 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23913 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23914 that the test against -mcpu=future is done first. Then test if
23915 -mprefixed-addr is on for -mpcrel.
23916 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23917
23918 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23919
23920 PR target/90811
23921 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23922 instead of and.u%d.
23923
23924 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23925
23926 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23927
23928 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23929
23930 PR c++/90449 - add -Winaccessible-base option.
23931 * doc/invoke.texi (Winaccessible-base): Document.
23932
23933 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23934
23935 PR tree-optimization/62041
23936 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23937
23938 2019-06-11 Jason Merrill <jason@redhat.com>
23939
23940 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23941 * tree.c (get_tree_code_name): Likewise.
23942 * print-tree.c (print_node): Only briefly print a node with an
23943 invalid code.
23944
23945 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23946
23947 PR bootstrap/90819
23948 * trans-mem.c (tm_memopt_compute_available): Add assertion
23949 that blocks is not empty. Formatting fix.
23950
23951 2019-06-11 Martin Liska <mliska@suse.cz>
23952
23953 PR c++/87847
23954 * hash-table.h: Extend create_gcc, add one parameter
23955 that is passed into hash_table::hash_table.
23956
23957 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23958
23959 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23960 New prototype.
23961 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23962 Emit clobber also for non-sse operations.
23963 (ix86_split_fp_absneg_operator): New function.
23964 * config/i386/i386.md (SSEMODEF): New mode iterator.
23965 (ssevecmodef): New mode attribute.
23966 (<code>tf2): Use absneg code iterator.
23967 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23968 Add three-operand AVX alternatives.
23969 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23970 Use absneg code iterator and X87MODEF mode iterator.
23971 (absneg fp_reg non-sse splitter): Call absneg code iterator
23972 and X87MODEF mode iterator.
23973 (absneg general_reg non-sse splitter): Use absneg code iterator
23974 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23975 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23976 code iterator. Add three-operand AVX alternative.
23977 (absneg sse_reg splitter): Use absneg code iterator
23978 and SSEMODEF mode iterator. Handle AVX operands.
23979 (absneg fp_reg splitter): Use absneg code iterator
23980 and MODEF mode iterator.
23981 (absneg general_reg splitter): Merge splitters using MODEF mode
23982 iterator. Use absneg code iterator. Call
23983 ix86_split_fp_absneg_operator.
23984 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23985 Do not enable for non-sse modes before reload.
23986 (CSGNMODE): Remove.
23987 (CSGNVMODE): Ditto.
23988 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23989 ssevecmodef mode attribute instaed of CSGNVMODE.
23990 (copysign<mode>3_const): Ditto.
23991 (copysign<mode>3_var): Ditto.
23992 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23993 Use absneg code iterator. Simplify code using std::swap.
23994 * config/i386/predicates.md (absneg_operator): Remove.
23995
23996 2019-06-10 Martin Sebor <msebor@redhat.com>
23997
23998 * gimple-fold.c (get_range_strlen): Update comment that didn't
23999 make it into r267503 or related commits.
24000
24001 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24002
24003 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24004 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24005
24006 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24007
24008 * tree.def (OMP_SCAN): New tree code.
24009 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24010 OMP_CLAUSE_EXCLUSIVE.
24011 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24012 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24013 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24014 OMP_CLAUSE_{IN,EX}CLUSIVE.
24015 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24016 * tree-nested.c (convert_nonlocal_reference_stmt,
24017 convert_local_reference_stmt, convert_gimple_call): Handle
24018 GIMPLE_OMP_SCAN.
24019 * tree-pretty-print.c (dump_omp_clause): Handle
24020 OMP_CLAUSE_{IN,EX}CLUSIVE.
24021 (dump_generic_node): Handle OMP_SCAN.
24022 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24023 * gimple.h (gomp_scan): New type.
24024 (is_a_helper <gomp_scan *>::test,
24025 is_a_helper <const gomp_scan *>::test): New templates.
24026 (gimple_build_omp_scan): Declare.
24027 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24028 gimple_omp_scan_set_clauses): New inline functions.
24029 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24030 * gimple.c (gimple_build_omp_scan): New function.
24031 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24032 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24033 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24034 GIMPLE_OMP_TASKGROUP.
24035 (dump_gimple_omp_scan): New function.
24036 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24037 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24038 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24039 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24040 (is_gimple_stmt): Handle OMP_SCAN.
24041 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24042 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24043 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24044 mentioned in nested #pragma omp scan. Handle
24045 OMP_CLAUSE_{IN,EX}CLUSIVE.
24046 (gimplify_expr): Handle OMP_SCAN.
24047 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24048 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24049 simd constructs.
24050 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24051 GIMPLE_OMP_SCAN.
24052
24053 2019-06-10 Martin Liska <mliska@suse.cz>
24054
24055 * ipa-cp.c (ignore_edge_p): New function.
24056 (build_toporder_info): Use it.
24057 * ipa-inline.c (ignore_edge_p): New function.
24058 (inline_small_functions): Use it.
24059 * ipa-pure-const.c (ignore_edge_for_nothrow):
24060 Verify opt_for_fn for caller and callee.
24061 (ignore_edge_for_pure_const): Likewise.
24062 * ipa-reference.c (ignore_edge_p): Extend to check
24063 for opt_for_fn.
24064 * ipa-utils.c (searchc): Refactor.
24065 * ipa-utils.h: Fix coding style.
24066
24067 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24068
24069 * config/arc/arc.c (arc_rtx_costs): Update costs.
24070
24071 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24072
24073 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24074 (arc_split_ior): Likewise.
24075 (arc_check_mov_const): Likewise.
24076 (arc_split_mov_const): Likewise.
24077 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24078 (arc_rtx_costs): Replace check Crr with Cax constraint.
24079 (prepare_move_operands): Cleanup, remove unused code.
24080 (arc_split_ior): New function.
24081 (arc_check_ior_const): Likewise.
24082 (arc_split_mov_const): Likewise.
24083 (arc_check_mov_const): Likewise.
24084 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24085 in define_insn_and_split pattern.
24086 (iorsi3): Likewise.
24087 (mulsi3_v2): Add new matching variant.
24088 (andsi3_i): Cleanup pattern.
24089 (rotrsi3_cnt1): Update pattern.
24090 (rotrsi3_cnt8): New pattern.
24091 (ashlsi2_cnt8): Likewise.
24092 (ashlsi2_cnt16): Likewise.
24093 * config/arc/constraints.md (C0p): Update constraint.
24094 (Crr): Remove it.
24095 (C0x): New pattern.
24096 (Cax): New pattern.
24097
24098 2019-06-10 Martin Liska <mliska@suse.cz>
24099
24100 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24101 Update coding style.
24102 (sem_item_optimizer::dump_cong_classes):
24103 Print how many items are in a non-singular class. Improve
24104 coding style.
24105
24106 2019-06-10 Martin Liska <mliska@suse.cz>
24107
24108 * value-prof.c (dump_histogram_value): Change dump format.
24109 (gimple_mod_subtract_transform): Remove legacy comment.
24110
24111 2019-06-10 Martin Liska <mliska@suse.cz>
24112
24113 * value-prof.c (dump_histogram_value): Print histogram values
24114 only if present.
24115
24116 2019-06-10 Martin Liska <mliska@suse.cz>
24117
24118 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24119 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24120 * ipa-profile.c (ipa_profile_generate_summary):
24121 Use get_most_common_single_value.
24122 * tree-profile.c (gimple_init_gcov_profiler):
24123 Instrument with __gcov_one_value_profiler_v2
24124 and __gcov_indirect_call_profiler_v4.
24125 * value-prof.c (dump_histogram_value):
24126 Print all values for HIST_TYPE_SINGLE_VALUE.
24127 (stream_out_histogram_value): Update assert for
24128 N values.
24129 (stream_in_histogram_value): Set number of
24130 counters for HIST_TYPE_SINGLE_VALUE.
24131 (get_most_common_single_value): New.
24132 (gimple_divmod_fixed_value_transform):
24133 Use get_most_common_single_value.
24134 (gimple_ic_transform): Likewise.
24135 (gimple_stringops_transform): Likewise.
24136 (gimple_find_values_to_profile): Set number
24137 of counters for HIST_TYPE_SINGLE_VALUE.
24138 * value-prof.h (get_most_common_single_value): New.
24139
24140 2019-06-10 Martin Liska <mliska@suse.cz>
24141
24142 * hash-map.h: Pass default value to hash_table ctor.
24143 * hash-table.h: Add default value to call of a ctor.
24144
24145 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24146
24147 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24148 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24149
24150 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24151
24152 PR target/90751
24153 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24154 Call pa_output_function_label.
24155 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24156 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24157 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24158 to declaration.
24159 (pa_linux_output_function_prologue): Declare.
24160 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24161 (pa_output_function_label): New.
24162 (pa_output_function_prologue): Revise to use pa_output_function_label.
24163 (pa_linux_output_function_prologue): New.
24164 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24165
24166 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24167
24168 * tree-vrp.h (value_range_base::intersect): New.
24169 (value_range::intersect_helper): Move from here...
24170 (value_range_base::intersect_helper): ...to here.
24171 * tree-vrp.c (value_range::intersect_helper): Rename to...
24172 (value_range_base::intersect_helper): ...this, and rewrite to
24173 return a value instead of modifying THIS in place.
24174 Also, move equivalence handling...
24175 (value_range::intersect): ...here, while calling intersect_helper.
24176 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24177 calling intersect.
24178 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24179 Same.
24180 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24181
24182 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24183
24184 * Makefile.in (genprogerr): Add condmd.
24185 (genprog): Remove it here.
24186
24187 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24188
24189 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24190
24191 2019-06-07 Richard Biener <rguenther@suse.de>
24192
24193 PR debug/90574
24194 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24195 that appear after user labels.
24196
24197 2019-06-07 Martin Liska <mliska@suse.cz>
24198
24199 * cselib.c (cselib_init): Disable hash table
24200 sanitization.
24201 * hash-set.h: Pass new default argument to m_table.
24202 * hash-table.c: Add global variable with hash table
24203 sanitization limit.
24204 * hash-table.h (Allocator>::hash_table): Add new argument
24205 to ctor.
24206 (hashtab_chk_error): New.
24207 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24208 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24209 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24210
24211 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24212
24213 * common.opt (flto-odr-type-merging): Ignore.
24214 * invoke.texi (-flto-odr-type-merging): Remove.
24215 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24216 (can_be_vtable_hashed_p): Remove.
24217 (hash_odr_vtable): Remove.
24218 (odr_vtable_hasher::hash): Remove.
24219 (types_same_for_odr): Remove.
24220 (types_odr_comparable): Remove.
24221 (odr_vtable_hasher::equal): Remove.
24222 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24223 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24224 (get_odr_type): Do not use vtable hash.
24225 (dump_odr_type): Remove commented out code.
24226 (build_type_inheritance_graph): Do not allocate vtable hash.
24227 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24228 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24229 (odr_type_p): Likewise.
24230 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24231 test.
24232
24233 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24234
24235 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24236 immediately after same_types_for_tbaa_p returns -1 and continue
24237 looking for possible exact match; if matching types are arrays
24238 watch for partial overlaps.
24239 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24240 (indirect_refs_may_alias_p): Do type based disambiguation first;
24241 update comment.
24242
24243 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24244
24245 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24246
24247 2019-06-07 Martin Liska <mliska@suse.cz>
24248
24249 * doc/invoke.texi: Remove param.
24250 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24251 Remove.
24252 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24253 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24254 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24255 * profile.c (instrument_values): Remove
24256 HIST_TYPE_INDIR_CALL_TOPN.
24257 * tree-profile.c (init_ic_make_global_vars):
24258 Always build __gcov_indirect_call only.
24259 (gimple_init_gcov_profiler): Remove usage
24260 of PARAM_INDIR_CALL_TOPN_PROFILE.
24261 (gimple_gen_ic_profiler): Likewise.
24262 * value-prof.c (dump_histogram_value): Likewise.
24263 (stream_in_histogram_value): Likewise.
24264 (gimple_indirect_call_to_profile): Likewise.
24265 (gimple_find_values_to_profile): Likewise.
24266 * value-prof.h (enum hist_type): Likewise.
24267
24268 2019-06-07 Martin Liska <mliska@suse.cz>
24269
24270 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24271 function.
24272
24273 2019-06-07 Martin Liska <mliska@suse.cz>
24274
24275 PR tree-optimization/78902
24276 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24277 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24278 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24279 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24280 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24281 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24282 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24283 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24284 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24285 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24286 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24287 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24288 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24289 New.
24290 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24291 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24292 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24293 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24294 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24295 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24296 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24297 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24298 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24299 warn_unused_result attribute.
24300 (BUILT_IN_STRDUP): Likewise.
24301 (BUILT_IN_STRNDUP): Likewise.
24302 (BUILT_IN_ALLOCA): Likewise.
24303 (BUILT_IN_CALLOC): Likewise.
24304 (BUILT_IN_MALLOC): Likewise.
24305 (BUILT_IN_REALLOC): Likewise.
24306
24307 2019-06-06 Jim Wilson <jimw@sifive.com>
24308
24309 PR target/89955
24310 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24311 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24312 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24313
24314 2019-06-06 Martin Sebor <msebor@redhat.com>
24315
24316 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24317 (handle_builtin_malloc): Remove trailing spaces.
24318 (handle_builtin_memset): Same.
24319 (handle_builtin_memcmp): Same.
24320 (compute_string_length): Same.
24321 (determine_min_objsize): Same.
24322 (handle_builtin_string_cmp): Same.
24323 (handle_char_store): Same. Break up excessively long line.
24324
24325 2019-06-06 Martin Jambor <mjambor@suse.cz>
24326
24327 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24328 check.
24329
24330 2019-06-06 Martin Jambor <mjambor@suse.cz>
24331
24332 * tree-sra.c (struct access): New field grp_same_access_path.
24333 (dump_access): Dump it.
24334 (build_reconstructed_reference): New function.
24335 (build_ref_for_model): Use it if possible.
24336 (path_comparable_for_same_access): New function.
24337 (same_access_path_p): Likewise.
24338 (sort_and_splice_var_accesses): Set the new flag.
24339 (analyze_access_subtree): Likewise.
24340 (propagate_subaccesses_across_link): Propagate zero value of the new
24341 flag down the access tree.
24342
24343 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24344
24345 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24346 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24347 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24348 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24349 Add gfx906.
24350
24351 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24352
24353 PR tree-optimization/90332
24354 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24355 Handle VALS containing two vectors.
24356 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24357 to...
24358 (@aarch64_combinez<mode>): ... This.
24359 (*aarch64_combinez_be<mode>): Rename to...
24360 (@aarch64_combinez_be<mode>): ... This.
24361 (vec_init<mode><Vhalf>): New define_expand.
24362 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24363
24364 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24365
24366 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24367 library functions only when not optimizing for size.
24368 (ashlsi3): Likewise.
24369 (ashrhi3): Likewise.
24370 (ashrsi3): Likewise.
24371 (lshrhi3): Likewise.
24372 (lshrsi3): Likewise.
24373
24374 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24375
24376 PR rtl-optimization/88751
24377 * ira.c (ira): Use the number of the actually referenced registers
24378 when calculating the threshold.
24379
24380 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24381
24382 * configure: Regenerate.
24383
24384 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24385
24386 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24387 register if it is in memory, so the shift can be emulated with a rotate
24388 instruction.
24389 (ashrhi3): Likewise.
24390 (lshrhi3): Likewise.
24391
24392 2019-06-06 Martin Liska <mliska@suse.cz>
24393
24394 PR tree-optimization/87954
24395 * match.pd: Simplify mult where both arguments are 0 or 1.
24396
24397 2019-06-06 Richard Biener <rguenther@suse.de>
24398
24399 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24400 put equivalences on UNDEFINED ranges.
24401 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24402 Make sure to drop defs of stmts added during simplification
24403 to VARYING.
24404
24405 2019-06-06 Richard Biener <rguenther@suse.de>
24406
24407 * tree-ssa-structalias.c: Include tree-cfg.h.
24408 (make_heapvar): Do not make heap vars artificial.
24409 (find_func_aliases_for_builtin_call): Handle stack allocation
24410 functions.
24411 (find_func_aliases): Delay processing of simple enough returns
24412 in non-IPA mode.
24413 (set_uids_in_ptset): Adjust.
24414 (find_what_var_points_to): Likewise.
24415 (solve_constraints): Do not dump points-to sets here.
24416 (compute_points_to_sets): Post-process return statements,
24417 amending the escaped solution. Dump points-to sets afterwards.
24418 (ipa_pta_execute): Dump points-to sets.
24419
24420 2019-06-06 Martin Liska <mliska@suse.cz>
24421
24422 PR web/87933
24423 * doc/install.texi: Fix HTML headers and
24424 titles for 'Installing GCC' pages.
24425
24426 2019-06-06 Martin Liska <mliska@suse.cz>
24427
24428 * ipa-icf-gimple.h (dump_message_1): Remove.
24429 (dump_message): Likewise.
24430 (return_false_with_message_1): Print also file.
24431 (return_false_with_msg): Likewise.
24432 (return_with_result): Likewise.
24433 (return_with_debug): Likewise.
24434 * ipa-icf.c (sem_function::equals_private): Remove call
24435 to dump_message.
24436
24437 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24438
24439 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24440 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24441 memory operand for it.
24442 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24443
24444 2019-06-05 Martin Sebor <msebor@redhat.com>
24445
24446 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24447 Adjust quoting and hyphenation.
24448 * convert.c (convert_to_real_1): Same.
24449 * gcc.c (driver_wrong_lang_callback): Same.
24450 (driver::handle_unrecognized_options): Same.
24451 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24452 * opts-common.c (cmdline_handle_error): Same.
24453 (read_cmdline_option): Same.
24454 * opts-global.c (complain_wrong_lang): Same.
24455 (print_ignored_options): Same.
24456 (handle_common_deferred_options): Same.
24457 * pretty-print.h: Same.
24458 * print-rtl.c (debug_bb_n_slim): Same.
24459 * sched-rgn.c (make_pass_sched_fusion): Same.
24460 * tree-cfg.c (verify_gimple_assign_unary): Same.
24461 (verify_gimple_label): Same.
24462 * tree-ssa-operands.c (verify_ssa_operands): Same.
24463 * varasm.c (do_assemble_alias): Same.
24464 (assemble_alias): Same.
24465
24466 2019-06-05 Richard Henderson <rth@twiddle.net>
24467
24468 * config/alpha/alpha.c (direct_return): Move down after
24469 struct machine_function definition; use saved frame_size;
24470 return bool.
24471 (struct machine_function): Add sa_mask, sa_size, frame_size.
24472 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24473 (alpha_compute_frame_layout): ... new function.
24474 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24475 (alpha_initial_elimination_offset): Use saved sa_size.
24476 (alpha_vms_initial_elimination_offset): Likewise.
24477 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24478 (alpha_expand_prologue): Use saved frame data. Merge integer
24479 and fp register save loops.
24480 (alpha_expand_epilogue): Likewise.
24481 (alpha_start_function): Use saved frame data.
24482 * config/alpha/alpha-protos.h (direct_return): Update.
24483 (alpha_sa_size): Remove.
24484
24485 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24486
24487 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24488 multiplication by a power-of-two value.
24489 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24490 and turn the modulo operation into a masking operation.
24491
24492 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24493
24494 PR debug/90733
24495 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24496 with VOIDmode inner operands.
24497
24498 2019-06-05 Richard Biener <rguenther@suse.de>
24499
24500 PR middle-end/90726
24501 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24502 turn an expression graph into a tree.
24503
24504 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24505
24506 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24507 member.
24508 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24509 treat it like explicit monotonic schedule modifier.
24510 (expand_omp_for): Initialize has_lastprivate_conditional.
24511 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24512 schedule modifier.
24513
24514 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24515 references, lookup in in hash map MEM_REF operand instead of the
24516 MEM_REF itself.
24517 (lower_omp_1): When looking for lastprivate conditional assignments,
24518 handle MEM_REFs with REFERENCE_TYPE operands.
24519
24520 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24521 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24522 and references a VLA. Handle references to non-VLAs if is_simd
24523 all privatization clauses like reductions.
24524 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24525 If omp_is_reference, use always omp simd arrays and set
24526 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24527 fails, emit reference initialization.
24528
24529 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24530
24531 PR target/89803
24532 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24533 _mm_mask_fpclass_sd_mask): New intrinsics.
24534 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24535 * config/i386/i386-builtin.def
24536 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24537 New builtins.
24538 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24539 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24540 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24541 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24542 case QI_FTYPE_V2SF_INT): Ditto.
24543 * config/i386/sse.md
24544 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24545 Extended to insnstructions with mask operands.
24546
24547 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24548
24549 * config/rs6000/constraints.md (define_register_constraint "wp"):
24550 Delete.
24551 (define_register_constraint "wq"): Delete.
24552 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24553 (rs6000_init_hard_regno_mode_ok): Adjust.
24554 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24555 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24556 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24557 (define_mode_attr VSa): Delete.
24558 (define_mode_attr VSisa): New.
24559 (rest of file): Adjust.
24560 * doc/md.texi (Machine Constraints): Adjust.
24561
24562 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24563
24564 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24565 (define_attr "enabled"): Handle those new isa values.
24566
24567 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24568
24569 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24570 (define_mode_attr VSr5): Delete.
24571 (define_mode_attr VStype_sqrt): Delete.
24572 (define_mode_iterator VSX_SPDP): Delete.
24573 (define_mode_attr VS_spdp_res): Delete.
24574 (define_mode_attr VS_spdp_insn): Delete.
24575 (define_mode_attr VS_spdp_type): Delete.
24576 (*vsx_sqrt<mode>2): Adjust.
24577 (vsx_<VS_spdp_insn>): Delete, split to...
24578 (vsx_xscvdpsp): ... this. New. And...
24579 (vsx_xvcvspdp): ... this. New. And...
24580 (vsx_xvcvdpsp): ... this. New.
24581
24582 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24583
24584 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24585 and V2DF.
24586 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24587 (rest of file): Adjust.
24588
24589 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24590
24591 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24592 (vsx_extract_<mode>_var): Ditto.
24593
24594 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24595
24596 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24597 with just "wa".
24598
24599 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24600
24601 * config/rs6000/constraints.md (define_register_constraint "ww"):
24602 Delete.
24603 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24604 (rs6000_init_hard_regno_mode_ok): Adjust.
24605 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24606 RS6000_CONSTRAINT_ww.
24607 * config/rs6000/rs6000.md: Adjust.
24608 * config/rs6000/vsx.md: Adjust.
24609 * doc/md.texi (Machine Constraints): Adjust.
24610
24611 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24612
24613 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24614 (define_mode_attr sd): New.
24615 (define_mode_attr s): New.
24616 (define_mode_attr Ftrad): Delete.
24617 (define_mode_attr Fvsx): Delete.
24618 (define_mode_attr Fs): Delete.
24619 (rest of file): Use the new mode attributes.
24620 * config.rs6000/vsx.md: Use the new mode attributes.
24621
24622 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24623
24624 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24625 with just "wa".
24626
24627 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24628
24629 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24630 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24631 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24632
24633 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24634
24635 PR target/78263
24636 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24637 C++ with strict ANSI requirements.
24638
24639 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24640
24641 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24642 computations when step is 1.
24643
24644 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24645
24646 * config/rs6000/constraints.md (define_register_constraint "wf"):
24647 Delete.
24648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24649 (rs6000_init_hard_regno_mode_ok): Adjust.
24650 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24651 RS6000_CONSTRAINT_wf.
24652 * config/rs6000/rs6000.md: Adjust.
24653 * config/rs6000/vsx.md: Adjust.
24654 * doc/md.texi (Machine Constraints): Adjust.
24655
24656 2019-06-04 Andrew Pinski <apinski@marvell.com>
24657
24658 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24659 Fix ILP32 value.
24660
24661 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24662
24663 * config/rs6000/constraints.md (define_register_constraint "wd"):
24664 Delete.
24665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24666 (rs6000_init_hard_regno_mode_ok): Adjust.
24667 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24668 RS6000_CONSTRAINT_wd.
24669 * config/rs6000/rs6000.md: Adjust.
24670 * config/rs6000/vsx.md: Adjust.
24671 * doc/md.texi (Machine Constraints): Adjust.
24672
24673 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24674
24675 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24676 (rest of file): Adjust.
24677
24678 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24679
24680 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24681 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24682 (vsx_splat_<mode>_reg): Adjust.
24683
24684 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24685
24686 * config/rs6000/constraints.md (define_register_constraint "ws"):
24687 Delete.
24688 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24689 (rs6000_init_hard_regno_mode_ok): Adjust.
24690 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24691 RS6000_CONSTRAINT_ws.
24692 * config/rs6000/rs6000.md: Adjust.
24693 * config/rs6000/vsx.md: Adjust.
24694 * doc/md.texi (Machine Constraints): Adjust.
24695
24696 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24697
24698 * config/rs6000/constraints.md (define_register_constraint "wv"):
24699 Delete.
24700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24701 (rs6000_init_hard_regno_mode_ok): Adjust.
24702 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24703 RS6000_CONSTRAINT_wv.
24704 * config/rs6000/rs6000.md: Adjust.
24705 * config/rs6000/vsx.md: Adjust.
24706 * doc/md.texi (Machine Constraints): Adjust.
24707
24708 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24709
24710 * config/rs6000/constraints.md (define_register_constraint "wi"):
24711 Delete.
24712 (define_register_constraint "wt"): Delete.
24713 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24714 (rs6000_init_hard_regno_mode_ok): Adjust.
24715 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24716 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24717 * config/rs6000/rs6000.md: Adjust.
24718 * config/rs6000/vsx.md: Adjust.
24719 * doc/md.texi (Machine Constraints): Adjust.
24720
24721 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24722
24723 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24724 const.
24725 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24726 default_elf_asm_output_external.
24727
24728 2019-06-04 Martin Liska <mliska@suse.cz>
24729
24730 * ipa-icf.c (INCLUDE_LIST): Remove.
24731 (sem_item_optimizer::execute): Remove call to init_wpa.
24732 * ipa-icf.h (init_wpa): Remove.
24733
24734 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24735
24736 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24737 conditional on combined for simd.
24738 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24739 member.
24740 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24741 constructs, don't remove lastprivate_conditional_map, but instead set
24742 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24743 to parent construct temporaries.
24744 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24745 like !ctx->lastprivate_conditional_map.
24746 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24747 use up->outer context instead of up.
24748 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24749 gimple_omp_for_combined_p.
24750 (expand_omp_for_static_nochunk): Likewise.
24751 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24752 probably moved over into expand_omp_for_generic rather than being copied
24753 there.
24754
24755 2019-06-04 Martin Liska <mliska@suse.cz>
24756
24757 * value-prof.c (dump_histogram_value): Fix typo.
24758 (gimple_mod_subtract_transform): Likewise.
24759
24760 2019-06-04 Richard Biener <rguenther@suse.de>
24761
24762 PR middle-end/90726
24763 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24764 (tree_contains_chrecs): Likewise.
24765 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24766 exponential behaivor from ...
24767 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24768 ... here.
24769 (expression_expensive_p): Avoid exponential behavior and compute
24770 expanded size, rejecting any expansion.
24771 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24772 (idx_contains_abnormal_ssa_name_p): Likewise.
24773 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24774 (contains_abnormal_ssa_name_p): Simplify and use
24775 walk_tree_without_duplicates.
24776
24777 2019-06-04 Richard Biener <rguenther@suse.de>
24778
24779 PR tree-optimization/90738
24780 Revert
24781 2019-06-03 Richard Biener <rguenther@suse.de>
24782
24783 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24784 full reference tree and record in ref->ref.
24785 (vn_reference_lookup_3): Pass in original ref to
24786 ao_ref_init_from_vn_reference.
24787 (vn_reference_lookup): Likewise.
24788 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24789 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24790 Handle non-decl bases in the original reference.
24791
24792 2019-06-04 Martin Liska <mliska@suse.cz>
24793
24794 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24795 number of references.
24796 (sem_item_optimizer::do_congruence_step):
24797 (sem_item_optimizer::worklist_push): Dump how references
24798 a class has.
24799 (sem_item_optimizer::worklist_pop): Use heap.
24800 (sem_item_optimizer::process_cong_reduction): Likewise.
24801 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24802
24803 2019-06-04 Martin Liska <mliska@suse.cz>
24804
24805 * ipa-icf.h (struct sem_usage_pair_hash): New.
24806 (sem_usage_pair_hash::hash): Likewise.
24807 (sem_usage_pair_hash::equal): Likewise.
24808 (struct sem_usage_hash): Likewise.
24809 * ipa-icf.c (sem_item::sem_item): Initialize
24810 referenced_by_count.
24811 (sem_item::add_reference): Register a reference
24812 in ref_map and not in target->usages.
24813 (sem_item::setup): Remove initialization of
24814 dead vectors.
24815 (sem_item::~sem_item): Remove usage of dead vectors.
24816 (sem_item::dump): Remove dump of references.
24817 (sem_item_optimizer::sem_item_optimizer): Initialize
24818 m_references.
24819 (sem_item_optimizer::read_section): Remove useless
24820 dump.
24821 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24822 (sem_item_optimizer::build_graph): Pass m_references
24823 to ::add_reference.
24824 (sem_item_optimizer::verify_classes): Remove usage of dead
24825 vectors.
24826 (sem_item_optimizer::traverse_congruence_split): Return true
24827 when a class is split.
24828 (sem_item_optimizer::do_congruence_step_for_index): Use
24829 hash_map for look up of (sem_item *, index). That brings
24830 significant speed up.
24831 (sem_item_optimizer::do_congruence_step): Return true
24832 when a split is done.
24833 (congruence_class::is_class_used): Use referenced_by_count.
24834
24835 2019-06-04 Alan Modra <amodra@gmail.com>
24836
24837 PR target/90689
24838 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24839 error.
24840
24841 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24842
24843 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24844 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24845 (rs6000_secondary_reload_simple_move): Adjust.
24846 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24847 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24848 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24849 comment.
24850 (power6x): Adjust.
24851 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24852 (floatunssi<mode>2_lfiwzx): Adjust.
24853 (fix_trunc<mode>si2_stfiwx): Adjust.
24854 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24855 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24856 (mfpgpr): Mark as deprecated.
24857 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24858 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24859 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24860
24861 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24862
24863 * config/rs6000/constraints.md (define_register_constraint "wg"):
24864 Delete.
24865 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24866 RS6000_CONSTRAINT_wg.
24867 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24868 (rs6000_init_hard_regno_mode_ok): Adjust.
24869 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24870 Delete "wg" alternatives.
24871 * doc/md.texi (Machine Constraints): Adjust.
24872
24873 2019-06-03 Alan Modra <amodra@gmail.com>
24874
24875 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24876 (get_uncond_jump_length): Assert length less than INT_MAX and
24877 non-negative.
24878
24879 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24880
24881 PR middle-end/64242
24882 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24883 block.
24884 (expand_builtin_nonlocal_goto): Likewise.
24885
24886 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24887
24888 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24889 (aarch64_asm_output_external): Declare.
24890 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24891 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24892 (aarch64_asm_output_alias): New.
24893 (aarch64_asm_output_external): New.
24894 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24895 (ASM_OUTPUT_EXTERNAL): Define.
24896
24897 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24898 * tree-vrp.h (value_range_base::nonzero_p): New.
24899 (value_range_base::set_nonnull): Rename to...
24900 (value_range_base::set_nonzero): ...this.
24901 (value_range_base::set_null): Rename to...
24902 (value_range_base::set_zero): ...this.
24903 (value_range::set_nonnull): Remove.
24904 (value_range::set_null): Remove.
24905 * tree-vrp.c (range_is_null): Remove.
24906 (range_is_nonnull): Remove.
24907 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24908 instead of range_is_*null.
24909 (extract_range_from_unary_expr): Same.
24910 (value_range_base::set_nonnull): Rename to...
24911 (value_range_base::set_nonzero): ...this.
24912 (value_range::set_nonnull): Remove.
24913 (value_range_base::set_null): Rename to...
24914 (value_range_base::set_zero): ...this.
24915 (value_range::set_null): Remove.
24916 (extract_range_from_binary_expr): Rename set_*null uses to
24917 set_*zero.
24918 (extract_range_from_unary_expr): Same.
24919 (union_helper): Same.
24920 * vr-values.c (get_value_range): Use set_*zero instead of
24921 set_*null.
24922 (vr_values::extract_range_from_binary_expr): Same.
24923 (vr_values::extract_range_basic): Same.
24924
24925 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24926
24927 PR driver/90684
24928 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24929
24930 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24931
24932 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24933 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24934 Rename to...
24935 (aarch64_<su>abd<mode>_3): ... This.
24936 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24937
24938 2019-06-03 Richard Biener <rguenther@suse.de>
24939
24940 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24941 full reference tree and record in ref->ref.
24942 (vn_reference_lookup_3): Pass in original ref to
24943 ao_ref_init_from_vn_reference.
24944 (vn_reference_lookup): Likewise.
24945 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24946 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24947 Handle non-decl bases in the original reference.
24948
24949 2019-06-03 Martin Liska <mliska@suse.cz>
24950
24951 * doc/generic.texi: Remove Java Trees.
24952
24953 2019-06-03 Martin Liska <mliska@suse.cz>
24954
24955 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24956 returns 0 when operands are equal.
24957
24958 2019-06-03 Richard Biener <rguenther@suse.de>
24959
24960 PR tree-optimization/90716
24961 * tree-loop-distribution.c (destroy_loop): Process blocks in
24962 correct order.
24963
24964 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24965
24966 PR target/88837
24967 * vector-builder.h (vector_builder::count_dups): New method.
24968 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24969 Declare prototype.
24970 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24971 (vec_init<mode><Vel>): New pattern.
24972 * config/aarch64/aarch64.c (emit_insr): New function.
24973 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24974 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24975 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24976 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24977
24978 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24979
24980 PR tree-optimization/90681
24981 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24982 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24983 special case for SLP, but fail on non-groupped loads.
24984
24985 2019-06-03 Martin Liska <mliska@suse.cz>
24986
24987 * cfg.c (debug): Use TDF_DETAILS for debug and
24988 print edge info only once.
24989
24990 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24991
24992 PR fortran/90539
24993 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24994
24995 2019-06-01 Martin Sebor <msebor@redhat.com>
24996
24997 PR middle-end/90694
24998 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24999
25000 2019-05-31 Jan Hubicka <jh@suse.cz>
25001
25002 * alias.c: Include ipa-utils.h.
25003 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25004 * ipa-devirt.c (prevailing_odr_type): New.
25005 * ipa-utils.h (previaling_odr_type): Declare.
25006
25007 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25008 Hongtao Liu <hongtao.liu@intel.com>
25009
25010 PR target/89355
25011 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25012 NOTE_INSN_DELETED_LABEL check.
25013
25014 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25015 Robert Suchanek <robert.suchanek@mips.com>
25016
25017 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25018 and 3rd operands of the fmadd/fmsub/maddv builtin.
25019
25020 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25021
25022 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25023 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25024 on OMP_SIMD if not nested inside of worksharing loop that also has
25025 lastprivate conditional clause for the same decl.
25026 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25027 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25028 on simd.
25029 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25030 on simd construct.
25031 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25032 on simd construct.
25033 (lower_lastprivate_clauses): Likewise.
25034 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25035 calling lower_rec_input_clauses.
25036 (lower_omp_for): Likewise.
25037 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25038 clause on simd construct.
25039 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25040 OMP_CLAUSE__CONDTEMP_ clause is present.
25041
25042 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25043 ivar and lvar.
25044
25045 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25046
25047 PR c/43673
25048 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25049 TEX_D32, TEX_D64 or TEX_D128.
25050
25051 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25052
25053 * match.pd (~(vec?cst1:cst2)): New transformation.
25054
25055 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25056
25057 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25058 ((size_t)(A /[ex] B) CMP C): New transformation.
25059
25060 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25061
25062 * doc/md.texi: Document define_insn_and_rewrite.
25063 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25064 * gensupport.c (queue_elem): Update comment.
25065 (replace_operands_with_dups): New function.
25066 (gen_rewrite_sequence): Likewise.
25067 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25068 * read-rtl.c (apply_subst_iterator): Likewise.
25069 (add_condition_to_rtx, named_rtx_p): Likewise.
25070 (rtx_reader::read_rtx_operand): Likewise.
25071 * config/aarch64/aarch64-sve.md
25072 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25073 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25074 define_insn_and_rewrite.
25075 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25076 Remove separate define_split.
25077
25078 2019-05-31 Jan Hubicka <jh@suse.cz>
25079
25080 * tree-ssa-alias.c (type_has_components_p): New function.
25081 (aliasing_component_refs_p): Use it.
25082
25083 2019-05-31 Martin Liska <mliska@suse.cz>
25084
25085 * gdbhooks.py: Add const_tree to TreePrinter.
25086
25087 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25088
25089 PR debug/86964
25090 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25091 * doc/invoke.texi (Debugging Options): Document new default of
25092 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25093
25094 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25095
25096 PR tree-optimization/90671
25097 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25098 template_block used to be empty on the first call, don't use
25099 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25100 seq with bb_seq and set it with set_bb_seq.
25101
25102 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25103
25104 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25105
25106 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25107 Michael Meissner <meissner@linux.ibm.com>
25108
25109 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25110 (prefixed_mem_operand): Likewise.
25111 (non_prefixed_mem_operand): Likewise.
25112 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25113 prototype.
25114 * config/rs6000/rs6000.c (print_operand_address): Handle
25115 PC-relative addresses.
25116 (mode_supports_prefixed_address_p): New function.
25117 (rs6000_prefixed_address): New function.
25118 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25119 (SYMBOL_REF_PCREL_P): Likewise.
25120
25121 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25122
25123 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25124 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25125 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25126 is nested inside of parallel region, add _condtemp_ clause to both.
25127 * tree-nested.c (convert_nonlocal_omp_clauses,
25128 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25129 assertion failure.
25130 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25131 member.
25132 * omp-general.c (omp_extract_for_data): Compute it.
25133 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25134 (lower_rec_input_clauses): Likewise.
25135 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25136 clause is already present, just add one further one after it.
25137 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25138 (lower_send_shared_vars): Clear _condtemp_ vars.
25139 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25140 or section or taskgroup.
25141 * omp-expand.c (determine_parallel_type): Disallow combining only if
25142 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25143 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25144 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25145 expand_omp_for_static_chunk, expand_omp_for): Use
25146 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25147 determine if a special set of API routines are needed and if condtemp
25148 needs to be initialized, while always initialize cond_var if
25149 fd->lastprivate_conditional is non-zero.
25150
25151 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25152 Michael Meissner <meissner@linux.ibm.com>
25153
25154 * config/rs6000/constraints.md (eI): New constraint.
25155 * config/rs6000/predicates.md (cint34_operand): New predicate.
25156 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25157 (SIGNED_34BIT_OFFSET_P): Likewise.
25158 * doc/md.texi (eI): Document constraint.
25159
25160 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25161
25162 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25163
25164 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25165 Michael Meissner <meissner@linux.ibm.com>
25166
25167 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25168 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25169 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25170 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25171 (OTHER_FUTURE_MASKS): Likewise.
25172 (POWERPC_MASKS): Likewise.
25173 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25174 specified without -mprefixed-addr or -mcpu=future. Error if
25175 -mprefixed-addr is specified without -mcpu=future.
25176 (rs6000_opt_masks): Add entry for prefixed-addr.
25177 * rs6000.opt (mprefixed-addr): New option.
25178
25179 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25180
25181 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25182 cfun->is_thunk check.
25183
25184 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25185
25186 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25187 to length.
25188
25189 2019-05-30 Martin Liska <mliska@suse.cz>
25190
25191 * gdbinit.in: Fix 'ptc' command. Add trt
25192 that prints TREE_TYPE($).
25193
25194 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25195 Alan Modra <amodra@gmail.com>
25196
25197 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25198 calls here...
25199 (rs6000_indirect_call_template_1): ...and here.
25200 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25201 plt16_ha, plt16_lo, mtctr indirect calls. Use
25202 rs6000_pltseq_enum.
25203 (rs6000_decl_ok_for_sibcall): New function.
25204 (rs6000_function_ok_for_sibcall): Refactor.
25205 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25206 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25207 when pcrel. Reorganize.
25208 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25209 * rs6000.h (rs6000_pltseq_enum): New enum.
25210 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25211 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25212 (*pltseq_plt16_ha): Likewise.
25213 (*pltseq_plt16_lo): Likewise.
25214 (*pltseq_mtctr): Likewise.
25215 (*pltseq_plt_pcrel): New insn.
25216 (*call_local_aix): Handle @notoc calls.
25217 (*call_value_local_aix): Likewise.
25218 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25219 (*call_value_nonlocal_aix): Likewise.
25220 (*call_indirect_pcrel): New insn.
25221 (*call_value_indirect_pcrel): Likewise.
25222
25223 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25224
25225 * config/i386/sse.md (*save_multiple<mode>): Rename from
25226 save_multiple<mode>.
25227 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25228 (*restore_multiple_and_return<mode>): Rename from
25229 restore_multiple_and_return<mode>.
25230 (*restore_multiple_leave_return<mode>): Rename from
25231 restore_multiple_leave_return<mode>.
25232
25233 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25234
25235 * config.gcc (rx-*-linux*): New target.
25236 * config/rx/elf.opt: New file.
25237 * config/rx/linux.h: Likewise.
25238 * config/rx/t-linux: Likewise.
25239 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25240 make it zero.
25241 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25242 (ASM_APP_OFF): Likewise.
25243 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25244 moved elsewhere.
25245
25246 2019-05-29 Jan Hubicka <jh@suse.cz>
25247
25248 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25249 variants are pointer equivalent.
25250
25251 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25252
25253 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25254 * config/aarch64/aarch64-sve2.md: New file.
25255 (<u>avg<mode>3_floor): New pattern.
25256 (<u>avg<mode>3_ceil): Likewise.
25257 (*<sur>h<addsub><mode>): Likewise.
25258 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25259 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25260
25261 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25262
25263 PR bootstrap/90543
25264 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25265 for var_opt_string printing. In cl_optimization_print_diff, print
25266 (null) instead of invoking undefined behavior if one of the
25267 var_opt_string pointers is NULL and use && instead of first || in the
25268 guarding condition. For var_target_other options, handle const char *
25269 target variables similarly to const char * optimize node variables.
25270
25271 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25272
25273 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25274 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25275 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25276 Add autib1716 and pacib1716 initialisation.
25277 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25278 for autib1716 and pacib1716.
25279 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25280 aarch64_post_cfi_startproc): Define.
25281 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25282 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25283 aarch64_handle_pac_ret_protection): Set default sign key to A.
25284 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25285 aarch64_expand_prologue): Add check for b-key.
25286 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25287 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25288 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25289 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25290 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25291 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25292 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25293 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25294 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25295 pauth_hint_num_a with pauth_hint_num.
25296 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25297 pauth_hint_num_a with pauth_hint_num.
25298 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25299 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25300 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25301 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25302 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25303 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25304 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25305 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25306 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25307 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25308 UNSPEC_AUTIA1716 respectively.
25309 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25310 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25311 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25312 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25313 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25314 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25315
25316 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25317
25318 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25319 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25320 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25321 explicit clause on combined parallel into implicit shared clause.
25322 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25323 and firstprivate if the decl has one too from combined parallel to
25324 the worksharing construct.
25325
25326 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25327 Michael Meissner <meissner@linux.ibm.com>
25328
25329 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25330
25331 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25332
25333 * rtl.h (LABEL_REF_P): New #define.
25334
25335 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25336
25337 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25338
25339 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25340
25341 * internal-fn.c: Marked mask_load_direct as vectorizable.
25342 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25343 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25344 combined even if masks different with allow_slp_p param.
25345 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25346 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25347 dissolve SLP-only vectorizable groups when SLP has been discarded.
25348 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25349 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25350 masks.
25351 (vect_build_slp_tree_1): Fixed comment typo.
25352 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25353 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25354 loads for SLP only.
25355 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25356 vectorizable.
25357 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25358
25359 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25360
25361 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25362 Remove obsolete use_thunk reference.
25363 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25364 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25365 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25366 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25367 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25368 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25369 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25370 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25371 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25372
25373 2019-05-28 Nathan Sidwell <nathan@acm.org>
25374
25375 * tree.h (IDENTIFIER_ANON_P): New.
25376 (anon_aggrname_format, anon_aggname_p): Don't declare.
25377 (make_anon_name): Declare.
25378 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25379 (hash_tree): Likewise.
25380 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25381 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25382 (anon_cnt, make_anon_name): New.
25383
25384 2019-05-28 Martin Liska <mliska@suse.cz>
25385
25386 PR other/90315
25387 * opts-global.c (decode_options): Print help for all
25388 help_option_arguments.
25389 * opts.c (print_help): Add new argument.
25390 (common_handle_option): Remember all values into
25391 help_option_arguments.
25392 * opts.h (print_help): Add new argument.
25393
25394 2019-05-28 Martin Liska <mliska@suse.cz>
25395
25396 PR ipa/90555
25397 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25398 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25399 (func_checker::compare_bb): Call compare_loops.
25400
25401 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25402
25403 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25404 on sections construct.
25405 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25406 construct.
25407 (lower_omp_sections): Handle lastprivate conditional.
25408 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25409 lastprivate_conditional_map.
25410 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25411
25412 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25413 critical, taskgroup and section regions when looking for a region
25414 with non-NULL lastprivate_conditional_map.
25415
25416 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25417
25418 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25419 (*ix86_gen_sub3): Ditto.
25420 (*ix86_gen_sub3_carry): Ditto.
25421 (*ix86_gen_one_cmpl2): Ditto.
25422 (*ix86_gen_andsp): Ditto.
25423 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25424 (gen_and2_insn): New static function.
25425 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25426 Use gen_add3_insn instead of ix86_gen_add3.
25427 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25428 instead of ix86_gen_add3.
25429 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25430 Use gen_sub3_insn instead of ix86_gen_sub3.
25431 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25432 instead of ix86_gen_add3.
25433 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25434 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25435 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25436 * config/i386/i386-options.c (ix86_option_override_internal):
25437 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25438 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25439
25440 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25441
25442 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25443 and DW_OP_GNU_const_index opcodes.
25444
25445 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25446
25447 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25448
25449 2019-05-27 Richard Biener <rguenther@suse.de>
25450
25451 PR tree-optimization/90637
25452 * tree-ssa-sink.c (statement_sink_location): Honor the
25453 computed sink location for single-uses.
25454
25455 2019-05-27 Richard Biener <rguenther@suse.de>
25456
25457 PR middle-end/90610
25458 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25459 a bit-insert.
25460
25461 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25462
25463 * config/i386/i386.md (@sub<mode>3_carry): Rename
25464 from sub<mode>3_carry.
25465 (@leave_<mode>): New expander.
25466 (*leave): Rename from leave.
25467 (*leave_rex64): Rename from leave_rex64.
25468 (@monitorx_<mode>): Rename from monitorx_<mode>.
25469 (@clzero_<mode>): Rename from clzero_<mode>.
25470 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25471 from sse3_monitor_<mode>.
25472 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25473 (*ix86_gen_leave): Ditto.
25474 (*ix86_gen_monitor): Ditto.
25475 (*ix86_gen_monitorx): Ditto.
25476 (*ix86_gen_clzero): Ditto.
25477 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25478 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25479 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25480 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25481 Use gen_sse3_monitor instead of ix86_gen_monitor.
25482 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25483 instead of ix86_gen_monitorx.
25484 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25485 instead of ix86_gen_clzero.
25486 * config/i386/i386-options.c (ix86_option_override_internal):
25487 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25488 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25489
25490 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25491
25492 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25493 Rename from tls_global_dynamic_64_<mode>.
25494 (@tls_local_dynamic_base_64_<mode>): Rename from
25495 tls_local_dynamic_base_64_<mode>.
25496 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25497 Remove indirect function.
25498 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25499 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25500 instead of ix86_gen_tls_global_dynamic_64.
25501 Use gen_tls_local_dynamic_base_64 instead of
25502 ix86_gen_tls_local_dynamic_base_64.
25503 * config/i386/i386-options.c (ix86_option_override_internal):
25504 Do not initialize ix86_gen_tls_global_dynamic_64 and
25505 ix86_gen_tls_local_dynamic_base_64.
25506
25507 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25508
25509 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25510 Rename from pro_epilogue_adjust_stack_<mode>_add.
25511 (@pro_epilogue_adjust_stack_sub_<mode>)
25512 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25513 (@allocate_stack_worker_probe_<mode>):
25514 Rename from allocate_stack_worker_probe_<mode>.
25515 (allocate_stack): Use gen_allocate_stack_worker_probe.
25516 (probe_stack): Use gen_probe_stack_1.
25517 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25518 (@adjust_stack_and_probe_<mode>): Rename from
25519 adjust_stack_and_probe<mode>.
25520 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25521 (stack_protect_set): Use gen_stack_protect_set_1.
25522 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25523 (stack_protect_test): Use gen_stack_protect_test_1.
25524 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25525 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25526 Remove indirect function.
25527 (*ix86_gen_adjust_stack_and_probe): Ditto.
25528 (*ix86_gen_probe_stack_range): Ditto.
25529 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25530 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25531 (ix86_adjust_stack_and_probe_stack_clash): Use
25532 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25533 (ix86_adjust_stack_and_probe): Ditto.
25534 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25535 of ix86_gen_probe_stack_range.
25536 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25537 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25538 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25539 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25540 CODE_FOR_stack_protect_test_{si,di}.
25541 * config/i386/i386-options.c (ix86_option_override_internal):
25542 Do not initialize ix86_gen_allocate_stack_worker,
25543 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25544
25545 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25546
25547 * doc/invoke.texi (Link Options): Many editorial changes around
25548 -flinker-output.
25549
25550 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25551
25552 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25553 pre-Solaris 11 referene and most Studio compiler details.
25554
25555 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25556
25557 PR target/90530
25558 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25559 DImode to SImode in floating-point registers on 64-bit target.
25560 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25561 register_operand in xmpyu patterns.
25562
25563 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25564
25565 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25566 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25567 OMP_CLAUSE__REDUCTEMP_.
25568 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25569 OMP_CLAUSE__CONDTEMP_.
25570 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25571 * tree-pretty-print.c (dump_omp_clause): Likewise.
25572 * tree-nested.c (convert_nonlocal_omp_clauses,
25573 convert_local_omp_clauses): Likewise.
25574 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25575 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25576 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25577 on OMP_FOR.
25578 (gimplify_omp_for): Warn and disable conditional modifier from
25579 lastprivate on loop iterators.
25580 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25581 member.
25582 * omp-general.c (omp_extract_for_data): Initialize it.
25583 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25584 member.
25585 (delete_omp_context): Delete it.
25586 (lower_lastprivate_conditional_clauses): New function.
25587 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25588 handle lastprivate conditional clauses.
25589 (lower_reduction_clauses): Add CLIST argument, emit it into
25590 the critical section if any.
25591 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25592 lower_reduction_clauses callers.
25593 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25594 to lower_lastprivate_clauses.
25595 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25596 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25597 clist into a critical section if not emitted there already by
25598 lower_reduction_clauses.
25599 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25600 callers.
25601 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25602 conditional variables.
25603 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25604 clause is present.
25605 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25606 expand_omp_for_static_chunk): Handle lastprivate conditional.
25607 (expand_omp_for): Handle fd.lastprivate_conditional like
25608 fd.have_reductemp.
25609
25610 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25611
25612 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25613 kernel does not exit cleanly.
25614 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25615
25616 2019-05-24 Jason Merrill <jason@redhat.com>
25617
25618 Revert:
25619 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25620
25621 2019-05-24 Richard Biener <rguenther@suse.de>
25622
25623 PR testsuite/90607
25624 * tree-loop-distribution.c (struct partition): Add location
25625 member.
25626 (partition_alloc): Initialize all fields.
25627 (generate_memset_builtin): Use the location recorded in the
25628 partition for the generated call.
25629 (generate_memcpy_builtin): Likewise.
25630 (classify_partition): Record the location of a single store
25631 as location for the partition.
25632
25633 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25634
25635 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25636 for lo-part.
25637
25638 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25639
25640 PR target/90588
25641 * common/config/aarch64/aarch64-common.c
25642 (aarch64_rewrite_selected_cpu): Change local temporary variable
25643 type from unsigned long to uint64_t.
25644 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25645 aarch64_get_extension_string_for_isa_flags): Change declaration to
25646 match new definition by replacing unsigned long with uint64_t.
25647
25648 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25649
25650 PR target/90568
25651 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25652 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25653 Handle stack_protect_test_<mode> codegen similarly to corresponding
25654 sub instruction.
25655
25656 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25657
25658 * config/i386/darwin.h: Reject -mfentry*.
25659 * doc/sourcebuild.texi: Document mfentry target support.
25660
25661 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25662
25663 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25664 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25665 false for PC-relative functions.
25666 (rs6000_output_function_prologue): Change called function name to
25667 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25668 name,1" for PC-relative functions.
25669 (rs6000_elf_declare_function_name): Change called function name to
25670 rs6000_global_entry_point_prologue_needed_p.
25671
25672 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25673
25674 PR target/90552
25675 * config/i386/i386.c (gen_rtx_cost):
25676 Use ix86_tune_cost instead of ix86_cost.
25677
25678 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25679 Michael Meissner <meissner@linux.ibm.com>
25680 Segher Boessenkool <segher@kernel.crashing.org>
25681
25682 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25683 OPTION_MASK_PCREL.
25684 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25685 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25686 (rs6000_fndecl_pcrel_p): Likewise.
25687 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25688 error if -mpcrel is requested without -mcpu=future.
25689 (rs6000_opt_masks): Add entry for pcrel.
25690 (rs6000_fndecl_pcrel_p): New function.
25691 (rs6000_pcrel_p): Likewise.
25692 * config/rs6000/rs6000.opt (mpcrel): New option.
25693 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25694
25695 2019-05-23 Jan Hubicka <jh@suse.cz>
25696 Martin Liska <mliska@suse.cz>
25697
25698 PR tree-optimization/90576
25699 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25700 poly_int_tree_p.
25701 (aliasing_component_refs_p): Fix three way size compare conditional;
25702 give up earlier in case we can not decide on equivalence.
25703
25704 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25705 Michael Meissner <meissner@linux.ibm.com>
25706 Segher Boessenkool <segher@kernel.crashing.org>
25707
25708 * config.gcc: Add future cpu.
25709 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25710 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25711 #define.
25712 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25713 (RS6000_CPU): New instantiation for future cpu.
25714 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25715 PROCESSOR_FUTURE.
25716 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25717 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25718 * config/rs6000/rs6000-tables.opt: Regenerate.
25719 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25720 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25721 (rs6000_machine_from_flags): Handle future cpu.
25722 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25723 PROCESSOR_POWER9 for now.
25724 (rs6000_adjust_cost): Likewise.
25725 (rs6000_issue_rate): Likewise.
25726 (rs6000_register_move_cost): Likewise.
25727 (rs6000_opt_masks): Add entry for future.
25728 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25729 (MASK_FUTURE): New #define.
25730 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25731 * config/rs6000/rs6000.opt (mfuture): New target option.
25732 * doc/invoke.texi (mcpu): Add future cpu.
25733
25734 2019-05-23 Martin Liska <mliska@suse.cz>
25735
25736 PR c++/90587
25737 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25738 operation points to a temporary (pointed via tree_to_wide_ref)
25739 that is out of scope after the &.
25740
25741 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25742
25743 PR c++/90592
25744 * doc/extend.texi (Function Names): Add missing word.
25745
25746 2019-05-23 Richard Biener <rguenther@suse.de>
25747
25748 PR tree-optimization/88440
25749 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25750 at -O[2s]+.
25751 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25752 generated call.
25753 (generate_memcpy_builtin): Likewise.
25754 (distribute_loop): Pass in whether to only distribute patterns.
25755 (prepare_perfect_loop_nest): Also allow size optimization.
25756 (pass_loop_distribution::execute): When optimizing a loop
25757 nest for size allow pattern replacement.
25758
25759 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25760
25761 PR target/90568
25762 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25763 of xor.
25764
25765 2019-05-23 Martin Liska <mliska@suse.cz>
25766
25767 PR sanitizer/90570
25768 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25769 expression similarly to gimplify_decl_expr.
25770
25771 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25772
25773 * cse.c (cse_dump_path): s/dump_file/f.
25774
25775 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25776
25777 PR c++/90462
25778 * diagnostic-format-json.cc: Include "selftest.h".
25779 (json_from_expanded_location): Only add "file" key for non-NULL
25780 file strings.
25781 (json_from_location_range): Don't add "start" and "finish"
25782 children if they are UNKNOWN_LOCATION.
25783 (selftest::test_unknown_location): New selftest.
25784 (selftest::test_bad_endpoints): New selftest.
25785 (selftest::diagnostic_format_json_cc_tests): New function.
25786 * json.cc (json::object::get): New function.
25787 (selftest::test_object_get): New selftest.
25788 (selftest::json_cc_tests): Call it.
25789 * json.h (json::object::get): New decl.
25790 * selftest-run-tests.c (selftest::run_tests): Call
25791 selftest::diagnostic_format_json_cc_tests.
25792 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25793 decl.
25794
25795 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25796 Andrew Stubbs <amd@codesourcery.com>
25797
25798 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25799 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25800 (kernel): Rename to...
25801 (main_kernel): ... this.
25802 (load_image): Load _init_array and _fini_array kernels.
25803 (run): Add argument for kernel to run.
25804 (main): Run init_array_kernel before main_kernel, and
25805 fini_array_kernel after.
25806 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25807 amdgpu_hsa_kernel attribute on functions.
25808 (gcn_disable_constructors): Delete.
25809 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25810 * config/gcn/crt0.c (size_t): Define.
25811 (_init_array, _fini_array): New.
25812 (__preinit_array_start, __preinit_array_end,
25813 __init_array_start, __init_array_end,
25814 __fini_array_start, __fini_array_end): Declare weak references.
25815
25816 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25817
25818 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25819
25820 2019-05-22 Jason Merrill <jason@redhat.com>
25821
25822 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25823
25824 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25825
25826 PR target/88483
25827 * config/i386/i386-options.c (ix86_init_machine_status): Set
25828 stack_frame_required to true.
25829 * config/i386/i386.c (ix86_get_frame_size): New function.
25830 (ix86_frame_pointer_required): Replace get_frame_size with
25831 ix86_get_frame_size.
25832 (ix86_compute_frame_layout): Likewise.
25833 (ix86_find_max_used_stack_alignment): Changed to void. Set
25834 stack_frame_required.
25835 (ix86_finalize_stack_frame_flags): Always call
25836 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25837 ix86_get_frame_size.
25838 * config/i386/i386.h (machine_function): Add stack_frame_required.
25839
25840 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25841
25842 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25843
25844 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25845
25846 * common/config/aarch64/aarch64-common.c
25847 (struct aarch64_option_extension, struct processor_name_to_arch,
25848 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25849 aarch64_contains_opt,
25850 aarch64_get_extension_string_for_isa_flags): Change type of
25851 variables storing flags to uint64_t.
25852 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25853 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25854 * config/aarch64/aarch64.c (struct processor,
25855 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25856 aarch64_validate_march, aarch64_override_options,
25857 aarch64_option_print, aarch64_handle_attr_isa_flags,
25858 aarch64_declare_function_name, aarch64_start_file): Make flag
25859 variables uint64_t.
25860 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25861 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25862 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25863 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25864 * config/aarch64/driver-aarch64.c
25865 (struct aarch64_arch_extension, struct aarch64_core_data,
25866 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25867 flag variables uint64_t.
25868 * doc/invoke.texi: Add documentation for new arguments.
25869
25870 2019-05-22 Richard Biener <rguenther@suse.de>
25871
25872 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25873 rewrite ...
25874 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25875
25876 2019-05-22 Martin Liska <mliska@suse.cz>
25877
25878 PR lto/90500
25879 * doc/extend.texi: Document the change.
25880
25881 2019-05-22 Richard Biener <rguenther@suse.de>
25882
25883 PR tree-optimization/90450
25884 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25885 (mem_ref_hasher::equal): Check it.
25886 (mem_ref_alloc): Initialize it.
25887 (gather_mem_refs_stmt): Set it.
25888
25889 2019-05-22 Richard Biener <rguenther@suse.de>
25890
25891 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25892 Add ABS_EXPR.
25893 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25894 as ABSU_EXPR.
25895
25896 2019-05-22 Alan Modra <amodra@gmail.com>
25897
25898 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25899 (ASM_CPU_SPEC): Conditionally add -many.
25900 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25901 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25902 (rs6000_file_start): ..extracted from here, and modified to
25903 test all ISA bits.
25904 (rs6000_output_function_prologue): Emit .machine as necessary.
25905
25906 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25907
25908 PR middle-end/90553
25909 * ira-lives.c (process_bb_node_lives): Consider defs
25910 for a call insn to be die before the call, not after.
25911
25912 * function.c (assign_parm_setup_block): Raise alignment of
25913 stacked parameter only for STRICT_ALIGNMENT targets.
25914
25915 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25916
25917 * config/rs6000/constraints.md (define_register_constraint "wz"):
25918 Delete.
25919 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25920 RS6000_CONSTRAINT_wz.
25921 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25922 (rs6000_init_hard_regno_mode_ok): Adjust.
25923 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25924 * doc/md.texi (Machine Constraints): Adjust.
25925
25926 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25927
25928 * config/rs6000/constraints.md (define_register_constraint "wl"):
25929 Delete.
25930 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25931 RS6000_CONSTRAINT_wl.
25932 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25933 (rs6000_init_hard_regno_mode_ok): Adjust.
25934 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25935 * doc/md.texi (Machine Constraints): Adjust.
25936
25937 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25938
25939 * config/rs6000/constraints.md (define_register_constraint "wm"):
25940 Delete.
25941 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25942 RS6000_CONSTRAINT_wm.
25943 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25944 (rs6000_init_hard_regno_mode_ok): Adjust.
25945 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25946 * doc/md.texi (Machine Constraints): Adjust.
25947
25948 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25949
25950 * config/rs6000/constraints.md (define_register_constraint "wk"):
25951 Delete.
25952 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25953 RS6000_CONSTRAINT_wk.
25954 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25955 (rs6000_init_hard_regno_mode_ok): Adjust.
25956 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25957 * doc/md.texi (Machine Constraints): Adjust.
25958
25959 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25960
25961 * config/rs6000/constraints.md (define_register_constraint "wj"):
25962 Delete.
25963 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25964 RS6000_CONSTRAINT_wj.
25965 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25966 (rs6000_init_hard_regno_mode_ok): Adjust.
25967 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25968 (VS_64dm): Delete.
25969 * config/rs6000/vsx.md: Ditto.
25970 * doc/md.texi (Machine Constraints): Adjust.
25971
25972 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25973
25974 * config/rs6000/constraints.md (define_register_constraint "wh"):
25975 Delete.
25976 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25977 RS6000_CONSTRAINT_wh.
25978 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25979 (rs6000_init_hard_regno_mode_ok): Adjust.
25980 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25981 * doc/md.texi (Machine Constraints): Adjust.
25982
25983 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25984
25985 PR target/90547
25986 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25987 Avoid calling gen_lowpart with CONST operand.
25988
25989 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25990
25991 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25992 field template_last_to_copy.
25993 (ssa_create_duplicates): Set it, and use it. Attempt to
25994 preserve more debug stmts.
25995
25996 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25997
25998 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25999 (signbit<mode>2): New expander
26000
26001 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26002
26003 PR bootstrap/87338
26004 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26005 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26006
26007 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26008
26009 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26010 %ebx and %ecx bafore calling cpuid with leaf 1 or
26011 non-constant leaf argument.
26012
26013 2019-05-21 Alan Modra <amodra@gmail.com>
26014
26015 PR target/90545
26016 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26017 power9 direct move cost.
26018
26019 2019-05-21 Richard Biener <rguenther@suse.de>
26020
26021 PR middle-end/90510
26022 * fold-const.c (fold_read_from_vector): New function.
26023 * fold-const.h (fold_read_from_vector): Declare.
26024 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26025 single-element insert permutations. Canonicalize selector
26026 further and fix issue with last commit.
26027
26028 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26029
26030 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26031 parameter with default value false to declaration.
26032 (split_edges_for_insertion): New inline function. Wrapper for
26033 split_critical_edges with for_edge_insertion_p = true.
26034 * tree-cfg.c (split_critical_edges): Don't split non-critical
26035 edges if for_edge_insertion_p is false. Fix whitespace.
26036 * tree-ssa-pre.c (pass_pre::execute): Call
26037 split_edges_for_insertion instead of split_critical_edges.
26038 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26039 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26040 (pass_data_sink_code): Update function name in the comment.
26041
26042 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26043
26044 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26045 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26046 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26047 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26048 positives.
26049
26050 2019-05-21 Martin Liska <mliska@suse.cz>
26051
26052 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26053 an extra newline.
26054 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26055 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26056 vec_lvsr.
26057 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26058 Quote a C type.
26059 (rs6000_function_arg): Likewise.
26060 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26061 (rs6000_expand_ternop_builtin): Use interval syntax.
26062 (get_element_number): Likewise.
26063 (altivec_expand_builtin): Likewise.
26064 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26065
26066 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26067
26068 PR c++/59813
26069 PR target/90418
26070 * function.h (struct function): Add calls_eh_return member.
26071 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26072 gimplifying __builtin_eh_return call.
26073 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26074 to cfun.
26075 (expand_call_inline): Or in src_cfun->calls_eh_return into
26076 dst_cfun->calls_eh_return.
26077 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26078 cfun->calls_eh_return.
26079 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26080 * lto-streamer-out.c (output_struct_function_base): Write
26081 calls_eh_return.
26082
26083 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26084
26085 PR rtl-optimization/43147
26086 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26087 IX86_BUILTIN_SHUFPD.
26088
26089 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26090
26091 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26092 (refs_may_alias_p_1): ... here; update stats.
26093 (refs_may_alias_p): Do not update stats here.
26094
26095 2019-05-20 Richard Biener <rguenther@suse.de>
26096
26097 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26098 doesn't produce pointers.
26099 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26100 the first operand points to.
26101
26102 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26103
26104 * tree-ssa-alias.c (compare_sizes): New function.
26105 (sompare_type_sizes): New function
26106 (aliasing_component_refs_p): Use it.
26107 (indirect_ref_may_alias_decl_p): Likewise.
26108
26109 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26110
26111 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26112
26113 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26114
26115 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26116 (LIBLSAN_EARLY_SPEC): Likewise.
26117 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26118
26119 2019-05-20 Martin Liska <mliska@suse.cz>
26120
26121 * config/i386/i386.c (ix86_libc_has_fast_function):
26122 Add ATTRIBUTE_UNUSED for the argument.
26123
26124 2019-05-20 Richard Biener <rguenther@suse.de>
26125
26126 * gimple-match-head.c: Include vec-perm-indices.h.
26127 * generic-match-head.c: Likewise.
26128 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26129 is included.
26130 * fold-const.c (fold_vec_perm): Export.
26131 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26132 (match.pd): ...here.
26133
26134 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26135
26136 * cfgloop.h (struct loop): Add simdlen member.
26137 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26138 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26139 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26140 as new argument to autovectorize_vector_sizes target hook. If
26141 loop->simdlen, pick up vector size where the vectorization factor
26142 is equal to loop->simd, and if there is none, fall back to the first
26143 successful one.
26144 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26145 caller.
26146 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26147 * omp-general.c (omp_max_vf): Likewise.
26148 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26149 * tree-vect-slp.c (vect_slp_bb): Likewise.
26150 * target.def (autovectorize_vector_sizes): Add ALL argument and
26151 document it.
26152 * doc/tm.texi: Adjust documentation.
26153 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26154 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26155 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26156 bool argument.
26157 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26158 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26159 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26160 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26161 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26162 preferred vector size is not 512-bit or 256-bit, just put those
26163 unpreferred ones last.
26164
26165 2019-05-20 Martin Liska <mliska@suse.cz>
26166
26167 * targhooks.c (default_libc_has_fast_function): New function.
26168 * targhooks.h (default_libc_has_fast_function): Likewise.
26169
26170 2019-05-20 Martin Liska <mliska@suse.cz>
26171
26172 PR middle-end/90263
26173 * builtins.c (expand_builtin_memory_copy_args): When having a
26174 target with fast mempcpy implementation do now use memcpy.
26175 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26176 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26177 * doc/tm.texi: Likewise.
26178 * doc/tm.texi.in: Likewise.
26179 * target.def:
26180 * expr.c (emit_block_move_hints): Add 2 new arguments.
26181 * expr.h (emit_block_move_hints): Bail out when libcall
26182 to memcpy would be used.
26183
26184 2019-05-20 Martin Liska <mliska@suse.cz>
26185
26186 * profile-count.c: Add vertical spacing in order
26187 to separate functions.
26188 * profile-count.h: Likewise.
26189
26190 2019-05-20 Martin Liska <mliska@suse.cz>
26191
26192 * profile-count.h: Do not use full qualified
26193 names if possible.
26194 * profile-count.c (profile_count::to_frequency): Likewise.
26195
26196 2019-05-20 Martin Liska <mliska@suse.cz>
26197
26198 * profile-count.h (enum profile_quality): Use capital letters
26199 for enum value names. Use the adjusted names.
26200 * profile-count.c: Use the adjusted names.
26201
26202 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26203
26204 * config/rs6000/constraints.md (define_register_constraint "wH"):
26205 Delete.
26206 (define_register_constraint "wI"): Delete.
26207 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26208 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26209 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26210 (rs6000_init_hard_regno_mode_ok): Adjust.
26211 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26212 resp. "d", or with "wa" as appropriate, all with "p8v".
26213 * config/rs6000/vsx.md: Ditto.
26214 * doc/md.texi (Machine Constraints): Adjust.
26215
26216 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26217
26218 * config/rs6000/constraints.md (define_register_constraint "wy"):
26219 Delete.
26220 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26221 RS6000_CONSTRAINT_wy.
26222 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26223 (rs6000_init_hard_regno_mode_ok): Adjust.
26224 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26225 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26226 (define_mode_attr Fisa): New.
26227 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26228 * doc/md.texi (Machine Constraints): Adjust.
26229
26230 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26231
26232 * config/rs6000/constraints.md (define_register_constraint "wu"):
26233 Delete.
26234 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26235 RS6000_CONSTRAINT_wu.
26236 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26237 (rs6000_init_hard_regno_mode_ok): Adjust.
26238 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26239 both with "p8v".
26240 (define_mode_attr Fa): Delete.
26241 * config/rs6000/vsx.md: Ditto.
26242 * doc/md.texi (Machine Constraints): Adjust.
26243
26244 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26245
26246 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26247 Delete.
26248 (define_register_constraint "wK"): Delete.
26249 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26250 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26251 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26252 (rs6000_init_hard_regno_mode_ok): Adjust.
26253 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26254 Replace "wK" constraint by "wH" with "p9v".
26255 * config/rs6000/vsx.md: Ditto.
26256 * doc/md.texi (Machine Constraints): Adjust.
26257
26258 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26259
26260 * config/rs6000/constraints.md (define_register_constraint "wb"):
26261 Delete.
26262 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26263 RS6000_CONSTRAINT_wb.
26264 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26265 (rs6000_init_hard_regno_mode_ok): Adjust.
26266 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26267 * config/rs6000/vsx.md: Ditto.
26268 * doc/md.texi (Machine Constraints): Adjust.
26269
26270 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26271
26272 * config/rs6000/constraints.md (define_register_constraint "wo"):
26273 Delete.
26274 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26275 RS6000_CONSTRAINT_wo.
26276 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26277 (rs6000_init_hard_regno_mode_ok): Adjust.
26278 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26279 * config/rs6000/altivec.md: Ditto.
26280 * doc/md.texi (Machine Constraints): Adjust.
26281
26282 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26283
26284 * config/darwin-c.c (darwin_register_objc_includes): Do not
26285 prepend the sysroot when building gnu-runtime header search
26286 paths.
26287
26288 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26289
26290 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26291 instead of direct output of the asm.
26292
26293 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26294
26295 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26296 argument to be type bool (was int before).
26297 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26298 at first use. Use type bool for some variables. Fix a theoretical
26299 eh_return bug for svr4.
26300
26301 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26302
26303 * config/rs6000/rs6000.md (isa): New attribute.
26304 (enabled): New attribute.
26305
26306 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26307
26308 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26309 assemble_start_function and assemble_end_function.
26310
26311 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26312
26313 PR middle-end/89433
26314 * omp-general.c (oacc_verify_routine_clauses): Change formal
26315 parameters. Add checking if already marked with an OpenACC
26316 'routine' directive. Adjust all users.
26317
26318 PR middle-end/89433
26319 * omp-general.c (oacc_build_routine_dims): Move some of its
26320 processing into...
26321 (oacc_verify_routine_clauses): ... this new function.
26322 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26323
26324 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26325
26326 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26327 formating of picbase labels to match other ports.
26328
26329 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26330
26331 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26332 in the generated code.
26333
26334 2019-05-16 Martin Sebor <msebor@redhat.com>
26335
26336 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26337 identifiers, keywords, operators, and types in diagnostics. Correct
26338 quoting, spelling, and sentence capitalization issues.
26339 (expand_builtin_atomic_is_lock_free): Same.
26340 (fold_builtin_next_arg): Same.
26341 * cfgexpand.c (expand_one_var): Same.
26342 (tree_conflicts_with_clobbers_p): Same.
26343 (expand_asm_stmt): Same.
26344 (verify_loop_structure): Same.
26345 * cgraphunit.c (process_function_and_variable_attributes): Same.
26346 * collect-utils.c (collect_execute): Same.
26347 * collect2.c (maybe_run_lto_and_relink): Same.
26348 (is_lto_object_file): Same.
26349 (scan_prog_file): Same.
26350 * convert.c (convert_to_real_1): Same.
26351 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26352 * except.c (verify_eh_tree): Same.
26353 * gcc.c (execute): Same.
26354 (eval_spec_function): Same.
26355 (run_attempt): Same.
26356 (driver::set_up_specs): Same.
26357 (compare_debug_auxbase_opt_spec_function): Same.
26358 * gcov-tool.c (unlink_gcda_file): Same.
26359 (do_merge): Same.
26360 (do_rewrite): Same.
26361 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26362 * gimplify.c (gimplify_asm_expr): Same.
26363 (gimplify_adjust_omp_clauses): Same.
26364 * hsa-gen.c (gen_hsa_addr_insns): Same.
26365 (gen_hsa_insns_for_load): Same.
26366 (gen_hsa_cmp_insn_from_gimple): Same.
26367 (gen_hsa_insns_for_operation_assignment): Same.
26368 (gen_get_level): Same.
26369 (gen_hsa_alloca): Same.
26370 (omp_simple_builtin::generate): Same.
26371 (gen_hsa_atomic_for_builtin): Same.
26372 (gen_hsa_insns_for_call): Same.
26373 * input.c (dump_location_info): Same.
26374 * ipa-devirt.c (compare_virtual_tables): Same.
26375 * ira.c (ira_setup_eliminable_regset): Same.
26376 * lra-assigns.c (lra_assign): Same.
26377 * lra-constraints.c (lra_constraints): Same.
26378 * lto-streamer-in.c (lto_input_mode_table): Same.
26379 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26380 (merge_and_complain): Same.
26381 (compile_offload_image): Same.
26382 (compile_images_for_offload_targets): Same.
26383 (debug_objcopy): Same.
26384 (run_gcc): Same.
26385 (main): Same.
26386 * opts.c (print_specific_help): Same.
26387 (parse_no_sanitize_attribute): Same.
26388 (print_help): Same.
26389 (handle_param): Same.
26390 * plugin.c (add_new_plugin): Same.
26391 (parse_plugin_arg_opt): Same.
26392 (try_init_one_plugin): Same.
26393 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26394 operators, and types in diagnostics. Correct quoting and spelling
26395 issues.
26396 * read-rtl-function.c (parse_edge_flag_token): Same.
26397 (function_reader::parse_enum_value): Same.
26398 * reg-stack.c (check_asm_stack_operands): Same.
26399 * regcprop.c (validate_value_data): Same.
26400 * sched-rgn.c (make_pass_sched_fusion): Same.
26401 * stmt.c (check_unique_operand_names): Same.
26402 * targhooks.c (default_target_option_pragma_parse): Same.
26403 * tlink.c (recompile_files): Same.
26404 * toplev.c (process_options): Same.
26405 (do_compile): Same.
26406 * trans-mem.c (diagnose_tm_1): Same.
26407 (ipa_tm_scan_irr_block): Same.
26408 (ipa_tm_diagnose_transaction): Same.
26409 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26410 format a tree code name in a diagnostic.
26411 (verify_types_in_gimple_min_lval): Same.
26412 (verify_types_in_gimple_reference): Same.
26413 (verify_gimple_call): Same.
26414 (verify_gimple_assign_unary): Same.
26415 (verify_gimple_assign_binary): Same.
26416 (verify_gimple_assign_ternary): Same.
26417 (verify_gimple_assign_single): Same.
26418 (verify_gimple_switch): Same.
26419 (verify_gimple_label): Same.
26420 (verify_gimple_phi): Same.
26421 (verify_gimple_in_seq): Same.
26422 (verify_eh_throw_stmt_node): Same.
26423 (collect_subblocks): Same.
26424 (gimple_verify_flow_info): Same.
26425 (do_warn_unused_result): Same.
26426 * tree-inline.c (expand_call_inline): Same.
26427 * tree-into-ssa.c (update_ssa): Same.
26428 * tree.c (tree_int_cst_elt_check_failed): Same.
26429 (tree_vec_elt_check_failed): Same.
26430 (omp_clause_operand_check_failed): Same.
26431 (verify_type_variant): Same.
26432 (verify_type): Same.
26433 * value-prof.c (verify_histograms): Same.
26434 * varasm.c (assemble_start_function): Same.
26435
26436 2019-05-16 Martin Sebor <msebor@redhat.com>
26437
26438 * config/i386/i386-expand.c (get_element_number): Quote keywords
26439 and other internal names in diagnostics. Adjust other diagnostic
26440 formatting issues noted by -Wformat-diag.
26441 * config/i386/i386-features.c
26442 (ix86_mangle_function_version_assembler_name): Same.
26443 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26444 * config/i386/i386.c (ix86_function_type_abi): Same.
26445 (ix86_function_ms_hook_prologue): Same.
26446 (classify_argument): Same.
26447 (ix86_expand_prologue): Same.
26448 (ix86_md_asm_adjust): Same.
26449 (ix86_memmodel_check): Same.
26450
26451 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26452
26453 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26454 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26455 and fpxx modes.
26456
26457 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26458
26459 PR target/90497
26460 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26461 intrinsics without SSE/SSE2/SSSE3.
26462 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26463 check.
26464 (*mmx_uavgv8qi3): Likewise.
26465
26466 2019-05-17 Richard Biener <rguenther@suse.de>
26467
26468 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26469 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26470
26471 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26472
26473 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26474 vec_sldw insn pattern.
26475
26476 2019-05-17 Richard Biener <rguenther@suse.de>
26477
26478 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26479
26480 2019-05-17 Martin Liska <mliska@suse.cz>
26481
26482 PR driver/90496
26483 * toplev.c (output_stack_usage): With LTO and sanitizer it
26484 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26485 has no file location.
26486
26487 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26488
26489 PR c++/90484
26490 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26491 sz0 is equal to sz1, instead return false in that case.
26492
26493 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26494 has non-constant expression, force sctx.lane and use two
26495 argument IFN_GOMP_SIMD_LANE instead of single argument.
26496 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26497 two argument IFN_GOMP_SIMD_LANE without lhs.
26498 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26499 member.
26500 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26501 Define.
26502 (LOOP_REQUIRES_VERSIONING): Or in
26503 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26504 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26505 simd_if_cond.
26506 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26507 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26508 from simd if clause if needed.
26509
26510 2019-05-16 Richard Biener <rguenther@suse.de>
26511
26512 * tree-affine.c (expr_to_aff_combination): New function split
26513 out from...
26514 (tree_to_aff_combination): ... here.
26515 (aff_combination_expand): Avoid building a GENERIC tree.
26516
26517 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26518
26519 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26520 assemble_start_function and assemble_end_function calls.
26521 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26522 assemble_start_function and assemble_end_function.
26523 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26524 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26525 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26526 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26527 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26528 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26529 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26530 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26531 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26532 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26533 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26534 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26535 Likewise.
26536 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26537 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26538 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26539 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26540 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26541 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26542 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26543 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26544 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26545 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26546 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26547 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26548 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26549 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26550 Likewise.
26551 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26552 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26553 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26554
26555 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26556
26557 * tree-ssa-alias.c (alias_stats): Add
26558 aliasing_component_refs_p_may_alias and
26559 aliasing_component_refs_p_no_alias.
26560 (dump_alias_stats): Print aliasing_component_refs_p stats.
26561 (aliasing_component_refs_p): Update stats.
26562
26563 2019-05-16 Martin Liska <mliska@suse.cz>
26564
26565 PR lto/90500
26566 * multiple_target.c (expand_target_clones): Do not allow
26567 target_clones being used with a symbol that is an alias.
26568
26569 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26570
26571 PR tree-optimization/90394
26572 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26573 positives rather than ICE for cases where (code2 == NE_EXPR
26574 && code1 == BIT_AND_EXPR).
26575
26576 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26577
26578 PR fortran/90329
26579 * tree-core.h (struct tree_decl_common): Document
26580 decl_nonshareable_flag for PARM_DECLs.
26581 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26582 * calls.c (expand_call): Don't try tail call if caller
26583 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26584 passed on the stack and callee needs to pass any arguments on the
26585 stack.
26586 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26587 else if instead of series of mutually exclusive ifs. Handle
26588 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26589 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26590
26591 * lto-streamer.h (LTO_major_version): Bump to 9.
26592
26593 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26594
26595 PR tree-optimization/90106
26596 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26597 new parameter as new internal function call, also move it to new
26598 basic block.
26599 (use_internal_fn): Pass internal function call to
26600 shrink_wrap_one_built_in_call_with_conds.
26601
26602 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26603
26604 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26605 max_vf to 1.
26606 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26607 safelen_int and set loop->dont_vectorize.
26608
26609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26610
26611 PR target/89021
26612 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26613 SSE/SSE2/SSSE3.
26614 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26615 Likewise.
26616 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26617 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26618 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26619 is defined.
26620
26621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26622
26623 PR target/89021
26624 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26625 define_insn_and_split to support SSE emulation.
26626 (*vec_extractv2sf_0): Likewise.
26627 (*vec_extractv2sf_1): Likewise.
26628 (*vec_extractv2si_0): Likewise.
26629 (*vec_extractv2si_1): Likewise.
26630 (*vec_extractv2si_zext_mem): Likewise.
26631 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26632 (vec_extractv2sf_1 splitter): Likewise.
26633 (vec_extractv2sfsf): Likewise.
26634 (vec_setv2si): Likewise.
26635 (vec_extractv2si_1 splitter): Likewise.
26636 (vec_extractv2sisi): Likewise.
26637 (vec_setv4hi): Likewise.
26638 (vec_extractv4hihi): Likewise.
26639 (vec_setv8qi): Likewise.
26640 (vec_extractv8qiqi): Likewise.
26641 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26642 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26643 (vec_extractv2sisi): Likewise.
26644 (vec_extractv4hihi): Likewise.
26645 (vec_extractv8qiqi): Likewise.
26646 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26647 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26648 (vec_initv2sisi): Likewise.
26649 (vec_initv4hihi): Likewise.
26650 (vec_initv8qiqi): Likewise.
26651 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26652 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26653 (vec_setv4hi): Likewise.
26654 (vec_setv8qi): Likewise.
26655
26656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26657
26658 PR target/89021
26659 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26660 TARGET_MMX_WITH_SSE.
26661 (MMXMODE:*mov<mode>_internal): Likewise.
26662 (MMXMODE:movmisalign<mode>): Likewise.
26663
26664 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26665
26666 PR target/89021
26667 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26668 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26669 (sse2_cvtpd2pi): Ditto.
26670 (sse2_cvttpd2pi): Ditto.
26671 (*vec_concatv2sf_sse4_1): Ditto.
26672 (*vec_concatv2sf_sse): Ditto.
26673 (*vec_concatv2si_sse4_1): Ditto.
26674 (*vec_concatv2si): Ditto.
26675 (*vec_concatv4si_0): Ditto.
26676 (*vec_concatv2di_0): Ditto.
26677
26678 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26679
26680 PR target/89021
26681 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26682
26683 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26684
26685 PR target/89021
26686 * config/i386/sse.md (ssse3_palignrdi): Changed to
26687 define_insn_and_split to support SSE emulation.
26688
26689 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26690
26691 PR target/89021
26692 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26693
26694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26695
26696 PR target/89021
26697 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26698 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26699 SSE emulation.
26700
26701 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26702
26703 PR target/89021
26704 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26705 or TARGET_MMX_WITH_SSE.
26706 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26707
26708 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26709
26710 PR target/89021
26711 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26712
26713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26714
26715 PR target/89021
26716 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26717 Changed to define_insn_and_split to support SSE emulation.
26718
26719 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26720
26721 PR target/89021
26722 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26723 Changed to define_insn_and_split to support SSE emulation.
26724
26725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26726
26727 PR target/89021
26728 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26729 (*mmx_<emms>): This.
26730 (mmx_<emms>): New expander.
26731
26732 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26733
26734 PR target/89021
26735 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26736 support.
26737 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26738
26739 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26740
26741 PR target/89021
26742 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26743
26744 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26745
26746 PR target/89021
26747 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26748
26749 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26750
26751 PR target/89021
26752 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26753 TARGET_MMX_WITH_SSE.
26754 (*mmx_uavgv4hi3): Add SSE emulation.
26755
26756 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26757
26758 PR target/89021
26759 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26760 and TARGET_MMX_WITH_SSE.
26761 (*mmx_uavgv8qi3): Add SSE emulation.
26762
26763 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26764
26765 PR target/89021
26766 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26767 maskmovdqu for __MMX_WITH_SSE__.
26768
26769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26770
26771 PR target/89021
26772 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26773 TARGET_MMX and TARGET_MMX_WITH_SSE.
26774 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26775
26776 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26777
26778 PR target/89021
26779 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26780 define_insn_and_split to support SSE emulation.
26781
26782 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26783
26784 PR target/89021
26785 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26786 and TARGET_MMX_WITH_SSE.
26787 (mmx_<code>v8qi3): Likewise.
26788 (smaxmin:<code>v4hi3): New.
26789 (umaxmin:<code>v8qi3): Likewise.
26790 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26791 (umaxmin:*mmx_<code>v8qi3): Likewise.
26792
26793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26794
26795 PR target/89021
26796 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26797 TARGET_MMX_WITH_SSE.
26798 (*mmx_pinsrw): Add SSE emulation.
26799
26800 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26801
26802 PR target/89021
26803 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26804
26805 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26806
26807 PR target/89021
26808 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26809 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26810 SSE emulation.
26811
26812 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 PR target/89021
26815 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26816 (sse_cvttps2pi): Likewise.
26817
26818 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26819
26820 PR target/89021
26821 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26822 TARGET_MMX_WITH_SSE.
26823 (mmx_pshufw_1): Add SSE emulation.
26824 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26825 TARGET_MMX_WITH_SSE to support SSE emulation.
26826
26827 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26828
26829 PR target/89021
26830 * config/i386/constraints.md (Yw): New constraint.
26831 * config/i386/mmx.md (*vec_dupv2si): Changed to
26832 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26833 support SSE emulation.
26834
26835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26836
26837 PR target/89021
26838 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26839 TARGET_MMX_WITH_SSE.
26840 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26841 support.
26842 (mmx_gt<mode>3): Likewise.
26843
26844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26845
26846 PR target/89021
26847 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26848 TARGET_MMX_WITH_SSE. Add SSE support.
26849
26850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26851
26852 PR target/89021
26853 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26854 TARGET_MMX_WITH_SSE.
26855 (any_logic:<code><mode>3): New.
26856 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26857 Add SSE support.
26858
26859 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26860
26861 PR target/89021
26862 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26863 TARGET_MMX_WITH_SSE. Add SSE emulation.
26864 (mmx_<shift_insn><mode>3): Likewise.
26865 (ashr<mode>3): New.
26866 (<shift_insn><mode>3): Likewise.
26867
26868 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26869
26870 PR target/89021
26871 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26872 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26873
26874 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26875
26876 PR target/89021
26877 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26878 TARGET_MMX_WITH_SSE.
26879 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26880 SSE support.
26881
26882 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26883
26884 PR target/89021
26885 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26886 TARGET_MMX_WITH_SSE.
26887 (mulv4hi3): New.
26888 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26889 support.
26890
26891 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26892
26893 PR target/89021
26894 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26895 (plusminus:mmx_<plusminus_insn><mode>3): Check
26896 TARGET_MMX_WITH_SSE.
26897 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26898 (<plusminus_insn><mode>3): New.
26899 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26900 (*mmx_<plusminus_insn><mode>3): Likewise.
26901
26902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26903
26904 PR target/89021
26905 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26906 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26907 prototype.
26908 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26909 define_insn_and_split to support SSE emulation.
26910 (mmx_punpcklbw): Likewise.
26911 (mmx_punpckhwd): Likewise.
26912 (mmx_punpcklwd): Likewise.
26913 (mmx_punpckhdq): Likewise.
26914 (mmx_punpckldq): Likewise.
26915
26916 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26917 Uros Bizjak <ubizjak@gmail.com>
26918
26919 PR target/89021
26920 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26921 New function.
26922 (ix86_split_mmx_pack): Likewise.
26923 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26924 New prototype.
26925 (ix86_split_mmx_pack): Likewise.
26926 * config/i386/i386.md (mmx_isa): New.
26927 (enabled): Also check mmx_isa.
26928 * config/i386/mmx.md (any_s_truncate): New code iterator.
26929 (s_trunsuffix): New code attr.
26930 (mmx_packsswb): Removed.
26931 (mmx_packssdw): Likewise.
26932 (mmx_packuswb): Likewise.
26933 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26934 MMX packsswb/packuswb with SSE2.
26935 (mmx_packssdw): Likewise.
26936 * config/i386/predicates.md (register_mmxmem_operand): New.
26937
26938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26939
26940 PR target/89021
26941 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26942 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26943 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26944 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26945 (ix86_vector_mode_supported_p): Likewise.
26946 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26947
26948 2019-05-15 Martin Liska <mliska@suse.cz>
26949
26950 PR middle-end/90478
26951 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26952 Check for overflow.
26953
26954 2019-05-15 Richard Biener <rguenther@suse.de>
26955
26956 * tree-into-ssa.c (pass_build_ssa::execute): Run
26957 update_address_taken before going into SSA.
26958
26959 2019-05-15 Richard Biener <rguenther@suse.de>
26960
26961 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26962 as __BIT_FIELD_REF with type with -gimple.
26963
26964 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26965
26966 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26967 semantically equivalent branches (left over after prior refactorings).
26968
26969 2019-05-15 Richard Biener <rguenther@suse.de>
26970
26971 PR tree-optimization/88828
26972 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26973 bogus check.
26974
26975 2019-05-14 Richard Biener <rguenther@suse.de>
26976
26977 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26978 as __VIEW_CONVERT with -gimple.
26979
26980 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26981
26982 PR target/82920
26983 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26984 Darwin.
26985
26986 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26987
26988 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26989 define_split to become a define_insn_and_split.
26990
26991 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26992
26993 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26994 arguments.
26995 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26996 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26997 (sibcall_epilogue): Adjust.
26998 (epilogue): Adjust.
26999
27000 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27001
27002 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27003 to unsupported ones.
27004 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27005 * config.host: Likewise.
27006 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27007 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27008 __svr4__]: Remove "brand" fallback.
27009 [!KSTAT_DATA_STRING]: Remove.
27010 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27011 to *-*-solaris2*.
27012 (comdat_group): Likewise.
27013 (set_have_as_tls): Likewise.
27014 (gcc_cv_target_dl_iterate_phdr): Likewise.
27015 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27016 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27017 * configure: Regenerate.
27018 * doc/install.texi: Simplify Solaris target triplets.
27019 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27020 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27021 Remove Solaris 10 references.
27022 Remove obsolete Solaris bug reference.
27023 (Specific, sparc-sun-solaris2.10): Remove.
27024
27025 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27026
27027 * config/i386/i386.md (any_div): New code iterator.
27028 (paired_mod): New code attribute.
27029 (sgnprefix): Handle DIV and UDIV RTXes.
27030 (u): Ditto.
27031 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27032 and udivmod<mode>4 patterns using any_div code iterator.
27033 (divmod splitters): Macroize splitters using any_div code iterator.
27034 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27035 (*udivmodsi4_pow2_zext_2): Ditto.
27036 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27037 and *udivmod<mode>4_noext patterns using any_div code iterator.
27038 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27039 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27040 patterns using any_div code iterator.
27041 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27042 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27043 patterns using any_div code iterator.
27044 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27045 udivmodhiqi3 patterns using any_extend code iterator.
27046
27047 2019-05-14 Richard Biener <rguenther@suse.de>
27048 H.J. Lu <hongjiu.lu@intel.com>
27049
27050 PR tree-optimization/88828
27051 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27052 permuting in a single non-constant element not extracted
27053 from a vector.
27054
27055 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27056
27057 * internal-fn.def (SIGNBIT): New.
27058 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27059 defined.
27060 (signbitv4sf2): Likewise.
27061
27062 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27063
27064 PR target/90357
27065 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27066 next insn when the SRC reg is dead.
27067
27068 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27069
27070 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27071 (alloc_cand_and_find_basis): Ditto.
27072 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27073 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27074 (create_add_imm_cand, slsr_process_cast): Ditto.
27075 (slsr_process_copy, replace_mult_candidate): Ditto.
27076 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27077 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27078 (pass_strength_reduction::execute): Init the first NULL element.
27079
27080 2019-05-13 Nathan Sidwell <nathan@acm.org>
27081
27082 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27083 (run_attempt): Reformat line break.
27084
27085 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27086
27087 PR target/90418
27088 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27089 data registers in sibcall epilogues.
27090 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27091
27092 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27093
27094 PR target/89221
27095 * configure.ac (--enable-frame-pointer):
27096 Disable by default for cygwin and mingw.
27097 * configure: Regenerate.
27098
27099 2019-05-13 Nathan Sidwell <nathan@acm.org>
27100
27101 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27102 piece of code.
27103 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27104 (gen_member_die): Move abstract origin check earlier. Only VARs
27105 can be static_inline_p. Simplify splicing control flow.
27106
27107 2019-05-13 Richard Biener <rguenther@suse.de>
27108
27109 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27110 VIEW_CONVERT_EXPR.
27111 (vect_build_slp_tree_1): Likewise.
27112
27113 2019-05-13 Richard Biener <rguenther@suse.de>
27114
27115 PR tree-optimization/90402
27116 * tree-if-conv.c (tree_if_conversion): Value number only
27117 the loop body by making the latch an exit of the region
27118 as well.
27119 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27120 processing PHIs.
27121 (do_rpo_vn): Deal with multiple edges into the entry block
27122 that are not backedges inside the region by skipping PHIs
27123 of the entry block.
27124
27125 2019-05-13 Richard Biener <rguenther@suse.de>
27126
27127 PR tree-optimization/90316
27128 * tree-ssa-pre.c (insert_aux): Fold into ...
27129 (insert): ... this function. Use a RPO walk to reduce the
27130 number of required iterations.
27131
27132 2019-05-13 Martin Liska <mliska@suse.cz>
27133
27134 PR tree-optimization/90416
27135 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27136 string instead of passing the second part as va_arg argument.
27137
27138 2019-05-13 Martin Liska <mliska@suse.cz>
27139
27140 PR gcov-profile/90380
27141 * gcov.c (handle_cycle): Do not support zero cycle count,
27142 it should not be possible.
27143 (path_contains_zero_cycle_arc): New function.
27144 (circuit): Ignore zero cycle arc counts.
27145
27146 2019-05-13 Martin Liska <mliska@suse.cz>
27147
27148 PR gcov-profile/90380
27149 * gcov.c (enum loop_type): Remove the enum and
27150 the operator.
27151 (handle_cycle): Assert that we should not reach
27152 a negative count.
27153 (circuit): Use loop_found instead of a tri-state loop_type.
27154 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27155 happen.
27156
27157 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27158
27159 PR target/82920
27160 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27161 (ix86_output_indirect_branch_via_reg): Use output mechanism
27162 accounting for __USER_LABEL_PREFIX__.
27163 (ix86_output_indirect_branch_via_push): Likewise.
27164 (ix86_output_function_return): Likewise.
27165 (ix86_output_indirect_function_return): Likewise.
27166
27167 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27168
27169 * doc/md.texi: Document use of code attributes in rtx patterns.
27170 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27171 * read-rtl.c (find_code): Split out search loops into...
27172 (maybe_find_code): ...this new function.
27173 (check_code_iterator): Make the error message more informative.
27174 (check_code_attribute): New function.
27175 (rtx_reader::rtx_alloc_for_name): Likewise.
27176 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27177 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27178 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27179 <max_opp> directly as an rtx code instead of via a match_operator.
27180 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27181 (<su>abd<mode>_3): Update accordingly.
27182
27183 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27184
27185 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27186 is given, print the state of the EH "save world" computation for
27187 Darwin.
27188
27189 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27190
27191 PR c++/59813
27192 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27193 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27194
27195 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27196
27197 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27198 Use pinsrd for TARGET_SSE4_1.
27199 * config/i386/sse.md (movdi_to_sse): Ditto.
27200
27201 2019-05-10 Richard Biener <rguenther@suse.de>
27202
27203 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27204 (do_rpo_vn): Initialize next_value_id.
27205
27206 2019-05-10 Martin Liska <mliska@suse.cz>
27207
27208 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27209 Fix plural form.
27210
27211 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27212
27213 PR tree-optimization/90385
27214 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27215 arguments of the exit phis.
27216
27217 PR c++/90383
27218 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27219 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27220 id->do_not_fold.
27221 (copy_tree_body_r): Likewise.
27222 (copy_fn): Set id.do_not_fold to true.
27223
27224 2019-05-10 Martin Liska <mliska@suse.cz>
27225
27226 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27227 Reapply changes from r269790.
27228
27229 2019-05-10 Martin Liska <mliska@suse.cz>
27230
27231 PR middle-end/90340
27232 * doc/invoke.texi: New params.
27233 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27234 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27235 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27236 Use it.
27237 * tree-switch-conversion.h (struct jump_table_cluster):
27238 Likewise.
27239
27240 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27241
27242 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27243
27244 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27245
27246 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27247
27248 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27249
27250 PR rtl-optimization/88879
27251 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27252
27253 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27254
27255 PR target/90405
27256 * config/arm/arm.c (callee_saved_reg_p): Move before
27257 thumb_find_work_register.
27258 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27259 thumb_find_work_register. Only call df_get_live_out once.
27260 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27261 (thumb_find_work_register): Use
27262 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27263 algorithms to locate a spare call clobbered reg.
27264
27265 2019-05-09 Martin Liska <mliska@suse.cz>
27266
27267 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27268 and MAX_EXPR in GIMPLE FE format.
27269
27270 2019-05-09 Martin Liska <mliska@suse.cz>
27271
27272 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27273 * gimple-pretty-print.c (dump_gimple_bb_header):
27274 Dump BB count.
27275 (pp_cfg_jump): Dump edge probability.
27276 * profile-count.c (profile_quality_as_string): Simplify
27277 with a static array.
27278 (parse_profile_quality): New function.
27279 (profile_count::dump): Simplify with a static array.
27280 (profile_count::from_gcov_type): Add new argument.
27281 * profile-count.h (parse_profile_quality): Likewise.
27282 * predict.h (set_hot_bb_threshold): New.
27283 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27284 New param.
27285 * predict.c (get_hot_bb_threshold): Set from the new param.
27286 (set_hot_bb_threshold): New.
27287
27288 2019-05-09 Richard Biener <rguenther@suse.de>
27289
27290 PR tree-optimization/90395
27291 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27292 rewrite vector stores that throw internally.
27293
27294 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27295
27296 * cif-code.def (CHKP): Remove.
27297
27298 PR target/89221
27299 * configure.ac (--enable-frame-pointer): Disable by default for
27300 GNU systems.
27301 * configure: Regenerate.
27302
27303 2019-05-09 Alan Modra <amodra@gmail.com>
27304
27305 PR target/89271
27306 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27307 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27308 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27309 cost for general <-> vsx when direct moves are available.
27310 Cost union classes at minimal cost for any reg in the class.
27311 Correct calculation for moves between vsx, float, and altivec.
27312 Don't return a low cost for moves between special regs. Don't
27313 use hard coded register numbers.
27314 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27315 (rs6000_ira_change_pseudo_allocno_class): New function.
27316 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27317 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27318 alternatives.
27319 (movsi_internal1): Don't disparage vector alternatives.
27320 (mov<mode>_internal): Likewise, excepting alternative that
27321 will be split.
27322 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27323 we <- b alternative.
27324
27325 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27326
27327 PR c++/59813
27328 PR tree-optimization/89060
27329 * tree-ssa-live.h (live_vars_map): New typedef.
27330 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27331 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27332 (struct compute_live_vars_data): New type.
27333 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27334 live_vars_at_stmt, destroy_live_vars): New functions.
27335 * tree-tailcall.c: Include tree-ssa-live.h.
27336 (live_vars, live_vars_vec): New global variables.
27337 (find_tail_calls): Perform variable life analysis before punting.
27338 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27339 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27340 member.
27341 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27342 Perform variable life analysis to select variables that really need
27343 clobbers added.
27344 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27345 instead set id->eh_landing_pad_dest and assert it is the same.
27346 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27347
27348 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27349 Richard Earnshaw <rearnsha@arm.com>
27350
27351 PR target/88167
27352 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27353 function.
27354 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27355 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27356 register if both the epilogue and prologue can use call-clobbered
27357 regs.
27358 (thumb1_unexpanded_epilogue): Use
27359 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27360 picking temporaries for restoring high regs to match that of the
27361 prologue where possible.
27362 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27363 the list of work registers. Detect if the return address is still live
27364 at the end of the prologue and avoid using it for a work register if so.
27365 If the return address is not live, add LR to the list of pushable regs
27366 after the first pass.
27367
27368 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27369
27370 PR tree-optimization/90078
27371 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27372 (INFTY): Increase the value for infinite cost.
27373 (struct comp_cost): Promote type of members to int64_t.
27374 (infinite_cost): Don't set complexity in initialization.
27375 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27376 overflows to infinite_cost.
27377 (adjust_setup_cost): Promote type of parameter and cost computation
27378 to int64_t.
27379 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27380 int64_t.
27381 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27382 cost computation to int64_t.
27383 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27384 int64_t's format specifier in dump.
27385
27386 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27387
27388 PR tree-optimization/90240
27389 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27390 with respect to scaling factor pre-computed for each basic block.
27391 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27392 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27393 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27394 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27395 live range for array of loop's basic blocks. Cleanup aux field of
27396 loop's basic blocks.
27397
27398 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27399
27400 PR tree-optimization/90356
27401 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27402
27403 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27404
27405 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27406 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27407 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27408 (ix86_handle_option): Handle -mavx512bf16.
27409 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27410 to extra_headers.
27411 * config/i386/avx512bf16vlintrin.h: New.
27412 * config/i386/avx512bf16intrin.h: New.
27413 * config/i386/cpuid.h (bit_AVX512BF16): New.
27414 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27415 * config/i386/i386-builtin-types.def: Add new types.
27416 * config/i386/i386-builtin.def: Add new builtins.
27417 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27418 __AVX512BF16__.
27419 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27420 (ix86_option_override_internal): Handle BF16.
27421 (ix86_valid_target_attribute_inner_p): Ditto.
27422 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27423 * config/i386/i386-builtin.c (enum processor_features): Add
27424 F_AVX512BF16.
27425 (static const _isa_names_table isa_names_table): Ditto.
27426 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27427 (PTA_AVX512BF16): Ditto.
27428 * config/i386/i386.opt: Add -mavx512bf16.
27429 * config/i386/immintrin.h: Include avx512bf16intrin.h
27430 and avx512bf16vlintrin.h.
27431 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27432 avx512f_cvtneps2bf16_<mode><mask_name>,
27433 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27434 * config/i386/subst.md (mask_half): Add new subst.
27435 * doc/invoke.texi: Document -mavx512bf16.
27436
27437 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27438
27439 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27440 Delete declaration.
27441 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27442 (rs6000_debug_legitimize_reload_address): Delete.
27443 (rs6000_legitimize_reload_address_ptr): Delete.
27444 (rs6000_option_override_internal): Adjust.
27445 (mem_operand_gpr): Adjust comment.
27446 (legitimate_lo_sum_address_p): Ditto.
27447 (rs6000_legitimize_reload_address): Delete.
27448 (rs6000_debug_legitimize_reload_address): Delete.
27449 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27450
27451 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27452
27453 PR target/89765
27454 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27455 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27456 to compute vector element selector for both constant and variable
27457 operands.
27458
27459 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27460
27461 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27462 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27463 ashrdi3_cvt using SWI48 mode iterator.
27464
27465 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27466
27467 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27468 (aarch64_<su>abd<mode>_3): Likewise.
27469 (*aarch64_<su>abd<mode>_3): New define_insn.
27470 (<sur>sad<vsi2qi>): New define_expand.
27471 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27472 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27473 (build_vect_cond_expr): Likewise.
27474
27475 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27476
27477 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27478 clobbers outside of accessible_reg_set.
27479 * config/i386/i386.c (ix86_conditional_register_usage):
27480 Disable register sets by clearing corresponding bits in
27481 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27482 call_used_regs and don't clear corresponding reg_names array members.
27483
27484 2019-05-07 Richard Biener <rguenther@suse.de>
27485
27486 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27487 not specified still compute a comp_vectype for invariant
27488 compares.
27489
27490 2019-05-07 Richard Biener <rguenther@suse.de>
27491
27492 PR tree-optimization/90316
27493 * tree-ssa-pre.c (translate_vuse_through_block): When
27494 same_valid is NULL do not bother to search for a virtual
27495 PHI continuation.
27496 (phi_translate_1): When operands changed we cannot keep
27497 the same value-number so do not bother to ask whether
27498 that's possible from translate_vuse_through_block.
27499
27500 2019-05-07 Martin Liska <mliska@suse.cz>
27501
27502 * bitmap.c (bitmap_register): Come up with
27503 alloc_descriptor_max_uid and assign it for
27504 a new bitmap.
27505 (register_overhead): Use get_descriptor as
27506 a descriptor.
27507 (release_overhead): New.
27508 (bitmap_elem_to_freelist): Call it.
27509 (bitmap_elt_clear_from): Likewise.
27510 (bitmap_obstack_free): Likewise.
27511 (bitmap_move): Sensitively release memory.
27512 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27513 (bitmap_initialize): Initialize alloc_descriptor to zero.
27514 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27515
27516 2019-05-07 Richard Biener <rguenther@suse.de>
27517
27518 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27519 we build a SLP node. Remove max_size and limiting.
27520 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27521
27522 2019-05-07 Richard Biener <rguenther@suse.de>
27523
27524 PR tree-optimization/90316
27525 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27526 limit by reference.
27527 (walk_non_aliased_vuses): Take walking limit argument.
27528 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27529 walking if it is reached instead of just counting.
27530 (get_continuation_for_phi): Likewise.
27531 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27532 limiting to the callback.
27533 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27534 (vn_reference_lookup_3): Likewise.
27535 (vn_reference_lookup_pieces): Likewise.
27536 (vn_reference_lookup): Likewise.
27537 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27538 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27539 (avail_exprs_stack::lookup_avail_expr): Likewise.
27540
27541 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27542
27543 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27544 for comparaible types in the second direction even if first one
27545 hits incomparable type.
27546
27547 2019-05-07 Richard Biener <rguenther@suse.de>
27548
27549 PR lto/90369
27550 * lto-wrapper.c (debug_objcopy): Use the original filename
27551 including archive offset for the filename used for -save-temps.
27552
27553 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27554
27555 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27556 detection.
27557
27558 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27559 Hongtao Liu <hongtao.liu@intel.com>
27560
27561 PR target/89750
27562 PR target/86444
27563 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27564 Modified, original implementation isn't correct.
27565
27566 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27567
27568 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27569 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27570 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27571 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27572 (FRAME_POINTER_REGNUM): Change numbering.
27573 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27574 (alt_reg_names): Adjust.
27575 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27576 fixed.
27577 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27578 (DWARF_FRAME_REGISTERS): Delete.
27579 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27580 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27581 Adjust.
27582 (REG_ALLOC_ORDER): Adjust.
27583 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27584 (REG_CLASS_CONTENTS): Adjust.
27585 (RETURN_ADDR_RTX): Change comment.
27586 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27587 instead of 67.
27588 (REGISTER_NAMES): Adjust.
27589 (ADDITIONAL_REGISTER_NAMES): Adjust.
27590 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27591
27592 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27593
27594 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27595 Delete.
27596 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27597 (DWARF_FRAME_REGISTERS): Adjust.
27598 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27599 Adjust.
27600 (REG_ALLOC_ORDER): Adjust.
27601 (enum reg_class): Delete SPR_REGS.
27602 (REG_CLASS_NAMES): Delete SPR_REGS.
27603 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27604 (REGISTER_NAMES): Adjust.
27605 (ADDITIONAL_REGISTER_NAMES): Adjust.
27606 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27607 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27608 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27609 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27610 (htm_spr_regno): Delete.
27611 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27612 argument.
27613 (rs6000_dbx_register_number): Adjust.
27614
27615 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27616
27617 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27618
27619 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27620
27621 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27622 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27623
27624 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27625
27626 PR tree-optimization/88709
27627 PR tree-optimization/90271
27628 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27629 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27630 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27631 variable.
27632 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27633 of the store merging group is larger than
27634 PARAM_STORE_MERGING_MAX_SIZE parameter.
27635 (split_group): Add bzero_first argument. If set, always emit first
27636 the first store which must be = {} of the whole area and then for the
27637 rest of the stores consider all zero bytes as paddings.
27638 (imm_store_chain_info::output_merged_store): Check if first store
27639 is = {} of the whole area and if yes, determine which setting of
27640 bzero_first for split_group gives smaller number of stores. Adjust
27641 split_group callers.
27642 (lhs_valid_for_store_merging_p): Allow decls.
27643 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27644 no elts.
27645 (pass_store_merging::process_store): Likewise.
27646
27647 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27648
27649 PR target/89424
27650 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27651 handling of V1TImode.
27652
27653 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27654
27655 PR target/89221
27656 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27657 and enable_frame_pointer ...
27658 * configure.ac: ... here. Update help strings for
27659 --enable-frame-pointer.
27660 * configure: Regenerate.
27661 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27662 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27663 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27664 (USE_X86_64_FRAME_POINTER): Ditto.
27665
27666 2019-05-06 Martin Liska <mliska@suse.cz>
27667
27668 * config.gcc: Append to target_gtfiles and fix indentation.
27669
27670 2019-05-06 Richard Biener <rguenther@suse.de>
27671
27672 PR tree-optimization/90358
27673 * tree-vect-stmts.c (get_group_load_store_type): Properly
27674 detect unused upper half of load.
27675 (vectorizable_load): Likewise.
27676
27677 2019-05-06 Richard Biener <rguenther@suse.de>
27678
27679 PR tree-optimization/88828
27680 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27681 (simplify_vector_constructor): ...here. Handle constants in
27682 the constructor.
27683
27684 2019-05-06 Richard Biener <rguenther@suse.de>
27685
27686 PR tree-optimization/90328
27687 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27688 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27689 is valid in the loop nest before using it.
27690 (initialize_data_dependence_relation): Adjust.
27691 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27692 loop as loop-nest to dr_may_alias_p.
27693
27694 2019-05-06 Richard Biener <rguenther@suse.de>
27695
27696 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27697
27698 2019-05-06 Richard Biener <rguenther@suse.de>
27699
27700 PR tree-optimization/90316
27701 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27702 compute target on demand.
27703 (get_continuation_for_phi): Remove code walking stmts to
27704 get to a target virtual operand which could end up being
27705 quadratic.
27706
27707 2019-05-06 Martin Liska <mliska@suse.cz>
27708
27709 PR sanitizer/90312
27710 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27711 when -mabi is selected to a non-default version.
27712
27713 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27714 Martin Liska <mliska@suse.cz>
27715
27716 * Makefile.in: Add lto-dump.texi.
27717 * cgraph.h: Add new functions get_visibility_string and
27718 get_symtab_type_string.
27719 * doc/gcc.texi: Include lto-dump section.
27720 * doc/lto-dump.texi: New file.
27721 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27722 (parse_dump_option): Factor out this function.
27723 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27724 (parse_dump_option): Export the function.
27725 * symtab.c (symtab_node::get_visibility_string): New function.
27726 (symtab_node::get_symtab_type_string): Likewise.
27727
27728 2019-05-06 Martin Liska <mliska@suse.cz>
27729
27730 * config/i386/i386-builtins.c: New file.
27731 * config/i386/i386-builtins.h: New file.
27732 * config/i386/i386-expand.c: New file.
27733 * config/i386/i386-expand.h: New file.
27734 * config/i386/i386-features.c: New file.
27735 * config/i386/i386-features.h: New file.
27736 * config/i386/i386-options.c: New file.
27737 * config/i386/i386-options.h: New file.
27738 * config.gcc: Add new files into extra_objs and
27739 target_gtfiles.
27740 * config/i386/i386.c: Split content of the file
27741 into newly introduced files.
27742 * config/i386/i386.h: Declare common variables
27743 and macros.
27744 * config/i386/t-i386: Define dependencies for new files.
27745
27746 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27747
27748 PR target/89400
27749 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27750 Restrict 'all' variant to 32-bit configurations.
27751 (unaligned_loadhiu): Likewise.
27752 (unaligned_storehi): Likewise.
27753 (unaligned_storesi): Likewise.
27754 (unaligned_loadhis): Disable when compiling for thumb1.
27755
27756 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27757
27758 PR tree-optimization/90269
27759 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27760 Ignore clobbers.
27761
27762 2019-05-03 Martin Liska <mliska@suse.cz>
27763
27764 * hash-map.h: Add is_empty function.
27765 * hash-set.h: Likewise.
27766 * hash-table.h: Likewise.
27767 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27768 elements () == 0 (and similar usages).
27769 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27770 * gimplify.c (gimplify_bind_expr): Likewise.
27771 (gimplify_switch_expr): Likewise.
27772 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27773 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27774 * postreload-gcse.c (dump_hash_table): Likewise.
27775 (gcse_after_reload_main): Likewise.
27776 * predict.c (combine_predictions_for_bb): Likewise.
27777 * tree-parloops.c (reduction_phi): Likewise.
27778 (separate_decls_in_region): Likewise.
27779 (transform_to_exit_first_loop): Likewise.
27780 (gen_parallel_loop): Likewise.
27781 (gather_scalar_reductions): Likewise.
27782 (try_create_reduction_list): Likewise.
27783 * var-tracking.c (dump_vars): Likewise.
27784 (emit_notes_for_changes): Likewise.
27785 (vt_emit_notes): Likewise.
27786
27787 2019-05-03 Richard Biener <rguenther@suse.de>
27788
27789 PR tree-optimization/90316
27790 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27791 before running VN.
27792
27793 2019-05-03 Richard Biener <rguenther@suse.de>
27794
27795 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27796 peeling for gaps by loading only lower halves of vectors
27797 if possible.
27798 (vectorizable_load): Likewise.
27799
27800 2019-05-03 Richard Biener <rguenther@suse.de>
27801
27802 PR middle-end/89518
27803 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27804
27805 2019-05-03 Richard Biener <rguenther@suse.de>
27806
27807 PR middle-end/87314
27808 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27809 Handle STRING_CST vs DECL or STRING_CST.
27810
27811 2019-05-03 Richard Biener <rguenther@suse.de>
27812
27813 PR tree-optimization/88963
27814 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27815 vector loads feeding only BIT_FIELD_REFs to component
27816 loads. Rewrite stores fed by CONSTRUCTORs to component
27817 stores.
27818
27819 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27820
27821 * opts.h (finish_options): Remove lang_mask argument.
27822 (print_help, help_option_argument): Declare.
27823 * opts.c (print_help): Remove forward declaration, no longer static.
27824 (finish_options): Remove lang_mask argument, don't call print_help
27825 here.
27826 * opts-global.c (decode_options): Adjust finish_option caller, call
27827 print_help here.
27828
27829 PR tree-optimization/90303
27830 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27831 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27832
27833 2019-05-03 Richard Biener <rguenther@suse.de>
27834
27835 PR tree-optimization/89698
27836 * gimple-fold.c (canonicalize_constructor_val): Early out
27837 for constants, handle unfolded INTEGER_CSTs as they appear in
27838 C++ virtual table ctors.
27839
27840 2019-05-03 Richard Biener <rguenther@suse.de>
27841
27842 * passes.c (execute_function_todo): Remove dead code.
27843
27844 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27845
27846 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27847 the internal register number, for any "real" register.
27848
27849 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27850
27851 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27852 correct numbers for TFHAR, TFIAR, TEXASR.
27853
27854 2019-05-02 Richard Biener <rguenther@suse.de>
27855
27856 PR tree-optimization/89653
27857 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27858 update-address-taken before the pass.
27859 * passes.def (pass_tree_loop_init): Put comment before it.
27860
27861 2019-05-02 Richard Biener <rguenther@suse.de>
27862
27863 PR tree-optimization/89509
27864 * tree-ssa-structalias.c (compute_dependence_clique): Look
27865 at the first subvar when determining whether it is restrict.
27866
27867 2019-05-02 Richard Biener <rguenther@suse.de>
27868
27869 PR tree-optimization/90273
27870 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27871 useless debug stmts.
27872
27873 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27874
27875 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27876 ACLE branch.
27877 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27878 SVE ACLE branch.
27879 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27880 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27881 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27882 (vectorizable_reduction): Use the functions above to vectorize in a
27883 fully masked loop codes that don't have a conditional internal
27884 function.
27885
27886 2019-05-02 Martin Liska <mliska@suse.cz>
27887
27888 * cgraphclones.c: Call valid_attribute_p with 1 for
27889 target_clone.
27890 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27891 it's for target attribute.
27892 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27893 Add new boolean argument.
27894 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27895 Likewise.
27896 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27897 to ix86_valid_target_attribute_inner_p.
27898 (ix86_valid_target_attribute_p): Pass flags argument to
27899 ix86_valid_target_attribute_inner_p.
27900 (get_builtin_code_for_version): Use 0 as it's target attribute.
27901
27902 2019-05-02 Martin Liska <mliska@suse.cz>
27903
27904 * gcc.c (process_command): Add dummy file only
27905 if n_infiles == 0.
27906 * opts-global.c (decode_options): Pass lang_mask.
27907 * opts.c (print_help): New function.
27908 (finish_options): Print --help if help_option_argument
27909 is set.
27910 (common_handle_option): Factor out content of OPT__help_
27911 into print_help.
27912 * opts.h (finish_options): Add new argument.
27913
27914 2019-05-02 Martin Liska <mliska@suse.cz>
27915
27916 PR target/88809
27917 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27918 With -minline-all-stringops use inline expansion using 4B loop.
27919 * doc/invoke.texi: Document the change of
27920 -minline-all-stringops.
27921
27922 2019-05-01 Jeff Law <law@redhat.com>
27923
27924 PR tree-optimization/88797
27925 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27926 PHI feeds a conditional on the RHS of an assignment.
27927
27928 2019-04-30 Andrew Waterman <andrew@sifive.com>
27929 Jim Wilson <jimw@sifive.com>
27930
27931 * config/riscv/constraints.md (L): New.
27932 * config/riscv/predicates.md (lui_operand): New.
27933 (sfb_alu_operand): New.
27934 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27935 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27936 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27937 * config/riscv/risc.md (type): Add sfb_alu.
27938 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27939 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27940 (branch_zero<mode>): Delete.
27941 (mov<mode>cc): New.
27942 (mov<GPR:mode><X:mode>cc): Likewise.
27943 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27944
27945 2019-04-30 Nathan Sidwell <nathan@acm.org>
27946
27947 * tree.h (MARK_TS_EXP): New.
27948
27949 2019-04-30 Martin Liska <mliska@suse.cz>
27950
27951 * opts.c (enable_warning_as_error): Provide hints
27952 for unknown options.
27953
27954 2019-04-30 Martin Liska <mliska@suse.cz>
27955
27956 PR debug/90288
27957 * doc/invoke.texi: Add missing dash for gas-locview-support
27958 and gno-as-locview-support.
27959
27960 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27961
27962 PR target/89093
27963 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27964 whitespace at the start of target attribute string.
27965
27966 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27967
27968 PR target/86538
27969 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27970 Define __ARM_FEATURE_ATOMICS.
27971
27972 2019-04-30 Martin Liska <mliska@suse.cz>
27973
27974 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27975 into built_in_function enum. Remove code for endp == 2 and
27976 use BUILT_IN_* constants.
27977 (gimple_fold_builtin): Call the function with fcode.
27978
27979 2019-04-30 Martin Liska <mliska@suse.cz>
27980
27981 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27982 DECL_FUNCTION_CODE into ix86_builtins enum before
27983 the switch statement.
27984
27985 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27986
27987 PR tree-optimization/89475
27988 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27989 calls.
27990
27991 2019-04-30 Martin Liska <mliska@suse.cz>
27992
27993 PR translation/90274
27994 * opts.c (print_filtered_help): Wrap string in _(...).
27995
27996 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27997
27998 PR tree-optimization/90240
27999 Revert:
28000 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28001
28002 PR tree-optimization/90078
28003 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28004 checks for infinite_cost overflow.
28005
28006 2019-04-29 Jeff Law <law@redhat.com>
28007
28008 * passes.def: Move -Wrestrict pass after copy propagation.
28009
28010 2019-04-29 Maya Rashish <coypu@sdf.org>
28011
28012 * config.gcc (default_gnu_indirect_function): Default to yes
28013 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28014 sparc*-*-netbsd*, x86_64-*-netbsd*.
28015
28016 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28017
28018 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28019 where cond2 is NE_EXPR.
28020 (is_value_included_in): Update comment.
28021
28022 2019-04-29 Richard Biener <rguenther@suse.de>
28023
28024 PR tree-optimization/90278
28025 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28026 EH on comparison simplification.
28027
28028 2019-04-29 Jason Merrill <jason@redhat.com>
28029
28030 PR c++/82081 - tail call optimization breaks noexcept
28031 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28032 nothrow function to a might-throw function into a tail call.
28033
28034 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28035
28036 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28037 (DDR_INNER_LOOP): Likewise.
28038 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28039 (initialize_data_dependence_relation): Likewise.
28040 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28041
28042 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28043
28044 PR rtl-optimization/90257
28045 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28046 return value.
28047
28048 Revert the revert:
28049 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28050
28051 PR target/90178
28052 Revert:
28053 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28054
28055 Revert the revert:
28056 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28057
28058 Revert:
28059 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28060
28061 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28062
28063 2019-04-29 Richard Biener <rguenther@suse.de>
28064
28065 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28066 rhs issue a reset.
28067
28068 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28069
28070 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28071 varasm.h, and netbsd-protos.h.
28072
28073 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28074
28075 PR target/89261
28076 * config/i386/i386-protos.h (ix86_data_alignment): Change
28077 the second argument type to unsigned int.
28078 * config/i386/i386.c (ix86_data_alignment): Change "align"
28079 argument type to unsigned int.
28080
28081 2019-04-27 Martin Liska <mliska@suse.cz>
28082
28083 PR middle-end/90258
28084 * opt-suggestions.c (option_proposer::build_option_suggestions):
28085 When get_valid_option_values returns empty values, add the
28086 misspelling candidate.
28087
28088 2019-04-26 Jim Wilson <jimw@sifive.com>
28089
28090 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28091 parameter.
28092 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28093 Pass orig_mode to riscv_build_integer.
28094 (riscv_split_integer): Pass mode to riscv_move_integer.
28095 (riscv_legitimize_const_move): Likewise.
28096 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28097 promoted_mode. Replace force_reg call with code to load constant into
28098 promoted reg and then subreg it for the store.
28099 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28100 riscv_move_integer.
28101
28102 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28103
28104 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28105 corrupt codes.
28106
28107 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28108
28109 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28110 commentary about the encoding of precision.
28111
28112 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28113
28114 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28115 * config/i386/t-freebsd64: New file.
28116 * config.gcc: Add the t-freebsd64 for multilib support.
28117
28118 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28119
28120 * doc/extend.texi (vector_size): Add missing comma after @xref.
28121
28122 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28123
28124 * BASE-VER: Set to 10.0.0.
28125
28126 2019-04-25 Richard Biener <rguenther@suse.de>
28127
28128 PR middle-end/89765
28129 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28130 VIEW_CONVERT_EXPR into one operating on an rvalue.
28131
28132 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28133
28134 PR target/89929
28135 * config/i386/i386.c (feature_priority): Moved to file scope.
28136 (processor_features): Likewise.
28137 (processor_model): Likewise.
28138 (_arch_names_table): Likewise.
28139 (arch_names_table): Likewise.
28140 (_feature_list): Removed.
28141 (feature_list): Likewise.
28142 (_isa_names_table): Moved to file scope. Add priority.
28143 (isa_names_table): Likewise.
28144 (get_builtin_code_for_version): Replace feature_list with
28145 isa_names_table. Update error message for P_ZERO priority.
28146
28147 2019-04-25 Richard Biener <rguenther@suse.de>
28148
28149 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28150 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28151
28152 2019-04-24 Jeff Law <law@redhat.com>
28153
28154 PR tree-optimization/90037
28155 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28156 * passes.def: Replace all instance of phi-only cprop with the
28157 lattice propagator. Move propagation pass from after erroneous
28158 path isolation to before erroneous path isolation.
28159 * tree-ssa-phionlycprop.c: Remove.
28160
28161 2019-04-24 Richard Biener <rguenther@suse.de>
28162
28163 PR middle-end/90213
28164 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28165 by size and BITS_PER_UNIT on poly-wide-ints.
28166
28167 2019-04-25 Richard Biener <rguenther@suse.de>
28168
28169 PR middle-end/90194
28170 * match.pd: Add pattern to simplify view-conversion of an
28171 empty constructor.
28172
28173 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28174
28175 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28176 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28177 for Go on 32 bit AIX.
28178 * config/rs6000/aix72.h: Likewise.
28179
28180 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28181
28182 PR target/90193
28183 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28184 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28185
28186 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28187
28188 PR target/89952
28189 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28190 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28191 for restored hard frame pointer.
28192 (s390_sched_dependencies_evaluation): Implement new target hook.
28193 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28194
28195 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28196
28197 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28198 * config/arc/arc.c (arc_init): Cleanup warning message.
28199 (arc_override_options): Likewise.
28200
28201 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28202
28203 PR target/90187
28204 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28205 a register if both if_true and if_false are MEMs.
28206
28207 PR tree-optimization/90208
28208 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28209 after labels of new_bb, not before them.
28210
28211 PR tree-optimization/90211
28212 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28213 which are not SSA_NAMEs.
28214
28215 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28216
28217 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28218 AArch64.
28219 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28220
28221 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28222
28223 PR rtl-optimization/87979
28224 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28225 not equal zero.
28226
28227 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28228
28229 PR rtl-optimization/84032
28230 * modulo-sched.c (ps_insn_find_column): Change condition so that
28231 branch will always be the last insn in a row inside partial
28232 schedule.
28233
28234 2019-04-23 Richard Biener <rguenther@suse.de>
28235
28236 PR debug/90131
28237 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28238 dest_single_pred_p argument.
28239 (remove_forwarder_block): Adjust.
28240 (remove_forwarder_block_with_phi): Likewise.
28241
28242 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28243 Bernd Edlinger <bernd.edlinger@hotmail.de>
28244 Jakub Jelinek <jakub@redhat.com>
28245
28246 PR target/89093
28247 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28248 if used with general-regs-only.
28249 (arm_conditional_register_usage): Don't add non-general regs if
28250 general-regs-only.
28251 (arm_valid_target_attribute_rec): Handle general-regs-only.
28252 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28253 general-regs-only.
28254 (TARGET_HARD_FLOAT_SUB): Define.
28255 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28256 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28257 (TARGET_REALLY_IWMMXT2): Likewise.
28258 * config/arm/arm.opt: Add -mgeneral-regs-only.
28259 * doc/extend.texi: Document ARM general-regs-only target.
28260 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28261
28262 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28263
28264 PR tree-optimization/90078
28265 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28266 checks for infinite_cost overflow.
28267
28268 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28269
28270 PR tree-optimization/90021
28271 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28272 and check univariate against it.
28273 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28274 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28275
28276 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28277
28278 PR target/90178
28279 Revert:
28280 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28281
28282 Revert the revert:
28283 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28284
28285 Revert:
28286 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28287
28288 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28289
28290 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28291
28292 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28293 names using operand format, rather than hard-wired.
28294 (speculation_barrier): Likewise.
28295
28296 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28297
28298 PR tree-optimization/88055
28299 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28300 (gen_one_condition): Use it if !HONOR_NANS.
28301
28302 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28303
28304 PR middle-end/90139
28305 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28306 assign_temp instead of gen_reg_rtx.
28307
28308 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28309
28310 PR translation/90118
28311 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28312 Add missing space before %<.
28313
28314 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28315
28316 PR rtl-optimization/87871
28317 * ira-lives.c (make_object_dead): Don't add conflicts to
28318 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28319
28320 2019-04-18 Martin Sebor <msebor@redhat.com>
28321
28322 PR middle-end/89797
28323 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28324 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28325 assuming type size fits in SHWI.
28326
28327 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28328
28329 PR ipa/85051
28330 * ipa-inline.c (flatten_function): New parameter UPDATE.
28331 (ipa_inline, early_inliner): Use it.
28332
28333 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28334
28335 * fold-const.c (int_const_binop): Return early on failure.
28336
28337 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28338
28339 PR middle-end/85164
28340 * combine.c (force_int_to_mode): Cast the argument rather than
28341 the result of known_alignment.
28342 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28343
28344 2019-04-18 Richard Biener <rguenther@suse.de>
28345
28346 PR debug/90131
28347 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28348 out from ...
28349 (remove_forwarder_block): ... here.
28350 (remove_forwarder_block_with_phi): Also move debug stmts here.
28351
28352 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28353
28354 PR translation/79183
28355 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28356 inform where appropriate.
28357
28358 2019-04-18 Richard Biener <rguenther@suse.de>
28359
28360 * tree.c (get_qualified_type): Put found type variants at the
28361 head of the variant list.
28362
28363 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28364
28365 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28366
28367 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28368
28369 PR target/90125
28370 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28371 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28372 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28373 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28374 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28375
28376 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28377
28378 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28379 even for allocno's with no conflicts.
28380 (print_conflicts): Print an extra newline.
28381
28382 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28383
28384 * auto-inc-dec.c (attempt_change): Set the alignment of the
28385 temporary memory to that of the original.
28386
28387 2019-04-17 Joao Moreira <jmoreira@suse.de>
28388
28389 * targhooks.c (default_print_patchable_function_entry): Emit
28390 __patchable_function_entries section with writable flags to allow
28391 relocation resolution.
28392
28393 2019-04-17 Jonny Grant <jg@jguk.org>
28394
28395 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28396
28397 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28398
28399 PR middle-end/90095
28400 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28401 on lowpart SUBREGs.
28402
28403 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28404
28405 * config/arc/arc.c (arc_init): Format diagnostic string.
28406 (arc_override_options): Likewise.
28407 (check_if_valid_regno_const): Likewise.
28408 (arc_reorg): Likewise.
28409
28410 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28411
28412 PR target/17108
28413 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28414 name.
28415 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28416 name.
28417 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28418 (*movdi_update1): Use Pmode.
28419 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28420 (movdi_<mode>_update_stack): Rename to ...
28421 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28422 use Pmode.
28423 (*movsi_update1): Use Pmode.
28424 (*movsi_update2): Use Pmode.
28425 (movsi_update): Rename to ...
28426 (movsi_<mode>_update): ... this. Use Pmode.
28427 (movsi_update_stack): Fix condition.
28428 (*movhi_update1): Use Pmode. Fix argument to
28429 avoiding_indexed_address_p.
28430 (*movhi_update2): Ditto.
28431 (*movhi_update3): Ditto.
28432 (*movhi_update4): Ditto.
28433 (*movqi_update1): Ditto.
28434 (*movqi_update2): Ditto.
28435 (*movqi_update3): Ditto.
28436 (*movsf_update1, *movdf_update1): Merge, rename to...
28437 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28438 avoiding_indexed_address_p. Add "size" attribute.
28439 (*movsf_update2, *movdf_update2): Merge, rename to...
28440 (*mov<mode>_update2): This. Ditto.
28441 (*movsf_update3): Use Pmode. Fix argument to
28442 avoiding_indexed_address_p.
28443 (*movsf_update4): Ditto.
28444 (allocate_stack): Simplify condition. Adjust pattern names.
28445
28446 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28447
28448 PR target/89093
28449 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28450 whitespace at the start of target attribute string.
28451
28452 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28453
28454 PR target/84369
28455 * config/rs6000/power9.md: Add store forwarding bypass.
28456
28457 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28458
28459 PR debug/89528
28460 * valtrack.c (dead_debug_insert_temp): Reset debug references
28461 to the return value of a call being removed.
28462
28463 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28464
28465 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28466 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28467 implement target hook.
28468 (arc_memory_move_cost): New function.
28469 (TARGET_REGISTER_MOVE_COST): Define.
28470 (TARGET_MEMORY_MOVE_COST): Likewise.
28471 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28472 (MEMORY_MOVE_COST): Likewise.
28473
28474 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28475
28476 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28477 (sibcall_value_insn): Likewise.
28478 * config/arc/constraints.md (Rs5): Remove.
28479
28480 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28481
28482 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28483 for last two fake registers.
28484 (arc_conditional_register_usage): Make sure fake frame and arg
28485 pointer regs are in general regs class.
28486 (FRAME_POINTER_MASK): Remove.
28487 (RETURN_ADDR_MASK): Remove.
28488 (arc_must_save_register): Use hard frame regnum.
28489 (frame_restore_reg): Use hard_frame_pointer_rtx.
28490 (arc_save_callee_saves): Likewise.
28491 (arc_restore_callee_saves): Likewise.
28492 (arc_save_callee_enter): Likewise.
28493 (arc_restore_callee_leave): Likewise.
28494 (arc_save_callee_milli): Likewise.
28495 (arc_eh_return_address_location): Likewise.
28496 (arc_check_multi): Use hard frame regnum.
28497 (arc_can_eliminate): Likewise.
28498 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28499 for register allocator.
28500 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28501 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28502 (FRAME_POINTER_REGNUM): Change it to a fake register.
28503 (HARD_FRAME_POINTER_REGNUM): Defined.
28504 (ARG_POINTER_REGNUM): Change it to a new fake register.
28505 (ELIMINABLE_REGS): Update.
28506 (REGISTER_NAMES): Update names.
28507 * config/arc/arc.md (LP_START): Remove.
28508 (LP_END): Likewise.
28509 (shift_si3_loop): Update pattern.
28510
28511 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28512
28513 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28514 to avoid delay slot scheduling.
28515 (arc_must_save_register): Don't save SP.
28516 * config/arc/arc.md (stack_tie): Remove.
28517 (UNSPEC_ARC_STKTIE): Likewise.
28518
28519 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28520 Shiva Chen <shiva0217@gmail.com>
28521
28522 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28523 code gen with large shift amount.
28524
28525 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28526
28527 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28528 subreg.
28529
28530 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28531
28532 PR target/90096
28533 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28534 print -m64/-mx32/-m32 if it is true.
28535 (ix86_debug_options, ix86_function_specific_print): Pass true as
28536 ADD_ABI_P to ix86_target_string.
28537 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28538 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28539 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28540
28541 PR rtl-optimization/90082
28542 * dce.c (can_delete_call): New function.
28543 (deletable_insn_p, mark_insn): Use it.
28544
28545 PR tree-optimization/90090
28546 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28547 throw internally.
28548 (is_division_by_square): Likewise. Formatting fix.
28549
28550 2019-04-16 Richard Biener <rguenther@suse.de>
28551
28552 PR tree-optimization/56049
28553 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28554 equality check if alias-set zero will prevail.
28555
28556 2019-04-15 Jeff Law <law@redhat.com>
28557
28558 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28559 size and alignment as unsigned.
28560
28561 2019-04-15 Richard Biener <rguenther@suse.de>
28562
28563 PR debug/90074
28564 * tree-loop-distribution.c (destroy_loop): Preserve correct
28565 debug info.
28566
28567 2019-04-15 Richard Biener <rguenther@suse.de>
28568
28569 PR tree-optimization/90071
28570 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28571 abnormal operands from def stmts.
28572
28573 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28574
28575 PR rtl-optimization/89794
28576 * combine.c (count_auto_inc): New function.
28577 (try_combine): Count how many auto_inc expressions there were in the
28578 original instructions. Ensure we have the same number in the new
28579 instructions. Remove the code that tried to ensure auto_inc side
28580 effects on i1 and i0 are not lost.
28581
28582 2019-04-15 Richard Biener <rguenther@suse.de>
28583
28584 PR ipa/88936
28585 * tree.h (auto_var_p): Declare.
28586 * tree.c (auto_var_p): New function, split out from ...
28587 (auto_var_in_fn_p): ... here.
28588 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28589 member.
28590 (new_var_info): Initialize it.
28591 (set_uids_in_ptset): Also set the shadow variable uid if required.
28592 (ipa_pta_execute): Postprocess points-to solutions assigning
28593 shadow variable uids for locals that may reach their containing
28594 function recursively.
28595 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28596 assert but instead check whether the points-to solution is
28597 a singleton.
28598
28599 2019-04-15 Martin Jambor <mjambor@suse.cz>
28600
28601 PR ipa/pr89693
28602 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28603 the thunk chain.
28604
28605 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28606
28607 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28608
28609 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28610 Kito Cheng <kito.cheng@gmail.com>
28611 Shiva Chen <shiva0217@gmail.com>
28612
28613 * config/nds32/nds32-md-auxiliary.c
28614 (nds32_legitimize_pic_address): Use new PIC pattern.
28615 (nds32_legitimize_tls_address): Use new TLS pattern.
28616 (nds32_output_symrel): New.
28617 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28618 (nds32_alloc_relax_group_id): Ditto.
28619 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28620 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28621 relax_group_id.
28622 (nds32_group_tls_insn): Ditto.
28623 (nds32_group_float_insns): Ditto.
28624 * config/nds32/nds32.md (tls_le): New.
28625 (sym_got): Ditto.
28626
28627 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28628
28629 * configure: Add nds32 target for dwarf2 debug_line checking.
28630 * configure.ac: Regenerated.
28631
28632 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28633
28634 PR lto/89358
28635 * ipa-devirt.c (skip_in_fields_list_p): New.
28636 (odr_types_equivalent_p): Use it.
28637
28638 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28639
28640 PR target/89093
28641 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28642 instead of strncmp when checking for thumb and arm. Formatting fixes.
28643
28644 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28645
28646 * doc/install.texi: Document --with-target-system-zlib.
28647
28648 2019-04-12 Martin Sebor <msebor@redhat.com>
28649
28650 PR c/88383
28651 PR c/89288
28652 PR c/89798
28653 PR c/89797
28654 * targhooks.c (default_vector_alignment): Avoid assuming
28655 argument fits in SHWI.
28656 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28657 a shift expression.
28658 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28659
28660 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28661
28662 PR rtl-optimization/89965
28663 * dce.c: Include rtl-iter.h.
28664 (struct check_argument_load_data): New type.
28665 (check_argument_load): New function.
28666 (find_call_stack_args): Check for loads from stack slots still tracked
28667 in sp_bytes and punt if any is found.
28668
28669 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28670
28671 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28672
28673 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28674 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28675
28676 2019-04-12 Martin Liska <mliska@suse.cz>
28677
28678 PR middle-end/89970
28679 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28680 in error message.
28681 (separate_attrs): Handle multiple 'default's.
28682 (expand_target_clones): Rework error handling code.
28683
28684 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28685
28686 PR target/87532
28687 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28688 mode of vector rather than mode of destination for move instruction.
28689 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28690 Use QI inner mode with V16QI vector mode.
28691
28692 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28693
28694 PR target/52726
28695 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28696 "invalid %%t operand" in output_operand_lossage message.
28697
28698 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28699
28700 * config/s390/predicates.md (permute_pattern_operand): New
28701 predicate.
28702 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28703 operand for the permute pattern.
28704 ("*vec_perm<mode>"): New insn definition.
28705 ("bswap<mode>"): Generate the permute pattern operand in the
28706 expander and perform the operand reloads for pre arch13 level
28707 already.
28708 ("*bswap<mode>_emu"): Rename to ...
28709 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28710 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28711 Add the USE operand for the permute pattern.
28712 ("*vec_set_bswap_vec<mode>"): Likewise.
28713
28714 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28715
28716 PR c/89946
28717 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28718 and gcc_unreachable if it fails, just call tree_to_uhwi which
28719 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28720 Start warning message with a lower-case letter. Formatting fixes.
28721
28722 PR rtl-optimization/90026
28723 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28724 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28725 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28726 in cfglayout mode, use emit_barrier_after_bb.
28727
28728 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28729
28730 PR rtl-optimization/87763
28731 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28732 New Instruction.
28733
28734 2019-04-11 Tom de Vries <tdevries@suse.de>
28735
28736 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28737 max macro using statement expression.
28738
28739 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28740
28741 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28742 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28743 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28744 read_only_private_data_section using xcoff_private_rodata_section_name.
28745 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28746
28747 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28748
28749 PR target/90016
28750 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28751
28752 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28753
28754 PR rtl-optimization/89965
28755 * dce.c (sp_based_mem_offset): New function.
28756 (find_call_stack_args): Use sp_based_mem_offset.
28757
28758 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28759
28760 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28761
28762 2019-04-11 Richard Biener <rguenther@suse.de>
28763
28764 PR tree-optimization/90020
28765 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28766 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28767 * tree-ssa-pre.c (compute_avail): Use it to not put
28768 possibly trapping references after a call that might not
28769 return into EXP_GEN.
28770 * gcse.c (compute_hash_table_work): Do not elide
28771 marking a block containing a call if the call might not
28772 return.
28773
28774 2019-04-11 Richard Biener <rguenther@suse.de>
28775
28776 PR tree-optimization/90018
28777 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28778 Test both SLP and interleaving variants.
28779
28780 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28781
28782 * config/s390/8561.md: New file.
28783 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28784 Add arch13 cpu model.
28785 * config/s390/s390-opts.h (enum processor_type): Likewise.
28786 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28787 (s390_get_unit_mask): Likewise.
28788 (s390_is_fpd): Likewise.
28789 (s390_is_fxd): Likewise.
28790 * config/s390/s390.h (s390_tune_attr): Likewise.
28791 * config/s390/s390.md: Include arch13 pipeline description.
28792 * config/s390/s390.opt: Add arch13.
28793
28794 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28795
28796 PR rtl-optimization/87763
28797 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28798 New prototype.
28799 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28800 New function.
28801 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28802 New instruction.
28803 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28804 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28805 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28806 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28807
28808 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28809
28810 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28811 "Although" in -fipa-icf documentation.
28812
28813 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28814 of using multiple -g options.
28815
28816 2019-04-10 Martin Liska <mliska@suse.cz>
28817
28818 PR gcov-profile/89959
28819 * doc/gcov.texi: Make documentation of -x option
28820 more precise.
28821
28822 2019-04-10 Richard Biener <rguenther@suse.de>
28823
28824 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28825 member.
28826 (DR_GROUP_SAME_DR_STMT): Remove.
28827 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28828 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28829 replace with assert.
28830 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28831 (vect_record_grouped_load_vectors): Remove unreachable code.
28832
28833 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28834
28835 PR target/90016
28836 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28837 obsolete reference to N.
28838
28839 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28840
28841 PR middle-end/90025
28842 * expr.c (store_expr): Set properly size on the MEM passed to
28843 clear_storage.
28844
28845 PR c++/90010
28846 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28847 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28848 translation is needed, and when translation is needed, only append
28849 ... if the string length is hostsz or more bytes long. Avoid using
28850 strncpy or strcat.
28851
28852 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28853
28854 PR target/90024
28855 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28856 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28857 into three.
28858 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28859 differences directly.
28860 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28861
28862 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28863
28864 PR translation/90011
28865 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28866 from diagnostics.
28867 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28868 diagnostics.
28869 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28870 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28871 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28872 trailing space from -gsplit-dwarf diagnostics.
28873
28874 PR tree-optimization/89998
28875 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28876 instead of integer_type_node if possible, don't add ranges if return
28877 type is not compatible with int.
28878 * gimple-fold.c (gimple_fold_builtin_sprintf,
28879 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28880 integer_type_node.
28881
28882 2019-04-09 Martin Liska <mliska@suse.cz>
28883
28884 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28885 * doc/install.texi: Document the new config.
28886
28887 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28888
28889 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28890 use gimple_expr_type for load and store calls. Skip over the
28891 condition argument in a conditional internal function.
28892 Protect use of TREE_INT_CST_LOW.
28893
28894 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28895
28896 PR target/90015
28897 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28898 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28899 trailing period from it too.
28900
28901 2019-04-08 wu yuan <wuyuan5@huawei.com>
28902
28903 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28904 * config/aarch64/aarch64.md: Add "tsv110.md".
28905 * config/aarch64/tsv110.md: New file.
28906
28907 2019-04-08 Richard Biener <rguenther@suse.de>
28908
28909 PR tree-optimization/90006
28910 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28911 calls like lrint.
28912
28913 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28914
28915 PR target/83033
28916 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28917 construction.
28918 (fma_root_node): Likewise.
28919 (func_fma_steering): Likewise.
28920
28921 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28922
28923 PR rtl-optimization/89865
28924 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28925
28926 PR rtl-optimization/89865
28927 * config/i386/i386.md
28928 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28929 numbers not to clash with the additional operands[4].
28930 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28931 with extra register copy in the middle.
28932
28933 2019-04-08 Martin Liska <mliska@suse.cz>
28934
28935 PR gcov-profile/89961
28936 * doc/gcov.texi: Document data_file.
28937 * gcov.c (generate_results): Add data_info into JSON output.
28938
28939 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28940
28941 PR tree-optimization/89725
28942 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28943 loop's chrec as invariant symbol.
28944 * tree-chrec.h (chrec_contains_symbols): New parameter.
28945 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28946 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28947 function of loops not in DDR's loop_nest.
28948 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28949
28950 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28951
28952 PR target/89623
28953 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28954 Mask.
28955
28956 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28957
28958 PR target/89945
28959 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28960 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28961
28962 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28963
28964 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28965 targetm.fixed_condition_code_regs.
28966
28967 2019-04-05 Richard Biener <rguenther@suse.de>
28968
28969 PR debug/89892
28970 PR debug/89905
28971 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28972 debug bind stmts but reset them if they are not valid at the
28973 destination.
28974
28975 2019-04-05 Martin Liska <mliska@suse.cz>
28976
28977 PR translation/89936
28978 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28979 order to wrap keywords or arguments.
28980 * collect2.c (main): Likewise.
28981 (scan_prog_file): Likewise.
28982 (scan_libraries): Likewise.
28983 * common/config/riscv/riscv-common.c
28984 (riscv_subset_list::parsing_subset_version): Likewise.
28985 (riscv_subset_list::parse_std_ext): Likewise.
28986 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28987 Likewise.
28988 * config/arm/arm.c (arm_option_override): Likewise.
28989 * config/cris/cris.c (cris_print_operand): Likewise.
28990 * config/darwin-c.c (darwin_pragma_options): Likewise.
28991 (darwin_pragma_unused): Likewise.
28992 (darwin_pragma_ms_struct): Likewise.
28993 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28994 * config/i386/i386.c (print_reg): Likewise.
28995 (ix86_print_operand): Likewise.
28996 * config/i386/xm-djgpp.h: Likewise.
28997 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28998 * config/m32c/m32c.c (m32c_option_override): Likewise.
28999 * config/msp430/msp430.c (msp430_option_override): Likewise.
29000 * config/nds32/nds32.c (nds32_option_override): Likewise.
29001 * config/nvptx/mkoffload.c (main): Likewise.
29002 * config/rx/rx.c (rx_print_operand): Likewise.
29003 (valid_psw_flag): Likewise.
29004 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29005 (vms_pragma_nomember_alignment): Likewise.
29006 (vms_pragma_extern_model): Likewise.
29007 * lto-wrapper.c (compile_offload_image): Likewise.
29008 * omp-offload.c (oacc_parse_default_dims): Likewise.
29009 * symtab.c (symtab_node::verify_base): Likewise.
29010 * tlink.c (recompile_files): Likewise.
29011 (start_tweaking): Likewise.
29012 * tree-profile.c (parse_profile_filter): Likewise.
29013
29014 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29015
29016 PR tree-optimization/89956
29017 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29018 multiple negates of the same value.
29019
29020 2019-04-04 Martin Sebor <msebor@redhat.com>
29021
29022 PR middle-end/89957
29023 PR middle-end/89911
29024 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29025 have the same precision since the function crashes otherwise.
29026 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29027 has non-zero arguments.
29028
29029 2019-04-04 Martin Sebor <msebor@redhat.com>
29030
29031 PR middle-end/89934
29032 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29033 out if the number of arguments is less than expected.
29034
29035 2019-04-04 Jeff Law <law@redhat.com>
29036
29037 PR rtl-optimization/89399
29038 * ree.c (combine_set_extension): Use single_set rather than
29039 digging into PATTERN for items on the candidate list.
29040 (combine_reaching_defs): Likewise.
29041
29042 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29043
29044 PR rtl-optimization/46590
29045 * loop-invariant.c (find_defs): Move df_remove_problem and
29046 df_process_deferred_rescans to move_invariants.
29047 Move df_live_add_problem and df_live_set_all_dirty calls
29048 to move_invariants.
29049 (move_invariants): Likewise.
29050 (move_loop_invariants): Likewise, making the df_live calls
29051 conditional on -O. Remove the problem again if we added it
29052 locally.
29053
29054 2019-04-03 qing zhao <qing.zhao@oracle.com>
29055
29056 PR tree-optimization/89730
29057 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29058 -flive-patching=inline-only-static.
29059 (can_inline_edge_by_limits_p): Add the checking for
29060 -flive-patching=inline-only-static and grant always_inline
29061 even when -flive-patching=inline-only-static is specified.
29062
29063 2019-04-03 Jeff Law <law@redhat.com>
29064
29065 PR rtl-optimization/81025
29066 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29067
29068 2019-04-03 Richard Biener <rguenther@suse.de>
29069
29070 PR tree-optimization/84101
29071 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29072 regs.h for hard_regno_nregs.
29073 (cfun_returns): New helper.
29074 (vect_model_store_cost): When vectorizing a store to a decl
29075 we return and the function ABI returns in a multi-reg location
29076 account for the possible spilling that will happen.
29077
29078 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29079
29080 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29081 displacement addresses for vector mode operands.
29082
29083 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29084
29085 * config/arc/arc.c (GMASK_LEN): Define.
29086 (arc_restore_callee_saves): Restore first blink when
29087 !optimize_size.
29088
29089 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29090
29091 * doc/extend.texi: Add deprecated comment on sign-return-address
29092 function attribute and add mbranch-protection.
29093 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29094
29095 2019-04-03 Richard Biener <rguenther@suse.de>
29096
29097 PR lto/89896
29098 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29099 the all target phony.
29100
29101 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29102
29103 PR target/89902
29104 PR target/89903
29105 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29106 Return false for variable DImode shifts.
29107 (dimode_scalar_chain::compute_convert_gain): Do not handle
29108 register count operand in variable DImode shifts.
29109 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29110 count argument of a variable shift instruction to a vector register.
29111 (dimode_scalar_chain::convert_reg): Remove support to convert
29112 count argument of a variable shift instruction.
29113
29114 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29115
29116 PR rtl-optimization/84206
29117 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29118 iterating over loop headers.
29119
29120 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29121
29122 PR rtl-optimization/85876
29123 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29124 beyond the original fence.
29125
29126 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29127
29128 * config.gcc: Mark spu* targets as deprecated/obsolete.
29129
29130 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29131
29132 * config/s390/s390-builtin-types.def: New builtin function type
29133 definitions. Remove unused types.
29134 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29135 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29136 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29137 overloaded builtins.
29138 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29139 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29140 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29141 (vec_double, vec_signed, vec_unsigned): Define to use the new
29142 overloaded builtins.
29143 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29144 Remove expanders.
29145
29146 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29147
29148 * config/s390/s390-builtin-types.def: New builtin function type
29149 definitions.
29150 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29151 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29152 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29153 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29154 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29155 constant definitions.
29156 * config/s390/vecintrin.h (vec_search_string_cc)
29157 (vec_search_string_until_zero_cc): New builtin name definitions.
29158 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29159 expanders.
29160 ("vec_vstrs<mode>"): New insn definition.
29161
29162 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29163
29164 * config/s390/s390-builtin-types.def: Add new builtin function
29165 types.
29166 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29167 New overloaded builtins.
29168 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29169 s390_vsrd.
29170 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29171 (UNSPEC_VEC_SLDBYTE): ... this.
29172 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29173 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29174 definitions.
29175 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29176 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29177 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29178
29179 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29180
29181 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29182 New insn definition.
29183 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29184 * config/s390/vector.md (V_HW_HSD): ... here.
29185
29186 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29187
29188 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29189 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29190 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29191 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29192 New insn definitions.
29193
29194 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29195
29196 * config/s390/s390-builtin-types.def: Add new builtin function type.
29197 * config/s390/s390-builtins.def: Add overloaded builtin
29198 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29199 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29200 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29201 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29202 ("eltswap<mode>"): New expander.
29203 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29204 insn definitions.
29205
29206 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29207
29208 * config/s390/s390-builtin-types.def: Add new builtin function types.
29209 * config/s390/s390-builtins.def: Add overloaded builtin
29210 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29211 instructions.
29212 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29213 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29214 ("bswap<mode>"): New expander.
29215 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29216
29217 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29218
29219 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29220 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29221 vector builtin version number in __VEC__.
29222
29223 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29224
29225 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29226 iterators.
29227 (SFSI): New mode attribute.
29228 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29229 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29230 rename to ...
29231 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29232 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29233 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29234 ("floatsi<mode>2"): Add wcefb instruction.
29235
29236 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29237
29238 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29239 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29240 mode iterators.
29241 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29242 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29243 support 32 bit fp-int conversions. Rename to ...
29244 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29245 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29246 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29247 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29248 ... to these.
29249
29250 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29251
29252 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29253 if-then-else constructs if we can use the select instruction.
29254 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29255
29256 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29257
29258 * config/s390/s390.md ("*popcountdi_arch13_cc")
29259 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29260 definition.
29261 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29262 Append _z196 to make it ...
29263 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29264 ("popcounthi2_z196"): ... this.
29265 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29266 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29267
29268 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29269
29270 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29271 certain compares for arch13 in order to make use of the condition
29272 code result produced by the new instructions.
29273 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29274 nxrk, and nxgrk instruction patterns.
29275 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29276 (inv_no): Add new code iterator together with some attributes.
29277 ("*andc_split_<mode>"): Disable splitter for arch13.
29278 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29279 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29280 ("*<ANDOR:bitops_name>c<GPR:mode>")
29281 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29282 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29283 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29284 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29285
29286 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29287
29288 * common/config/s390/s390-common.c (processor_flags_table): New
29289 entry for arch13.
29290 * config.gcc: Support arch13 with the --with-arch= configure flag.
29291 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29292 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29293 * config/s390/s390.c (s390_get_sched_attrmask)
29294 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29295 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29296 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29297 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29298 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29299 definitions.
29300 * config/s390/s390.opt: Support arch13 as processor type in
29301 command line options.
29302
29303 2019-04-02 Martin Liska <mliska@suse.cz>
29304
29305 PR translation/89912
29306 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29307 Fix param description of graphite-max-arrays-per-scop.
29308
29309 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29310
29311 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29312 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29313 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29314
29315 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29316
29317 PR rtl-optimization/85412
29318 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29319 sel_sched_region_1, not after.
29320
29321 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29322
29323 PR rtl-optimization/86928
29324 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29325 compute_live if necessary.
29326 (sel_redirect_edge_and_branch): Likewise.
29327
29328 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29329
29330 PR rtl-optimization/89865
29331 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29332 register if it is a part of small class.
29333
29334 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29335
29336 PR rtl-optimization/87273
29337 * sel-sched-ir.c (merge_fences): Remove assert.
29338
29339 2019-04-01 Richard Biener <rguenther@suse.de>
29340
29341 PR tree-optimization/46590
29342 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29343 (dom_walker::m_reachability): Add in place of...
29344 (dom_walker::m_skip_unreachable_blocks): ...this.
29345 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29346 Move complex initialization ...
29347 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29348 lazily and initialize edge flags on each invocation.
29349 (dom_walker::bb_reachable): Use m_reachability.
29350
29351 2019-04-01 Martin Liska <mliska@suse.cz>
29352
29353 PR driver/89861
29354 * opt-suggestions.c (option_proposer::build_option_suggestions):
29355 Add variant without any argument in order to provide better
29356 hints.
29357
29358 2019-04-01 Richard Biener <rguenther@suse.de>
29359
29360 PR c/71598
29361 * gimple.c: Include langhooks.h.
29362 (gimple_get_alias_set): Treat enumeral types as the underlying
29363 integer type.
29364
29365 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29366 Eric Botcazou <ebotcazou@adacore.com>
29367
29368 PR rtl-optimization/89862
29369 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29370 that operates on the full registers for WORD_REGISTER_OPERATIONS
29371 architectures.
29372
29373 2019-03-29 Jim Wilson <jimw@sifive.com>
29374
29375 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29376 Clear MASK_RVC and then set if C subset supported.
29377
29378 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29379
29380 PR c/89872
29381 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29382 non-addressable complit into its initializer if it is volatile.
29383
29384 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29385
29386 * opts-common.c (integral_argument): Set errno properly in one case.
29387
29388 2019-03-29 Martin Liska <mliska@suse.cz>
29389
29390 * doc/invoke.texi: Remove -Wchkp from documentation.
29391
29392 2019-03-29 Martin Liska <mliska@suse.cz>
29393
29394 * dbgcnt.c (print_limit_reach): New function.
29395 (dbg_cnt): Use it.
29396
29397 2019-03-29 Martin Liska <mliska@suse.cz>
29398
29399 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29400 (dbg_cnt_process_opt): Parse first tokens aas
29401 dbg_cnt_process_single_pair is also using strtok.
29402
29403 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29404
29405 PR rtl-optimization/87485
29406 * function.c (expand_function_end): Move stack_protect_epilogue
29407 before loading of return value into hard register(s).
29408
29409 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29410
29411 PR middle-end/89621
29412 * tree-inline.h (struct copy_body_data): Add
29413 dont_remap_vla_if_no_change flag.
29414 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29415 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29416 and remap_type_2 returns false.
29417 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29418 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29419 only from where it is copied to nested contexts.
29420
29421 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29422
29423 PR target/89865
29424 * config/i386/i386.md (RMW operation with LEA peephole):
29425 Use LEAMODE mode attribute instead of SWI mode iterator for
29426 LEA pattern.
29427
29428 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29429
29430 PR target/89848
29431 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29432 Also process XEXP (src, 0) of a shift insn.
29433
29434 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29435
29436 PR middle-end/89725
29437 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29438 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29439
29440 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29441
29442 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29443 test.
29444 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29445 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29446 immediately after first one with df_analyze in between, but rather
29447 process all bbs, queueing ones that need second pass in a worklist,
29448 df_analyze, process queued debug insn changes and if second pass is
29449 needed, process bbs from worklist, df_analyze, process queued debug
29450 insns again.
29451
29452 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29453 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29454 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29455
29456 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29457
29458 PR c/79022
29459 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29460 definition.
29461
29462 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29463
29464 PR target/85667
29465 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29466 function for 32-bit MS_ABI.
29467 (function_value_ms_32): New function.
29468
29469 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29470
29471 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29472 (movdi): Call gen_movdi_symbol_save_scc.
29473 (gen_movdi_symbol_save_scc): New insn and split.
29474
29475 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29476
29477 PR rtl-optimization/89313
29478 * function.c (matching_constraint_num): New static function.
29479 (match_asm_constraints_1): Use it. Fixup white space and comment.
29480 Don't replace inputs with non-matching constraints which conflict
29481 with early clobber outputs.
29482
29483 2019-03-27 Jeff Law <law@redhat.com>
29484
29485 PR rtl-optimization/87761
29486 PR rtl-optimization/89826
29487 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29488 slightly later.
29489 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29490 note problem to get REG_DEAD/REG_UNUSED notes updated.
29491
29492 2019-03-27 Richard Biener <rguenther@suse.de>
29493
29494 PR tree-optimization/89463
29495 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29496 queue edges to remove.
29497 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29498 dead stmts. Delay edge removal until PHIs are removed to
29499 make debug-stmt creation not confused by seemingly degenerate
29500 PHIs.
29501
29502 2019-03-27 Alan Modra <amodra@gmail.com>
29503
29504 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29505 throughout file.
29506 * config/rs6000/darwin.h: Likewise.
29507 * config/rs6000/rs6000.c: Likewise.
29508
29509 2019-03-27 Alan Modra <amodra@gmail.com>
29510
29511 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29512 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29513
29514 2019-03-26 Andrew Waterman <andrew@sifive.com>
29515 Jim Wilson <jimw@sifive.com>
29516
29517 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29518 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29519 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29520 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29521 (generic_alu): Add auipc to type list.
29522 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29523 (riscv_microarchitecture): Declare.
29524 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29525 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29526 field.
29527 (riscv_microarchitecture): New.
29528 (sifive_7_tune_info): New.
29529 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29530 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29531 entries.
29532 (riscv_store_data_bypass_p): New.
29533 (riscv_option_override): Set riscv_microarchitecture from
29534 cpu->microarchitecture.
29535 * config/riscv/riscv.md: Include sifive-7.md.
29536 (type): Add auipc.
29537 (tune): New.
29538 (auipc<mode>): Change type to auipc.
29539 (restore_stack_nonlocal): New.
29540 * config/riscv/sifive-7.md: New.
29541 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29542
29543 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29544
29545 PR target/89827
29546 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29547 Also process XEXP (src, 0) of a shift insn.
29548
29549 2019-03-26 Richard Biener <rguenther@suse.de>
29550
29551 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29552 (copy_debug_stmt): Likewise.
29553 (expand_call_inline): Likewise.
29554 (copy_bb): Avoid redundant lookup & set of gimple_block.
29555 * gimple-low.c (lower_gimple_return): Likewise.
29556 (lower_builtin_setjmp): Likewise.
29557
29558 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29559
29560 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29561 is constant 0, turn into static const data member initialized to false.
29562 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29563 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29564
29565 2019-03-26 Jason Merrill <jason@redhat.com>
29566 Jakub Jelinek <jakub@redhat.com>
29567
29568 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29569 method.
29570 (mem_alloc_description::release_object_overhead): Fix comment typos.
29571 * hash-table.h (hash_table::~hash_table): Call
29572 release_instance_overhead only if m_entries is non-NULL, otherwise
29573 call unregister_descriptor.
29574
29575 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29576
29577 PR tree-optimization/81740
29578 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29579 In case of outer loop vectorization, check for backward dependence
29580 at the inner loop if outer loop dependence is reversed.
29581
29582 2019-03-26 Alan Modra <amodra@gmail.com>
29583
29584 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29585 rs6000_vector_mem init. Correct wI and wJ comment.
29586
29587 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29588
29589 PR rtl-optimization/88347
29590 PR rtl-optimization/88423
29591 * sched-deps.c (sched_analyze_insn): Take into account that for
29592 tablejumps the barrier appears after a label and a jump_table_data.
29593
29594 2019-03-25 Martin Sebor <msebor@redhat.com>
29595
29596 PR c/89812
29597 * c-common.c (check_user_alignment): Rename local. Correct maximum
29598 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29599 convert it to UHWI when it fits.
29600
29601 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29602
29603 PR debug/86964
29604 * dwarf2out.c (premark_used_variables): New function.
29605 (prune_unused_types_walk): Do not mark not premarked external
29606 variables.
29607 (prune_unused_types): Call premark_used_variables.
29608
29609 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29610
29611 PR rtl-optimization/89676
29612 * lra-constraints.c (curr_insn_transform): Do match reload for
29613 early clobbers when the match was successful only for different
29614 registers.
29615
29616 2019-03-25 Martin Sebor <msebor@redhat.com>
29617
29618 * doc/extend.texi (Common Type Attributes): Document vector_size.
29619 (Common Variable Attributes): Mention size constraint. Correct
29620 quoting and typos.
29621 (Vector Extensions): Use @dfn when defining bas type. Clarify
29622 base type and size constraints.
29623
29624 2019-03-25 Richard Biener <rguenther@suse.de>
29625
29626 PR tree-optimization/89789
29627 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29628 changes from non-undefined back to undefined.
29629
29630 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29631
29632 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29633 heap string and a gc string, but since this variable is unknown to
29634 ggc the gc string might get reused and corrupted. Fixed by always
29635 using a heap string.
29636
29637 2019-03-25 Richard Biener <rguenther@suse.de>
29638
29639 PR tree-optimization/89779
29640 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29641 to remove IV defs, delay actual removal.
29642 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29643 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29644 very end, properly also reset loop control IV information.
29645
29646 2019-03-25 Richard Biener <rguenther@suse.de>
29647
29648 PR tree-optimization/89802
29649 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29650 move EH data to folded stmt.
29651
29652 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29653
29654 * config/s390/s390-builtin-types.def: Remove few unused types and
29655 fix sort order for others.
29656
29657 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29658
29659 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29660 expected and found types with -mdebug during builtin matching.
29661
29662 2019-03-25 Richard Biener <rguenther@suse.de>
29663
29664 PR middle-end/89790
29665 * fold-const.c (operand_equal_p): Revert last change with
29666 updated comment.
29667
29668 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29669
29670 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29671 notes for the result of the __tls_get_addr calls.
29672 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29673
29674 2019-03-24 Jeff Law <law@redhat.com>
29675
29676 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29677
29678 PR rtl-optimization/87761
29679 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29680 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29681 as needed.
29682 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29683 rescans. Reprocess blocks as needed, calling df_analyze before
29684 reprocessing. Always call df_analyze before fixing up debug bind
29685 insns.
29686
29687 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29688
29689 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29690 big endian.
29691
29692 2019-03-22 Andrew Pinski <apinski@marvell.com>
29693
29694 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29695 attrribute for uxtw.
29696
29697 2019-03-26 Jeff Law <law@redhat.com>
29698
29699 PR rtl-optimization/87761
29700 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29701 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29702 (mips_split_move): Accept new INSN argument. Try to forward SRC
29703 into the next instruction.
29704 (mips_split_move_insn): Pass INSN through to mips_split_move.
29705
29706 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29707
29708 PR rtl-optimization/89676
29709 * lra-constraints.c (curr_insn_transform): Do match reload for
29710 early clobbers even if the match was successful.
29711
29712 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29713
29714 PR c++/87481
29715 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29716
29717 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29718
29719 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29720
29721 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29722
29723 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29724 <avx512>_fmsub_<mode>_mask3<round_name>,
29725 <avx512>_fnmadd_<mode>_mask3<round_name>,
29726 <avx512>_fnmsub_<mode>_mask3<round_name>,
29727 avx512f_vmfmadd_<mode>_mask3<round_name>,
29728 avx512f_vmfmsub_<mode>_mask3<round_name>,
29729 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29730 instead of register_operand and %v instead of v for match_operand 1.
29731 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29732 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29733 <round_nimm_predicate> instead of register_operand and %v instead of v
29734 for match_operand 1.
29735
29736 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29737 <avx512>_fmadd_<mode>_mask3<round_name>,
29738 <avx512>_fmsub_<mode>_mask<round_name>,
29739 <avx512>_fmsub_<mode>_mask3<round_name>,
29740 <avx512>_fnmadd_<mode>_mask<round_name>,
29741 <avx512>_fnmadd_<mode>_mask3<round_name>,
29742 <avx512>_fnmsub_<mode>_mask<round_name>,
29743 <avx512>_fnmsub_<mode>_mask3<round_name>,
29744 <avx512>_fmaddsub_<mode>_mask<round_name>,
29745 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29746 <avx512>_fmsubadd_<mode>_mask<round_name>,
29747 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29748 <round_nimm_predicate> instead of nonimmediate_operand.
29749 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29750 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29751 Use register_operand instead of <round_nimm_predicate> for the
29752 operand that needs to match output.
29753 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29754 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29755 Likewise. Formatting fixes.
29756
29757 PR target/89784
29758 * config/i386/i386.c (enum ix86_builtins): Remove
29759 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29760 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29761 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29762 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29763 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29764 __builtin_ia32_vfmsubss3_mask3): New builtins.
29765 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29766 avx512f_vmfmadd_<mode>_mask3<round_name>,
29767 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29768 *avx512f_vmfmsub_<mode>_mask<round_name>,
29769 avx512f_vmfmsub_<mode>_mask3<round_name>,
29770 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29771 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29772 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29773 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29774 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29775 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29776 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29777 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29778 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29779 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29780 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29781 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29782 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29783 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29784 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29785 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29786 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29787 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29788 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29789 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29790 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29791 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29792 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29793 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29794 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29795 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29796 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29797 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29798
29799 2019-03-21 Martin Sebor <msebor@redhat.com>
29800
29801 PR tree-optimization/89350
29802 * builtins.c (compute_objsize): Also ignore offsets whose upper
29803 bound is negative.
29804 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29805 (builtin_memref::builtin_memref): Initialize new member.
29806 Allow EXPR to be null.
29807 (builtin_memref::extend_offset_range): Replace local with a member.
29808 Avoid assuming pointer offsets are unsigned.
29809 (builtin_memref::set_base_and_offset): Determine base object
29810 before computing offset range.
29811 (builtin_access::builtin_access): Handle memset.
29812 (builtin_access::generic_overlap): Replace local with a member.
29813 (builtin_access::strcat_overlap): Same.
29814 (builtin_access::overlap): Same.
29815 (maybe_diag_overlap): Same.
29816 (maybe_diag_access_bounds): Same.
29817 (wrestrict_dom_walker::check_call): Handle memset.
29818 (check_bounds_or_overlap): Same.
29819
29820 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29821 Jakub Jelinek <jakub@redhat.com>
29822
29823 PR lto/89692
29824 * tree.c (fld_type_variant, fld_incomplete_type_of,
29825 fld_process_array_type): Call fld->pset.add and don't call
29826 add_tree_to_fld_list if it returns true.
29827 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29828 non-marked types from TYPE_NEXT_VARIANT list.
29829 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29830
29831 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29832
29833 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29834 to false, if true, don't alloc_entries during construction, but defer
29835 it to the first method that needs m_entries allocated.
29836 (hash_table::hash_table, hash_table::~hash_table,
29837 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29838 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29839 hash_table::clear_slot, hash_table::traverse_noresize,
29840 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29841 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29842 false.
29843 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29844 NO_INSERT instead of find_with_hash.
29845 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29846 hash_set::m_table): Add Lazy to template params of hash_table.
29847 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29848 * attribs.c (test_attribute_exclusions): Likewise.
29849 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29850 hash_set. Add tests for hash_set with Lazy = true.
29851
29852 2019-03-21 Richard Biener <rguenther@suse.de>
29853
29854 PR tree-optimization/89779
29855 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29856 checks with respect to released SSA names now having error_mark_node
29857 type.
29858 * fold-const.c (operand_equal_p): Likewise.
29859
29860 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29861
29862 PR target/89775
29863 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29864 available to ...
29865 (s390_optimize_register_info): Use global_not_special_regno_p to
29866 check for global regs.
29867
29868 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29869
29870 PR target/89752
29871 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29872 update this_alternative nor this_alternative_set.
29873
29874 2019-03-19 Jim Wilson <jimw@sifive.com>
29875
29876 PR target/89411
29877 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29878 align, size, offset. Use them to handle a BLKmode reference. Update
29879 comment.
29880 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29881
29882 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29883
29884 PR rtl-optimization/89768
29885 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29886 instead of GEN_INT.
29887 (unroll_loop_runtime_iterations): Likewise.
29888
29889 2019-03-19 Martin Sebor <msebor@redhat.com>
29890
29891 PR tree-optimization/89644
29892 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29893 rather than endptr as an indicator of nul-termination.
29894
29895 PR tree-optimization/89644
29896 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29897 arrays in determining sequence sizes in strncpy and stpncpy.
29898
29899 2019-03-19 Martin Liska <mliska@suse.cz>
29900
29901 PR middle-end/89737
29902 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29903 unlikely_edges if there's an edge that belongs to both these sets.
29904
29905 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29906
29907 PR target/89746
29908 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29909 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29910 go via a stack temporary.
29911
29912 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29913
29914 PR target/89378
29915 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29916 instead of gen_rtx_SUBREG.
29917 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29918
29919 2019-03-19 Richard Biener <rguenther@suse.de>
29920
29921 PR debug/88389
29922 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29923
29924 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29925
29926 PR lto/87809
29927 PR lto/89335
29928 * tree.c (free_lang_data_in_decl): Do not free context of C++
29929 destrutors.
29930
29931 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29932
29933 PR target/89506
29934 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29935 subs for the first alternative except when operands[3] is 1.
29936
29937 PR target/89752
29938 * gimplify.c (gimplify_asm_expr): For output argument with
29939 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29940 diagnose error.
29941
29942 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29943
29944 PR rtl-optimization/89753
29945 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29946 explicit unrolling factor even more robust.
29947
29948 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29949
29950 PR target/89726
29951 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29952 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29953 signed zeros, do another copysign after the compensation.
29954
29955 2019-03-18 Martin Sebor <msebor@redhat.com>
29956
29957 PR tree-optimization/89720
29958 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29959 more conservatively, the same as anti-range.
29960
29961 2019-03-18 Richard Biener <rguenther@suse.de>
29962
29963 PR middle-end/88945
29964 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29965 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29966 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29967 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29968
29969 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29970
29971 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29972 Extend queue to 1024 entries.
29973 Add "consumed" field.
29974 (gomp_print_output): Remove print_index parameter.
29975 Add final parameter.
29976 Change limit to unsigned.
29977 Use consumed field to implement circular buffer.
29978 Detect interrupted print in final pass.
29979 Flush output at the end.
29980 (run): Update gomp_print_output usage.
29981 (main): Initialize kernargs->output_data.consumed.
29982
29983 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29984
29985 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29986 calculation of the minimum number of scalar iterations for
29987 fully-predicated loops.
29988
29989 2019-03-18 Martin Jambor <mjambor@suse.cz>
29990
29991 PR tree-optimization/89546
29992 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29993 any propagation to its children took place.
29994
29995 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29996
29997 PR target/89627
29998 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29999 parameter, and make use of it.
30000 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30001
30002 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30003
30004 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30005 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30006 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30007 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30008 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30009 match what the ops is doing.
30010 (push_multi_fp_blink): Likewise.
30011 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30012 compiling for size and elf target.
30013 (arc_save_callee_enter): Adjust note to match what enter/leave
30014 operation does.
30015
30016 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30017
30018 * config/arc/arc.md (tst_movb): Fix constraint.
30019
30020 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30021
30022 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30023
30024 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30025
30026 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30027 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30028 reg_alloc_order references.
30029 (size_alloc_order): Define.
30030 (arc_adjust_reg_alloc_order): New function.
30031 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30032 order.
30033 (ADJUST_REG_ALLOC_ORDER): Define.
30034 (HONOR_REG_ALLOC_ORDER): Likewise.
30035
30036 2019-03-18 Richard Biener <rguenther@suse.de>
30037
30038 PR target/87561
30039 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30040 loads and stores a bit more.
30041
30042 2019-03-18 Richard Biener <rguenther@suse.de>
30043
30044 PR target/87561
30045 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30046 load pessimization to stores as well.
30047
30048 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30049
30050 PR middle-end/86979
30051 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30052 successor, use NULL as its av set.
30053
30054 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30055
30056 PR rtl-optimization/89721
30057 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30058
30059 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30060
30061 PR target/87532
30062 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30063 When handling vec_extract, use modular arithmetic to allow
30064 constant selectors greater than vector length.
30065 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30066 V1TImode vectors to have constant selector values greater than 0.
30067 Use modular arithmetic to compute vector index.
30068 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30069 index for in-memory vectors. Correct code generation for
30070 in-register vectors.
30071 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30072 compute index.
30073
30074 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30075
30076 PR c++/88534
30077 PR c++/88537
30078 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30079 VAR_DECL args.
30080
30081 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30082
30083 PR c++/89709
30084 * tree.c (inchash::add_expr): Strip any location wrappers.
30085 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30086 after hash verification.
30087
30088 PR debug/89704
30089 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30090 SIGN_EXTEND and ZERO_EXTEND.
30091
30092 2019-03-14 Jason Merrill <jason@redhat.com>
30093 Jakub Jelinek <jakub@redhat.com>
30094
30095 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30096 than if is_empty (*slot).
30097 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30098 existing elt and for elt removal.
30099 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30100 of already removed elt.
30101
30102 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30103
30104 PR target/89650
30105 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30106 REG_EH_REGION note.
30107
30108 2019-03-14 Martin Liska <mliska@suse.cz>
30109
30110 PR other/89712
30111 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30112
30113 2019-03-14 Richard Biener <rguenther@suse.de>
30114
30115 PR target/89711
30116 * config/i386/i386.c (make_resolver_func): Properly set
30117 DECL_CONTEXT on the RESULT_DECL.
30118 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30119
30120 2019-03-14 Richard Biener <rguenther@suse.de>
30121
30122 * gimple-pretty-print.c: Include cfgloop.h.
30123 (dump_gimple_phi): Adjust.
30124 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30125 (pp_cfg_jump): Adjust.
30126 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30127 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30128 (lower_phi_internal_fn): Remove.
30129 (verify_gimple_call): Remove IFN_PHI special-casing.
30130 (dump_function_to_file): Dump IL state.
30131 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30132 done to deal with PHI nodes being present in non-SSA state.
30133
30134 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30135
30136 PR ipa/89684
30137 * multiple_target.c (create_dispatcher_calls): Change
30138 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30139 In the node->iterate_referring loop, push *ref rather than ref, call
30140 ref->remove_reference () and always pass 0 to iterate_referring.
30141
30142 PR rtl-optimization/89679
30143 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30144 would contain a paradoxical SUBREG.
30145
30146 2019-03-14 Richard Biener <rguenther@suse.de>
30147
30148 PR tree-optimization/89710
30149 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30150 safe_dyn_cast.
30151
30152 2019-03-14 Martin Liska <mliska@suse.cz>
30153
30154 * coverage.c (coverage_begin_function): Stream also
30155 end_column.
30156 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30157 documentation about function declaration location.
30158 * gcov-dump.c (tag_function): Print whole range
30159 of function declaration.
30160 * gcov.c (struct function_info): Add end_column field.
30161 (function_info::function_info): Initialize it.
30162 (output_json_intermediate_file): Output {start,end}_column
30163 fields.
30164 (read_graph_file): Read end_column.
30165
30166 2019-03-14 Richard Biener <rguenther@suse.de>
30167
30168 PR middle-end/89698
30169 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30170 that the access types are similar.
30171
30172 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30173
30174 PR tree-optimization/89703
30175 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30176 aren't compatible also with builtin_decl_explicit. Check pure
30177 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30178 and BUILT_IN_STPNCPY{,_CHK}.
30179
30180 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30181
30182 PR target/89523
30183 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30184 addr32 prefix to VSIB address for X32.
30185 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30186 "%M2" to opcode.
30187 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30188 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30189 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30190 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30191 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30192 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30193 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30194 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30195 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30196 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30197 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30198 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30199 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30200 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30201 (*avx512f_scatterdi<mode>): Likewise.
30202
30203 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30204
30205 PR target/85860
30206 * lra-constraints.c (inherit_in_ebb): Update
30207 potential_reload_hard_regs along with live_hard_regs.
30208
30209 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30210
30211 PR debug/89498
30212 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30213 DWARF_OFFSET_SIZE.
30214 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30215
30216 2019-03-13 Martin Sebor <msebor@redhat.com>
30217
30218 PR tree-optimization/89662
30219 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30220 has a size.
30221
30222 2019-03-13 Richard Biener <rguenther@suse.de>
30223
30224 PR middle-end/89677
30225 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30226 throw FP expressions at tree-affine.
30227
30228 2019-03-14 Richard Biener <rguenther@suse.de>
30229
30230 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30231 dump negative integer constants using _Literal (type) -num.
30232
30233 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30234
30235 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30236 nonlocal_value member.
30237
30238 PR middle-end/88588
30239 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30240 (ipa_simd_modify_function_body): Handle PHIs.
30241
30242 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30243
30244 * config/s390/s390.c (s390_option_override_internal): Use more
30245 aggressive inlining parameters.
30246
30247 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30248
30249 * config/s390/3906.md: New file.
30250 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30251 (LONGRUNNING_THRESHOLD): Remove.
30252 (MAX_SCHED_MIX_SCORE): Decrease.
30253 (MAX_SCHED_MIX_DISTANCE): Decrease.
30254 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30255 (struct s390_sched_state): New struct to hold scheduling state.
30256 (S390_SCHED_STATE_NORMAL): Remove.
30257 (S390_SCHED_STATE_CRACKED): Remove.
30258 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30259 (s390_get_sched_attrmask): Use new attribute.
30260 (s390_get_unit_mask): Use new units.
30261 (s390_is_fpd): New function.
30262 (s390_is_fxd): New function.
30263 (s390_is_longrunning): New function.
30264 (s390_sched_score): Use new functions.
30265 (s390_sched_reorder): Likewise.
30266 (s390_sched_variable_issue): Rework and use new functions.
30267 (s390_sched_init): Use new functions.
30268 * config/s390/s390.h (s390_tune_attr): Add z14.
30269 * config/s390/s390.md: Add z14.
30270
30271 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30272
30273 * config/s390/2964.md: Update pipeline description.
30274 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30275 (LONGRUNNING_THRESHOLD): Remove.
30276 (LATENCY_FACTOR): Remove.
30277 (s390_get_unit_mask): Add unit.
30278 (s390_sched_score): Use fxd/fpd.
30279 (s390_sched_variable_issue): Use fxd/fpd.
30280
30281 2019-03-12 Martin Liska <mliska@suse.cz>
30282
30283 * config/i386/i386.c: Reword an error message.
30284
30285 2019-03-12 Martin Jambor <mjambor@suse.cz>
30286
30287 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30288 terminate with newline.
30289
30290 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30291
30292 PR target/52726
30293 * config/s390/s390.md (tabort): Use %wd instead of
30294 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30295 letters and periods.
30296 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30297 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30298 's with %< and %>.
30299
30300 PR middle-end/89663
30301 * builtins.c (expand_builtin_int_roundingfn,
30302 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30303 gcc_unreachable if validate_arglist fails.
30304
30305 2019-03-12 Richard Biener <rguenther@suse.de>
30306
30307 PR tree-optimization/89664
30308 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30309 free the occurance tree after the early out.
30310
30311 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30312
30313 PR middle-end/89655
30314 PR bootstrap/89656
30315 * vr-values.c (vr_values::update_value_range): If
30316 old_vr->varying_p (), don't update it, make new_vr also VARYING
30317 and return false.
30318
30319 2019-03-11 Martin Liska <mliska@suse.cz>
30320
30321 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30322 Fix double string quoting.
30323
30324 2019-03-11 Martin Liska <mliska@suse.cz>
30325
30326 * collect-utils.c (collect_wait): Wrap apostrophes
30327 in gcc internal format with %'.
30328 * collect2.c (main): Likewise.
30329 (scan_prog_file): Likewise.
30330 (scan_libraries): Likewise.
30331 * config/i386/i386.c (ix86_expand_call): Likewise.
30332 (ix86_handle_interrupt_attribute): Likewise.
30333 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30334 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30335 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30336 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30337 * symtab.c (symtab_node::verify_base): Likewise.
30338 * tree-cfg.c (verify_gimple_label): Likewise.
30339 * tree.c (verify_type_variant): Likewise.
30340
30341 2019-03-11 Martin Liska <mliska@suse.cz>
30342
30343 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30344 in a string format message and fix GNU coding style.
30345 (expand_builtin_set_thread_pointer): Likewise.
30346 * common/config/aarch64/aarch64-common.c
30347 (aarch64_rewrite_selected_cpu): Likewise.
30348 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30349 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30350 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30351 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30352 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30353 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30354 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30355 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30356 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30357 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30358 Likewise.
30359 * common/config/riscv/riscv-common.c
30360 (riscv_subset_list::parsing_subset_version): Likewise.
30361 (riscv_subset_list::parse_std_ext): Likewise.
30362 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30363 (riscv_subset_list::parse): Likewise.
30364 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30365 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30366 (aarch64_override_options_internal): Likewise.
30367 (aarch64_validate_mcpu): Likewise.
30368 (aarch64_validate_march): Likewise.
30369 (aarch64_validate_mtune): Likewise.
30370 (aarch64_override_options): Likewise.
30371 * config/alpha/alpha.c (alpha_option_override): Likewise.
30372 * config/arc/arc.c (arc_init): Likewise.
30373 (parse_mrgf_banked_regs_option): Likewise.
30374 (arc_override_options): Likewise.
30375 (arc_expand_builtin_aligned): Likewise.
30376 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30377 (arm_expand_builtin): Likewise.
30378 * config/arm/arm.c (arm_option_check_internal): Likewise.
30379 (arm_configure_build_target): Likewise.
30380 (arm_option_override): Likewise.
30381 (arm_options_perform_arch_sanity_checks): Likewise.
30382 (arm_handle_cmse_nonsecure_entry): Likewise.
30383 (arm_handle_cmse_nonsecure_call): Likewise.
30384 (arm_tls_referenced_p): Likewise.
30385 (thumb1_expand_prologue): Likewise.
30386 * config/avr/avr.c (avr_option_override): Likewise.
30387 * config/bfin/bfin.c (bfin_option_override): Likewise.
30388 * config/c6x/c6x.c (c6x_option_override): Likewise.
30389 * config/cr16/cr16.c (cr16_override_options): Likewise.
30390 * config/cris/cris.c (cris_option_override): Likewise.
30391 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30392 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30393 * config/darwin.c (darwin_override_options): Likewise.
30394 * config/frv/frv.c (frv_expand_builtin): Likewise.
30395 * config/h8300/h8300.c (h8300_option_override): Likewise.
30396 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30397 (ix86_option_override_internal): Likewise.
30398 (warn_once_call_ms2sysv_xlogues): Likewise.
30399 (ix86_expand_prologue): Likewise.
30400 (split_stack_prologue_scratch_regno): Likewise.
30401 (ix86_warn_parameter_passing_abi): Likewise.
30402 * config/ia64/ia64.c (fix_range): Likewise.
30403 * config/m68k/m68k.c (m68k_option_override): Likewise.
30404 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30405 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30406 (mips_set_compression_mode): Likewise.
30407 * config/mmix/mmix.c (mmix_option_override): Likewise.
30408 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30409 * config/msp430/msp430.c (msp430_option_override): Likewise.
30410 * config/nds32/nds32.c (nds32_option_override): Likewise.
30411 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30412 (nios2_option_override): Likewise.
30413 (nios2_expand_custom_builtin): Likewise.
30414 * config/nvptx/mkoffload.c (main): Likewise.
30415 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30416 * config/pa/pa.c (fix_range): Likewise.
30417 (pa_option_override): Likewise.
30418 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30419 (riscv_option_override): Likewise.
30420 * config/rl78/rl78.c (rl78_option_override): Likewise.
30421 * config/rs6000/aix61.h: Likewise.
30422 * config/rs6000/aix71.h: Likewise.
30423 * config/rs6000/aix72.h: Likewise.
30424 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30425 * config/rs6000/freebsd64.h: Likewise.
30426 * config/rs6000/linux64.h: Likewise.
30427 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30428 (rs6000_expand_zeroop_builtin): Likewise.
30429 (rs6000_expand_mtfsb_builtin): Likewise.
30430 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30431 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30432 (rs6000_invalid_builtin): Likewise.
30433 (rs6000_expand_split_stack_prologue): Likewise.
30434 * config/rs6000/rtems.h: Likewise.
30435 * config/rx/rx.c (valid_psw_flag): Likewise.
30436 (rx_expand_builtin): Likewise.
30437 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30438 * config/s390/s390.c (s390_expand_builtin): Likewise.
30439 (s390_function_profiler): Likewise.
30440 (s390_option_override_internal): Likewise.
30441 (s390_option_override): Likewise.
30442 * config/sh/sh.c (sh_option_override): Likewise.
30443 (sh_builtin_saveregs): Likewise.
30444 (sh_fix_range): Likewise.
30445 * config/sh/vxworks.h: Likewise.
30446 * config/sparc/sparc.c (sparc_option_override): Likewise.
30447 * config/spu/spu.c (spu_option_override): Likewise.
30448 (fix_range): Likewise.
30449 * config/visium/visium.c (visium_option_override): Likewise.
30450 (visium_handle_interrupt_attr): Likewise.
30451 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30452 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30453 (dbg_cnt_process_opt): Likewise.
30454 * dwarf2out.c (output_dwarf_version): Likewise.
30455 * except.c (expand_eh_return): Likewise.
30456 * gcc.c (defined): Likewise.
30457 (driver_handle_option): Likewise.
30458 (process_command): Likewise.
30459 (compare_files): Likewise.
30460 (driver::prepare_infiles): Likewise.
30461 (driver::do_spec_on_infiles): Likewise.
30462 (driver::maybe_run_linker): Likewise.
30463 * omp-offload.c (oacc_parse_default_dims): Likewise.
30464 * opts-global.c (handle_common_deferred_options): Likewise.
30465 * opts.c (parse_sanitizer_options): Likewise.
30466 (common_handle_option): Likewise.
30467 (enable_warning_as_error): Likewise.
30468 * passes.c (enable_disable_pass): Likewise.
30469 * plugin.c (parse_plugin_arg_opt): Likewise.
30470 (default_plugin_dir_name): Likewise.
30471 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30472 (default_pch_valid_p): Likewise.
30473 * toplev.c (init_asm_output): Likewise.
30474 (process_options): Likewise.
30475 (toplev::run_self_tests): Likewise.
30476 * tree-cfg.c (verify_gimple_call): Likewise.
30477 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30478 (tree_inlinable_function_p): Likewise.
30479 * var-tracking.c (vt_find_locations): Likewise.
30480
30481 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30482
30483 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30484 only on the else branch.
30485
30486 2019-03-11 Martin Liska <mliska@suse.cz>
30487
30488 * gcov.c (output_intermediate_json_line): Print function
30489 name of each line.
30490 (output_json_intermediate_file): Add new argument.
30491 * doc/gcov.texi: Document the change.
30492
30493 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30494
30495 PR rtl-optimization/89588
30496 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30497 explicit unrolling factor more robust.
30498
30499 2019-03-11 Richard Biener <rguenther@suse.de>
30500
30501 PR tree-optimization/89649
30502 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30503 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30504 on the prolog and epilog loops.
30505 (vect_loop_versioning): Return copy of loop.
30506 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30507 on the non-vectorized version of the loop.
30508
30509 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30510
30511 PR target/68924
30512 * config/i386/sse.md (*vec_extractv2di_0_sse):
30513 Add (=r,x) alternative and corresponding splitter.
30514
30515 2019-03-10 Martin Jambor <mjambor@suse.cz>
30516
30517 PR tree-optimization/85762
30518 PR tree-optimization/87008
30519 PR tree-optimization/85459
30520 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30521 it points to if there is a type changing MEM_REF. Adjust all callers.
30522 (build_accesses_from_assign): Disable total scalarization if
30523 contains_vce_or_bfcref_p returns true through the new parameter, for
30524 both rhs and lhs.
30525
30526 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30527
30528 PR c/88568
30529 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30530 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30531
30532 PR target/79645
30533 * common.opt (fdiagnostics-show-labels,
30534 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30535 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30536 gas-locview-support, ginline-points, ginternal-reset-location-views):
30537 Terminate description text with a dot.
30538 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30539 * config/mcore/mcore.opt (m210, m340): Likewise.
30540 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30541 mnops=): Start description text with a capital letter.
30542 * config/arc/arc.opt (msize-level=): Likewise.
30543 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30544 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30545 mnewlib): Likewise.
30546 * config/ft32/ft32.opt (msim): Likewise.
30547 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30548 (mnodiv, mnopm): Terminate description text with a dot.
30549 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30550 a colon.
30551 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30552 Likewise.
30553 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30554 text.
30555
30556 PR rtl-optimization/89634
30557 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30558 are modified in BB_END (e->src) instruction.
30559
30560 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30561
30562 PR target/79926
30563 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30564 messages more amenable to translation, and improve wording.
30565
30566 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30567
30568 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30569 ud- and du-chains between phases.
30570
30571 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30572
30573 PR debug/89631
30574 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30575 instead of POLY_INT_CST.
30576
30577 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30578
30579 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30580 requirement.
30581
30582 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30583
30584 PR target/68924
30585 PR target/78782
30586 PR target/87558
30587 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30588 (_mm_storeu_si64): Ditto.
30589
30590 2019-03-08 Martin Liska <mliska@suse.cz>
30591
30592 PR target/86952
30593 * config/i386/i386.c (ix86_option_override_internal): Disable
30594 jump tables when retpolines are used.
30595
30596 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30597
30598 PR go/63560
30599 * ipa-split.c (execute_split_functions): Do not split
30600 'noinline' or 'section' function.
30601
30602 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30603
30604 PR target/79846
30605 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30606 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30607 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30608
30609 PR ipa/80000
30610 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30611 from diagnostics. Formatting fixes.
30612
30613 PR target/85665
30614 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30615 warn_odr diagnostics.
30616
30617 PR other/80058
30618 * lra-constraints.c (process_alt_operands): Avoid one space before
30619 " at the end of line and another after " on another line in a string
30620 literal.
30621 * attribs.c (handle_dll_attribute): Likewise.
30622 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30623
30624 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30625 warning_at or inform messages in G_() if there is no ?:.
30626
30627 PR tree-optimization/89550
30628 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30629 returned true. Formatting fixes.
30630 (expand_builtin_strnlen): Formatting fixes.
30631 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30632 if warning_at returned true.
30633 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30634
30635 2019-03-08 Richard Biener <rguenther@suse.de>
30636
30637 PR middle-end/89578
30638 * cfgloop.h (struct loop): Add owned_clique field.
30639 * cfgloopmanip.c (copy_loop_info): Copy it.
30640 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30641 cliques.
30642 * tree-inline.c (copy_loops): Remap owned_clique.
30643 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30644 * lto-streamer-out.c (output_cfg): Likewise.
30645
30646 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30647
30648 PR target/80190
30649 * config/darwin.c: Include intl.h.
30650 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30651 composing the message out of two separate parts.
30652
30653 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30654
30655 PR target/80003
30656 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30657 doesn't start with a capital letter and doesn't end with a dot.
30658 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30659 with a capital letter.
30660 (ix86_mangle_function_version_assembler_name): Likewise.
30661 (ix86_generate_version_dispatcher_body): Likewise.
30662 (fold_builtin_cpu): Likewise.
30663 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30664 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30665 translators, wrap full type name in %qs.
30666
30667 PR translation/79999
30668 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30669 depend clause with source (or sink) modifier.
30670 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30671
30672 PR target/89602
30673 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30674 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30675 (avx512f_load<mode>_mask): New define_expand.
30676 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30677 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30678 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30679 __builtin_ia32_movess_mask): New builtins.
30680 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30681 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30682 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30683 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30684
30685 2019-03-07 Martin Jambor <mjambor@suse.cz>
30686
30687 PR lto/87525
30688 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30689 for extern inline functions.
30690
30691 2019-03-07 Martin Jambor <mjambor@suse.cz>
30692
30693 PR ipa/88235
30694 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30695 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30696 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30697 have multiple callees. At the end check if declarations match as
30698 opposed to cgraph_nodes.
30699
30700 2019-03-07 Martin Liska <mliska@suse.cz>
30701
30702 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30703 which is equivalent to searching for this in clones chain.
30704 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30705 names with a neighbour and special case first node in a chain.
30706
30707 2019-01-25 Jason Merrill <jason@redhat.com>
30708
30709 PR c++/80916 - spurious "static but not defined" warning.
30710 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30711 for an internal symbol with DECL_EXTERNAL.
30712
30713 2019-04-07 Richard Biener <rguenther@suse.de>
30714
30715 PR middle-end/89618
30716 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30717 * tree-inline.c (copy_loops): Simplify.
30718
30719 2019-03-07 Martin Liska <mliska@suse.cz>
30720
30721 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30722
30723 2019-03-07 Richard Biener <rguenther@suse.de>
30724
30725 PR tree-optimization/89595
30726 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30727 stmt iterator as reference, take boolean output parameter to
30728 indicate whether the stmt was removed and thus the iterator
30729 already advanced.
30730 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30731 stmts created by folding.
30732
30733 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30734
30735 PR c++/89585
30736 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30737 at toplevel.
30738
30739 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30740
30741 PR rtl-optimization/88845
30742 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30743 LRA.
30744 * lra.c (remove_scratches_1): New function.
30745 (remove_scratches): Use it.
30746 (lra_emit_move): Likewise.
30747
30748 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30749
30750 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30751 unaligned_access variable.
30752 * config/arc/arc.c (arc_override_options): Set unaligned access
30753 default on for HS CPUs.
30754 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30755
30756 2019-03-06 Martin Liska <mliska@suse.cz>
30757
30758 PR gcov-profile/89577
30759 * doc/gcov.texi: Prefer to use --coverage.
30760 * doc/sourcebuild.texi: Likewise.
30761
30762 2019-03-02 Jason Merrill <jason@redhat.com>
30763
30764 PR c++/86485 - -Wmaybe-unused with empty class ?:
30765 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30766
30767 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30768
30769 PR target/89587
30770 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30771 if_multiarch.
30772
30773 PR middle-end/89590
30774 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30775 exactly one argument.
30776
30777 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30778 Richard Sandiford <richard.sandiford@arm.com>
30779
30780 PR tree-optimization/89570
30781 * match.pd (vec_cond into cond_op simplification): Don't use
30782 get_conditional_internal_fn, use as_internal_fn (cond_op).
30783
30784 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30785
30786 PR target/89222
30787 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30788 to decide when to split off a non-zero offset from a symbol.
30789 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30790 in function symbols.
30791
30792 2019-03-05 Richard Biener <rguenther@suse.de>
30793
30794 PR tree-optimization/89594
30795 * tree-if-conv.c (pass_if_conversion::execute): Handle
30796 case where .LOOP_VECTORIZED_FUNCTION was removed.
30797
30798 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30799
30800 PR bootstrap/89560
30801 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30802 instead alloca it only when needed with the needed size.
30803
30804 PR tree-optimization/89570
30805 * match.pd (vec_cond into cond_op simplification): Guard with
30806 vectorized_internal_fn_supported_p test and #if GIMPLE.
30807
30808 PR tree-optimization/89566
30809 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30810 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30811 Punt if get_user_idx_format succeeds, but idx_format argument is
30812 not provided or doesn't have pointer type, or if idx_args is above
30813 number of provided arguments.
30814
30815 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30816
30817 PR tree-optimization/89437
30818 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30819
30820 2019-03-04 Richard Biener <rguenther@suse.de>
30821
30822 PR middle-end/89572
30823 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30824 safe_dyn_cast.
30825
30826 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30827
30828 PR tree-optimization/89487
30829 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30830 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30831 (distribute_loop): Don't do runtime alias check if there is non-
30832 addressable data reference.
30833 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30834 is a register variable.
30835
30836 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30837
30838 PR target/89506
30839 * config/arm/arm.md (cmpsi2_addneg): Use
30840 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30841 If operands[2] is 0 or INT_MIN, force use of subs.
30842 (*compare_scc splitter): Use gen_int_mode.
30843 (*negscc): Likewise.
30844 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30845
30846 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30847 Monk Chiang <sh.chiang04@gmail.com>
30848
30849 * common/config/riscv/riscv-common.c: Include sstream.
30850 (riscv_subset_list::to_string): New.
30851 (riscv_arch_str): Likewise.
30852 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30853 * config.in: Regen.
30854 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30855 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30856 (riscv_emit_attribute): New.
30857 (riscv_file_start): Emit attribute if needed.
30858 (riscv_option_override): Init riscv_emit_attribute_p.
30859 * config/riscv/riscv.opt (mriscv-attribute): New option.
30860 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30861 * configure: Regen.
30862 * doc/install.texi: Document --with-riscv-attribute.
30863 * doc/invoke.texi: Document -mriscv-attribute.
30864
30865 * common/config/riscv/riscv-common.c:
30866 Include config/riscv/riscv-protos.h.
30867 (INCLUDE_STRING): Defined.
30868 (RISCV_DONT_CARE_VERSION): Defined.
30869 (riscv_subset_t): Declare.
30870 (riscv_subset_t::riscv_subset_t): New.
30871 (riscv_subset_list): Declare.
30872 (riscv_subset_list::riscv_subset_list): New.
30873 (riscv_subset_list::~riscv_subset_list): Likewise.
30874 (riscv_subset_list::parsing_subset_version): Likewise.
30875 (riscv_subset_list::parse_std_ext): Likewise.
30876 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30877 (riscv_subset_list::add): Likewise.
30878 (riscv_subset_list::lookup): Likewise.
30879 (riscv_subset_list::xlen): Likewise.
30880 (riscv_subset_list::parse): Likewise.
30881 (riscv_supported_std_ext): Likewise.
30882 (current_subset_list): Likewise.
30883 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30884 parse.
30885
30886 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30887
30888 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30889 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30890 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30891
30892 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30893
30894 PR rtl-optimization/85899
30895 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30896 fallthru edges leading to the exit block.
30897
30898 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30899
30900 PR target/89517
30901 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30902 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30903
30904 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30905
30906 PR tree-optimization/89535
30907 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30908 for each operand. Calculate the fallback choice for mask operands
30909 and pass it to vect_get_vec_def_for_operand.
30910
30911 2019-03-01 Richard Biener <rguenther@suse.de>
30912
30913 PR middle-end/89541
30914 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30915 get virtual operands.
30916 (get_expr_operands): Handle CONST_DECL like other decls.
30917
30918 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30919
30920 PR middle-end/89503
30921 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30922 on DECL_P and EXPR_P.
30923
30924 2019-03-01 Richard Biener <rguenther@suse.de>
30925
30926 PR middle-end/89497
30927 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30928 argument, defaulted to zero.
30929 * passes.c (execute_function_todo): Pass down SSA update flags
30930 to cleanup_tree_cfg.
30931 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30932 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30933 form if requested.
30934 (cleanup_tree_cfg): Get and pass down SSA update flags.
30935
30936 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30937
30938 PR bootstrap/89539
30939 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30940 early_lto_debug argument.
30941
30942 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30943
30944 PR tree-optimization/89536
30945 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30946 only whether bit #0 of the value is 0 instead of the entire value.
30947
30948 2019-02-28 Marek Polacek <polacek@redhat.com>
30949
30950 PR c++/87068 - missing diagnostic with fallthrough statement.
30951 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30952 at the end of a seq, save its location to walk_stmt_info.
30953 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30954 a switch.
30955
30956 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30957
30958 PR lto/88585
30959 * tree.c (find_atomic_core_type): Move ahead in file.
30960 (check_base_type): Correctly compare alignments of atomic types.
30961
30962 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30963
30964 PR target/89455
30965 * config/i386/i386.c (get_builtin_code_for_version): Identify
30966 Westmere from PCLMUL, instead of AES.
30967
30968 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30969
30970 PR target/89434
30971 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30972 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30973 -UINTVAL (...).
30974
30975 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30976
30977 PR target/88530
30978 * config/aarch64/aarch64-option-extensions.def: Document it.
30979 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30980 if empty hwcaps.
30981
30982 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30983
30984 PR c/89520
30985 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30986 builtins if they don't have a single scalar floating point argument.
30987 Formatting fixes.
30988
30989 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30990
30991 PR rtl-optimization/89490
30992 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30993 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30994 block section is not mergeable.
30995
30996 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30997
30998 PR target/70341
30999 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31000 old define_insn to ...
31001 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31002 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31003 Rename old define_insn to ...
31004 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31005 (thumb2_casesi_internal_pic): New define_expand. Rename old
31006 define_insn to ...
31007 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31008 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31009 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31010
31011 2019-02-27 Richard Biener <rguenther@suse.de>
31012
31013 PR debug/88878
31014 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31015
31016 2019-02-27 Richard Biener <rguenther@suse.de>
31017
31018 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31019 building.
31020
31021 2019-02-27 Richard Biener <rguenther@suse.de>
31022
31023 PR debug/88878
31024 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31025 parameter, prefix section name with .gnu.debuglto_ if true.
31026 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31027 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31028
31029 2019-02-27 Richard Biener <rguenther@suse.de>
31030
31031 PR debug/89514
31032 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31033 rather than on use_debug_types, doing what output_die does.
31034 (value_format): Likewise.
31035
31036 2019-02-27 Martin Jambor <mjambor@suse.cz>
31037 Martin Sebor <msebor@redhat.com>
31038
31039 * doc/invoke.texi (Warning Options): Reword description of
31040 -Wno-absolute-value.
31041
31042 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31043
31044 PR tree-optimization/89280
31045 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31046 builtin_setjmp_setup_bb): New functions.
31047 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31048 When visiting __builtin_setjmp_setup block, queue in special
31049 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31050 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31051 from visited after the loop if they don't have any visited successor
31052 blocks.
31053
31054 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31055
31056 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31057 New function.
31058 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31059
31060 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31061
31062 PR c++/89507
31063 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31064 with types other than sizetype/ssizetype.
31065
31066 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31067
31068 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31069 (enum sparc_processor_type): ...this.
31070 (enum sparc_code_model_type): New enumeration type.
31071 (enum sparc_memory_model_type): Tweak comments.
31072 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31073 (mtune): Likewise.
31074 (mcmodel): Use sparc_code_model enumeration and variable.
31075 (sparc_code_model): New enumeration.
31076 (mdebug): Add Undocumented marker.
31077 * config/sparc/sparc.h (enum cmodel): Delete.
31078 (sparc_cmodel): Likewise.
31079 (TARGET_CM_MEDLOW): Adjust to above renaming.
31080 (TARGET_CM_MEDMID): Likewise.
31081 (TARGET_CM_MEDANY): Likewise.
31082 (TARGET_CM_EMBMEDANY): Likewise.
31083 * config/sparc/sparc.c (sparc_cmodel): Delete.
31084 (sparc_option_override): Remove string/value mapping support for the
31085 code model. Move code and memory model support to after the handling
31086 of target flags. Do private machine setup last.
31087 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31088 (sparc_legitimize_reload_address): Likewise.
31089 (sparc_output_mi_thunk): Likewise.
31090 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31091
31092 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31093
31094 PR tree-optimization/89500
31095 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31096 (handle_builtin_strlen): Remove noncst_bound variable. Always
31097 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31098 cst if the first cst bytes starting at x are known to be non-zero,
31099 even if the string is not zero terminated. Don't try to modify
31100 *si for strnlen. Update strlen_to_stridx only for strlen or if
31101 we can prove strnlen returns the same value as strlen would.
31102
31103 2019-02-26 Martin Liska <mliska@suse.cz>
31104
31105 * alloc-pool.h (struct pool_usage): Remove extra
31106 print_dash_line.
31107 * bitmap.h (struct bitmap_usage): Likewise.
31108 * ggc-common.c (struct ggc_usage): Likewise.
31109 * mem-stats.h (struct mem_usage): Likewise.
31110 (mem_alloc_description::dump): Print dash lines
31111 here and repeat header at the end of a table report.
31112 It's then more readable.
31113 * tree-phinodes.c (phinodes_print_statistics): Make
31114 horizontal alignment.
31115 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31116 * vec.c (struct vec_usage): Remove extra print_dash_line.
31117 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31118
31119 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31120
31121 * doc/extend.texi (__builtin_object_size):
31122 Use @pxref instead of @xref inside parenthesis.
31123 (__builtin_has_attribute): Add missing comma after @xref.
31124 (__builtin_object_size): Ditto.
31125 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31126
31127 2019-02-26 Jeff Law <law@redhat.com>
31128
31129 PR rtl-optimization/87761
31130 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31131 detect obviously dead insns and delete them.
31132
31133 2019-02-26 Richard Biener <rguenther@suse.de>
31134
31135 PR tree-optimization/89505
31136 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31137 to handle restrict pointed-to vars with multiple subvars
31138 correctly.
31139
31140 2019-02-26 Richard Biener <rguenther@suse.de>
31141
31142 PR tree-optimization/89489
31143 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31144
31145 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31146
31147 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31148 and move around comment.
31149 <BIT_AND_EXPR>: Likewise.
31150 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31151
31152 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31153
31154 PR target/89474
31155 * config/i386/i386.c (remove_partial_avx_dependency): Call
31156 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31157 after changing possibly many instructions to use that pseudo. Fix up
31158 insertion of v4sf_const0 setter at the start of bb.
31159
31160 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31161
31162 PR c/80409
31163 * doc/extend.texi (Variadic Pointer Args): New section.
31164
31165 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31166 Martin Sebor <msebor@gmail.com>
31167
31168 * common.opt (Wattribute-alias): Likewise.
31169 * doc/invoke.texi (Option Summary): List general form of
31170 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31171 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31172 Add cross-references.
31173 (-Wattribute-alias): Rewrite and correct default. Mention
31174 considered attributes (same as for -Wmissing-attributes).
31175
31176 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31177
31178 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31179 (_mm_cvtpd_ps): Likewise.
31180 (_mm_cvttpd_epi32): Likewise.
31181
31182 PR target/89338
31183 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31184 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31185
31186 PR target/89339
31187 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31188
31189 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31190
31191 PR target/88530
31192 * common/config/aarch64/aarch64-common.c
31193 (struct aarch64_option_extension): Add is_synthetic.
31194 (all_extensions): Use it.
31195 (TARGET_OPTION_INIT_STRUCT): Define hook.
31196 (struct gcc_targetm_common): Moved to end.
31197 (all_extensions_by_on): New.
31198 (opt_ext_cmp, typedef opt_ext): New.
31199 (aarch64_option_init_struct): New.
31200 (aarch64_contains_opt): New.
31201 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31202 * config/aarch64/aarch64-option-extensions.def
31203 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31204 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31205 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31206 Set is_synthetic to false.
31207 (crypto): Set is_synthetic to true.
31208 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31209 SYNTHETIC.
31210
31211 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31212
31213 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31214 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31215 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31216 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31217 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31218 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31219 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31220 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31221 Rename ...
31222 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31223 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31224 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31225 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31226 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31227 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31228 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31229 vfmlsl_laneq_high_f16): ... To this.
31230 * config/arm/neon.md: Update comments.
31231
31232 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31233
31234 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31235 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31236 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31237 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31238 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31239 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31240 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31241 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31242 Rename ...
31243 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31244 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31245 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31246 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31247 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31248 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31249 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31250 vfmlslq_laneq_high_f16): ... To this.
31251
31252 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31253
31254 PR rtl-optimization/86096
31255 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31256 comparing mw_order values.
31257
31258 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31259
31260 PR target/89434
31261 * config/arm/arm.md (*subsi3_carryin_const): Use
31262 arm_neg_immediate_operand predicate instead of
31263 arm_not_immediate_operand, "L" constraint instead of "K" and
31264 print it using %n2 instead of %B2.
31265 (*subsi3_carryin_const0): New define_insn.
31266 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31267 instead of arm_not_operand and "I" constraint instead of "K" and
31268 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31269 another match_operand and in the condition check that it is negation
31270 of operands[2].
31271 (*subsi3_carryin_compare_const0): New define_ins.
31272 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31273 *subsi3_carryin_const.
31274 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31275 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31276
31277 PR target/89438
31278 * config/arm.vfp.md (*negdf2_vfp): Use
31279 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31280 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31281
31282 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31283
31284 PR rtl-optimization/89445
31285 * simplify-rtx.c (simplify_ternary_operation): Don't use
31286 simplify_merge_mask on operands that may trap.
31287 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31288 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31289 second operand is CONST_VECTOR, check if any element could be zero.
31290 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31291 their operands can trap.
31292
31293 2019-02-23 Martin Sebor <msebor@redhat.com>
31294
31295 * gimple-ssa-sprintf.c (target_strtol): Rename...
31296 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31297 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31298 check for range error.
31299
31300 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31301
31302 PR driver/69471
31303 * opts-common.c (prune_options): Also prune joined switches
31304 with Negative and RejectNegative.
31305 * config/i386/i386.opt (march=): Add Negative(march=).
31306 (mtune=): Add Negative(mtune=).
31307 * doc/options.texi: Document Negative used together with Joined
31308 and RejectNegative.
31309
31310 2019-02-22 Martin Sebor <msebor@redhat.com>
31311
31312 * doc/extend.texi (Other Builtins): Add
31313 __builtin_is_constant_evaluated.
31314
31315 2019-02-22 Richard Biener <rguenther@suse.de>
31316
31317 PR tree-optimization/87609
31318 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31319
31320 2019-02-22 Jeff Law <law@redhat.com>
31321
31322 PR rtl-optimization/87761
31323 * config/mips/mips.md: Add new combiner pattern to recognize
31324 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31325
31326 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31327
31328 PR target/89324
31329 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31330 destination register in peepholes generating patterns for ADDS/SUBS.
31331 (add<mode>3_compare0,
31332 *addsi3_compare0_uxtw, add<mode>3_compareC,
31333 add<mode>3_compareV_imm, add<mode>3_compareV,
31334 *adds_<optab><ALLX:mode>_<GPI:mode>,
31335 *subs_<optab><ALLX:mode>_<GPI:mode>,
31336 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31337 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31338 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31339 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31340 sub<mode>3_compare1): Allow stack pointer for source register.
31341 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31342
31343 2019-02-22 Martin Sebor <msebor@redhat.com>
31344
31345 PR tree-optimization/88993
31346 PR tree-optimization/88853
31347 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31348 New helper.
31349 (sprintf_dom_walker::call_info::is_string_func): New helper.
31350 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31351 for formatted string functions.
31352 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31353
31354 2019-02-22 Martin Sebor <msebor@redhat.com>
31355
31356 PR c/89425
31357 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31358 unreachable subexpressions.
31359
31360 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31361 Hongtao Liu <hongtao.liu@intel.com>
31362 Sunil K Pandey <sunil.k.pandey@intel.com>
31363
31364 PR target/87007
31365 * config/i386/i386-passes.def: Add
31366 pass_remove_partial_avx_dependency.
31367 * config/i386/i386-protos.h
31368 (make_pass_remove_partial_avx_dependency): New.
31369 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31370 New function.
31371 (pass_data_remove_partial_avx_dependency): New.
31372 (pass_remove_partial_avx_dependency): Likewise.
31373 (make_pass_remove_partial_avx_dependency): Likewise.
31374 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31375 (*extendsfdf2): Add avx_partial_xmm_update.
31376 (truncdfsf2): Likewise.
31377 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31378 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31379
31380 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31381
31382 PR middle-end/85598
31383 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31384 analysis for pass.
31385
31386 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31387
31388 PR target/89444
31389 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31390 (PTA_SKYLAKE): Add PTA_AES.
31391 (PTA_GOLDMONT): Likewise.
31392
31393 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31394
31395 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31396 instruction if enabled.
31397 (aarch64_override_options): Remove reference to return address key.
31398
31399 2019-02-22 Richard Biener <rguenther@suse.de>
31400
31401 PR tree-optimization/89440
31402 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31403 not necessary assert.
31404
31405 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31406
31407 PR fortran/72741
31408 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31409 (oacc_replace_fn_attrib_attr): ... this new function.
31410 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31411 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31412
31413 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31414
31415 * config/arm/arm-cpus.in (ares): Rename to...
31416 (neoverse-n1): ... This. Add ares as alias.
31417 * config/arm/arm-tables.opt: Regenerate.
31418 * config/arm/arm-tune.md: Likewise.
31419 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31420
31421 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31422
31423 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31424 * config/aarch64/aarch64-tune.md: Regenerate.
31425 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31426
31427 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31428
31429 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31430 (neoversen1_tunings): ... This.
31431 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31432 (neoverse-n1): New CPU.
31433 * config/aarch64/aarch64-tune.md: Regenerate.
31434 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31435
31436 2019-02-22 Richard Biener <rguenther@suse.de>
31437
31438 PR middle-end/87609
31439 * cfghooks.h (dependence_hash): New typedef.
31440 (struct copy_bb_data): New type.
31441 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31442 (duplicate_block): Likewise.
31443 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31444 (copy_bbs): Create and pass down copy_bb_data.
31445 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31446 (rtl_duplicate_bb): Likewise.
31447 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31448 remap dependence info.
31449
31450 2019-02-22 Richard Biener <rguenther@suse.de>
31451
31452 PR tree-optimization/87609
31453 * tree-core.h (tree_base): Document special clique values.
31454 * tree-inline.c (remap_dependence_clique): Do not use the
31455 special clique value of one.
31456 (maybe_set_dependence_info): Use clique one.
31457 (clear_dependence_clique): New callback.
31458 (compute_dependence_clique): Clear clique one from all refs
31459 before assigning it (again).
31460
31461 2019-02-21 Martin Sebor <msebor@redhat.com>
31462
31463 * doc/extend.texi (__clear_cache): Correct signature.
31464
31465 2019-02-21 Ian Lance Taylor <iant@golang.org>
31466
31467 PR go/89170
31468 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31469 than output_constant_def.
31470 (add_constant_to_table): New static function.
31471 (output_constant_def): Call add_constant_to_table.
31472 (tree_output_constant_def): Likewise.
31473
31474 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31475
31476 PR c++/89285
31477 * builtins.c (fold_builtin_arith_overflow): If first two args are
31478 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31479 to ifn.
31480
31481 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31482
31483 PR target/87412
31484 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31485 error for -mindirect-branch/-mfunction-return with incompatible
31486 -fcf-protection.
31487
31488 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31489
31490 PR bootstrap/88714
31491 * constraints.md (q): Remove.
31492 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31493 instead of q.
31494
31495 2019-02-21 Martin Jambor <mjambor@suse.cz>
31496
31497 PR hsa/89302
31498 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31499 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31500 (omp_adjust_for_condition): ...here. Added necessary parameters.
31501 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31502 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31503 proper values to new parameters of omp_adjust_for_condition.
31504
31505 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31506
31507 PR middle-end/89412
31508 * expr.c (expand_assignment): If result is a MEM, use change_address
31509 instead of simplify_gen_subreg.
31510
31511 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31512 David Malcolm <dmalcolm@redhat.com>
31513
31514 PR middle-end/89091
31515 * fold-const.c (decode_field_reference): Return NULL_TREE if
31516 lang_hooks.types.type_for_size returns NULL. Check it before
31517 overwriting *exp_. Use return NULL_TREE instead of return 0.
31518
31519 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31520
31521 PR middle-end/88074
31522 PR middle-end/89415
31523 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31524 buggy mpc_norm.
31525
31526 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31527
31528 PR target/89397
31529 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31530 TARGET_SSE in addition to TARGET_SSE_MATH.
31531
31532 (ix86_excess_precision): Ditto.
31533 (ix86_float_exceptions_rounding_supported_p): Ditto.
31534 (use_rsqrt_p): Ditto.
31535 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31536
31537 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31538
31539 PR c/89410
31540 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31541 linenum_arith_t when determining if two adjacent line spans are
31542 close enough to merge.
31543 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31544 lines within each line_span.
31545
31546 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31547
31548 PR target/86487
31549 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31550 paradoxical SUBREGS.
31551
31552 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31553
31554 PR target/88100
31555 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31556 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31557 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31558 range checking it.
31559
31560 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31561
31562 * config/gcn/gcn.c (print_operand): Fix typo.
31563
31564 2019-02-19 Richard Biener <rguenther@suse.de>
31565
31566 PR middle-end/88074
31567 * toplev.c (do_compile): Initialize mpfr's exponent range
31568 based on available float modes.
31569
31570 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31571
31572 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31573 as long as the epilogue isn't completed.
31574
31575 2019-02-18 Martin Sebor <msebor@redhat.com>
31576
31577 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31578 __has_cpp_attribute, and __has_include.
31579
31580 2019-02-18 Martin Sebor <msebor@redhat.com>
31581
31582 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31583
31584 2019-02-18 Martin Sebor <msebor@redhat.com>
31585
31586 PR middle-end/89294
31587 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31588 expression.
31589 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31590
31591 2019-02-18 Richard Biener <rguenther@suse.de>
31592
31593 PR tree-optimization/89296
31594 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31595 of no-warning flag to cases that might emit the bogus warning.
31596
31597 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31598
31599 PR bootstrap/88714
31600 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31601 "q" constraint.
31602 * config/arm/vfp.md (*movdi_vfp): Likewise.
31603 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31604 "q" constraint for operands[0].
31605
31606 PR target/89369
31607 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31608 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31609 pattern in a temporary buffer.
31610 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31611 than 64-operands[2].
31612
31613 PR target/89361
31614 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31615 s390_indirect_branch_settings): Define unconditionally.
31616 (s390_set_current_function): Likewise, but guard the whole body except
31617 the s390_indirect_branch_settings call with
31618 #if S390_USE_TARGET_ATTRIBUTE.
31619 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31620
31621 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31622 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31623 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31624 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31625 HOST_WIDE_INT_1U instead of 1ULL.
31626 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31627 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31628 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31629 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31630 instead of 1UL.
31631 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31632 instead of 1ul.
31633
31634 2019-02-18 Martin Jambor <mjambor@suse.cz>
31635
31636 PR tree-optimization/89209
31637 * tree-sra.c (create_access_replacement): New optional parameter
31638 reg_tree. Use it as a type if non-NULL and access type is not of
31639 a register type.
31640 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31641 to create_access_replacement.
31642 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31643 Check lacc is non-NULL before attempting to re-create it on the RHS.
31644
31645 2019-02-18 Martin Liska <mliska@suse.cz>
31646
31647 PR ipa/89306
31648 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31649 by default.
31650 (symbol_table::free_edge): Recycle m_summary_id.
31651 * cgraph.h (get_summary_id): New.
31652 (symbol_table::release_symbol): Set m_summary_id to -1
31653 by default.
31654 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31655 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31656 function_summary to fast_function_summary.
31657 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31658 * ipa-pure-const.c (class funct_state_summary_t):
31659 Switch from function_summary to fast_function_summary.
31660 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31661 (class ipa_ref_opt_summary_t): Switch from function_summary
31662 to fast_function_summary.
31663 * symbol-summary.h (class function_summary_base): New class
31664 that is created from base of former function_summary.
31665 (function_summary_base::unregister_hooks): New.
31666 (class function_summary): Inherit from function_summary_base.
31667 (class call_summary_base): New class
31668 that is created from base of former call_summary.
31669 (class call_summary): Inherit from call_summary_base.
31670 (struct is_same): New.
31671 (class fast_function_summary): New summary class.
31672 (class fast_call_summary): New summary class.
31673 * vec.h (vec_safe_grow_cleared): New function.
31674
31675 2019-02-18 Martin Liska <mliska@suse.cz>
31676
31677 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31678 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31679 * doc/tm.texi: Document new target hook.
31680 * doc/tm.texi.in: Likewise.
31681 * target.def: Add new target macro.
31682 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31683 suffixes.
31684
31685 2019-02-17 Alan Modra <amodra@gmail.com>
31686
31687 PR target/89271
31688 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31689 output reg on add insn.
31690 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31691
31692 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31693
31694 PR target/89372
31695 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31696 (PMULHRSW): Likewise.
31697 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31698 TARGET_AVX2.
31699 (ssse3_pmulhrswv4hi3): New expander.
31700
31701 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31702
31703 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31704 MMX. Add isa attribute.
31705
31706 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31707
31708 PR rtl-optimization/66152
31709 * builtins.h (c_readstr): Declare.
31710 * builtins.c (c_readstr): Remove forward declaration. Add
31711 null_terminated_p argument, if false, read all bytes from the
31712 string instead of stopping after '\0'.
31713 * expr.c (string_cst_read_str): New function.
31714 (store_expr): Use string_cst_read_str instead of
31715 builtin_strncpy_read_str. Try to store by pieces the whole
31716 exp_len first, and only if that fails, split it up into
31717 store by pieces followed by clear_storage. Formatting fix.
31718
31719 * config/i386/i386.md (*movqi_internal): Remove static from
31720 buf variable. Use output_asm_insn (buf, operands); return "";
31721 instead of return buf;.
31722 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31723 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31724 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31725
31726 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31727
31728 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31729 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31730 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31731 (CC1_SPEC): Likewise.
31732 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31733
31734 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31735
31736 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31737 the base address on 64-bit strict-alignment platforms.
31738
31739 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31740
31741 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31742
31743 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31744
31745 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31746
31747 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31748
31749 PR rtl-optimization/88308
31750 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31751 on copied instruction.
31752
31753 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31754
31755 * final.c (insn_current_reference_address): Replace test on JUMP_P
31756 with test on jump_to_label_p.
31757 * config/visium/visium-passes.def: New file.
31758 * config/visium/t-visium (PASSES_EXTRA): Define.
31759 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31760 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31761 (TRAMPOLINE_ALIGNMENT): Define.
31762 * config/visium/visium.c (visium_option_override): Do not register
31763 the machine-specific reorg pass here.
31764 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31765 for the GR6.
31766 (output_branch): Adjust threshold for long branch instruction.
31767 * config/visium/visium.md (cpu): Move around.
31768 (length): Adjust for the GR6.
31769
31770 2019-02-15 Richard Biener <rguenther@suse.de>
31771 Jakub Jelinek <jakub@redhat.com>
31772
31773 PR tree-optimization/89278
31774 * tree-loop-distribution.c: Include tree-eh.h.
31775 (generate_memset_builtin, generate_memcpy_builtin): Call
31776 rewrite_to_non_trapping_overflow on builtin->size before passing it
31777 to force_gimple_operand_gsi.
31778
31779 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31780
31781 PR other/89342
31782 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31783 optimize_debug.
31784 * opth-gen.awk: Likewise.
31785
31786 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31787
31788 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31789 Enable MMX, SSE and SSE2 by default.
31790 * config/i386/i386.c (ix86_option_override_internal): Do not
31791 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31792
31793 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31794
31795 PR rtl-optimization/89354
31796 * combine.c (make_extraction): Punt if extraction_mode is narrower
31797 than len bits.
31798
31799 2019-02-14 Maya Rashish <coypu@sdf.org>
31800
31801 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31802 * config/netbsd-d.c: New file.
31803 * config/t-netbsd: Add netbsd-d.o
31804
31805 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31806
31807 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31808 affects_type_identity to true for aarch64_vector_pcs.
31809 (aarch64_comp_type_attributes): New function.
31810 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31811
31812 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31813
31814 PR target/88850
31815 * config/arm/iterators.md (ANY64): Add V4HF.
31816
31817 2019-02-14 Martin Liska <mliska@suse.cz>
31818
31819 PR rtl-optimization/89242
31820 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31821 process a transformation.
31822
31823 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31824
31825 PR tree-optimization/89314
31826 * fold-const.c (fold_binary_loc): Cast strlen argument to
31827 const char * before dereferencing it. Formatting fixes.
31828
31829 PR middle-end/89284
31830 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31831
31832 2019-02-13 Ian Lance Taylor <iant@golang.org>
31833
31834 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31835 and set current index for other optimizations.
31836
31837 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31838
31839 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31840 nonimmediate_operand as operand 2 predicate.
31841 (vec_set<VF2_512_256:mode>_0): Ditto.
31842 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31843 (*vec_concatv2si): Remove alternative 2.
31844 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31845 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31846 (vec_concatv2di): Split alternatives 4,5,6 to ...
31847 (*vec_concatv2di_0) ... new pattern.
31848
31849 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31850
31851 PR target/89190
31852 * config/arm/arm.c (ldm_stm_operation_p) Set
31853 addr_reg_in_reglist correctly for first register.
31854 (load_multiple_sequence): Remove dead base check.
31855 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31856
31857 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31858
31859 PR target/88847
31860 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31861 Expose as @aarch64_pred_mov.
31862 * config/aarch64/aarch64.c (aarch64_classify_address):
31863 Use expand_insn which legitimizes operands.
31864
31865 2019-02-13 Martin Liska <mliska@suse.cz>
31866
31867 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31868 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31869 and pointer_offset fields.
31870 (initialize_argument_information): Remove usage of dead
31871 fields.
31872 * cgraph.h (struct cgraph_thunk_info): Remove
31873 add_pointer_bounds_args.
31874 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31875 fields.
31876 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31877 fields.
31878 * config/i386/i386.c (ix86_function_arg_advance): Remove
31879 unrelated comment.
31880 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31881 (def_builtin): Remove usage of dead fields.
31882 (ix86_add_new_builtins): Likewise.
31883 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31884 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31885 (sem_function::init): Likewise.
31886 (sem_variable::merge): Likewise.
31887 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31888 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31889 * lto-cgraph.c (lto_output_node): Likewise.
31890 (lto_output_varpool_node): Likewise.
31891 (input_node): Likewise.
31892 (input_varpool_node): Likewise.
31893 * lto-streamer-out.c (lto_output): Likewise.
31894 * tree-inline.c (expand_call_inline): Remove usage of
31895 assign_stmts.
31896 * tree-inline.h (struct copy_body_data): Likewise.
31897 * varpool.c (varpool_node::dump): Likewise.
31898
31899 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31900
31901 PR middle-end/89303
31902 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31903 into pt->vars_contains_escaped_heap instead of setting
31904 pt->vars_contains_escaped_heap to it.
31905
31906 PR middle-end/89281
31907 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31908 INTVAL (size), compare it to GET_MODE_MASK instead of
31909 1 << GET_MODE_BITSIZE.
31910
31911 PR target/89290
31912 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31913 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31914 -mcmodel=large.
31915
31916 2019-02-13 Martin Liska <mliska@suse.cz>
31917
31918 PR lto/88858
31919 * cfgrtl.c (remove_barriers_from_footer): New function.
31920 (try_redirect_by_replacing_jump): Use it.
31921 (cfg_layout_redirect_edge_and_branch): Likewise.
31922
31923 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31924
31925 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31926 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31927 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31928 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31929 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31930 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31931 New BU_CRYPTO_2.
31932 * config/rs6000/rs6000.c (builtin_function_type)
31933 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31934 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31935 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31936 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31937 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31938
31939 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31940
31941 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31942 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31943
31944 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31945
31946 PR target/89229
31947 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31948 268678 and revision 268657.
31949 (*movti_internal): Likewise.
31950
31951 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31952
31953 PR target/89233
31954 * config/s390/s390.c (s390_decompose_address): Update comment.
31955 (s390_check_qrst_address): Reject invalid address forms after
31956 LRA.
31957
31958 2019-02-12 Martin Liska <mliska@suse.cz>
31959
31960 PR lto/88876
31961 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31962 we need default values of funct_state for a function that
31963 is not optimized.
31964
31965 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31966
31967 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31968 the object to pick the size of stores on strict-alignment platforms.
31969
31970 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31971 (*movdi_insn_sp32): Likewise.
31972 (*movdi_insn_sp64): Likewise.
31973
31974 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31975
31976 PR lto/88677
31977 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31978 types that needs constructiong.
31979 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31980
31981 2019-02-12 Richard Biener <rguenther@suse.de>
31982
31983 PR tree-optimization/89253
31984 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31985 duplicate the loop.
31986
31987 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31988
31989 PR lto/88147
31990 * input.c (selftest::test_line_offset_overflow): New selftest.
31991 (selftest::input_c_tests): Call it.
31992
31993 2019-02-11 Martin Sebor <msebor@redhat.com>
31994
31995 PR tree-optimization/88771
31996 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31997 when -Wstringop-overflow is set.
31998 (builtin_memref::builtin_memref): Adjust excessive upper bound
31999 only when lower bound is not excessive.
32000 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32001 -Wstringop-ovefflow.
32002 (maybe_diag_offset_bounds): Rename...
32003 (maybe_diag_access_bounds): ...to this.
32004 (check_bounds_or_overlap): Adjust for name change above.
32005
32006 2019-02-11 Martin Sebor <msebor@redhat.com>
32007
32008 PR c++/87996
32009 * builtins.c (max_object_size): Move from here...
32010 * builtins.h (max_object_size): ...and here...
32011 * tree.c (max_object_size): ...to here...
32012 * tree.h (max_object_size): ...and here.
32013
32014 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32015
32016 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32017 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32018 for correct semantics.
32019
32020 2019-02-11 Alan Modra <amodra@gmail.com>
32021
32022 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32023 -mlongcall and -mpltseq.
32024 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32025 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32026 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32027 * config/rs6000/sysv4.opt (mpltseq): New option.
32028 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32029 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32030 support is lacking. Don't allow -mpltseq with -mbss-plt.
32031 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32032 -mpltseq given for ELFv1.
32033 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32034 Only use UNSPEC_PLTSEQ for inline PLT calls.
32035 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32036 use UNSPEC_PLTSEQ for inline PLT calls.
32037 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32038 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32039 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32040 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32041 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32042 (pltseq_mtctr_<mode>): Likewise.
32043
32044 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32045
32046 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32047 Solaris ld.
32048 * configure: Regenerate.
32049
32050 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32051
32052 PR bootstrap/88714
32053 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32054 instead of r.
32055
32056 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32057
32058 * function.c (assign_parm_setup_block): Use the stored
32059 size, not the passed size, when allocating stack-space,
32060 also for a parameter with alignment larger than
32061 MAX_SUPPORTED_STACK_ALIGNMENT.
32062
32063 2019-02-11 Martin Liska <mliska@suse.cz>
32064
32065 PR ipa/89009
32066 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32067 * ipa-inline.c (inline_small_functions): Likewise.
32068 * ipa-pure-const.c (propagate_pure_const): Likewise.
32069 (propagate_nothrow): Likewise.
32070 * ipa-reference.c (propagate): Likewise.
32071 * ipa-utils.c (struct searchc_env): Remove unused field.
32072 (searchc): Always search across AVAIL_INTERPOSABLE.
32073 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32074 the only called IPA pure const can properly not propagate
32075 across interposable boundary.
32076 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32077
32078 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32079
32080 * config/nds32/nds32.md (call_internal, call_value_internal,
32081 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32082
32083 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32084
32085 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32086 typo.
32087
32088 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32089
32090 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32091 in comments
32092
32093 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32094
32095 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32096
32097 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32098
32099 PR tree-optimization/89268
32100 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32101 if preds is non-NULL.
32102
32103 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32104
32105 PR lto/89272
32106 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32107 polymorphic types.
32108
32109 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32110
32111 * config/nds32/nds32.md (trap): New pattern.
32112
32113 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32114
32115 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32116 dwarf span.
32117
32118 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32119
32120 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32121 to split POST_INC.
32122
32123 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32124
32125 * ipa-visibility.c (localize_node): Also do not localize
32126 LDPR_PREVAILING_DEF_IRONLY_EXP.
32127
32128 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32129
32130 PR lto/87957
32131 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32132 instead of type_with_linkage.
32133
32134 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32135
32136 PR ipa/88755
32137 * params.def (uninlined-function-insns, uninlined-function-time,
32138 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32139 bound so we don't get overflows.
32140
32141 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32142
32143 * config/rs6000/rs6000-string.c (expand_compare_loop,
32144 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32145 memcmp/strncmp.
32146
32147 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32148
32149 PR middle-end/89246
32150 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32151 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32152 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32153
32154 2019-02-09 Alan Modra <amodra@gmail.com>
32155
32156 PR target/88343
32157 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32158 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32159 setup.
32160
32161 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32162
32163 PR middle-end/88560
32164 * lra-constraints.c (process_alt_operands): Don't increase reject
32165 for memory when offset memory is required.
32166
32167 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32168
32169 * config/s390/vector.md: Implement vector copysign.
32170
32171 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32172
32173 * expr.c (expand_constructor): Correct indentations.
32174
32175 2019-02-08 Richard Biener <rguenther@suse.de>
32176
32177 PR tree-optimization/89247
32178 * tree-if-conv.c: Include tree-cfgcleanup.h.
32179 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32180 (tree_if_conversion): Pass through predicate vector.
32181 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32182 inline, see if any if-converted loops we refrece in
32183 LOOP_VECTORIZED calls vanished and fixup.
32184 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32185
32186 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32187
32188 * config/s390/constraints.md (jdd): New constraint.
32189
32190 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32191
32192 PR target/89229
32193 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32194 upper 16 vector registers without TARGET_AVX512VL.
32195 (*movti_internal): Likewise.
32196
32197 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32198
32199 PR rtl-optimization/89234
32200 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32201 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32202 (copy_reg_eh_region_note_backward): Likewise.
32203
32204 2019-02-08 Richard Biener <rguenther@suse.de>
32205
32206 PR middle-end/89223
32207 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32208 doesn't fit in HWI.
32209 (analyze_subscript_affine_affine): Handle failure from
32210 initialize_matrix_A.
32211
32212 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32213
32214 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32215 cfun everywhere.
32216
32217 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32218
32219 PR tree-optimization/86637
32220 PR tree-optimization/89235
32221 * tree-vect-loop.c (optimize_mask_stores): Add an
32222 auto_purge_vect_location sentinel to ensure that vect_location is
32223 purged on exit.
32224 * tree-vectorizer.c
32225 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32226 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32227 to ensure that vect_location is purged on exit.
32228 (pass_slp_vectorize::execute): Likewise, replacing the manual
32229 reset.
32230 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32231
32232 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32233
32234 * config/aarch64/iterators.md (max_opp): New code_attr.
32235 (USMAX): New code iterator.
32236 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32237 (aarch64_smax): Likewise.
32238 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32239 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32240 MINUS (MAX MIN).
32241
32242 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32243
32244 PR target/89229
32245 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32246 for TARGET_AVX512VL.
32247 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32248
32249 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32250
32251 * config/s390/s390-builtin-types.def: Add new types.
32252 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32253 (s390_vec_xlw4): Make the memory operand into a const pointer.
32254 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32255 float.
32256 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32257 a new vector type with the alignment of the scalar memory operand.
32258
32259 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32260 Jakub Jelinek <jakub@redhat.com>
32261
32262 PR bootstrap/88714
32263 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32264 arm_count_ldrdstrd_insns): New declarations.
32265 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32266 MINUS.
32267 (valid_operands_ldrd_strd): New function.
32268 (arm_count_ldrdstrd_insns): New function.
32269 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32270 sets instead of single DImode set and define new insns to match this.
32271
32272 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32273
32274 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32275 Make it a C initializer.
32276
32277 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32278
32279 PR/target 88850
32280 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32281
32282 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32283
32284 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32285 Use neon_dot<q> for type.
32286 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32287
32288 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32289
32290 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32291 Use neon_dot<q> for type.
32292 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32293 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32294
32295 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32296
32297 PR rtl-optimization/89225
32298 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32299 sizes check.
32300
32301 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32302
32303 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32304 after restoring registers saved to allocate the frame on Windows.
32305
32306 2019-02-06 Richard Biener <rguenther@suse.de>
32307
32308 PR tree-optimization/89182
32309 * graphite.h (cached_scalar_evolution_in_region): Declare.
32310 * graphite.c (struct seir_cache_key): New.
32311 (struct sese_scev_hash): Likewise.
32312 (seir_cache): New global.
32313 (cached_scalar_evolution_in_region): New function.
32314 (graphite_transform_loops): Allocate and release seir_cache.
32315 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32316 cached_scalar_evolution_in_region.
32317 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32318 Simplify.
32319 (scop_detection::graphite_can_represent_expr: Use
32320 cached_scalar_evolution_in_region.
32321 (scop_detection::stmt_simple_for_scop_p): Likewise.
32322 (find_params_in_bb): Likewise.
32323 (gather_bbs::before_dom_children): Likewise.
32324 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32325 (add_loop_constraints): Likewise.
32326
32327 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32328
32329 PR middle-end/89210
32330 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32331 operand to new_unary_operation only if both element types are integral
32332 and it isn't a widening conversion. Return NULL_TREE if
32333 new_unary_operation failed.
32334
32335 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32336
32337 PR target/88856
32338 * config/s390/s390.md: Remove load and test FP splitter.
32339
32340 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32341
32342 PR target/89112
32343 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32344 expand_compare_loop, expand_block_compare_gpr,
32345 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32346 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32347 #include "profile-count.h" and "predict.h" for types and functions
32348 needed to work with REG_BR_PROB notes.
32349
32350 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32351
32352 PR target/89112
32353 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32354 for the long branch case.
32355
32356 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32357
32358 PR target/89188
32359 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32360 can throw, non-call exceptions are enabled and we can't delete
32361 dead exceptions or alter cfg. Set must_clean if
32362 delete_insn_and_edges returns true, don't set it blindly for calls.
32363 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32364
32365 PR rtl-optimization/89195
32366 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32367 of the original MEM.
32368
32369 2019-02-05 Martin Liska <mliska@suse.cz>
32370
32371 PR gcov-profile/89000
32372 * gcov.c (function_summary): Remove argument.
32373 (file_summary): New function.
32374 (print_usage): Replace tabs with spaces.
32375 (generate_results): Use new function file_summary.
32376
32377 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32378
32379 PR target/89186
32380 * optabs.c (prepare_cmp_insn): Pass x and y to
32381 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32382
32383 2019-02-05 Richard Biener <rguenther@suse.de>
32384
32385 PR middle-end/89150
32386 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32387 (struct bitmap_element): Drop chain_prev so we properly recurse on
32388 the prev member, supporting tree views.
32389 (struct bitmap_head): GTY skip the obstack member.
32390
32391 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32392
32393 PR c/88698
32394 * doc/extend.texi (Vector Extensions): Add an example of using vector
32395 types together with x86 intrinsics.
32396
32397 2019-02-04 Alan Modra <amodra@gmail.com>
32398
32399 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32400 str[] size to 160, and comment.
32401
32402 2019-02-04 Alan Modra <amodra@gmail.com>
32403
32404 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32405 (rs6000_pltseq_template): Guard output of TLS markers with
32406 TARGET_TLS_MARKERS.
32407 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32408 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32409 to use inline PLT sequences.
32410 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32411 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32412 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32413
32414 2019-02-04 Martin Liska <mliska@suse.cz>
32415
32416 PR ipa/88985
32417 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32418 out when ipa_fn_summaries does not contain entry for callee.
32419
32420 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32421
32422 * config/sparc/sparc.h: Remove superfluous blank lines.
32423 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32424 (got_register_rtx): ...this.
32425 (sparc_got): Adjust to above renaming.
32426 (sparc_tls_got): Likewise.
32427 (sparc_delegitimize_address): Likewise.
32428 (sparc_output_mi_thunk): Likewise.
32429 (sparc_init_pic_reg): Likewise.
32430 (save_local_or_in_reg_p): Fix test on the GOT register.
32431 (USE_HIDDEN_LINKONCE): Move around.
32432 (get_pc_thunk_name): Likewise.
32433 (gen_load_pcrel_sym): Likewise.
32434 (load_got_register): Likewise.
32435
32436 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32437
32438 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32439 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32440
32441 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32442
32443 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32444 into consideration.
32445
32446 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32447
32448 * config.gcc (with_nds32_lib, glibc):
32449 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32450 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32451 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32452
32453 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32454
32455 PR target/89071
32456 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32457 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32458 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32459 (*rcpsf2_sse): Ditto.
32460 (*rsqrtsf2_sse): Ditto.
32461 (sse4_1_round<mode<2): Ditto.
32462
32463 2019-02-03 Richard Biener <rguenther@suse.de>
32464
32465 PR debug/87295
32466 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32467 orig.
32468
32469 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32470
32471 PR middle-end/87887
32472 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32473 Punt with warning on aggregate return or argument types. Ignore
32474 type/mode checking for uniform arguments.
32475
32476 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32477
32478 * combine.c (try_combine): Do not print "Can't combine" messages unless
32479 printing failed combination attempts.
32480
32481 2019-02-01 Martin Jambor <mjambor@suse.cz>
32482
32483 PR hsa/87863
32484 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32485 segment and global segment variables before making them static.
32486
32487 2019-02-01 Martin Jambor <mjambor@suse.cz>
32488
32489 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32490 missed optimization dump with dump_enabled_p.
32491
32492 2019-02-01 Richard Biener <rguenther@suse.de>
32493
32494 PR middle-end/88597
32495 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32496 the instantiate cache.
32497 (instantiate_scev_binary): Elide second operand procesing
32498 if equal to the first.
32499 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32500 (chrec_contains_undetermined): Likewise.
32501 (tree_contains_chrecs): Likewise.
32502
32503 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32504
32505 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32506
32507 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32508
32509 PR tree-optimization/89143
32510 * wide-int-range.h (wide_int_range_absu): Declare.
32511 * wide-int-range.cc (wide_int_range_absu): New function.
32512 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32513
32514 PR tree-optimization/88107
32515 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32516 instead of assertion that eh_region_outermost is non-NULL, if it
32517 is NULL, set *ALL to true and return NULL.
32518 (move_sese_region_to_fn): Adjust caller, if all is set, call
32519 duplicate_eh_regions with NULL region.
32520
32521 2019-02-01 Richard Biener <rguenth@suse.de>
32522
32523 PR rtl-optimization/88593
32524 * mode-switching.c (optimize_mode_switching): Free dominators before
32525 calling cleanup_cfg.
32526
32527 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32528
32529 PR tree-optimization/88932
32530 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32531
32532 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32533
32534 PR middle-end/89137
32535 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32536 bogus clang warning.
32537
32538 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32539
32540 PR target/89071
32541 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32542 alternative to avoid partial SSE register stall for TARGET_AVX.
32543 (truncdfsf2): Ditto.
32544 (sse4_1_round<mode>2): Ditto.
32545
32546 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32547
32548 PR tree-optimization/89008
32549 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32550 process anything of the form X * 0.
32551
32552 2019-01-31 Richard Biener <rguenther@suse.de>
32553
32554 PR tree-optimization/89135
32555 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32556 with abnormal preds.
32557
32558 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32559
32560 PR sanitizer/89124
32561 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32562 always_inline callees into no_sanitize_address callers.
32563
32564 2019-01-31 Richard Biener <rguenther@suse.de>
32565
32566 PR rtl-optimization/89115
32567 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32568
32569 2019-01-30 Martin Sebor <msebor@redhat.com>
32570
32571 PR other/89106
32572 * doc/extend.texi (cast to a union): Correct and expand.
32573
32574 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32575
32576 PR rtl-optimization/87246
32577 * lra-constraints.c (simplify_operand_subreg): Reload memory
32578 in subreg if the address became invalid.
32579
32580 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32581
32582 PR target/87064
32583 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32584 Disable for little-endian.
32585
32586 2019-01-30 Richard Biener <rguenther@suse.de>
32587
32588 PR rtl-optimization/89115
32589 * opts.c (default_options_optimization): Reduce
32590 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32591 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32592 to the default.
32593
32594 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32595
32596 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32597 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32598 type of vector element when vec_extract is implemented by direct
32599 move.
32600
32601 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32602
32603 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32604
32605 2019-01-30 Richard Biener <rguenther@suse.de>
32606
32607 PR tree-optimization/89111
32608 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32609 canonicalization to appropriately sized access types.
32610
32611 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32612
32613 PR c++/89105
32614 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32615 for arguments to functions that are TU-local and shouldn't be
32616 referenced by assembly.
32617
32618 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32619
32620 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32621 after '='.
32622
32623 2019-01-29 Martin Sebor <msebor@redhat.com>
32624
32625 PR c/88956
32626 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32627
32628 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32629
32630 PR c++/66676
32631 PR ipa/89104
32632 * omp-simd-clone.c (simd_clone_clauses_extract)
32633 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32634 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32635
32636 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32637
32638 * config.gcc: Force .init_array for ARC.
32639
32640 2019-01-29 Richard Biener <rguenther@suse.de>
32641
32642 PR debug/87295
32643 * dwarf2out.c (collect_skeleton_dies): New helper.
32644 (copy_decls_for_unworthy_types): Call it.
32645 (build_abbrev_table): Assert we do not try to replace
32646 DW_AT_signature refs with local refs.
32647
32648 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32649
32650 PR middle-end/89002
32651 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32652 for lastprivate/linear IV, push gimplify context around gimplify_assign
32653 and, if it needed any temporaries, pop it into a gimple bind around the
32654 sequence.
32655
32656 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32657
32658 * common.opt (-Wattribute-alias): Remove "no-" from name.
32659 Make -Wattribute-alias command line option and
32660 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32661
32662 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32663
32664 PR target/89073
32665 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32666 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32667 x86 ISA options.
32668 (bmi2): Add missing @opindex.
32669 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32670 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32671 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32672 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32673 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32674 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32675 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32676 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32677 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32678 xsavec, xsaveopt and xsaves options.
32679
32680 2019-01-28 Richard Biener <rguenther@suse.de>
32681
32682 PR debug/89076
32683 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32684 support removal.
32685
32686 2019-01-28 Richard Biener <rguenther@suse.de>
32687
32688 PR tree-optimization/88739
32689 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32690 BIT_FIELD_REFs only are applied to mode-precision operands
32691 when they are integral.
32692 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32693 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32694 BIT_FIELD_REFs of non-mode-precision integral operands.
32695
32696 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32697
32698 PR target/87214
32699 * config/i386/sse.md
32700 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32701 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32702 first constants in pairs are multiples of 2. Formatting fixes.
32703 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32704 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32705 first constants in each quadruple are multiples of 4. Formatting fixes.
32706
32707 2019-01-26 Martin Jambor <mjambor@suse.cz>
32708
32709 PR ipa/88933
32710 * tree-inline.c: Include tree-cfgcleanup.h.
32711 (delete_unreachable_blocks_update_callgraph): Move...
32712 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32713 ...here, make externally visible, make second argument bool, adjust
32714 all callers.
32715 * tree-cfgcleanup.c: Include cgraph.h.
32716 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32717 Declare.
32718 * ipa-prop.c: Include tree-cfgcleanup.h.
32719 (ipcp_transform_function): Call
32720 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32721
32722 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32723
32724 PR rtl-optimization/88846
32725 * ira.c (process_set_for_memref_referenced_p): New.
32726 (memref_referenced_p): Add new param. Use
32727 process_set_for_memref_referenced_p. Add new switch cases.
32728 (memref_used_between_p): Pass new arg to memref_referenced_p.
32729
32730 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32731
32732 PR target/88469
32733 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32734 argument ABI_BREAK. Set to true if the calculated alignment has
32735 changed in gcc-9. Check bit-fields for their base type alignment.
32736 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32737 (aarch64_function_arg_boundary): Likewise.
32738 (aarch64_gimplify_va_arg_expr): Likewise.
32739
32740 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32741
32742 PR middle-end/89037
32743 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32744 instead of accessing TREE_INT_CST_ELT directly.
32745
32746 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32747
32748 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32749 fenv_exceptions description.
32750
32751 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32752
32753 PR rtl-optimization/87763
32754 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32755 Allow SUBREG when matching CC_NZmode compare.
32756
32757 2019-01-25 Richard Biener <rguenther@suse.de>
32758
32759 PR tree-optimization/89049
32760 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32761 Look at the pattern stmt to determine if the stmt is vectorized.
32762
32763 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32764
32765 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32766 (pred_mov<mode>): Handle all-register forms using both a new
32767 alternative and a split.
32768
32769 2019-01-25 Richard Biener <rguenther@suse.de>
32770
32771 PR tree-optimization/86865
32772 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32773 Reject non-do-while loops.
32774
32775 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32776
32777 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32778 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32779 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32780 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32781 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32782 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32783 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32784 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32785 vlogical_operand, gpc_reg_operand, int_reg_operand,
32786 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32787 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32788 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32789 (save_world_operation, restore_world_operation, lmw_operation,
32790 stmw_operation): Use MEM_P and REG_P.
32791 (tie_operand): Use MEM_P.
32792 (vrsave_operation, crsave_operation): Use REG_P.
32793 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32794 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32795 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32796 (call_operand): Use HARD_REGISTER_P.
32797 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32798 Use CONST_INT_P.
32799 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32800 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32801 quad_aligned_load_p, replace_swapped_aligned_store,
32802 recombine_lvx_pattern, replace_swapped_aligned_load,
32803 recombine_stvx_pattern): Use MEM_P.
32804 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32805 Use MEM_P and SYMBOL_REF_P.
32806 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32807 (insn_is_swappable_p): Use REG_P and MEM_P.
32808 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32809 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32810 Use CONST_INT_P.
32811 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32812 Use CONST_DOUBLE_P.
32813 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32814 CONST_WIDE_INT_P.
32815 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32816 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32817 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32818 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32819 reg_or_subregno:
32820 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32821 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32822 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32823 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32824 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32825 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32826 rs6000_split_logical_di): Use CONST_INT_P.
32827 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32828 REG_P and SYMBOL_REF_P.
32829 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32830 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32831 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32832 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32833 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32834 (small_data_operand, print_operand_address): Use CONST_INT_P and
32835 SYMBOL_REF_P.
32836 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32837 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32838 Use HARD_REGISTER_NUM_P.
32839 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32840 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32841 SUBREG_P and SYMBOL_REF_P.
32842 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32843 and HARD_REGISTER_NUM_P.
32844 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32845 reg_or_subregno.
32846 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32847 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32848 MEM_P and REG_P.
32849 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32850 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32851 find_addr_reg): Use REG_P.
32852 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32853 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32854 (offsettable_ok_by_alignment, constant_pool_expr_p,
32855 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32856 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32857 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32858 rs6000_assemble_integer, create_TOC_reference,
32859 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32860 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32861 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32862 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32863 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32864 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32865 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32866 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32867 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32868 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32869 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32870 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32871 and cbranch<mode>4): Use CONST_INT_P.
32872 (multiple define_splits): Use REG_P and SUBREG_P.
32873 (define_expands call, call_value): Use MEM_P.
32874 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32875 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32876 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32877 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32878 and HARD_REGISTER_NUM_P.
32879 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32880
32881 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32882
32883 PR rtl-optimization/88948
32884 * rtl.h (prepare_copy_insn): New prototype.
32885 * gcse.c (prepare_copy_insn): New function, split out from
32886 process_insert_insn.
32887 (process_insert_insn): Use prepare_copy_insn.
32888 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32889 instead of gen_move_insn.
32890
32891 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32892
32893 PR debug/89006
32894 * config/i386/i386.c (ix86_pic_register_p): Return true for
32895 UNSPEC_SET_GOT too.
32896
32897 PR tree-optimization/88964
32898 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32899 punt if HONOR_SNANS (chrec).
32900
32901 PR middle-end/89015
32902 * tree-nested.c (convert_nonlocal_reference_stmt,
32903 convert_local_reference_stmt, convert_tramp_reference_stmt,
32904 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32905 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32906 or GIMPLE_OMP_TASK.
32907
32908 PR tree-optimization/89027
32909 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32910 for "omp simd array" variables.
32911
32912 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32913
32914 PR target/88469
32915 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32916 force the alignment of m_val.
32917
32918 2019-01-24 Richard Biener <rguenther@suse.de>
32919
32920 PR lto/87187
32921 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32922 When in "legacy" debug mode make sure to reset self-origins.
32923
32924 2019-01-24 Martin Liska <mliska@suse.cz>
32925
32926 PR gcov-profile/88994
32927 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32928 result will be always smaller or equal to the original.
32929 * gcov.c (mangle_name): Fix else branch where we should
32930 also copy to PTR and shift the pointer.
32931
32932 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32933
32934 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32935 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32936
32937 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32938
32939 * common/config/i386/i386-common.c
32940 (OPTION_MASK_ISA_ENQCMD_SET,
32941 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32942 (ix86_handle_option): Handle -menqcmd.
32943 * config.gcc (enqcmdintrin.h): New header file.
32944 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32945 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32946 -menqcmd.
32947 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32948 function type.
32949 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32950 __builtin_ia32_enqcmds): New builtins.
32951 * config/i386/i386-c.c (__ENQCMD__): New macro.
32952 * config/i386/i386-option.c (ix86_target_string): Add
32953 -menqcmd.
32954 (ix86_valid_target_attribute_inner_p): Likewise.
32955 * config/i386/i386-expand.c
32956 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32957 IX86_BUILTIN_ENQCMDS.
32958 * config/i386/i386.h (TARGET_ENQCMD): New.
32959 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32960 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32961 (movdir64b_<mode>): Parameterize to enable share expansion code
32962 with ENQCMD in function ix86_expand_builtin.
32963 * config/i386/i386.opt: Add -menqcmd.
32964 * config/i386/immintrin.h: Include enqcmdintrin.h.
32965 * config/i386/enqcmdintrin.h: New intrinsic file.
32966 * doc/invoke.texi: Add -menqcmd.
32967
32968 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32969 Steve Ellcey <sellcey@marvell.com>
32970
32971 PR target/85711
32972 * recog.c (address_operand): Return false on wrong mode for address.
32973 (constrain_operands): Check for mode with 'p' constraint.
32974
32975 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32976
32977 PR target/88998
32978 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32979 Disparage MMX alternative.
32980 (sse2_cvtpd2pi): Ditto.
32981 (sse2_cvttpd2pi): Ditto.
32982
32983 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32984
32985 PR driver/89014
32986 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32987 use-after-free of the result of
32988 aarch64_get_extension_string_for_isa_flags.
32989
32990 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32991
32992 PR c/44715
32993 * doc/extend.texi: Document break and continue behavior in
32994 statement expressions.
32995
32996 2019-01-23 Richard Biener <rguenther@suse.de>
32997
32998 PR tree-optimization/89008
32999 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33000 not leave another stray operand.
33001
33002 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33003
33004 * BASE-VER: Bump to 9.0.1.
33005
33006 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33007
33008 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33009 thunk that returns by reference, use the type of the return object
33010 of the thunk instead of that of the alias to build the dereference.
33011
33012 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33013
33014 * config/arc/atomic.md: Add operand to DMB instruction.
33015
33016 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33017
33018 PR tree-optimization/88964
33019 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33020 build_zero_cst instead of build_int_cst. Return false for loop
33021 invariants which honor signed zeros.
33022
33023 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33024
33025 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33026
33027 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33028
33029 PR target/88965
33030 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33031 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33032 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33033
33034 PR middle-end/88968
33035 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33036 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33037
33038 PR target/87064
33039 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33040 Disable for little endian.
33041
33042 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33043
33044 PR target/88469
33045 * config/arm/arm.c (arm_needs_double_word_align): Check
33046 DECL_BIT_FIELD_TYPE.
33047
33048 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33049 H.J. Lu <hongjiu.lu@intel.com>
33050
33051 PR target/88909
33052 * config/i386/i386-builtin.def: Add mask2 to all builtin
33053 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33054 SPECIAL_ARGS.
33055 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33056 (BDESC_FIRST): Likewise.
33057 (define_builtin): Add an argument for mask2. Updated to handle
33058 both ix86_isa_flags and ix86_isa_flags2.
33059 (define_builtin_const): Likewise.
33060 (define_builtin_pure): Likewise.
33061 (define_builtin2): Deleted.
33062 (define_builtin_const2): Likewise.
33063 (builtin_description): Add a member, mask2.
33064 (bdesc_*): Add mask2 to builtin initializations.
33065 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33066 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33067 support.
33068 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33069
33070 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33071
33072 PR target/88954
33073 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33074 noplt attribute.
33075
33076 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33077
33078 PR target/88469
33079 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33080 alignment is dominated by a bitfield with 64-bit aligned base type.
33081 (arm_function_arg): Emit a warning if the alignment has changed since
33082 earlier GCC releases.
33083 (arm_function_arg_boundary): Likewise.
33084 (arm_setup_incoming_varargs): Likewise.
33085
33086 2019-01-22 Richard Biener <rguenther@suse.de>
33087
33088 PR tree-optimization/88862
33089 * graphite-scop-detection.c
33090 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33091
33092 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33093
33094 * doc/extend.tex (AMD GCN Function Attributes): New section.
33095 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33096 * doc/invoke.texi (AMD GCN Options): New section.
33097 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33098
33099 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33100
33101 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33102 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33103
33104 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33105
33106 PR tree-optimization/88044
33107 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33108 is false in the first iteration, but !every_iteration, return false
33109 instead of true with niter->niter zero.
33110
33111 PR rtl-optimization/88904
33112 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33113 any nonequal registers before processing BB_END (b).
33114
33115 PR target/88905
33116 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33117 GET_MODE (op0).
33118 (expand_binop_directly, expand_doubleword_clz,
33119 expand_doubleword_popcount, expand_ctz, expand_ffs,
33120 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33121
33122 PR rtl-optimization/49429
33123 PR target/49454
33124 PR rtl-optimization/86334
33125 PR target/88906
33126 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33127 addressable from here...
33128 (emit_block_op_via_libcall): ... to here.
33129
33130 2019-01-22 Richard Biener <rguenther@suse.de>
33131
33132 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33133 auto_vec for cost vector to fix memleak.
33134 (vectorize_fold_left_reduction): Properly gather SLP defs.
33135 (vectorizable_comparison): Do not swap operands to properly
33136 gather SLP defs.
33137
33138 2019-01-22 Alan Modra <amodra@gmail.com>
33139
33140 PR target/88614
33141 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33142 stays a reg. Allow a const_int.
33143 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33144 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33145 (IS_NOMARK_TLSGETADDR): Define.
33146 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33147 (rs6000_output_tlsargs): New function.
33148 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33149 __tls_get_addr call takes an arg.
33150 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33151 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33152 delete split..
33153 (call_value_nonlocal_sysv): ..or here, delete split.
33154 (tls_gdld_nomark): Delete.
33155 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33156 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33157 (call_value_nonlocal_sysv): Likewise.
33158 (call_value_nonlocal_sysv_secure): Likewise.
33159 (call_value_nonlocal_aix): Likewise.
33160 (call_value_indirect_aix): Likewise.
33161 (call_value_indirect_elfv2): Likewise.
33162 (call_value_local32, call_value_local64): Disable for no-mark tls.
33163 (call_value_local_aix): Likewise.
33164
33165 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33166
33167 PR target/88938
33168 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33169 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33170
33171 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33172
33173 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33174 string contents as hash_map keys.
33175
33176 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33177
33178 PR c/88928
33179 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33180 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33181 instead of TYPE_ALIGN.
33182 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33183 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33184 pointer from TYPE_STUB_DECL.
33185
33186 2019-01-21 Richard Biener <rguenther@suse.de>
33187
33188 PR tree-optimization/88934
33189 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33190 at the possibly non-constant operand.
33191 (vect_get_constant_vectors): Adjust.
33192
33193 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33194
33195 PR target/71659
33196 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33197 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33198 instead of _X86INTRIN_H_INCLUDED.
33199 * onfig/i386/clwbintrin.h: Likewise.
33200 * config/i386/pkuintrin.h: Likewise.
33201 * config/i386/prfchwintrin.h: Likewise.
33202 * config/i386/rdseedintrin.h: Likewise.
33203 * config/i386/wbnoinvdintrin.h: Likewise.
33204 * config/i386/xsavecintrin.h: Likewise.
33205 * config/i386/xsavesintrin.h: Likewise.
33206 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33207 * config/i386/xsaveintrin.h: Likewise.
33208 * config/i386/xsaveoptintrin.h: Likewise.
33209 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33210 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33211 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33212 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33213 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33214 * config/i386/immintrin.h: Here.
33215
33216 2019-01-20 Martin Jambor <mjambor@suse.cz>
33217
33218 PR ipa/87615
33219 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33220 with aa_walk_budget.
33221 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33222 aa_walk_budget_p parameter.
33223 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33224 walk. Updated all callers.
33225 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33226 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33227 unmodified_parm.
33228 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33229 parameter info. Extract info from fbi. Pass fbi to recursive calls
33230 and to unmodified_parm.
33231 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33232 info, updated call to will_be_nonconstant_expr_predicate.
33233 (param_change_prob): New parameter fbi, limit AA walking.
33234 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33235 calls to various above functions.
33236 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33237 parameter. Use it to limit AA walking.
33238 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33239 fbi, limit AA walk.
33240 (detect_type_change): New parameter fbi, pass it on to
33241 detect_type_change_from_memory_writes.
33242 (detect_type_change_ssa): Likewise.
33243 (aa_overwalked): Removed.
33244 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33245 accordingly, adjust to the neew AA limiting scheme.
33246 (parm_ref_data_preserved_p): Likewise.
33247 (ipa_compute_jump_functions_for_edge): Adjust call to
33248 get_dynamic_type.
33249 (ipa_analyze_call_uses): Likewise.
33250 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33251 (ipa_analyze_node): Initialize aa_walk_budget.
33252 (ipcp_transform_function): Likewise.
33253 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33254 to get_dynamic_type.
33255
33256 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33257
33258 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33259 outside of #if CHECKING_P code.
33260
33261 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33262
33263 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33264 New function, split out from...
33265 (loop_versioning::analyze_stride): ...here.
33266 (loop_versioning::find_per_loop_multiplication): Use gassign.
33267 (loop_versioning::analyze_term_using_scevs): Return a success code.
33268 (loop_versioning::analyze_arbitrary_term): New function.
33269 (loop_versioning::analyze_address_fragment): Use
33270 analyze_arbitrary_term if all else fails.
33271
33272 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33273
33274 PR target/88892
33275 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33276 operands.
33277
33278 2019-01-18 Richard Biener <rguenther@suse.de>
33279
33280 PR tree-optimization/88903
33281 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33282 scalar stmts a SLP shift amount is composed of when detecting
33283 shifts by scalars.
33284
33285 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33286
33287 PR target/88799
33288 * config/arm/arm-cpus.in (mp): New feature.
33289 (sec): New feature.
33290 (fgroup ARMv7ve): Add mp and sec features.
33291 (arch armv7-a): Add options to allow mp and sec extensions.
33292 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33293 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33294 extenstions to the base architecture.
33295 (cpu cortex-a8): Add sec extension to the base architecture.
33296 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33297 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33298 variants down to the base v7-a varaint.
33299 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33300 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33301 of permitted extensions for -march=armv7-a and for
33302 -mcpu=generic-armv7-a.
33303
33304 2019-01-18 Martin Liska <mliska@suse.cz>
33305
33306 * params.def: Fix comment.
33307 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33308 name.
33309 (gimple_gen_ic_func_profiler): Likewise.
33310
33311 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33312
33313 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33314 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33315 and put in error checks for stack protector guard options.
33316 (aarch64_stack_protect_guard): New.
33317 (TARGET_STACK_PROTECT_GUARD): Define.
33318 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33319 (reg_stack_protect_address<mode>): New.
33320 (stack_protect_set): Adjust for SSP_GLOBAL.
33321 (stack_protect_test): Likewise.
33322 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33323 (-mstack-protector-guard): Likewise.
33324 (-mstack-protector-guard-offset): Likewise.
33325
33326 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33327
33328 PR tree-optimization/86214
33329 * tree-inline.h (struct copy_body_data): Add
33330 add_clobbers_to_eh_landing_pads member.
33331 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33332 (copy_edges_for_bb): Call it if EH edge destination is <
33333 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33334 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33335 if flag_stack_reuse != SR_NONE and clear it afterwards.
33336
33337 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33338
33339 PR target/85596
33340 * doc/install.texi (with-multilib-list): Document for aarch64.
33341
33342 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33343
33344 PR target/88734
33345 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33346 (("..."))) with ("...").
33347
33348 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33349
33350 * doc/extend.texi (Built-in Functions for Memory Model Aware
33351 Atomic Operations): Document atomic fetch and nand.
33352
33353 2019-01-18 Martin Liska <mliska@suse.cz>
33354 Richard Biener <rguenther@suse.de>
33355
33356 PR middle-end/88587
33357 * cgraph.h (create_version_clone_with_body): Add new argument
33358 with attributes.
33359 * cgraphclones.c (cgraph_node::create_version_clone): Add
33360 DECL_ATTRIBUTES to a newly created decl. And call
33361 valid_attribute_p so that proper cl_target_optimization_node
33362 is set for the newly created declaration.
33363 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33364 for declaration.
33365 (expand_target_clones): Do not call valid_attribute_p, it must
33366 be already done.
33367 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33368 vector types.
33369
33370 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33371
33372 PR target/88734
33373 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33374 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33375 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33376
33377 2019-01-17 Martin Sebor <msebor@redhat.com>
33378
33379 PR middle-end/88273
33380 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33381 Handle anti-ranges the same as no range at all.
33382
33383 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33384
33385 * config/aarch64/aarch64.c (cgraph.h): New include.
33386 (intl.h): New include.
33387 (supported_simd_type): New function.
33388 (currently_supported_simd_type): Ditto.
33389 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33390 (aarch64_simd_clone_adjust): Ditto.
33391 (aarch64_simd_clone_usable): Ditto.
33392 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33393 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33394 (TARGET_SIMD_CLONE_USABLE): Ditto.
33395 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33396 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33397 call.
33398
33399 2019-01-17 Martin Sebor <msebor@redhat.com>
33400
33401 PR tree-optimization/88800
33402 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33403 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33404 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33405 redundant argument. Add new argument and issue diagnostics under
33406 its control. Detect out-of-bounds access even with warnings
33407 disabled.
33408 (check_bounds_or_overlap): Change return type. Add argument.
33409 (wrestrict_dom_walker::check_call): Adjust.
33410 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33411 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33412 check_bounds_or_overlap's return value.
33413 (handle_builtin_stxncpy): Same.
33414 (handle_builtin_strcat): Same.
33415
33416 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33417 Kwok Cheung Yeung <kcy@codesourcery.com>
33418 Julian Brown <julian@codesourcery.com>
33419 Tom de Vries <tom@codesourcery.com>
33420
33421 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33422
33423 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33424
33425 * doc/sourcebuild.texi: Document dg-require-effective-target
33426 llvm_binutils and offload_gcn.
33427
33428 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33429 Kwok Cheung Yeung <kcy@codesourcery.com>
33430 Julian Brown <julian@codesourcery.com>
33431 Tom de Vries <tom@codesourcery.com>
33432
33433 * doc/sourcebuild.texi: Document dg-required-effective-target
33434 exceptions.
33435
33436 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33437 Kwok Cheung Yeung <kcy@codesourcery.com>
33438 Julian Brown <julian@codesourcery.com>
33439 Tom de Vries <tom@codesourcery.com>
33440 Jan Hubicka <hubicka@ucw.cz>
33441 Martin Jambor <mjambor@suse.cz>
33442
33443 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33444 * configure.ac: Check for dlopen.
33445 * configure: Regenerate.
33446
33447 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33448 Kwok Cheung Yeung <kcy@codesourcery.com>
33449 Julian Brown <julian@codesourcery.com>
33450 Tom de Vries <tom@codesourcery.com>
33451 Jan Hubicka <hubicka@ucw.cz>
33452 Martin Jambor <mjambor@suse.cz>
33453
33454 * common/config/gcn/gcn-common.c: New file.
33455 * config/gcn/driver-gcn.c: New file.
33456 * config/gcn/gcn-builtins.def: New file.
33457 * config/gcn/gcn-hsa.h: New file.
33458 * config/gcn/gcn-modes.def: New file.
33459 * config/gcn/gcn-opts.h: New file.
33460 * config/gcn/gcn-passes.def: New file.
33461 * config/gcn/gcn-protos.h: New file.
33462 * config/gcn/gcn-run.c: New file.
33463 * config/gcn/gcn-tree.c: New file.
33464 * config/gcn/gcn.c: New file.
33465 * config/gcn/gcn.h: New file.
33466 * config/gcn/gcn.opt: New file.
33467 * config/gcn/t-gcn-hsa: New file.
33468
33469 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33470 Kwok Cheung Yeung <kcy@codesourcery.com>
33471 Julian Brown <julian@codesourcery.com>
33472 Tom de Vries <tom@codesourcery.com>
33473 Jan Hubicka <hubicka@ucw.cz>
33474 Martin Jambor <mjambor@suse.cz>
33475
33476 * config/gcn/constraints.md: New file.
33477 * config/gcn/gcn-valu.md: New file.
33478 * config/gcn/gcn.md: New file.
33479 * config/gcn/predicates.md: New file.
33480
33481 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33482
33483 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33484 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33485 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33486 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33487
33488 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33489
33490 PR target/88851
33491 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33492 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33493 it and document registers.
33494
33495 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33496
33497 * config/aarch64/aarch64.c (ares_tunings): Define.
33498 * config/aarch64/aarch64-cores.def (ares): Use the above.
33499
33500 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33501
33502 PR target/88794
33503 Revert:
33504 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33505
33506 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33507 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33508 (_mm512_maskz_fixupimm_round_pd): Ditto.
33509 (_mm512_fixupimm_round_ps): Ditto.
33510 (_mm512_maskz_fixupimm_round_ps): Ditto.
33511 (_mm_fixupimm_round_sd): Ditto.
33512 (_mm_maskz_fixupimm_round_sd): Ditto.
33513 (_mm_fixupimm_round_ss): Ditto.
33514 (_mm_maskz_fixupimm_round_ss): Ditto.
33515 (_mm512_fixupimm_pd): Ditto.
33516 (_mm512_maskz_fixupimm_pd): Ditto.
33517 (_mm512_fixupimm_ps): Ditto.
33518 (_mm512_maskz_fixupimm_ps): Ditto.
33519 (_mm_fixupimm_sd): Ditto.
33520 (_mm_maskz_fixupimm_sd): Ditto.
33521 (_mm_fixupimm_ss): Ditto.
33522 (_mm_maskz_fixupimm_ss): Ditto.
33523 (_mm512_mask_fixupimm_round_pd): Update builtin.
33524 (_mm512_mask_fixupimm_round_ps): Ditto.
33525 (_mm_mask_fixupimm_round_sd): Ditto.
33526 (_mm_mask_fixupimm_round_ss): Ditto.
33527 (_mm512_mask_fixupimm_pd): Ditto.
33528 (_mm512_mask_fixupimm_ps): Ditto.
33529 (_mm_mask_fixupimm_sd): Ditto.
33530 (_mm_mask_fixupimm_ss): Ditto.
33531 * config/i386/avx512vlintrin.h:
33532 (_mm256_fixupimm_pd): Update parameters and builtin.
33533 (_mm256_maskz_fixupimm_pd): Ditto.
33534 (_mm256_fixupimm_ps): Ditto.
33535 (_mm256_maskz_fixupimm_ps): Ditto.
33536 (_mm_fixupimm_pd): Ditto.
33537 (_mm_maskz_fixupimm_pd): Ditto.
33538 (_mm_fixupimm_ps): Ditto.
33539 (_mm_maskz_fixupimm_ps): Ditto.
33540 (_mm256_mask_fixupimm_pd): Update builtin.
33541 (_mm256_mask_fixupimm_ps): Ditto.
33542 (_mm_mask_fixupimm_pd): Ditto.
33543 (_mm_mask_fixupimm_ps): Ditto.
33544 * config/i386/i386-builtin-types.def: Add new types and remove
33545 useless ones.
33546 * config/i386/i386-builtin.def: Update builtin definitions.
33547 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33548 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33549 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33550 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33551 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33552 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33553 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33554 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33555 * config/i386/subst.md:
33556 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33557 (round_saeonly_sd_mask_op4): Ditto.
33558 (round_saeonly_expand_operand5): Ditto.
33559 (round_saeonly_expand): Update.
33560
33561 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33562
33563 PR target/88794
33564 Revert:
33565 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33566
33567 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33568 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33569 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33570 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33571 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33572 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33573 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33574
33575 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33576
33577 PR target/88794
33578 Revert:
33579 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33580
33581 PR target/88489
33582 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33583 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33584 instead of UNSPEC_FIXUPIMM.
33585
33586 2019-01-17 Richard Biener <rguenther@suse.de>
33587
33588 PR lto/86736
33589 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33590 and friends for the LTO part of debug info.
33591
33592 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33593
33594 PR tree-optimization/86214
33595 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33596 if x == y.
33597
33598 PR rtl-optimization/88870
33599 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33600 throw if we can't alter the cfg or delete dead exceptions.
33601 (mark_insn): Don't call find_call_stack_args for such calls.
33602
33603 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33604
33605 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33606 prototypes for vec_st.
33607 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33608 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33609 mainly on signed/unsigned long long and double.
33610
33611 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33612
33613 PR target/88861
33614 * combine.c (delete_noop_moves): Convert to "bool" return,
33615 returning true if any edges are eliminated.
33616 (combine_instructions): Also return true if delete_noop_moves
33617 returns true.
33618
33619 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33620
33621 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33622 correct max nunits for endian swap.
33623 (aarch64_expand_fcmla_builtin): Correct subreg code.
33624 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33625 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33626 lane endianness.
33627
33628 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33629
33630 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33631 Handle split indirect COMPLEX_TYPE arguments.
33632
33633 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33634
33635 PR target/86891
33636 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33637 bit is set by add and compare.
33638 (CC_ADC): New CC_MODE.
33639 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33640 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33641 comparison. Add detection for CC_ADCmode.
33642 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33643 CC_ADCmode.
33644 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33645 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33646 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33647 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33648 to eliminate the need for zero-extending the operands.
33649 (add<mode>3_compareC_imm): Delete. Merge into ...
33650 (add<mode>3_compareC): ... this. Restructure the comparison to
33651 eliminate the need for zero-extending the operands.
33652 (add<mode>3_carryin): Use LTU for the overflow detection.
33653 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33654 Reexpress comparison for overflow.
33655 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33656 (add<mode>3_carryinC): Likewise.
33657 (add<mode>3_carryinV): Use LTU for carry between partials.
33658 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33659 handling of CC_Cmode and add CC_ADCmode.
33660 (aarch64_borrow_operation): Likewise.
33661
33662 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33663
33664 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33665 Remove patternmode.
33666 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33667 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33668 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33669 Remove endianness conversion.
33670
33671 2019-01-16 Martin Liska <mliska@suse.cz>
33672
33673 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33674 for GCC driver.
33675 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33676 a new argument.
33677 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33678 (path_prefix_reset): Move up in the source file.
33679 (find_fortran_preinclude_file): Make complex search for the
33680 fortran header files.
33681
33682 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33683
33684 * godump.c (go_output_typedef): When outputting a typedef, refer
33685 to the underlying type by its name and not its structure.
33686
33687 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33688
33689 PR c++/88795
33690 * tree.c (build_function_type): Assert that arg_types is not
33691 error_mark_node.
33692
33693 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33694
33695 PR inline-asm/52813
33696 * doc/extend.texi: Document that listing the stack pointer in the
33697 clobber list of an asm is a deprecated feature.
33698 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33699 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33700 warning instead of an error for clobbers of the stack pointer.
33701 Add a note explaining why.
33702
33703 2019-01-15 Richard Biener <rguenther@suse.de>
33704
33705 PR debug/88046
33706 * dwarf2out.c (gen_member_die): Do not generate inheritance
33707 DIEs late.
33708
33709 2019-01-15 Richard Biener <rguenther@suse.de>
33710
33711 PR tree-optimization/88855
33712 * tree-if-conv.c (combine_blocks): Collect
33713 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33714
33715 2019-01-15 Tom de Vries <tdevries@suse.de>
33716
33717 PR target/80547
33718 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33719 lhs == NULL_TREE for gang-level reduction.
33720
33721 2019-01-15 Richard Biener <rguenther@suse.de>
33722 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33723
33724 PR ipa/88788
33725 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33726 return true if SSA_NAME is already marked in visited bitmap.
33727 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33728
33729 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33730
33731 PR tree-optimization/88775
33732 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33733 equal == 0 equality pointer comparisons some more if compared in
33734 integral types and either one points to an automatic var and the
33735 other to a global, or we can prove at least one points to the middle
33736 or both point to start or both point to end.
33737
33738 2019-01-14 Andi Kleen <ak@linux.intel.com>
33739
33740 * Makefile.in: Lower autofdo sampling rate by 10x.
33741 * Makefile.tpl: Dito.
33742
33743 2019-01-14 Tom Honermann <tom@honermann.net>
33744
33745 * defaults.h: Define CHAR8_TYPE.
33746
33747 2019-01-14 Martin Sebor <msebor@redhat.com>
33748
33749 PR target/88638
33750 * doc/extend.texi (Darwin Format Checks): Clarify.
33751
33752 2019-01-14 Richard Biener <rguenther@suse.de>
33753
33754 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33755 whether we are in (simplify ...) or (match ...) context.
33756
33757 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33758
33759 PR rtl-optimization/88796
33760 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33761 * cfgexpand.c (stack_protect_prologue): Initialize
33762 crtl->stack_protect_guard_decl.
33763 * function.c (stack_protect_epilogue): Use it instead of calling
33764 targetm.stack_protect_guard again.
33765 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33766 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33767 crtl->stack_protect_guard_decl.
33768 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33769 on the returned MEM_EXPR.
33770
33771 2019-01-12 Tom de Vries <tdevries@suse.de>
33772
33773 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33774 vector length using -fopenacc-dim.
33775
33776 2019-01-12 Tom de Vries <tdevries@suse.de>
33777
33778 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33779 lengths into account.
33780
33781 2019-01-12 Svante Signell <svante.signell@gmail.com>
33782
33783 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33784 (TARGET_CAN_SPLIT_STACK): Define.
33785 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33786
33787 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33788
33789 * params.def (inline-unit-growth): Set to 40.
33790
33791 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33792
33793 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33794
33795 2019-01-12 Tom de Vries <tdevries@suse.de>
33796
33797 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33798 region calling vector-partitionable routine, set default_vector_length
33799 to WARP_SIZE.
33800
33801 2019-01-12 Tom de Vries <tdevries@suse.de>
33802
33803 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33804 variable default_vector_length.
33805
33806 2019-01-12 Tom de Vries <tdevries@suse.de>
33807
33808 PR middle-end/88703
33809 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33810 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33811 dimensions limits.
33812
33813 2019-01-12 Tom de Vries <tdevries@suse.de>
33814
33815 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33816 (nvptx_goacc_validate_dims): Add used parameter.
33817 * doc/tm.texi: Regenerate.
33818 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33819 argument to call to targetm.goacc.validate_dims.
33820 (default_goacc_validate_dims): Add used
33821 parameter.
33822 * target.def (validate_dims): Add used parameter in DEFHOOK.
33823 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33824
33825 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33826
33827 PR middle-end/85956
33828 PR lto/88733
33829 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33830 field.
33831 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33832 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33833 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33834 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33835
33836 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33837
33838 PR rtl-optimization/87305
33839 * lra-assigns.c
33840 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33841 for little endian pseudos used as paradoxical subreg.
33842
33843 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33844
33845 PR tree-optimization/88693
33846 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33847 for STRING_CSTs that don't contain any NUL characters in the first
33848 TREE_STRING_LENGTH bytes.
33849
33850 2019-01-11 Alan Modra <amodra@gmail.com>
33851
33852 PR 88777
33853 PR 88614
33854 * genattrtab.c (min_fn): Don't translate values.
33855 (min_attr_value): Return INT_MAX when the value can't be calculated.
33856 Return minimum among any values that can be calculated.
33857 (max_attr_value): Adjust.
33858
33859 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33860
33861 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33862
33863 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33864
33865 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33866 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33867 (aarch64_return_call_with_max_clobbers): New function.
33868 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33869 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33870 argument.
33871 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33872 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33873 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33874 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33875 * cselib.c (cselib_process_insn): Add argument to
33876 targetm.hard_regno_call_part_clobbered call.
33877 * ira-conflicts.c (ira_build_conflicts): Ditto.
33878 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33879 * lra-constraints.c (inherit_reload_reg): Ditto.
33880 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33881 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33882 argument. Call targetm.return_call_with_max_clobbers.
33883 Add argument to targetm.hard_regno_call_part_clobbered call.
33884 (calls_have_same_clobbers_p): New function.
33885 (process_bb_lives): Add call_insn and last_call_insn variables.
33886 Pass call_insn to check_pseudos_live_through_calls.
33887 Modify if stmt to check targetm.return_call_with_max_clobbers.
33888 Update setting of flush variable.
33889 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33890 to false.
33891 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33892 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33893 targetm.hard_regno_call_part_clobbered call.
33894 * reginfo.c (choose_hard_reg_mode): Ditto.
33895 * regrename.c (check_new_reg_p): Ditto.
33896 * reload.c (find_equiv_reg): Ditto.
33897 * reload1.c (emit_reload_insns): Ditto.
33898 * sched-deps.c (deps_analyze_insn): Ditto.
33899 * sel-sched.c (init_regs_for_mode): Ditto.
33900 (mark_unavailable_hard_regs): Ditto.
33901 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33902 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33903 (return_call_with_max_clobbers): New target function.
33904 * doc/tm.texi: Regenerate.
33905 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33906 * hooks.c (hook_bool_uint_mode_false): Change to
33907 hook_bool_insn_uint_mode_false.
33908 * hooks.h (hook_bool_uint_mode_false): Ditto.
33909
33910 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33911
33912 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33913 (aarch64_remove_extra_call_preserved_regs): New function.
33914 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33915 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33916 * doc/tm.texi: Regenerate.
33917 * final.c (get_call_reg_set_usage): Call new hook.
33918 * target.def (remove_extra_call_preserved_regs): New hook.
33919 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33920 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33921
33922 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33923
33924 PR bootstrap/88714
33925 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33926 inside of pass_combine_1 dump rather than pass_profile_1.
33927
33928 2019-01-11 Tom de Vries <tdevries@suse.de>
33929
33930 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33931 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33932 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33933 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33934 num_workers 16.
33935
33936 2019-01-11 Tom de Vries <tdevries@suse.de>
33937
33938 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33939
33940 2019-01-11 Jan Beulich <jbeulich@suse.com>
33941
33942 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33943 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33944 sse2_cvtsi2sd): Add {l}.
33945 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33946 syntax.
33947
33948 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33949
33950 PR target/88785
33951 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33952 define_expand.
33953 (*float<floatunssuffix>v2div2sf2): New define_insn.
33954 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33955 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33956 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33957 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33958 match_operands with "const0_operand" "C".
33959
33960 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33961
33962 * config/aarch64/aarch64-builtins.c
33963 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33964 (aarch64_init_simd_builtins): ...Here
33965
33966 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33967
33968 PR rtl-optimization/87305
33969 * lra-assigns.c
33970 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33971 allocation for big endian pseudos used as paradoxical subregs and
33972 spill them if it is wrong.
33973 * lra-constraints.c (lra_constraints): Add a comment.
33974
33975 2019-01-10 Richard Biener <rguenther@suse.de>
33976
33977 PR tree-optimization/88792
33978 * tree-ssa-pre.c (get_representative_for): Do not return a
33979 value-number here.
33980
33981 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33982
33983 PR middle-end/84877
33984 PR bootstrap/88450
33985 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33986 (assign_parm_setup_block): Do the argument slot realignment here
33987 instead.
33988
33989 2019-01-10 Stefan Agner <stefan@agner.ch>
33990
33991 PR target/88648
33992 * config/arm/arm.c (arm_option_override_internal): Force
33993 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33994
33995 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33996
33997 PR c/88568
33998 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33999 DECL_EXTERNAL.
34000
34001 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34002
34003 * config/arm/arm-builtins.c
34004 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34005 (MAC_LANE_PAIR_QUALIFIERS): New.
34006 (arm_expand_builtin_args): Use it.
34007 (arm_expand_builtin_1): Likewise.
34008 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34009 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34010 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34011 * config/arm/arm_neon.h:
34012 (vcadd_rot90_f16): New.
34013 (vcaddq_rot90_f16): New.
34014 (vcadd_rot270_f16): New.
34015 (vcaddq_rot270_f16): New.
34016 (vcmla_f16): New.
34017 (vcmlaq_f16): New.
34018 (vcmla_lane_f16): New.
34019 (vcmla_laneq_f16): New.
34020 (vcmlaq_lane_f16): New.
34021 (vcmlaq_laneq_f16): New.
34022 (vcmla_rot90_f16): New.
34023 (vcmlaq_rot90_f16): New.
34024 (vcmla_rot90_lane_f16): New.
34025 (vcmla_rot90_laneq_f16): New.
34026 (vcmlaq_rot90_lane_f16): New.
34027 (vcmlaq_rot90_laneq_f16): New.
34028 (vcmla_rot180_f16): New.
34029 (vcmlaq_rot180_f16): New.
34030 (vcmla_rot180_lane_f16): New.
34031 (vcmla_rot180_laneq_f16): New.
34032 (vcmlaq_rot180_lane_f16): New.
34033 (vcmlaq_rot180_laneq_f16): New.
34034 (vcmla_rot270_f16): New.
34035 (vcmlaq_rot270_f16): New.
34036 (vcmla_rot270_lane_f16): New.
34037 (vcmla_rot270_laneq_f16): New.
34038 (vcmlaq_rot270_lane_f16): New.
34039 (vcmlaq_rot270_laneq_f16): New.
34040 (vcadd_rot90_f32): New.
34041 (vcaddq_rot90_f32): New.
34042 (vcadd_rot270_f32): New.
34043 (vcaddq_rot270_f32): New.
34044 (vcmla_f32): New.
34045 (vcmlaq_f32): New.
34046 (vcmla_lane_f32): New.
34047 (vcmla_laneq_f32): New.
34048 (vcmlaq_lane_f32): New.
34049 (vcmlaq_laneq_f32): New.
34050 (vcmla_rot90_f32): New.
34051 (vcmlaq_rot90_f32): New.
34052 (vcmla_rot90_lane_f32): New.
34053 (vcmla_rot90_laneq_f32): New.
34054 (vcmlaq_rot90_lane_f32): New.
34055 (vcmlaq_rot90_laneq_f32): New.
34056 (vcmla_rot180_f32): New.
34057 (vcmlaq_rot180_f32): New.
34058 (vcmla_rot180_lane_f32): New.
34059 (vcmla_rot180_laneq_f32): New.
34060 (vcmlaq_rot180_lane_f32): New.
34061 (vcmlaq_rot180_laneq_f32): New.
34062 (vcmla_rot270_f32): New.
34063 (vcmlaq_rot270_f32): New.
34064 (vcmla_rot270_lane_f32): New.
34065 (vcmla_rot270_laneq_f32): New.
34066 (vcmlaq_rot270_lane_f32): New.
34067 (vcmlaq_rot270_laneq_f32): New.
34068 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34069 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34070 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34071 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34072 vcmlaq_lane270): New.
34073 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34074 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34075 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34076 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34077 (arm_option_reconfigure_globals): Use them.
34078 * config/arm/iterators.md (VDF, VQ_HSF): New.
34079 (VCADD, VCMLA): New.
34080 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34081 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34082 New.
34083 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34084 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34085
34086 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34087
34088 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34089 Add qualifier_lane_pair_index.
34090 (emit-rtl.h): Include.
34091 (TYPES_QUADOP_LANE_PAIR): New.
34092 (aarch64_simd_expand_args): Use it.
34093 (aarch64_simd_expand_builtin): Likewise.
34094 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34095 New.
34096 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34097 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34098 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34099 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34100 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34101 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34102 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34103 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34104 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34105 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34106 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34107 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34108 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34109 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34110 Add __ARM_FEATURE_COMPLEX.
34111 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34112 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34113 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34114 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34115 fcmlaq_lane270): New.
34116 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34117 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34118 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34119 * config/aarch64/arm_neon.h:
34120 (vcadd_rot90_f16): New.
34121 (vcaddq_rot90_f16): New.
34122 (vcadd_rot270_f16): New.
34123 (vcaddq_rot270_f16): New.
34124 (vcmla_f16): New.
34125 (vcmlaq_f16): New.
34126 (vcmla_lane_f16): New.
34127 (vcmla_laneq_f16): New.
34128 (vcmlaq_lane_f16): New.
34129 (vcmlaq_rot90_lane_f16): New.
34130 (vcmla_rot90_laneq_f16): New.
34131 (vcmla_rot90_lane_f16): New.
34132 (vcmlaq_rot90_f16): New.
34133 (vcmla_rot90_f16): New.
34134 (vcmlaq_laneq_f16): New.
34135 (vcmla_rot180_laneq_f16): New.
34136 (vcmla_rot180_lane_f16): New.
34137 (vcmlaq_rot180_f16): New.
34138 (vcmla_rot180_f16): New.
34139 (vcmlaq_rot90_laneq_f16): New.
34140 (vcmlaq_rot270_laneq_f16): New.
34141 (vcmlaq_rot270_lane_f16): New.
34142 (vcmla_rot270_laneq_f16): New.
34143 (vcmlaq_rot270_f16): New.
34144 (vcmla_rot270_f16): New.
34145 (vcmlaq_rot180_laneq_f16): New.
34146 (vcmlaq_rot180_lane_f16): New.
34147 (vcmla_rot270_lane_f16): New.
34148 (vcadd_rot90_f32): New.
34149 (vcaddq_rot90_f32): New.
34150 (vcaddq_rot90_f64): New.
34151 (vcadd_rot270_f32): New.
34152 (vcaddq_rot270_f32): New.
34153 (vcaddq_rot270_f64): New.
34154 (vcmla_f32): New.
34155 (vcmlaq_f32): New.
34156 (vcmlaq_f64): New.
34157 (vcmla_lane_f32): New.
34158 (vcmla_laneq_f32): New.
34159 (vcmlaq_lane_f32): New.
34160 (vcmlaq_laneq_f32): New.
34161 (vcmla_rot90_f32): New.
34162 (vcmlaq_rot90_f32): New.
34163 (vcmlaq_rot90_f64): New.
34164 (vcmla_rot90_lane_f32): New.
34165 (vcmla_rot90_laneq_f32): New.
34166 (vcmlaq_rot90_lane_f32): New.
34167 (vcmlaq_rot90_laneq_f32): New.
34168 (vcmla_rot180_f32): New.
34169 (vcmlaq_rot180_f32): New.
34170 (vcmlaq_rot180_f64): New.
34171 (vcmla_rot180_lane_f32): New.
34172 (vcmla_rot180_laneq_f32): New.
34173 (vcmlaq_rot180_lane_f32): New.
34174 (vcmlaq_rot180_laneq_f32): New.
34175 (vcmla_rot270_f32): New.
34176 (vcmlaq_rot270_f32): New.
34177 (vcmlaq_rot270_f64): New.
34178 (vcmla_rot270_lane_f32): New.
34179 (vcmla_rot270_laneq_f32): New.
34180 (vcmlaq_rot270_lane_f32): New.
34181 (vcmlaq_rot270_laneq_f32): New.
34182 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34183 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34184 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34185 (FCADD, FCMLA): New.
34186 (rot): New.
34187 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34188
34189 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34190
34191 PR other/16615
34192
34193 * config/pa/pa.c: Change "can not" to "cannot".
34194 * gimple-ssa-evrp-analyze.c: Likewise.
34195 * ipa-icf.c: Likewise.
34196 * ipa-polymorphic-call.c: Likewise.
34197 * ipa-pure-const.c: Likewise.
34198 * lra-constraints.c: Likewise.
34199 * lra-remat.c: Likewise.
34200 * reload1.c: Likewise.
34201 * reorg.c: Likewise.
34202 * tree-ssa-uninit.c: Likewise.
34203
34204 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34205
34206 PR other/16615
34207
34208 * Makefile.in: Mechanically replace "can not" with "cannot".
34209 * alias.c: Likewise.
34210 * builtins.c: Likewise.
34211 * calls.c: Likewise.
34212 * cgraph.c: Likewise.
34213 * cgraph.h: Likewise.
34214 * cgraphclones.c: Likewise.
34215 * cgraphunit.c: Likewise.
34216 * combine-stack-adj.c: Likewise.
34217 * combine.c: Likewise.
34218 * common/config/i386/i386-common.c: Likewise.
34219 * config/aarch64/aarch64.c: Likewise.
34220 * config/alpha/sync.md: Likewise.
34221 * config/arc/arc.c: Likewise.
34222 * config/arc/predicates.md: Likewise.
34223 * config/arm/arm-c.c: Likewise.
34224 * config/arm/arm.c: Likewise.
34225 * config/arm/arm.h: Likewise.
34226 * config/arm/arm.md: Likewise.
34227 * config/arm/cortex-r4f.md: Likewise.
34228 * config/csky/csky.c: Likewise.
34229 * config/csky/csky.h: Likewise.
34230 * config/darwin-f.c: Likewise.
34231 * config/epiphany/epiphany.md: Likewise.
34232 * config/i386/i386.c: Likewise.
34233 * config/i386/sol2.h: Likewise.
34234 * config/m68k/m68k.c: Likewise.
34235 * config/mcore/mcore.h: Likewise.
34236 * config/microblaze/microblaze.md: Likewise.
34237 * config/mips/20kc.md: Likewise.
34238 * config/mips/sb1.md: Likewise.
34239 * config/nds32/nds32.c: Likewise.
34240 * config/nds32/predicates.md: Likewise.
34241 * config/pa/pa.c: Likewise.
34242 * config/rs6000/e300c2c3.md: Likewise.
34243 * config/rs6000/rs6000.c: Likewise.
34244 * config/s390/s390.h: Likewise.
34245 * config/sh/sh.c: Likewise.
34246 * config/sh/sh.md: Likewise.
34247 * config/spu/vmx2spu.h: Likewise.
34248 * cprop.c: Likewise.
34249 * dbxout.c: Likewise.
34250 * df-scan.c: Likewise.
34251 * doc/cfg.texi: Likewise.
34252 * doc/extend.texi: Likewise.
34253 * doc/fragments.texi: Likewise.
34254 * doc/gty.texi: Likewise.
34255 * doc/invoke.texi: Likewise.
34256 * doc/lto.texi: Likewise.
34257 * doc/md.texi: Likewise.
34258 * doc/objc.texi: Likewise.
34259 * doc/rtl.texi: Likewise.
34260 * doc/tm.texi: Likewise.
34261 * dse.c: Likewise.
34262 * emit-rtl.c: Likewise.
34263 * emit-rtl.h: Likewise.
34264 * except.c: Likewise.
34265 * expmed.c: Likewise.
34266 * expr.c: Likewise.
34267 * fold-const.c: Likewise.
34268 * genautomata.c: Likewise.
34269 * gimple-fold.c: Likewise.
34270 * hard-reg-set.h: Likewise.
34271 * ifcvt.c: Likewise.
34272 * ipa-comdats.c: Likewise.
34273 * ipa-cp.c: Likewise.
34274 * ipa-devirt.c: Likewise.
34275 * ipa-fnsummary.c: Likewise.
34276 * ipa-icf.c: Likewise.
34277 * ipa-inline-transform.c: Likewise.
34278 * ipa-inline.c: Likewise.
34279 * ipa-polymorphic-call.c: Likewise.
34280 * ipa-profile.c: Likewise.
34281 * ipa-prop.c: Likewise.
34282 * ipa-pure-const.c: Likewise.
34283 * ipa-reference.c: Likewise.
34284 * ipa-split.c: Likewise.
34285 * ipa-visibility.c: Likewise.
34286 * ipa.c: Likewise.
34287 * ira-build.c: Likewise.
34288 * ira-color.c: Likewise.
34289 * ira-conflicts.c: Likewise.
34290 * ira-costs.c: Likewise.
34291 * ira-int.h: Likewise.
34292 * ira-lives.c: Likewise.
34293 * ira.c: Likewise.
34294 * ira.h: Likewise.
34295 * loop-invariant.c: Likewise.
34296 * loop-unroll.c: Likewise.
34297 * lower-subreg.c: Likewise.
34298 * lra-assigns.c: Likewise.
34299 * lra-constraints.c: Likewise.
34300 * lra-eliminations.c: Likewise.
34301 * lra-lives.c: Likewise.
34302 * lra-remat.c: Likewise.
34303 * lra-spills.c: Likewise.
34304 * lra.c: Likewise.
34305 * lto-cgraph.c: Likewise.
34306 * lto-streamer-out.c: Likewise.
34307 * postreload-gcse.c: Likewise.
34308 * predict.c: Likewise.
34309 * profile-count.h: Likewise.
34310 * profile.c: Likewise.
34311 * recog.c: Likewise.
34312 * ree.c: Likewise.
34313 * reload.c: Likewise.
34314 * reload1.c: Likewise.
34315 * reorg.c: Likewise.
34316 * resource.c: Likewise.
34317 * rtl.def: Likewise.
34318 * rtl.h: Likewise.
34319 * rtlanal.c: Likewise.
34320 * sched-deps.c: Likewise.
34321 * sched-ebb.c: Likewise.
34322 * sched-rgn.c: Likewise.
34323 * sel-sched-ir.c: Likewise.
34324 * sel-sched.c: Likewise.
34325 * shrink-wrap.c: Likewise.
34326 * simplify-rtx.c: Likewise.
34327 * symtab.c: Likewise.
34328 * target.def: Likewise.
34329 * toplev.c: Likewise.
34330 * tree-call-cdce.c: Likewise.
34331 * tree-cfg.c: Likewise.
34332 * tree-complex.c: Likewise.
34333 * tree-core.h: Likewise.
34334 * tree-eh.c: Likewise.
34335 * tree-inline.c: Likewise.
34336 * tree-loop-distribution.c: Likewise.
34337 * tree-nrv.c: Likewise.
34338 * tree-profile.c: Likewise.
34339 * tree-sra.c: Likewise.
34340 * tree-ssa-alias.c: Likewise.
34341 * tree-ssa-dce.c: Likewise.
34342 * tree-ssa-dom.c: Likewise.
34343 * tree-ssa-forwprop.c: Likewise.
34344 * tree-ssa-loop-im.c: Likewise.
34345 * tree-ssa-loop-ivcanon.c: Likewise.
34346 * tree-ssa-loop-ivopts.c: Likewise.
34347 * tree-ssa-loop-niter.c: Likewise.
34348 * tree-ssa-phionlycprop.c: Likewise.
34349 * tree-ssa-phiopt.c: Likewise.
34350 * tree-ssa-propagate.c: Likewise.
34351 * tree-ssa-threadedge.c: Likewise.
34352 * tree-ssa-threadupdate.c: Likewise.
34353 * tree-ssa-uninit.c: Likewise.
34354 * tree-ssanames.c: Likewise.
34355 * tree-streamer-out.c: Likewise.
34356 * tree.c: Likewise.
34357 * tree.h: Likewise.
34358 * vr-values.c: Likewise.
34359
34360 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34361
34362 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34363 (ix86_split_xorsign): Ditto.
34364 * config/i386/i386.c (ix86_expand_xorsign): New function.
34365 (ix86_split_xorsign): Ditto.
34366 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34367 (xorsign<mode>3): New expander.
34368 (xorsign<mode>3_1): New insn_and_split pattern.
34369 * config/i386/sse.md (xorsign<mode>3): New expander.
34370
34371 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34372
34373 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34374 (*tablejump_sp64): Likewise.
34375 (*tablejump<P:mode>): ...this.
34376 (*call_address_sp32): Merge into...
34377 (*call_address_sp64): Likewise.
34378 (*call_address<P:mode>): ...this.
34379 (*call_symbolic_sp32): Merge into...
34380 (*call_symbolic_sp64): Likewise.
34381 (*call_symbolic<P:mode>): ...this.
34382 (call_value): Remove constraint and add predicate.
34383 (*call_value_address_sp32): Merge into...
34384 (*call_value_address_sp64): Likewise.
34385 (*call_value_address<P:mode>): ...this.
34386 (*call_value_symbolic_sp32): Merge into...
34387 (*call_value_symbolic_sp64): Likewise.
34388 (*call_value_symbolic<P:mode>): ...this.
34389 (*sibcall_symbolic_sp32): Merge into...
34390 (*sibcall_symbolic_sp64): Likewise.
34391 (*sibcall_symbolic<P:mode>): ...this.
34392 (sibcall_value): Remove constraint and add predicate.
34393 (*sibcall_value_symbolic_sp32): Merge into...
34394 (*sibcall_value_symbolic_sp64): Likewise.
34395 (*sibcall_value_symbolic<P:mode>): ...this.
34396 (window_save): Minor tweak.
34397 (*branch_sp32): Merge into...
34398 (*branch_sp64): Likewise.
34399 (*branch<P:mode>): ...this.
34400
34401 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34402 James Clarke <jrtc27@jrtc27.com>
34403
34404 PR target/84010
34405 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34406 consistently in TLS address generation and adjust code to the renaming
34407 of patterns. Mark calls to __tls_get_addr as const.
34408 * config/sparc/sparc.md (tgd_hi22): Turn into...
34409 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34410 (tgd_lo10): Turn into...
34411 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34412 (tgd_add32): Merge into...
34413 (tgd_add64): Likewise.
34414 (tgd_add<P:mode>): ...this and use Pmode throughout.
34415 (tldm_hi22): Turn into...
34416 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34417 (tldm_lo10): Turn into...
34418 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34419 (tldm_add32): Merge into...
34420 (tldm_add64): Likewise.
34421 (tldm_add<P:mode>): ...this and use Pmode throughout.
34422 (tldm_call32): Merge into...
34423 (tldm_call64): Likewise.
34424 (tldm_call<P:mode>): ...this and use Pmode throughout.
34425 (tldo_hix22): Turn into...
34426 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34427 (tldo_lox10): Turn into...
34428 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34429 (tldo_add32): Merge into...
34430 (tldo_add64): Likewise.
34431 (tldo_add<P:mode>): ...this and use Pmode throughout.
34432 (tie_hi22): Turn into...
34433 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34434 (tie_lo10): Turn into...
34435 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34436 (tie_ld64): Use DImode throughout.
34437 (tie_add32): Merge into...
34438 (tie_add64): Likewise.
34439 (tie_add<P:mode>): ...this and use Pmode throughout.
34440 (tle_hix22_sp32): Merge into...
34441 (tle_hix22_sp64): Likewise.
34442 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34443 (tle_lox22_sp32): Merge into...
34444 (tle_lox22_sp64): Likewise.
34445 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34446 (*tldo_ldub_sp32): Merge into...
34447 (*tldo_ldub_sp64): Likewise.
34448 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34449 (*tldo_ldub1_sp32): Merge into...
34450 (*tldo_ldub1_sp64): Likewise.
34451 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34452 (*tldo_ldub2_sp32): Merge into...
34453 (*tldo_ldub2_sp64): Likewise.
34454 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34455 (*tldo_ldsb1_sp32): Merge into...
34456 (*tldo_ldsb1_sp64): Likewise.
34457 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34458 (*tldo_ldsb2_sp32): Merge into...
34459 (*tldo_ldsb2_sp64): Likewise.
34460 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34461 (*tldo_ldub3_sp64): Use DImode throughout.
34462 (*tldo_ldsb3_sp64): Likewise.
34463 (*tldo_lduh_sp32): Merge into...
34464 (*tldo_lduh_sp64): Likewise.
34465 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34466 (*tldo_lduh1_sp32): Merge into...
34467 (*tldo_lduh1_sp64): Likewise.
34468 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34469 (*tldo_ldsh1_sp32): Merge into...
34470 (*tldo_ldsh1_sp64): Likewise.
34471 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34472 (*tldo_lduh2_sp64): Use DImode throughout.
34473 (*tldo_ldsh2_sp64): Likewise.
34474 (*tldo_lduw_sp32): Merge into...
34475 (*tldo_lduw_sp64): Likewise.
34476 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34477 (*tldo_lduw1_sp64): Use DImode throughout.
34478 (*tldo_ldsw1_sp64): Likewise.
34479 (*tldo_ldx_sp64): Likewise.
34480 (*tldo_stb_sp32): Merge into...
34481 (*tldo_stb_sp64): Likewise.
34482 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34483 (*tldo_sth_sp32): Merge into...
34484 (*tldo_sth_sp64): Likewise.
34485 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34486 (*tldo_stw_sp32): Merge into...
34487 (*tldo_stw_sp64): Likewise.
34488 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34489 (*tldo_stx_sp64): Use DImode throughout.
34490
34491 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34492
34493 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34494 check configure option to set BTI and Return Address Signing.
34495 * configure.ac: Add --enable-standard-branch-protection and
34496 --disable-standard-branch-protection.
34497 * configure: Regenerated.
34498 * doc/install.texi: Document the same.
34499
34500 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34501 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34502
34503 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34504 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34505 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34506 if bti is enabled.
34507 * config/aarch64/aarch64-bti-insert.c: New file.
34508 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34509 pass.
34510 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34511 new bti pass.
34512 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34513 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34514 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34515 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34516
34517 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34518
34519 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34520 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34521 Disable bti for -mbranch-protection=none.
34522 (aarch64_handle_standard_branch_protection): Enable bti for
34523 -mbranch-protection=standard.
34524 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34525 -mbranch-protection.
34526 (aarch64_bti_enabled): Check if bti is enabled.
34527 * config/aarch64/aarch64.opt: Declare target variable.
34528 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34529
34530 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34531
34532 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34533 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34534 (aarch64_expand_epilogue): Likewise.
34535 (aarch64_output_mi_thunk): Likewise.
34536 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34537 TAILCALL_ADDR_REGS to x16 and x17.
34538 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34539
34540 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34541
34542 * config/aarch64/aarch64-option-extensions.def: Define
34543 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34544 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34545 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34546 (AARCH64_FL_PREDRES): New.
34547 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34548 AARCH64_FL_PREDRES by default.
34549 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34550
34551 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34552
34553 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34554 ARMv8.5-A.
34555 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34556 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34557 * doc/invoke.texi: Document ARMv8.5-A.
34558
34559 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34560
34561 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34562 (xorsign<mode>3): Likewise.
34563
34564 2019-01-09 Jelinek <jakub@redhat.com>
34565
34566 PR middle-end/88758
34567 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34568 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34569
34570 PR rtl-optimization/88331
34571 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34572 not currently_expanding_to_rtl.
34573
34574 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34575
34576 * doc/invoke.texi (-Os): Remove trailing spaces.
34577 (-finline-functions): Remove reference to -O2.
34578
34579 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34580
34581 PR rtl-optimization/79593
34582 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34583
34584 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34585 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34586
34587 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34588
34589 PR bootstrap/88721
34590 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34591 to -1 on entry.
34592
34593 PR debug/88723
34594 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34595 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34596
34597 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34598
34599 PR target/88717
34600 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34601 ix86_avx_u128_mode_entry.
34602
34603 2019-01-08 Martin Liska <mliska@suse.cz>
34604
34605 PR tree-optimization/88753
34606 * tree-switch-conversion.c (switch_conversion::build_one_array):
34607 Come up with local variable constructor. Convert first to
34608 type of constructor values.
34609
34610 2019-01-08 Richard Biener <rguenther@suse.de>
34611
34612 PR tree-optimization/86554
34613 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34614 rpo_avail): Move earlier.
34615 (visit_nary_op): When value-numbering to expressions
34616 with different overflow behavior make sure there's an
34617 available expression on the path.
34618
34619 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34620
34621 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34622 aarch64_parse_branch_protection,
34623 struct aarch64_branch_protect_type,
34624 aarch64_handle_no_branch_protection,
34625 aarch64_handle_standard_branch_protection,
34626 aarch64_validate_mbranch_protection,
34627 aarch64_handle_pac_ret_protection,
34628 aarch64_handle_attr_branch_protection,
34629 accepted_branch_protection_string,
34630 aarch64_pac_ret_subtypes,
34631 aarch64_branch_protect_types,
34632 aarch64_handle_pac_ret_leaf): Define.
34633 (aarch64_override_options_after_change_1, aarch64_override_options):
34634 Add check for accepted_branch_protection_string.
34635 (aarch64_option_save): Save accepted_branch_protection_string.
34636 (aarch64_option_restore): Save accepted_branch_protection_string.
34637 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34638 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34639 msign-return-address.
34640 * doc/invoke.texi: Add mbranch-protection.
34641
34642 2019-01-08 Alan Modra <amodra@gmail.com>
34643
34644 PR target/88614
34645 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34646 Delete "unknownp" parameter. Adjust callers. Handle
34647 CONST_INT, PLUS, MINUS, and MULT.
34648 (attr_value_aligned): Renamed from or_attr_value.
34649 (min_attr_value): Return INT_MIN for unhandled rtl case..
34650 (min_fn): ..and translate to INT_MAX here.
34651 (write_length_unit_log): Modify to cope without "unknown".
34652 (write_attr_value): Handle IF_THEN_ELSE.
34653
34654 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34655
34656 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34657 optimization for masked stores.
34658
34659 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34660
34661 PR middle-end/88567
34662 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34663 output vector directly to duplicate_and_interleave instead of
34664 going through a temporary. Postpone insertion of ctor_seq to
34665 the end of the loop.
34666
34667 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34668
34669 PR target/86891
34670 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34671 unsigned_p. Handle signed and unsigned overflow correction as
34672 required.
34673 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34674 prototype.
34675 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34676 for operand 2.
34677 (add<mode>3_compareV_imm): Make this callable for expanding.
34678 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34679 aarch64_plus_operand for operand 2.
34680 (subv<GPI:mode>_insn): New insn pattern.
34681 (subv<GPI:mode>_imm): Likewise.
34682 (negv<GPI:mode>3): New expand pattern.
34683 (negv<GPI:mode>_insn): New insn pattern.
34684 (negv<GPI:mode>_cmp_only): Likewise.
34685 (cmpv<GPI:mode>_insn): Likewise.
34686 (subvti4): Use register_operand for operand 1. Update call to
34687 aarch64_expand_subvti.
34688 (usubvti4): Likewise.
34689 (negvti3): New expand pattern.
34690 (negdi_carryout): New insn pattern.
34691 (negvdi_carryinV): New insn pattern.
34692 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34693 version the named version.
34694 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34695 operands.
34696 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34697 patterns.
34698 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34699 patterns.
34700 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34701 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34702 (sub<mode>3_carryinCV): Delete.
34703 (sub<GPI:mode>3_carryinV): New expand pattern.
34704 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34705
34706 2019-01-07 Richard Biener <rguenther@suse.de>
34707
34708 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34709 of tree_operand_hash.
34710
34711 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34712
34713 PR tree-optimization/88598
34714 * tree.h (single_nonzero_element): Declare.
34715 * tree.c (single_nonzero_element): New function.
34716 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34717 if I is the only nonzero element of CST.
34718
34719 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34720
34721 PR tree-optimization/88598
34722 * tree.h (initializer_each_zero_or_onep): Declare.
34723 * tree.c (initializer_each_zero_or_onep): New function.
34724 (signed_or_unsigned_type_for): Handle float types too.
34725 (unsigned_type_for, signed_type_for): Update comments accordingly.
34726 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34727 x & { 0 or -1, 0 or -1, ... }.
34728
34729 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34730
34731 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34732 with x86_64-pc-linux-gnu.
34733
34734 2019-01-07 Tom de Vries <tdevries@suse.de>
34735
34736 PR target/85486
34737 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34738 function.
34739 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34740 routines.
34741
34742 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34743
34744 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34745 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34746 TARGET_AVX512F as condition.
34747
34748 PR debug/88723
34749 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34750 const_not_ok_for_debug_p target hook.
34751 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34752 on UNSPEC and subexpressions thereof if all subexpressions of the
34753 UNSPEC are CONSTANT_P.
34754
34755 PR tree-optimization/88676
34756 * tree-ssa-phiopt.c (two_value_replacement): New function.
34757 (tree_ssa_phiopt_worker): Call it.
34758
34759 PR sanitizer/88619
34760 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34761 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34762
34763 PR c++/85052
34764 * tree-vect-generic.c: Include insn-config.h and recog.h.
34765 (expand_vector_piecewise): Add defaulted ret_type argument,
34766 if non-NULL, use that in preference to type for the result type.
34767 (expand_vector_parallel): Formatting fix.
34768 (do_vec_conversion, do_vec_narrowing_conversion,
34769 expand_vector_conversion): New functions.
34770 (expand_vector_operations_1): Call expand_vector_conversion
34771 for VEC_CONVERT ifn calls.
34772 * internal-fn.def (VEC_CONVERT): New internal function.
34773 * internal-fn.c (expand_VEC_CONVERT): New function.
34774 * fold-const-call.c (fold_const_vec_convert): New function.
34775 (fold_const_call): Use it for CFN_VEC_CONVERT.
34776 * doc/extend.texi (__builtin_convertvector): Document.
34777
34778 2019-01-07 Tom de Vries <tdevries@suse.de>
34779
34780 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34781 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34782 vector_red_partition, vector_red_sym): New global variables.
34783 (nvptx_option_override): Initialize vector_red_sym.
34784 (nvptx_declare_function_name): Restore red_partition register.
34785 (nvptx_file_end): Emit code to declare the vector reduction variables.
34786 (nvptx_output_red_partition): New function.
34787 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34788 large vector reductions.
34789 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34790 (nvptx_init_builtins): Add VECTOR_ADDR.
34791 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34792 Handle nvptx_expand_shared_addr.
34793 (nvptx_get_shared_red_addr): Add vector argument and handle large
34794 vectors.
34795 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34796 large vectors.
34797 (nvptx_goacc_reduction_init): Likewise.
34798 (nvptx_goacc_reduction_fini): Likewise.
34799 (nvptx_goacc_reduction_teardown): Likewise.
34800 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34801 init,fini,teardown}.
34802 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34803 (nvptx_set_current_function): Init vector_red_partition.
34804 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34805 (nvptx_red_partition): New insn.
34806 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34807
34808 2019-01-07 Tom de Vries <tdevries@suse.de>
34809
34810 PR target/85381
34811 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34812 empty loops.
34813
34814 2019-01-07 Tom de Vries <tdevries@suse.de>
34815
34816 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34817 (nvptx_option_override): Init oacc_bcast_partition.
34818 (nvptx_init_oacc_workers): New function.
34819 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34820 (nvptx_needs_shared_bcast): New function.
34821 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34822 to propagate state.
34823 (nvptx_shared_propagate): Initialize vector bcast partition and
34824 synchronization state.
34825 (nvptx_single): Generalize to enable vectors to use shared-memory
34826 to propagate state.
34827 (nvptx_process_pars): Likewise.
34828 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34829 * config/nvptx/nvptx.h (struct machine_function): Add
34830 bcast_partition and sync_bar members.
34831
34832 2019-01-07 Tom de Vries <tdevries@suse.de>
34833
34834 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34835 (nvptx_apply_dim_limits): New function.
34836 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34837 PTX_WARP_SIZE.
34838
34839 2019-01-07 Tom de Vries <tdevries@suse.de>
34840
34841 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34842 as late as possible.
34843
34844 2019-01-07 Tom de Vries <tdevries@suse.de>
34845
34846 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34847 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34848 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34849 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34850 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34851
34852 2019-01-07 Tom de Vries <tdevries@suse.de>
34853
34854 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34855
34856 2019-01-07 Tom de Vries <tdevries@suse.de>
34857
34858 * omp-offload.c (oacc_get_min_dim): New function.
34859 * omp-offload.h (oacc_get_min_dim): Declare.
34860
34861 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34862
34863 PR target/88521
34864 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34865 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34866
34867 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34868
34869 PR tree-opt/86020
34870 Revert:
34871 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34872
34873 * ipa-inline.c (edge_badness): Use inlined_time instead of
34874 inline_summaries->get.
34875
34876 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34877
34878 * opts.c (enable_fdo_optimizations): Enable
34879 version-loops-for-strides, loop-interchange, unrol-and-jam
34880 and tree-loop-distribution.
34881 * invoke.texi: Document newly enabled options.
34882
34883 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34884
34885 * doc/invoke.texi (max-inline-insns-small): New parameters.
34886 * ipa-inline.c (want_early_inline_function_p): simplify.
34887 (want_inline_small_function_p): Fix pasto from previous patch;
34888 use max-inline-insns-small bound.
34889 * params.def (max-inline-insns-small): New param.
34890 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34891 variables correctly.
34892
34893 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34894
34895 * doc/invoke.texi: Document max-inline-insns-size,
34896 uninlined-function-insns, uninlined-function-time,
34897 uninlined-thunk-insns and uninlined-thunk-time.
34898 * params.def: Add max-inline-insns-size,
34899 uninlined-function-insns, uninlined-function-time,
34900 uninlined-thunk-insns and uninlined-thunk-time.
34901 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34902 new parameters.
34903 * ipa-inline.c (can_inline_edge_by_limits_p,
34904 want_inline_small_function_p): Use new parameters.
34905
34906 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34907
34908 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34909
34910 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34911
34912 PR middle-end/82564
34913 PR target/88620
34914 * expr.c (expand_assignment): For calls returning VLA structures
34915 if to_rtx is not a MEM, force it into a stack temporary.
34916
34917 PR debug/88635
34918 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34919 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34920 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34921 subexpressions of both operands.
34922 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34923 subrtxes are CONSTANT_P.
34924 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34925 2018-11-09 changes.
34926
34927 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34928
34929 * params.def (hot-bb-count-ws-permille): Set to 990.
34930
34931 2019-01-04 Martin Sebor <msebor@redhat.com>
34932
34933 PR c/88546
34934 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34935 leaf.
34936
34937 2019-01-04 Martin Sebor <msebor@redhat.com>
34938
34939 PR c/88363
34940 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34941
34942 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34943
34944 * gdbinit.in: Turn off pagination for the skip commands, restore
34945 it to previous state afterwards.
34946
34947 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34948
34949 PR target/88594
34950 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34951 of GET_MODE (opN) as modes of the libcall arguments.
34952
34953 2019-01-04 Jan Beulich <jbeulich@suse.com>
34954
34955 * config/i386/sse.md
34956 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34957 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34958 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34959 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34960 avx512f_vmcmp<mode>3<round_saeonly_name>,
34961 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34962 avx512f_maskcmp<mode>3,
34963 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34964 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34965 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34966 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34967 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34968 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34969 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34970 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34971 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34972 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34973 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34974 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34975 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34976 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34977 avx512cd_maskb_vec_dup<mode>,
34978 avx512cd_maskw_vec_dup<mode>,
34979 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34980 avx512dq_vmfpclass<mode>,
34981 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34982 instead of =Yk.
34983
34984 2019-01-03 Martin Sebor <msebor@redhat.com>
34985
34986 PR tree-optimization/88659
34987 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34988
34989 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34990
34991 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34992 unaligned vsx and avoid lxvd2x/stxvd2x.
34993 (gen_lvx_v4si_move): New function.
34994
34995 2019-01-03 Tom de Vries <tdevries@suse.de>
34996
34997 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34998 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34999 function.
35000 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35001
35002 2019-01-03 Tom de Vries <tdevries@suse.de>
35003
35004 * config/nvptx/nvptx.c (struct offload_attrs): New.
35005 (populate_offload_attrs): New function. Factor mask extraction out of
35006 nvptx_reorg. Add extraction of dimensions.
35007 (nvptx_reorg): Use populate_offload_attrs.
35008
35009 2019-01-03 Tom de Vries <tdevries@suse.de>
35010
35011 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35012 cases for oacc_min_dims_p and routine_p. Add asserts for
35013 oacc_default_dims_p and offload_region_p.
35014
35015 2019-01-03 Tom de Vries <tdevries@suse.de>
35016
35017 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35018 factored out of ...
35019 (nvptx_goacc_validate_dims): ... here.
35020
35021 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35022
35023 PR tree-optimization/85574
35024 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35025 structure.
35026 (struct ssa_equip_hash_traits): Declare.
35027 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35028
35029 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35030
35031 PR debug/88644
35032 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35033 change it to qualified_type.
35034
35035 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35036
35037 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35038 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35039
35040 2019-01-02 Martin Sebor <msebor@redhat.com>
35041 Jeff Law <law@redhat.com>
35042
35043 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35044 (get_range_strlen_tree): Update appropriately.
35045 (get_range_strlen)
35046 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35047
35048 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35049 rather than set_range_info.
35050 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35051 maybe_set_strlen_range. Handle potentially boundary crossing
35052 cases more conservatively.
35053 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35054 Call set_strlen_range.
35055 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35056
35057 PR middle-end/88663
35058 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35059 need the flexp argument.
35060 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35061 from calls to get_range_strlen. Update comments. Just update
35062 VAL for an unterminated const char array and let the reset of the
35063 code handle it normally. No longer try to set *flexp. Adjust
35064 return value.
35065 (get_range_strlen): Update for the new get_range_strlen API.
35066 (get_maxval_strlen): Similarly.
35067 (gimple_fold_builtin_strlen): Handle update meaning of return value
35068 from get_range_strlen.
35069 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35070 get_range_strlen API.
35071
35072 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35073
35074 PR lto/88130
35075 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35076 false at WPA time when body was removed.
35077
35078 2019-01-02 Martin Liska <mliska@suse.cz>
35079
35080 PR tree-optimization/88650
35081 * predict.c (set_even_probabilities): Calculate probability
35082 remainer only when really used.
35083
35084 2019-01-02 Richard Biener <rguenther@suse.de>
35085
35086 PR middle-end/88651
35087 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35088 widest_ints when mangling max_stmt_execution results.
35089
35090 2019-01-02 Richard Biener <rguenther@suse.de>
35091
35092 PR tree-optimization/88621
35093 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35094 bitfields when canoncalizing.
35095
35096 2019-01-02 Richard Biener <rguenther@suse.de>
35097
35098 PR target/87545
35099 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35100 cost of cheap SSE instruction.
35101
35102 2019-01-02 Richard Biener <rguenther@suse.de>
35103
35104 PR ipa/85574
35105 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35106 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35107 function.
35108 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35109 set after UIDs before splitting them.
35110
35111 2019-01-01 Martin Sebor <msebor@redhat.com>
35112 Jeff Law <law@redhat.com>
35113
35114 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35115 length is optimistic. If it is, then arrange to compute the
35116 conservative length as well.
35117
35118 * gimple-fold.h (get_range_strlen): Update prototype.
35119 * builtins.c (check_access): Update call to get_range_strlen to use
35120 c_strlen_data pointer. Change various variable accesses to instead
35121 pull data from the c_strlen_data structure.
35122 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35123 * calls.c (maybe_warn_nonstring_arg): Likewise.
35124 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35125 minimum length if maximum lengh is unknown.
35126 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35127 that used c_strlen, it's no longer needed. Restructure slightly.
35128 (format_string): Set unlikely range appropriately.
35129 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35130 formatting issues.
35131 (get_range_strlen): Accept c_strlen_data pointer for external
35132 call sites as well. Pass through to call to internal get_range_strlen.
35133 Adjust minlen, maxlen and maxbound as needed.
35134 (get_maxval_strlen): Update comments.
35135 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35136 to use c_strlen_data pointer. Change variable accesses to instead
35137 use c_strlen_data data members.
35138
35139 * gimple-fold.c (get_range_strlen): Update prototype.
35140 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35141 local variables. Use pdata to return information to caller.
35142 Update calls to get_range_strlen. Update pdata->maxbound.
35143 (get_range_strlen -- static version): Similarly.
35144 (get_range_strlen -- extern version): Update for internal
35145 get_range_strlen API change. Convert to external data format.
35146 (get_maxval_strlen): Similarly.
35147
35148 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35149
35150 * coverage.c (get_coverage_counts): Use current_function_decl.
35151 * profile.c (read_thunk_profile): New function.
35152 (branch_prob): Add THUNK parameter.
35153 * tree-profile.c (tree_profiling): Handle thunks.
35154 * value-prof.c (init_node_map): Handle thunks.
35155 * value-prof.h (branch_prob): Upate prototype.
35156 (read_thunk_profile): Declare.
35157
35158 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35159
35160 Update copyright years.
35161
35162 * gcc.c (process_command): Update copyright notice dates.
35163 * gcov-dump.c (print_version): Ditto.
35164 * gcov.c (print_version): Ditto.
35165 * gcov-tool.c (print_version): Ditto.
35166 * gengtype.c (create_file): Ditto.
35167 * doc/cpp.texi: Bump @copying's copyright year.
35168 * doc/cppinternals.texi: Ditto.
35169 * doc/gcc.texi: Ditto.
35170 * doc/gccint.texi: Ditto.
35171 * doc/gcov.texi: Ditto.
35172 * doc/install.texi: Ditto.
35173 * doc/invoke.texi: Ditto.
35174 \f
35175 Copyright (C) 2019 Free Software Foundation, Inc.
35176
35177 Copying and distribution of this file, with or without modification,
35178 are permitted in any medium without royalty provided the copyright
35179 notice and this notice are preserved.