cfgloop.h (get_loop_exit_edges): Add extra parameter denoting loop body, defaulted...
[gcc.git] / gcc / ChangeLog
1 2019-11-25 Richard Biener <rguenther@suse.de>
2
3 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
4 loop body, defaulted to NULL.
5 (single_likely_exit): Add exit vector argument
6 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
7 (number_of_iterations_exit): Likewise.
8 (number_of_iterations_exit_assumptions): Likewise.
9 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
10 if not NULL.
11 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
12 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
13 Compute exit vector around call to single_likely_exit.
14 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
15 loop body to loop_only_exit_p.
16 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
17 caller.
18 (number_of_iterations_exit_assumptions): Get loop body from caller
19 if not NULL.
20 (number_of_iterations_exit): Pass through new loop body arg.
21 (infer_loop_bounds_from_undefined): Get loop body from caller.
22 (estimate_numbers_of_iterations): Compute loop body once.
23
24 2019-11-25 Richard Biener <rguenther@suse.de>
25
26 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
27 auto_bb_flag instead of an sbitmap for visited handling.
28
29 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
30
31 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
32 iterator.
33 (vector_fp_comparison_complex): Likewise.
34 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
35 define_and_split.
36 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
37 Likewise.
38 (vector_lt<mode> for VEC_F): Refactor with
39 vector_fp_comparison_simple.
40 (vector_le<mode> for VEC_F): Likewise.
41 (vector_unge<mode> for VEC_F): Likewise.
42 (vector_unle<mode> for VEC_F): Likewise.
43 (vector_ne<mode> for VEC_F): Likewise.
44 (vector_ungt<mode> for VEC_F): Likewise.
45 (vector_unlt<mode> for VEC_F): Likewise.
46 (vector_ltgt<mode> for VEC_F): Refactor with
47 vector_fp_comparison_complex.
48 (vector_ordered<mode> for VEC_F): Likewise.
49 (vector_uneq<mode> for VEC_F): Likewise.
50 (vector_unordered<mode> for VEC_F): Likewise.
51
52 2019-11-24 Jerry DeLisle <jvdelisle@gcc.ngu.org>
53
54 PR fortran/92100
55 gfortran.dg/streamio_18.f90: New test.
56
57 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
58
59 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
60 COMPARE, representing an overflow detection.
61
62 * combine.c (combine_instructions): Record costs for jumps.
63
64 * combine.c (can_combine_p): Allow autoinc in jumps.
65
66 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
67
68 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
69 * doc/invoke.texi (max-inline-insns-single-O2,
70 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
71 early-inlining-insns-O2): Remove documentation.
72 * ipa-fnsummary.c (analyze_function_body,
73 compute_fn_summary): Use opt_for_fn when accessing parameters.
74 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
75 inline_insns_auto, can_inline_edge_by_limits_p,
76 want_early_inline_function_p, big_speedup_p,
77 want_inline_small_function_p, want_inline_self_recursive_call_p,
78 recursive_inlining, compute_max_insns, inline_small_functions):
79 Likewise.
80 * opts.c (default_options): Add -O3 defaults for
81 OPT__param_early_inlining_insns_,
82 OPT__param_inline_heuristics_hint_percent_,
83 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
84 * params.opt (-param=early-inlining-insns-O2=,
85 -param=inline-heuristics-hint-percent-O2=,
86 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
87 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
88 -param=inline-min-speedup=, -param=inline-unit-growth=,
89 -param=large-function-growth=, -param=large-stack-frame=,
90 -param=large-stack-frame-growth=, -param=large-unit-insns=,
91 -param=max-inline-insns-recursive=,
92 -param=max-inline-insns-recursive-auto=,
93 -param=max-inline-insns-single=,
94 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
95 -param=max-inline-recursive-depth=,
96 -param=max-inline-recursive-depth-auto=,
97 -param=min-inline-recursive-probability=,
98 -param=partial-inlining-entry-probability=,
99 -param=uninlined-function-insns=, -param=uninlined-function-time=,
100 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
101 Optimization.
102
103 2019-11-23 Jakub Jelinek <jakub@redhat.com>
104
105 * ipa-fnsummary.c: Fix comment typos.
106 * ipa-ref.h: Likewise.
107 * ipa-predicate.h: Likewise.
108 * ipa-split.c: Likewise.
109 * ipa-inline-analysis.c: Likewise.
110 * ipa-predicate.c: Likewise.
111 * ipa-devirt.c: Likewise.
112 * ipa-icf.h: Likewise.
113 * profile-count.c: Likewise.
114 * ipa-icf.c: Likewise.
115 (sem_function::equals_wpa): Fix typos in dump messages.
116 * ipa-icf-gimple.h: Fix comment typos.
117 * ipa-inline-transform.c: Likewise.
118 * ipa-polymorphic-call.c: Likewise.
119 * ipa-fnsummary.h: Likewise.
120 * ipa-inline.c: Likewise.
121 (dump_inline_stats): Fix typo in debug dump message.
122 * profile-count.h: Fix comment typos.
123
124 PR target/92615
125 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
126 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
127 register_operand, force x into register before storing it into dest.
128 Formatting fix.
129
130 PR middle-end/83859
131 * doc/extend.texi (attribute access): Fix a typo.
132
133 PR rtl-optimization/92610
134 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
135 cse_cfg_altered is set, even when tem is 0.
136 (rest_of_handle_cse_after_global_opts): Likewise.
137
138 2019-11-22 Jakub Jelinek <jakub@redhat.com>
139
140 PR c++/92458
141 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
142 tree_hash): Move to ...
143 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
144 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
145 types.
146 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
147
148 PR tree-optimization/92618
149 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
150 containing the auto_vec and a tree.
151 (undistribute_bitref_for_vector): Handle the case when element type
152 of vec is not the same as type of the BIT_FIELD_REF. Formatting
153 fixes.
154
155 2019-11-22 Martin Sebor <msebor@redhat.com>
156
157 PR middle-end/83859
158 * attribs.h (struct attr_access): New.
159 * attribs.c (decl_attributes): Add an informational note.
160 * builtins.c (check_access): Make extern. Consistently set no-warning
161 after issuing a warning. Handle calls through function pointers. Set
162 no-warning.
163 * builtins.h (check_access): Declare.
164 * calls.c (rdwr_access_hash): New type.
165 (rdwr_map): Same.
166 (init_attr_rdwr_indices): New function.
167 (maybe_warn_rdwr_sizes): Same.
168 (initialize_argument_information): Call init_attr_rdwr_indices.
169 Call maybe_warn_rdwr_sizes.
170 (get_size_range): Avoid null argument.
171 * doc/extend.texi (attribute access): Document new attribute.
172
173 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
174
175 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
176 (ACC_LDS_SIZE): Define.
177 (OTHER_LDS_SIZE): Define.
178 (LDS_SIZE): Redefine using above.
179 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
180
181 2019-11-22 Martin Sebor <msebor@redhat.com>
182
183 PR middle-end/88226
184 * builtins.c (check_nul_terminated_array): New function.
185 (fold_builtin_0): Remove declaration.
186 (fold_builtin_1): Same.
187 (fold_builtin_2): Same.
188 (fold_builtin_3): Same.
189 (fold_builtin_strpbrk): Add argument.
190 (fold_builtin_strspn): Same.
191 (fold_builtin_strcspn): Same.
192 (expand_builtin_strcat): Call it. Remove unused argument.
193 (expand_builtin_stpncpy): Same.
194 (expand_builtin_strncat): Same.
195 (expand_builtin_strncpy): Same. Adjust indentation.
196 (expand_builtin_strcmp): Same.
197 (expand_builtin_strncmp): Same.
198 (expand_builtin_fork_or_exec): Same.
199 (expand_builtin): Handle more built-ins.
200 (fold_builtin_2): Add argument.
201 (fold_builtin_n): Make static. Add argument.
202 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
203 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
204 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
205 (fold_call_stmt): Pass new argument to fold_builtin_n.
206 * builtins.h: Correct a comment.
207 * gimple-fold.c (gimple_fold_builtin_strchr): Call
208 check_nul_terminated_array.
209 * tree-ssa-strlen.c (handle_builtin_strlen): Call
210 check_nul_terminated_array.
211 (handle_builtin_strchr): Same.
212 (handle_builtin_string_cmp): Same.
213
214 2019-11-22 Martin Sebor <msebor@redhat.com>
215
216 PR tree-optimization/92501
217 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
218 handle unterminated arrays. Rename local variables for clarity.
219
220 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
221
222 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
223 granulated_sgprs according to architecture.
224
225 2019-11-22 Jan Hubicka <jh@suse.cz>
226
227 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
228 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
229 (memory_block_pool::reduce_free_list): ... this one.
230 (memory_block_pool::trim): New static function.
231 * memory-block.h (memory_block_pool::freelist_size): New constant
232 (memory_block_pool::clear_free_list): Rename to ...
233 (memory_block_pool::reduce_free_list): ... this one.
234 (memory_block_pool::trim): Declare.
235
236 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
237
238 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
239 vect_cost_for_stmt.
240 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
241 here rather than...
242 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
243
244 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
245
246 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
247 (bic_cmp0_noout): New pattern.
248 (bic_cmp0): Likewise.
249 (neg_scc_insn): Remove pattern.
250 (not_scc_insn): Likewise.
251
252 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
253
254 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
255
256 2019-11-21 Joseph Myers <joseph@codesourcery.com>
257
258 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
259 pedwarn instead of warning_at for fallthrough not preceding a case
260 or default label.
261
262 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
263
264 PR tree-optimization/92608
265 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
266 of dyn_cast.
267
268 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
269
270 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
271 New predicate.
272 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
273 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
274 special for FP comparisons that need a cror instruction eventually.
275 (rs6000_emit_fp_cror): New function.
276 (rs6000_emit_sCOND): Expand all floating point comparisons to one
277 instruction, for normal FP modes, with HONOR_NANS.
278 (rs6000_emit_cbranch): Reformat.
279 * config/rs6000/rs6000.md (fp_rev): New iterator.
280 (fp_two): New iterator.
281 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
282 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
283 *cbranch_2insn: New define_insn_and_split.
284
285 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
286
287 PR tree-optimization/92526
288 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
289 versioning for alignment if the accesses do not have a consistent
290 mask, rather than asserting that the masks are consistent.
291
292 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
293
294 PR tree-optimization/92595
295 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
296 check.
297 (vectorizable_store, vectorizable_load): Likewise.
298
299 2019-11-21 Jan Hubicka <jh@suse.cz>
300
301 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
302 (resolve_noninline_speculation, inline_small_functions): Avoid
303 redundant updates.
304
305 2019-11-21 Richard Biener <rguenther@suse.de>
306
307 * lra.c (lra_insn_recog_data_pool): New.
308 (free_insn_recog_data): Adjust.
309 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
310 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
311
312 2019-11-21 Richard Biener <rguenther@suse.de>
313
314 PR tree-optimization/92596
315 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
316
317 2019-11-21 Jan Hubicka <jh@suse.cz>
318
319 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
320 ready for some vectors to not be allocated.
321 (evaluate_properties_for_edge): Document better; make
322 known_vals and known_aggs caller allocated; avoid determining
323 values of parameters which are not used.
324 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
325 known_aggs.
326 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
327 (do_estimate_edge_size): Likewise.
328 (do_estimate_edge_hints): Likewise.
329 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
330 values are not known.
331 (ipa_release_agg_values): Add option to not release vector itself.
332 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
333
334 2019-11-21 Richard Biener <rguenther@suse.de>
335
336 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
337 (loop_iterator::to_visit): Use an auto_vec with internal storage.
338 (loop_iterator::loop_iterator): Adjust.
339 * cfganal.c (compute_dominance_frontiers_1): Fold into...
340 (compute_dominance_frontiers): ... this. Hoist invariant
341 get_immediate_dominator call.
342 (compute_idf): Use a work-set instead of a work-list for more
343 optimal iteration order and duplicate avoidance.
344 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
345 the vector all the time, instead pre-allocate the vector only
346 once.
347 (delete_update_ssa): Simplify.
348 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
349
350 2019-11-21 Jakub Jelinek <jakub@redhat.com>
351
352 PR tree-optimization/91355
353 * tree-ssa-sink.c (select_best_block): Use >= rather than >
354 for early_bb scaled count with best_bb count comparison.
355
356 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
357 preffer -> prefer.
358 * ipa-inline.c (edge_badness): Likewise.
359 * lto-streamer.h (class lto_location_cache): Likewise.
360 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
361 gratutious -> gratuitous.
362
363 2019-11-21 Richard Biener <rguenther@suse.de>
364
365 Revert
366 2019-09-17 Richard Biener <rguenther@suse.de>
367
368 PR tree-optimization/91790
369 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
370 use the correct DR for setting up realignment.
371
372 2019-11-21 Richard Biener <rguenther@suse.de>
373
374 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
375 (equiv_class_obstack): New.
376 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
377 (perform_var_substitution): Initialize equiv_class_obstack.
378 (free_var_substitution_info): Free equiv_class_obstack.
379
380 2019-11-20 Jan Hubicka <jh@suse.cz>
381
382 * ipa-inline.c (want_early_inline_function_p): Do not estimate
383 edge growth when callee function is very large.
384 * ipa-inline.h (estimate_min_edge_growth): New.
385
386 2019-11-20 Jan Hubicka <jh@suse.cz>
387
388 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
389 negative time in calls summary; correct roundoff errors
390 leading to negative times.
391 (ipa_merge_fn_summary_after_inlining): Update calls size time table
392 if present.
393 (ipa_update_overall_fn_summary): Add RESET parameter.
394 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
395 * ipa-inline-transform.c (inline_call): Enable incremental updates.
396
397 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
398
399 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
400 def types for two-operation SLP.
401
402 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
403
404 PR testsuite/92366
405 * doc/sourcebuild.texi (vect_char_add): Document.
406
407 2019-11-20 Alexandre Oliva <oliva@adacore.com>
408
409 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
410 * function.c (record_final_call): Record even calls that might
411 have been in the cgraph.
412 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
413 callees.
414
415 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
416
417 * configure.ac: Use https for gcc.gnu.org
418 * configure: Regenerated.
419 * doc/install.texi: Use https for gcc.gnu.org.
420 * doc/sourcebuild.texi: Likewise.
421
422 2019-11-20 Julian Brown <julian@codesourcery.com>
423
424 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
425
426 2019-11-20 Jan Hubicka <jh@suse.cz>
427
428 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
429 parameter and update call_size_time_table.
430 (ipa_fn_summary::max_size_time_table_size): New constant.
431 (estimate_calls_size_and_time_1): Break out from ...
432 (estimate_calls_size_and_time): ... here; implement summary production.
433 (summarize_calls_size_and_time): New function.
434 (ipa_call_context::estimate_size_and_time): Bypass
435 estimate_calls_size_and_time for leaf functions.
436 (ipa_update_overall_fn_summary): Likewise.
437 * ipa-fnsummary.h (call_size_time_table): New.
438 (ipa_fn_summary::account_size_time): Update prototype.
439
440 2019-11-20 Joseph Myers <joseph@codesourcery.com>
441
442 * doc/invoke.texi (-Wc11-c2x-compat): Document.
443
444 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
445
446 PR85678
447 * common.opt (fcommon): Change init to 1.
448 * doc/invoke.texi (-fcommon): Update documentation.
449
450 2019-11-20 Jan Hubicka <jh@suse.cz>
451
452 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
453 to ordinary array.
454
455 2019-11-20 Jan Hubicka <jh@suse.cz>
456
457 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
458 Add allocator parameter.
459 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
460 (fibonacci_heap<K,V>::m_allocator): New.
461 (fibonacci_heap<K,V>::m_own_allocator): New.
462 (fibonacci_heap<K,V>::insert): Use allocator.
463 (fibonacci_heap<K,V>::extract_min): Likewise.
464 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
465 allocator.
466 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
467 on stack.
468 * fibonacci_heap.c: Include alloc-pool
469 (test_empty_heap): Initialize allocator.
470 (test_union): Likewise.
471 * bb-reorder.c: Include alloc-pool.h.
472 * tracer.c: Inlclude alloc-pool.h.
473
474 2019-11-20 Jan Hubicka <jh@suse.cz>
475
476 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
477 Preallocate for 32 entries.
478 (DFS::worklist): Likewise.
479 (DFS::DFS): Do not initialize sccstack and worklist.
480 (DFS::~DFS): Do not release sccstack.
481
482 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
483
484 PR target/92573
485 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
486 Handle UNORDERED if !HONOR_NANS.
487
488 2019-11-20 Jan Hubicka <jh@suse.cz>
489
490 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
491 (edge_badness): ... here.
492 (inline_small_functions): Use monotonicity of badness calculation
493 to avoid redundant updates.
494
495 2019-11-20 Richard Biener <rguenther@suse.de>
496
497 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
498 constructors we are actually analyzing.
499 (vect_slp_check_for_constructors): Do not vectorize uniform
500 constuctors, do not dump here.
501
502 2019-11-20 Richard Biener <rguenther@suse.de>
503
504 PR tree-optimization/92537
505 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
506 vectorization validity check...
507 (vect_slp_analyze_operations): ... here.
508
509 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
510
511 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
512 (make_pass_arc_predicate_delay_insns): Likewise.
513 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
514 method, remove clone.
515 (class pass_arc_predicate_delay_insns): Likewise.
516 (arc_init): Remove registering of ARC specific passes.
517 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
518 * config/arc/arc-passes.def: New file.
519
520 2019-11-20 Jakub Jelinek <jakub@redhat.com>
521
522 PR middle-end/90840
523 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
524 and has a mode that doesn't have corresponding integral type.
525
526 PR target/90867
527 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
528 clear opts->x_ix86_isa_flags{,2} here...
529 (ix86_valid_target_attribute_inner_p): ... but here when seeing
530 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
531
532 PR c/90898
533 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
534 assertion.
535 (insert_clobbers_for_var): Fix a typo in function comment.
536
537 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
538 Jakub Jelinek <jakub@redhat.com>
539
540 PR middle-end/91195
541 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
542 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
543 load.
544
545 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
546
547 Make 0-series device specs work with older versions of avr-gcc.
548
549 PR target/92545
550 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
551 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
552 <*link_pm_base_address>: Don't write spec.
553 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
554
555 2019-11-20 Richard Biener <rguenther@suse.de>
556
557 PR c/92088
558 * builtins.c (compute_objsize): Deal with VLAs.
559
560 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
561
562 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
563 from common code.
564 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
565 call new function.
566 (power9_sched_reorder2): Call new function.
567 (rs6000_sched_reorder2): Likewise.
568
569 2019-11-18 Jan Hubicka <jh@suse.cz>
570
571 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
572 (estimate_calls_size_and_time): Update.
573
574 2019-11-18 Jan Hubicka <jh@suse.cz>
575
576 * ipa-inline.c (inlining_speedup): New function.
577 (edge_badness): Use it.
578
579 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
580 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
581
582 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
583 Mark as not having "likely" version.
584 * config/mips/mips.md (insn_count): The simd_div instruction with
585 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
586 (can_delay): Exclude simd_branch.
587 (defile_delay *): Add simd_branch instructions.
588 They have one regular delay slot.
589
590 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
591
592 Revert:
593 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
594
595 * cse.c (cse_insn): Delete no-op register moves too.
596 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
597 Take a second comparison to control the value for NE.
598 (mask_to_comparison): Handle unsigned comparisons.
599 (simplify_logical_relational_operation): Likewise. Update call
600 to comparison_to_mask. Handle AND if !HONOR_NANs.
601 (simplify_binary_operation_1): Call the above for AND too.
602
603 2019-11-19 Martin Liska <mliska@suse.cz>
604
605 * toplev.c (general_init): Move the call...
606 (toplev::main): ... here as we need init_options_struct
607 being called.
608
609 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
610
611 PR target/79262
612 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
613 vec_to_scalar_cost.
614
615 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
616
617 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
618 (armv7-a): Likewise.
619 (armv7ve): Likewise.
620
621 2019-11-19 Richard Biener <rguenther@suse.de>
622
623 PR tree-optimization/92581
624 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
625 condition reduction chains gather all conditions involved
626 for computing the index reduction vector.
627
628 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
629
630 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
631 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
632 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
633 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
634 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
635 (aarch64_init_memtag_builtins): New.
636 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
637 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
638 (aarch64_expand_builtin_memtag): New.
639 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
640 (AARCH64_BUILTIN_SUBCODE): New macro.
641 (aarch64_resolve_overloaded_memtag): New.
642 (aarch64_resolve_overloaded_builtin_general): New. Call
643 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
644 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
645 __ARM_FEATURE_MEMORY_TAGGING when enabled.
646 (aarch64_resolve_overloaded_builtin): Call
647 aarch64_resolve_overloaded_builtin_general.
648 * config/aarch64/aarch64-protos.h
649 (aarch64_resolve_overloaded_builtin_general): New declaration.
650 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
651 (TARGET_MEMTAG): Likewise.
652 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
653 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
654 (irg, gmi, subp, addg, ldg, stg): New instructions.
655 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
656 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
657 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
658 (__arm_mte_get_tag): Likewise.
659 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
660 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
661 * config/arm/types.md (memtag): New.
662 * doc/invoke.texi (-memtag): Update description.
663
664 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
665
666 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
667 to define __GCC_ASM_FLAG_OUTPUTS__.
668 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
669 (arm_option_params_internal): Swap out targetm.md_asm_adjust
670 depending on TARGET_THUMB1.
671 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
672
673 2019-11-19 Jakub Jelinek <jakub@redhat.com>
674
675 PR target/92549
676 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
677
678 PR middle-end/91450
679 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
680 operand is negative and one non-negative, compare the non-negative
681 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
682 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
683 and s2 == 0, unless one of them is known to be negative. Remove
684 tem2 variable, use tem where tem2 has been used before.
685
686 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
687
688 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
689
690 2019-11-19 Jakub Jelinek <jakub@redhat.com>
691
692 PR tree-optimization/92557
693 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
694 vmode rather than asserting it always is.
695
696 2019-11-19 Richard Biener <rguenther@suse.de>
697
698 PR tree-optimization/92554
699 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
700 for the actual condition stmt and deal with sign-changes.
701
702 2019-11-19 Richard Biener <rguenther@suse.de>
703
704 PR tree-optimization/92555
705 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
706 for non-SLP stmts.
707
708 2019-11-19 Martin Liska <mliska@suse.cz>
709
710 PR bootstrap/92540
711 * config/riscv/riscv.c (riscv_address_insns): Initialize
712 addr in order to remove boostrap -Wmaybe-uninitialized
713 error.
714
715 2019-11-18 Martin Sebor <msebor@redhat.com>
716
717 PR tree-optimization/92493
718 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
719 assignment.
720
721 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
722
723 * cfgloop.c (get_loop_body_in_custom_order): New.
724 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
725 * tree-loop-distribution.c (class loop_distribution): New.
726 (bb_top_order_cmp): Remove.
727 (bb_top_order_cmp_r): New.
728 (create_rdg_vertices): Move into class loop_distribution.
729 (stmts_from_loop): Same as above.
730 (update_for_merge): Same as above.
731 (partition_merge_into): Same as above.
732 (get_data_dependence): Same as above.
733 (data_dep_in_cycle_p): Same as above.
734 (update_type_for_merge): Same as above.
735 (build_rdg_partition_for-vertex): Same as above.
736 (classify_builtin_ldst): Same as above.
737 (classify_partition): Same as above.
738 (share_memory_accesses): Same as above.
739 (rdg_build_partitions): Same as above.
740 (pg_add_dependence_edges): Same as above.
741 (build_partition_graph): Same as above.
742 (merge_dep_scc_partitions): Same as above.
743 (break_alias_scc_partitions): Same as above.
744 (finalize_partitions): Same as above.
745 (distribute_loop): Same as above.
746 (bb_top_order_init): New method
747 (bb_top_order_destroy): New method.
748 (get_bb_top_order_index_size): New method.
749 (get_bb_top_order_index_index): New method.
750 (get_bb_top_order_index_index): New method.
751 (loop_distribution::execute): New method.
752 (pass_loop_distribution::execute): Instantiate loop_distribution.
753
754 2019-11-18 Jan Hubicka <jh@suse.cz>
755
756 PR ipa/92508
757 * ipa-inline.c (inline_small_functions): Add new edges after reseting
758 caches.
759 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
760
761 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
762
763 * doc/sourcebuild.texi (vect_check_ptrs): Document.
764 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
765 * doc/md.texi: Document them.
766 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
767 internal functions.
768 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
769 * internal-fn.c (check_ptrs_direct): New macro.
770 (expand_check_ptrs_optab_fn): Likewise.
771 (direct_check_ptrs_optab_supported_p): Likewise.
772 (internal_check_ptrs_fn_supported_p): New fuction.
773 * tree-data-ref.c: Include internal-fn.h.
774 (create_ifn_alias_checks): New function.
775 (create_intersect_range_checks): Use it.
776 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
777 (optab, cmp_op): Handle it.
778 (raw_war, unspec): New int attributes.
779 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
780 constants.
781 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
782 New predicate.
783 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
784 expander.
785 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
786 pattern.
787
788 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
789
790 * tree.c (build_vector_from_ctor): Directly return a zero vector for
791 empty constructors.
792
793 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
794
795 * cse.c (cse_insn): Delete no-op register moves too.
796 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
797 Take a second comparison to control the value for NE.
798 (mask_to_comparison): Handle unsigned comparisons.
799 (simplify_logical_relational_operation): Likewise. Update call
800 to comparison_to_mask. Handle AND if !HONOR_NANs.
801 (simplify_binary_operation_1): Call the above for AND too.
802
803 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
804
805 * fold-const.c (native_encode_vector): Turn into a wrapper function,
806 splitting the main code out into...
807 (native_encode_vector_part): ...this new function.
808 (native_decode_vector_tree): New function.
809 (fold_view_convert_vector_encoding): Likewise.
810 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
811 to VECTOR_TYPEs.
812
813 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
814
815 * tree-data-ref.c (create_intersect_range_checks_index): If the
816 alias pair describes simple WAW and WAR dependencies, just check
817 whether the first B access overlaps later A accesses.
818 (create_waw_or_war_checks): New function that performs the same
819 optimization on addresses.
820 (create_intersect_range_checks): Call it.
821
822 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
823
824 * lra-constraints.c (valid_address_p): Take the operand and a
825 constraint as argument. If the operand is a MEM and the constraint
826 is a memory constraint, check whether the eliminated form of the
827 MEM already satisfies the constraint.
828 (process_address_1): Update calls accordingly.
829
830 2019-11-18 Tom Tromey <tromey@adacore.com>
831
832 * doc/tm.texi: Rebuild.
833 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
834 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
835
836 2019-11-18 Richard Biener <rguenther@suse.de>
837
838 PR tree-optimization/92516
839 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
840 argument, hoist bst_map creation/destruction to ...
841 (vect_analyze_slp): ... here, forming a true graph with
842 SLP instances being the entries.
843 (vect_detect_hybrid_slp_stmts): Remove wrapper.
844 (vect_detect_hybrid_slp): Use one visited set for all
845 graph entries.
846 (vect_slp_analyze_node_operations): Simplify visited/lvisited
847 to hash-sets of slp_tree.
848 (vect_slp_analyze_operations): Likewise.
849 (vect_bb_slp_scalar_cost): Remove wrapper.
850 (vect_bb_vectorization_profitable_p): Use one visited set for
851 all graph entries.
852 (vect_schedule_slp_instance): Elide bst_map use.
853 (vect_schedule_slp): Likewise.
854
855 2019-11-18 Richard Biener <rguenther@suse.de>
856
857 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
858 was vectorized with just external refs fail.
859
860 2019-11-18 Martin Liska <mliska@suse.cz>
861
862 PR ipa/92525
863 * ipa-icf.c (sem_function::init): Unset m_checker
864 at the end of the function.
865
866 2019-11-18 Richard Biener <rguenther@suse.de>
867
868 PR tree-optimization/92558
869 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
870 reducting the width of a reduction vector def update new_phis.
871
872 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
873
874 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
875 and s390*-*-linux-musl* targets.
876 * configure: Regenerate.
877
878 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
879
880 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
881 (MUSL_DYNAMIC_LINKER64): Define.
882
883 2019-11-18 Martin Liska <mliska@suse.cz>
884
885 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
886 message for an unknown counter.
887 (dbg_cnt_process_single_pair): Support 0 as minimum value.
888 (dbg_cnt_process_opt): Remove unreachable code.
889
890 2019-11-18 Martin Liska <mliska@suse.cz>
891
892 PR ipa/92529
893 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
894 Compare LHS types of NOP_EXPR.
895
896 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
897
898 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
899 "initial_pass_name" argument -- by running "*clean_state" pass.
900 Also free the "initial_pass_name" when done.
901
902 2019-11-18 Richard Biener <rguenther@suse.de>
903
904 PR rtl-optimization/92462
905 * alias.c (find_base_term): Restrict the look through ANDs.
906 (find_base_value): Likewise.
907
908 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
909
910 Add support for AVR devices from the 0-series.
911
912 PR target/92545
913 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
914 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
915 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
916 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
917 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
918 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
919 for spec definitions.
920 * doc/avr-mmcu.texi: Regenerate.
921
922 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
923
924 PR target/92448
925 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
926 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
927 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
928 (ix86_reassociation_width): Ditto.
929 * config/i386/i386-options.c (ix86_option_override_internal):
930 Replace TARGET_AVX128_OPTIAML with
931 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
932 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
933 (TARGET_AVX128_OPTIMAL): Deleted.
934 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
935 DEF_TUNE.
936
937 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
938
939 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
940 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
941 just SI.
942 (cceq_rev_compare): Rename to...
943 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
944 just SI.
945 (define_split for <bd>tf_<mode>): Add SImode first argument to
946 gen_cceq_ior_compare.
947
948 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
949
950 * common/config/powerpcspe: Delete.
951
952 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
953
954 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
955 output in UNSPEC_WRFFR.
956
957 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
958
959 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
960 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
961
962 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
963
964 * tree-data-ref.c (create_intersect_range_checks_index)
965 (create_intersect_range_checks): Print dump messages.
966
967 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
968
969 * tree-data-ref.c (dump_alias_pair): New function.
970 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
971
972 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
973
974 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
975 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
976 merging data references with different steps.
977 (create_intersect_range_checks_index): Take a
978 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
979 Bail out if DR_ALIAS_MIXED_STEPS is set.
980 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
981 instead of two dr_with_seg_lens. Update call to
982 create_intersect_range_checks_index.
983 (create_runtime_alias_checks): Update call accordingly.
984
985 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
986
987 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
988 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
989 (dr_with_seg_len_pair_t::sequencing): New enum.
990 (dr_with_seg_len_pair_t::flags): New member variable.
991 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
992 parameter and initialize the flags member variable.
993 * tree-loop-distribution.c (compute_alias_check_pairs): Update
994 call accordingly.
995 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
996 Ensure the two data references in an alias pair are in statement
997 order, if there is a defined order.
998 * tree-data-ref.c (prune_runtime_alias_test_list): Use
999 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1000 swapped the references in a dr_with_seg_len_pair_t. OR together
1001 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1002 try to restore the original dr_with_seg_len order, updating the
1003 flags if that fails.
1004
1005 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1006
1007 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1008 swapping the dr_as based on init values until we've decided
1009 whether to merge them.
1010
1011 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1012
1013 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1014 two accesses in each dr_with_seg_len_pair_t before trying to
1015 combine separate dr_with_seg_len_pair_ts.
1016 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1017 that here.
1018 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1019
1020 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1021
1022 * config/aarch64/aarch64-sve.md
1023 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1024 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1025 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1026 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1027 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1028 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1029 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1030 pattern.
1031 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1032 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1033 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1034 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1035
1036 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1037
1038 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1039 (SVE_4HSI): New mode iterators.
1040 (ANY_EXTEND2): New code iterator.
1041 * config/aarch64/aarch64-sve.md
1042 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1043 Extend to...
1044 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1045 ...this, handling extension to partial modes as well as full modes.
1046 Describe the extension as a predicated rather than unpredicated
1047 extension.
1048 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1049 Likewise extend to...
1050 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1051 ...this, making the same adjustments.
1052 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1053 Likewise extend to...
1054 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1055 ...this, making the same adjustments.
1056 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1057 Likewise extend to...
1058 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1059 ...this, making the same adjustments.
1060 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1061 New pattern.
1062 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1063 extension predicate.
1064 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1065 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1066 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1067 Describe the extension as a predicated rather than unpredicated
1068 extension.
1069 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1070 Likewise. Canonicalize to a constant extension predicate.
1071 * config/aarch64/aarch64-sve-builtins-base.cc
1072 (svld1_gather_extend_impl::expand): Add an extra predicate for
1073 the extension.
1074 (svldff1_gather_extend_impl::expand): Likewise.
1075
1076 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1077
1078 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1079 iterators.
1080 * config/aarch64/aarch64-sve.md
1081 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1082 (gather_load<SVE_24:mode><v_int_container>): ...this.
1083 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1084 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1085 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1086 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1087 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1088 New pattern.
1089 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1090 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1091 Allow the nominal extension predicate to be different from the
1092 load predicate.
1093 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1094 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1095
1096 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1097
1098 * config/aarch64/aarch64-sve.md
1099 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1100 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1101 function.
1102 (aarch64_sve_adjust_stmt_cost): Call it.
1103
1104 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1105
1106 * config/aarch64/aarch64-sve.md
1107 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1108 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1109 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1110 Combine into...
1111 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1112 ...this new pattern, handling extension to partial modes as well
1113 as full modes. Describe the extension as a predicated rather than
1114 unpredicated extension.
1115 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1116 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1117 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1118 Combine into...
1119 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1120 ...this new pattern, handling extension to partial modes as well
1121 as full modes. Describe the extension as a predicated rather than
1122 unpredicated extension.
1123 * config/aarch64/aarch64-sve-builtins.cc
1124 (function_expander::use_contiguous_load_insn): Add an extra
1125 predicate for extending loads.
1126 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1127 (aarch64_sve_adjust_stmt_cost): Likewise.
1128 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1129 the cost of SVE vector stmts.
1130
1131 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1132
1133 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
1134 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
1135 * config/aarch64/aarch64-sve.md
1136 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
1137 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
1138 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
1139 comment. Avoid new narrower_mask ambiguity.
1140 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1141 (*cond_uxt<mode>_2): Update comment.
1142 (*cond_uxt<mode>_any): Likewise.
1143
1144 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1145
1146 * config/aarch64/aarch64-modes.def: Define partial SVE vector
1147 float modes.
1148 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
1149 function.
1150 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
1151 new vector float modes.
1152 (aarch64_sve_container_bits): New function.
1153 (aarch64_sve_pred_mode): Likewise.
1154 (aarch64_get_mask_mode): Use it.
1155 (aarch64_sve_element_int_mode): Handle structure modes and partial
1156 modes.
1157 (aarch64_sve_container_int_mode): New function.
1158 (aarch64_vectorize_related_mode): Return SVE modes when given
1159 SVE modes. Handle partial modes, taking the preferred number
1160 of units from the size of the given mode.
1161 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
1162 in registers.
1163 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
1164 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
1165 (aarch64_split_sve_subreg_move): Use the mode form of
1166 aarch64_sve_pred_mode.
1167 (aarch64_secondary_reload): Handle partial modes in the same way
1168 as full big-endian vectors.
1169 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
1170 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
1171 merging with the Advanced SIMD modes. If two modes have the
1172 same size, try the Advanced SIMD mode first.
1173 (aarch64_simd_valid_immediate): Use the container rather than
1174 the element mode for INDEX constants.
1175 (aarch64_simd_vector_alignment): Make the alignment of partial
1176 SVE vector modes the same as their minimum size.
1177 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
1178 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
1179 (mov<SVE_ALL:mode>): ...this.
1180 (movmisalign<SVE_FULL:mode>): Extend to...
1181 (movmisalign<SVE_ALL:mode>): ...this.
1182 (*aarch64_sve_mov<mode>_le): Rename to...
1183 (*aarch64_sve_mov<mode>_ldr_str): ...this.
1184 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
1185 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
1186 partial modes regardless of endianness.
1187 (aarch64_sve_reload_be): Rename to...
1188 (aarch64_sve_reload_mem): ...this and enable for little-endian.
1189 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
1190 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
1191 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
1192 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
1193 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
1194 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1195 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1196 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1197 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1198 (maskload<SVE_FULL:mode><vpred>): Extend to...
1199 (maskload<SVE_ALL:mode><vpred>): ...this.
1200 (maskstore<SVE_FULL:mode><vpred>): Extend to...
1201 (maskstore<SVE_ALL:mode><vpred>): ...this.
1202 (vec_duplicate<SVE_FULL:mode>): Extend to...
1203 (vec_duplicate<SVE_ALL:mode>): ...this.
1204 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
1205 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
1206 (sve_ld1r<SVE_FULL:mode>): Extend to...
1207 (sve_ld1r<SVE_ALL:mode>): ...this.
1208 (vec_series<SVE_FULL_I:mode>): Extend to...
1209 (vec_series<SVE_I:mode>): ...this.
1210 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
1211 (*vec_series<SVE_I:mode>_plus): ...this.
1212 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
1213 new VPRED ambiguity.
1214 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1215 (add<SVE_FULL_I:mode>3): Extend to...
1216 (add<SVE_I:mode>3): ...this.
1217 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
1218 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
1219 (VPRED, vpred): Likewise.
1220 (Vctype): New iterator.
1221 (vw): Remove SVE modes.
1222
1223 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1224
1225 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
1226 (SVE_PARTIAL_I): ...this.
1227 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1228
1229 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1230
1231 * config/aarch64/iterators.md (SVE_ALL): Rename to...
1232 (SVE_FULL): ...this.
1233 (SVE_I): Rename to...
1234 (SVE_FULL_I): ...this.
1235 (SVE_F): Rename to...
1236 (SVE_FULL_F): ...this.
1237 (SVE_BHSI): Rename to...
1238 (SVE_FULL_BHSI): ...this.
1239 (SVE_HSD): Rename to...
1240 (SVE_FULL_HSD): ...this.
1241 (SVE_HSDI): Rename to...
1242 (SVE_FULL_HSDI): ...this.
1243 (SVE_HSF): Rename to...
1244 (SVE_FULL_HSF): ...this.
1245 (SVE_SD): Rename to...
1246 (SVE_FULL_SD): ...this.
1247 (SVE_SDI): Rename to...
1248 (SVE_FULL_SDI): ...this.
1249 (SVE_SDF): Rename to...
1250 (SVE_FULL_SDF): ...this.
1251 (SVE_S): Rename to...
1252 (SVE_FULL_S): ...this.
1253 (SVE_D): Rename to...
1254 (SVE_FULL_D): ...this.
1255 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1256 * config/aarch64/aarch64-sve2.md: Likewise.
1257
1258 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1259
1260 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
1261 New option.
1262 * doc/invoke.texi: Document it.
1263 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1264 By default, return VECT_COMPARE_COSTS for SVE.
1265
1266 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1267
1268 * target.h (VECT_COMPARE_COSTS): New constant.
1269 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
1270 * doc/tm.texi: Regenerate.
1271 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
1272 * targhooks.c (default_autovectorize_vector_modes): Likewise.
1273 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1274 Likewise.
1275 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
1276 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
1277 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
1278 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
1279 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
1280 (_loop_vec_info::vec_inside_cost): New member variables.
1281 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
1282 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
1283 (vect_analyze_loop): When autovectorize_vector_modes returns
1284 VECT_COMPARE_COSTS, try vectorizing the loop with each available
1285 vector mode and picking the one with the lowest cost.
1286 (vect_estimate_min_profitable_iters): Record the computed costs
1287 in the loop_vec_info.
1288
1289 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1290
1291 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
1292 element type rather than an element mode.
1293 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1294 Use get_vectype_for_scalar_type to query the natural types
1295 for a given element type rather than basing everything on
1296 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
1297 query to MAX_FIXED_MODE_SIZE.
1298 (duplicate_and_interleave): Update call accordingly.
1299 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1300
1301 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1302
1303 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
1304 optional maximum nunits.
1305 (get_vectype_for_scalar_type): Likewise. Also declare a form that
1306 takes an slp_tree.
1307 (get_mask_type_for_scalar_type): Take an optional slp_tree.
1308 (vect_get_mask_type_for_stmt): Likewise.
1309 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
1310 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
1311 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
1312 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
1313 to get an assumed vector type for data references.
1314 * tree-vect-slp.c (vect_update_shared_vectype): New function.
1315 (vect_update_all_shared_vectypes): Likewise.
1316 (vect_build_slp_tree_1): Pass the group size to
1317 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
1318 for BB vectorization.
1319 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
1320 before building the vectof from scalars.
1321 (vect_analyze_slp_instance): Pass the group size to
1322 get_vectype_for_scalar_type.
1323 (vect_slp_analyze_node_operations_1): Don't recompute the vector
1324 types for BB vectorization here; just handle the case in which
1325 we deferred the choice for booleans.
1326 (vect_get_constant_vectors): Pass the slp_tree to
1327 get_vectype_for_scalar_type.
1328 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
1329 (vectorizable_call): Likewise.
1330 (vectorizable_simd_clone_call): Likewise.
1331 (vectorizable_conversion): Likewise.
1332 (vectorizable_shift): Likewise.
1333 (vectorizable_operation): Likewise.
1334 (vectorizable_comparison): Likewise.
1335 (vect_is_simple_cond): Take the slp_tree as argument and
1336 pass it to get_vectype_for_scalar_type.
1337 (vectorizable_condition): Update call accordingly.
1338 (get_vectype_for_scalar_type): Take a group_size argument.
1339 For BB vectorization, limit the the vector to that number
1340 of elements. Also define an overload that takes an slp_tree.
1341 (get_mask_type_for_scalar_type): Add an slp_tree argument and
1342 pass it to get_vectype_for_scalar_type.
1343 (vect_get_vector_types_for_stmt): Add a group_size argument
1344 and pass it to get_vectype_for_scalar_type. Don't use the
1345 cached vector type for BB vectorization if a group size is given.
1346 Handle data references in that case.
1347 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
1348 pass it to get_mask_type_for_scalar_type.
1349
1350 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1351
1352 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
1353 parameter.
1354 (estimate_edge_time): Use it.
1355 * ipa-inline-analysis.c (do_estimate_edge_time): Add
1356 ret_nonspec_time parameter.
1357
1358 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
1359
1360 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
1361
1362 2019-11-15 Nick Clifton <nickc@redhat.com>
1363 Szabolcs Nagy <szabolcs.nagy@arm.com>
1364
1365 PR target/65649
1366 * config/microblaze/microblaze.c (print_operand): Print value as long.
1367
1368 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1369
1370 * ipa-inline.c (edge_badness, inline_small_functions): Revert
1371 accidental commit.
1372
1373 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1374
1375 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
1376 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
1377
1378 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1379
1380 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
1381 (gcn_conditional_register_usage): Use constants in place of hard-coded
1382 values.
1383 (gcn_hsa_declare_function_name): Set lower bound for number of
1384 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
1385 MAX_NORMAL_VGPR_COUNT.
1386
1387 2019-11-15 Martin Jambor <mjambor@suse.cz>
1388
1389 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
1390 declaration.
1391
1392 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1393
1394 * config/gcn/gcn.c (default_requested_args): New.
1395 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
1396 set with default_requested_args.
1397 (gcn_conditional_register_usage): Limit register usage of non-kernel
1398 functions. Reassign fixed registers if a non-standard set of args is
1399 requested.
1400 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
1401
1402 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
1403
1404 PR ipa/92528
1405 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
1406 aggregate jump function when inlined-to caller has no edge summary.
1407
1408 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1409
1410 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
1411
1412 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1413
1414 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
1415 prologue use of v0.
1416 (print_operand_address): Use v1 for zero vector offset.
1417
1418 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1419
1420 PR tree-optimization/92515
1421 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
1422 types when converting a vector/scalar shift into a vector/vector one,
1423 using tree_nop_conversion_p instead of useless_type_conversion_p.
1424 Move the conversion code to the transform block.
1425
1426 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1427
1428 * read-rtl-function.c
1429 (function_reader::add_fixup_source_location): Take additional
1430 parameter of a column.
1431 (function_reader::maybe_read_location): Optionally parse column
1432 information and pass to add_fixup_source_location.
1433
1434 2019-11-15 Richard Biener <rguenther@suse.de>
1435
1436 PR tree-optimization/92512
1437 * tree-vect-loop.c (check_reduction_path): Fix operand index
1438 computability check. Add check for second use in COND_EXPRs.
1439
1440 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1441
1442 PR target/92515
1443 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
1444 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
1445
1446 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1447
1448 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
1449 register class for VCC_LO and VCC_HI.
1450 (gcn_spill_class): Use SGPR_REGS to spill registers in
1451 VCC_CONDITIONAL_REG.
1452
1453 2019-11-15 Richard Biener <rguenther@suse.de>
1454
1455 PR tree-optimization/92324
1456 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1457 singedness of SLP reduction epilouge operations. Also reduce
1458 the vector width for SLP reductions before doing elementwise
1459 operations if possible.
1460
1461 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1462
1463 * passes.c (skip_pass): Set epilogue_completed if skipping the
1464 pro_and_epilogue pass.
1465
1466 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1467
1468 * passes.c (should_skip_pass_p): Always run "dfinish".
1469
1470 2019-11-15 Richard Biener <rguenther@suse.de>
1471
1472 * ipa-inline.c (inline_small_functions): Move assignment
1473 to next before call destroying edge.
1474
1475 2019-11-15 Richard Biener <rguenther@suse.de>
1476
1477 PR tree-optimization/92039
1478 PR tree-optimization/91975
1479 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
1480 previous change, treat invariants consistently as non-constant.
1481 (tree_estimate_loop_size): Ternary ops with just the first op
1482 constant are not optimized away.
1483
1484 2019-11-15 Jakub Jelinek <jakub@redhat.com>
1485
1486 * gimplify.c (gimplify_call_expr): Don't call
1487 omp_resolve_declare_variant after gimplification.
1488 * omp-general.c (omp_context_selector_matches): For isa that might
1489 match in some other function, defer if in declare simd function.
1490 (omp_context_compute_score): Don't look for " score" in construct
1491 trait set. Set *score to -1 if it can't ever match.
1492 (omp_resolve_declare_variant): If any variants need to be deferred,
1493 don't punt immediately, but compute scores of all variants and if
1494 ther eis a score winner that doesn't need to be deferred, return that.
1495
1496 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
1497
1498 * ipa-comdats.c: Fix comments typo.
1499 * ipa-profile.c: Fix comments typo.
1500 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
1501 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
1502 (gimple_gen_ic_func_profiler): Likewise.
1503 (pass_ipa_tree_profile::gate): Fix comments typo.
1504
1505 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
1506
1507 * ipa-inline.c (inline_small_functions): Update iterator of next.
1508
1509 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1510
1511 * lra-spills.c (assign_spill_hard_regs): Check that the spill
1512 register is suitable for the mode.
1513
1514 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1515
1516 * range-op.h (range_operator::fold_range): Return a bool.
1517 * range-op.cc (range_operator::wi_fold): Assert supported type.
1518 (range_operator::fold_range): Assert supported type and return true.
1519 (operator_equal::fold_range): Return true.
1520 (operator_not_equal::fold_range): Same.
1521 (operator_lt::fold_range): Same.
1522 (operator_le::fold_range): Same.
1523 (operator_gt::fold_range): Same.
1524 (operator_ge::fold_range): Same.
1525 (operator_plus::op1_range): Adjust call to fold_range.
1526 (operator_plus::op2_range): Same.
1527 (operator_minus::op1_range): Same.
1528 (operator_minus::op2_range): Same.
1529 (operator_exact_divide::op1_range): Same.
1530 (operator_lshift::fold_range): Return true and adjust fold_range call.
1531 (operator_rshift::fold_range): Same.
1532 (operator_cast::fold_range): Return true.
1533 (operator_logical_and::fold_range): Same.
1534 (operator_logical_or::fold_range): Same.
1535 (operator_logical_not::fold_range): Same.
1536 (operator_bitwise_not::fold_range): Adjust call to fold_range.
1537 (operator_bitwise_not::op1_range): Same.
1538 (operator_cst::fold_range): Return true.
1539 (operator_identity::fold_range): Return true.
1540 (operator_negate::fold_range): Return true and adjust fold_range call.
1541 (operator_addr_expr::fold_range): Return true.
1542 (operator_addr_expr::op1_range): Adjust call to fold_range.
1543 (range_cast): Same.
1544 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
1545 (range_fold_unary_symbolics_p): Same.
1546
1547 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1548
1549 PR tree-optimization/92506
1550 * range-op.cc (range_operator::fold_range): Start with range undefined.
1551 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
1552 overflow is varying.
1553
1554 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1555
1556 * range-op.cc (*operator*::*range): Remove calls to
1557 range_intersect, range_invert, and range_union in favor of calling
1558 the in-place API methods.
1559 (range_tests): Same.
1560 * range.cc (range_intersect): Remove.
1561 (range_union): Remove.
1562 (range_invert): Remove.
1563 * range.h (range_intersect): Remove.
1564 (range_union): Remove.
1565 (range_intersect): Remove.
1566
1567 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
1568
1569 PR rtl-optimization/92430
1570 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
1571 (pass_jump_after_combine::execute): Perform jump threading
1572 unconditionally.
1573
1574 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1575 Doug Rupp <rupp@adacore.com>
1576 Olivier Hainque <hainque@adacore.com>
1577
1578 * config.gcc: Collapse the arm-vxworks entries into
1579 a single arm-wrs-vxworks7* one, bpabi based. Update
1580 the default cpu from arm8 to armv7-a
1581 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
1582 we always use ARM_UNWIND_INFO.
1583 (DWARF2_UNWIND_INFO): Remove redefinition.
1584 (ARM_TARGET2_DWARF_FORMAT): Likewise.
1585 (VXWORKS_PERSONALITY): Define, to "llvm".
1586 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
1587
1588 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1589
1590 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
1591 _VX_CPU instead of CPU and handle arm_arch8.
1592
1593 2019-11-14 Doug Rupp <rupp@adacore.com>
1594 Olivier Hainque <hainque@adacore.com>
1595 Jerome Lambourg <lambourg@adacore.com>
1596
1597 * config.gcc: Handle aarch64*-wrs-vxworks7*.
1598 * config/aarch64/aarch64-vxworks.h: New file.
1599 * config/aarch64/t-aarch64-vxworks: New file.
1600
1601 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
1602 Olivier Hainque <hainque@adacore.com>
1603
1604 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
1605 definition, pointless with a VxWorks specific version
1606 of crtstuff.
1607 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
1608 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
1609 New local macros, controlling the addition of vxworks specific
1610 crtstuff objects depending on the EH mechanism and kind of
1611 module being linked.
1612 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
1613
1614 2019-11-06 Pat Bernardi <bernardi@adacore.com>
1615 Jerome Lambourg <lambourg@adacore.com>
1616 Olivier Hainque <hainque@adacore.com>
1617
1618 * config.gcc: Add comment to introduce the TARGET_VXWORKS
1619 common macro definitions, conveying VXWORKS7 or 64bit general
1620 variations. Add a block to set gcc_cv_initfini_array
1621 unconditionally to "yes" for VxWorks7.
1622 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
1623 by default. Update some comments.
1624 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
1625 default, to be added the end of VXWORKS_LIBS_RTP.
1626 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
1627 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
1628 redefine.
1629 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
1630 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
1631 to account for the now available TLS abilities.
1632 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
1633 (VXWORKS_HAVE_TLS): Likewise.
1634
1635 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1636
1637 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
1638 (vect_slp_convert_to_external): Likewise.
1639 (vect_slp_analyze_node_operations): If analysis fails, try building
1640 the node from scalars instead.
1641
1642 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1643
1644 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
1645 between vector types.
1646 * tree-vect-stmts.c (vectorizable_conversion): Extend the
1647 non-widening and non-narrowing path to handle standard
1648 conversion codes, if the target supports them.
1649 * expr.c (convert_move): Try using the extend and truncate optabs
1650 for vectors.
1651 * optabs-tree.c (supportable_convert_operation): Likewise.
1652 * config/aarch64/iterators.md (Vnarroqw): New iterator.
1653 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
1654 (trunc<mode><Vnarrowq>2): New patterns.
1655
1656 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1657
1658 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
1659 require vectype and nunits_vectype to have the same size;
1660 instead assert that nunits_vectype has at least as many
1661 elements as vectype. Don't compute a separate nunits_vectype
1662 if the scalar type is obviously the same as vectype's.
1663 Tweak dump messages.
1664
1665 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1666
1667 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
1668 function.
1669 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
1670 (TARGET_VECTORIZE_RELATED_MODE): Define.
1671
1672 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1673
1674 * tree-vectorizer.h (vec_info::mode_set): New typedef.
1675 (vec_info::used_vector_mode): New member variable.
1676 (vect_chooses_same_modes_p): Declare.
1677 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
1678 chosen vector mode in vec_info::used_vector_mode.
1679 (vect_chooses_same_modes_p): New function.
1680 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
1681 the same vector statements multiple times.
1682 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1683
1684 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1685
1686 * machmode.h (opt_machine_mode::operator==): New function.
1687 (opt_machine_mode::operator!=): Likewise.
1688 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
1689 (get_related_vectype_for_scalar_type): Delete.
1690 (get_vectype_for_scalar_type_and_size): Declare.
1691 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
1692 whether analysis passed or failed, and with what vector modes.
1693 Use related_vector_mode to check whether trying a particular
1694 vector mode would be redundant with the autodetected mode,
1695 and print a dump message if we decide to skip it.
1696 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1697 (vect_create_epilog_for_reduction): Use
1698 get_related_vectype_for_scalar_type instead of
1699 get_vectype_for_scalar_type_and_size.
1700 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
1701 with...
1702 (get_related_vectype_for_scalar_type): ...this new function.
1703 Take a starting/"prevailing" vector mode rather than a vector size.
1704 Take an optional nunits argument, with the same meaning as for
1705 related_vector_mode. Use related_vector_mode when not
1706 auto-detecting a mode, falling back to mode_for_vector if no
1707 target mode exists.
1708 (get_vectype_for_scalar_type): Update accordingly.
1709 (get_same_sized_vectype): Likewise.
1710 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
1711
1712 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1713
1714 * tree-vect-stmts.c (vectorizable_call): Require the types
1715 to have the same size.
1716
1717 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1718
1719 * tree-vect-stmts.c (vectorizable_call): If an operand is
1720 constant or external, use get_vectype_for_scalar_type
1721 rather than get_same_sized_vectype to get its vector type.
1722 (vectorizable_conversion, vectorizable_shift): Likewise.
1723 (vectorizable_operation): Likewise.
1724
1725 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1726
1727 * tree-vectorizer.h (vec_info::vector_size): Replace with...
1728 (vec_info::vector_mode): ...this new field.
1729 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
1730 (vect_analyze_loop, vect_transform_loop): Likewise.
1731 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
1732 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1733 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
1734 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
1735 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
1736
1737 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1738
1739 * target.h (vector_sizes, auto_vector_sizes): Delete.
1740 (vector_modes, auto_vector_modes): New typedefs.
1741 * target.def (autovectorize_vector_sizes): Replace with...
1742 (autovectorize_vector_modes): ...this new hook.
1743 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1744 Replace with...
1745 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
1746 * doc/tm.texi: Regenerate.
1747 * targhooks.h (default_autovectorize_vector_sizes): Delete.
1748 (default_autovectorize_vector_modes): New function.
1749 * targhooks.c (default_autovectorize_vector_sizes): Delete.
1750 (default_autovectorize_vector_modes): New function.
1751 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
1752 of autovectorize_vector_sizes. Use the number of units in the mode
1753 to calculate the maximum VF.
1754 * omp-low.c (omp_clause_aligned_alignment): Use
1755 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1756 Use a loop based on related_mode to iterate through all supported
1757 vector modes for a given scalar mode.
1758 * optabs-query.c (can_vec_mask_load_store_p): Use
1759 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1760 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
1761 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1762 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
1763 Replace with...
1764 (aarch64_autovectorize_vector_modes): ...this new function.
1765 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1766 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1767 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
1768 (arc_autovectorize_vector_modes): ...this new function.
1769 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1770 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1771 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
1772 (arm_autovectorize_vector_modes): ...this new function.
1773 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1774 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1775 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
1776 (ix86_autovectorize_vector_modes): ...this new function.
1777 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1778 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1779 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
1780 (mips_autovectorize_vector_modes): ...this new function.
1781 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1782 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1783
1784 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1785
1786 * tree-vect-stmts.c (vectorizable_shift): Check the number
1787 of vector elements as well as the type mode when deciding
1788 whether an op1_vectype is compatible. Reuse the result of
1789 this check when generating vector statements.
1790
1791 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1792
1793 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
1794 targetm.vectorize.preferred_simd_mode returns an integer mode,
1795 use mode_for_vector to decide what the vector type's mode
1796 should actually be. Use build_vector_type_for_mode instead
1797 of build_vector_type.
1798
1799 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1800
1801 * target.def (get_mask_mode): Take a vector mode itself as argument,
1802 instead of properties about the vector mode.
1803 * doc/tm.texi: Regenerate.
1804 * targhooks.h (default_get_mask_mode): Update to reflect new
1805 get_mode_mask interface.
1806 * targhooks.c (default_get_mask_mode): Likewise. Use
1807 related_int_vector_mode.
1808 * optabs-query.c (can_vec_mask_load_store_p): Update call
1809 to get_mask_mode.
1810 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
1811 first that the original mode really is a vector.
1812 * tree.c (build_truth_vector_type_for): Likewise.
1813 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
1814 get_mode_mask interface.
1815 (aarch64_expand_sve_vcond): Update call accordingly.
1816 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
1817 get_mode_mask interface.
1818 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
1819
1820 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1821
1822 * tree.h (build_truth_vector_type): Delete.
1823 (build_same_sized_truth_vector_type): Likewise.
1824 * tree.c (build_truth_vector_type): Rename to...
1825 (build_truth_vector_type_for): ...this. Make static and take
1826 a vector type as argument.
1827 (truth_type_for): Update accordingly.
1828 (build_same_sized_truth_vector_type): Delete.
1829 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
1830 instead of build_same_sized_truth_vector_type.
1831 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
1832 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
1833 * tree-vect-patterns.c (build_mask_conversion): Likeise.
1834 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1835 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1836 (vect_build_gather_load_calls, vectorizable_call): Likewise.
1837 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
1838 (vectorizable_store, vectorizable_condition): Likewise.
1839 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
1840 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
1841 build_truth_vector_type.
1842 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
1843 Use truth_type_for instead of build_same_sized_truth_vector_type.
1844 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
1845
1846 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1847
1848 * tree.h (build_truth_vector_type_for_mode): Declare.
1849 * tree.c (build_truth_vector_type_for_mode): New function,
1850 split out from...
1851 (build_truth_vector_type): ...here.
1852 (build_opaque_vector_type): Fix head comment.
1853 * tree-vectorizer.h (supportable_narrowing_operation): Remove
1854 vec_info parameter.
1855 (vect_halve_mask_nunits): Replace vec_info parameter with the
1856 mode of the new vector.
1857 (vect_double_mask_nunits): Likewise.
1858 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
1859 (vect_double_mask_nunits): Likewise.
1860 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
1861 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
1862 to vect_halve_mask_nunits, getting the required mode from the unpack
1863 patterns.
1864 (vect_set_loop_condition_masked): Update call accordingly.
1865 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
1866 parameter and update call to vect_double_mask_nunits.
1867 (vectorizable_conversion): Update call accordingly.
1868 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
1869 (vectorizable_call): Update call accordingly.
1870 (supportable_widening_operation): Update call to
1871 vect_halve_mask_nunits.
1872 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1873 Use build_truth_vector_type_mode instead of build_truth_vector_type.
1874
1875 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1876
1877 * machmode.h (mode_for_int_vector): Delete.
1878 (related_int_vector_mode): Declare.
1879 * stor-layout.c (mode_for_int_vector): Delete.
1880 (related_int_vector_mode): New function.
1881 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
1882 instead of mode_for_int_vector.
1883 (expand_vec_perm_const): Likewise.
1884 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
1885 (aarch64_evpc_sve_tbl): Likewise.
1886 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
1887 (s390_expand_vcond): Likewise.
1888
1889 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1890
1891 * target.def (related_mode): New hook.
1892 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
1893 * doc/tm.texi: Regenerate.
1894 * targhooks.h (default_vectorize_related_mode): Declare.
1895 * targhooks.c (default_vectorize_related_mode): New function.
1896 * machmode.h (related_vector_mode): Declare.
1897 * stor-layout.c (related_vector_mode): New function.
1898 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
1899 * optabs-query.c (qimode_for_vec_perm): Likewise.
1900 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
1901 (vectorizable_store, vectorizable_load): Likewise
1902
1903 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
1904
1905 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
1906 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
1907 * config/arm/arm-c.c (arm_cpu_builtins): Define
1908 __GCC_ASM_FLAG_OUTPUTS__.
1909 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
1910 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
1911 Define __GCC_ASM_FLAG_OUTPUTS__.
1912 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
1913 * doc/extend.texi (FlagOutputOperands): Add documentation
1914 for ARM and AArch64.
1915
1916 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
1917 * config/arm/predicates.md (nz_comparison_operator): Rename
1918 from noov_comparison_operator.
1919 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
1920 (arm_gen_dicompare_reg): Likewise.
1921 (maybe_get_arm_condition_code): Likewise.
1922 (thumb1_final_prescan_insn): Likewise.
1923 (arm_emit_coreregs_64bit_shift): Likewise.
1924 * config/arm/arm.md (addsi3_compare0): Likewise.
1925 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
1926 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
1927 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
1928 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
1929 (*mulsi3addsi_compare0_scratch): Likewise.
1930 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1931 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
1932 (*zeroextractsi_compare0_scratch): Likewise.
1933 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
1934 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
1935 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
1936 (andsi_not_shiftsi_si_scc): Likewise.
1937 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
1938 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
1939 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
1940 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
1941 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
1942 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
1943 (return_addr_mask, *check_arch2): Likewise.
1944 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
1945 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
1946 (compare_scc splitters): Likewise.
1947 (movcond_addsi): Likewise.
1948 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
1949 (*thumb2_addsi3_compare0_scratch): Likewise.
1950 (*thumb2_mulsi_short_compare0): Likewise.
1951 (*thumb2_mulsi_short_compare0_scratch): Likewise.
1952 (compare peephole2s): Likewise.
1953 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
1954 nz_comparison_operator names.
1955 (cbranchsi4_insn): Likewise.
1956
1957 * config/arm/constraints.md (c): Use cc_register predicate.
1958
1959 * config/aarch64/constraints.md (c): New constraint.
1960
1961 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1962
1963 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
1964 ipa_merge_fn_summary_after_inlining): Micro optimize.
1965
1966 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1967
1968 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
1969
1970 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1971
1972 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
1973 (ipa_value_range_from_jfunc): New function.
1974 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
1975 known_value_ranges parameter; use it to evalulate conditions.
1976 (evaluate_properties_for_edge): Compute known value ranges.
1977 (ipa_fn_summary_t::duplicate): Update use of
1978 evaluate_conditions_for_known_args.
1979 (estimate_ipcp_clone_size_and_time): Likewise.
1980 (ipa_merge_fn_summary_after_inlining): Likewise.
1981 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
1982
1983 2019-11-14 Martin Liska <mliska@suse.cz>
1984
1985 * ipa-inline.c (want_inline_small_function_p): Use
1986 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
1987 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
1988
1989 2019-11-14 Martin Liska <mliska@suse.cz>
1990
1991 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
1992 of a callee to get value of the param.
1993 * ipa-inline.c (inline_insns_auto): Use proper
1994 opt_for_fn.
1995 * opts.c (maybe_default_option): Do not overwrite param
1996 value if optimization level does not match. Note that
1997 params usually have default value set via Init() keyword.
1998 * params.opt: Remove -param=max-inline-insns-auto-O2.
1999 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2000 * doc/invoke.texi: Remove documentation of
2001 max-inline-insns-auto-O2.
2002
2003 2019-11-14 Martin Liska <mliska@suse.cz>
2004
2005 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2006 Do not initialize m_other_count.
2007 (switch_conversion::collect): Do not count m_default_count and
2008 m_other_count as we use frequencies for edges.
2009 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2010
2011 2019-11-14 Martin Liska <mliska@suse.cz>
2012
2013 PR other/92329
2014 * doc/invoke.texi: Document -fallocation-dce.
2015
2016 2019-11-14 Martin Liska <mliska@suse.cz>
2017
2018 PR target/92389
2019 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2020 PTA_ICELAKE_CLIENT which is later interited by
2021 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2022
2023 2019-11-14 Martin Liska <mliska@suse.cz>
2024
2025 * ipa-icf.c (sem_item_optimizer::execute): Save
2026 loaded_symbols.
2027 (sem_item_optimizer::parse_nonsingleton_classes):
2028 Return number of loaded symbols.
2029 (sem_item_optimizer::merge_classes): Print
2030 statistics about totally needed symbols.
2031 * ipa-icf.h (parse_nonsingleton_classes): Change return
2032 type.
2033 (merge_classes): Add one argument.
2034
2035 2019-11-14 Martin Liska <mliska@suse.cz>
2036
2037 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2038 func_checker::hash_operand by handling of FIELD_DECLs.
2039
2040 2019-11-14 Martin Liska <mliska@suse.cz>
2041
2042 * ipa-icf-gimple.h (func_checker::func_checker): Add
2043 default constructor.
2044 * ipa-icf.c (sem_function::init): Make operand_equal_p
2045 and hash_operand public.
2046 (sem_item::add_expr): Remove.
2047 (sem_item::add_type): Remove.
2048 (sem_function::hash_stmt): Use m_checker for hashing
2049 of GIMPLE statements.
2050 (sem_function::parse): Init with checker.
2051 (sem_variable::parse): Pass NULL as checker.
2052 (sem_item_optimizer::parse_funcs_and_vars):
2053 Pass checker to ::parse function.
2054 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2055 (sem_variable::parse): New function.
2056 (sem_variable::get_hash): Only return computed hash value.
2057 (sem_variable::init): Initialize hash of a variable.
2058 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2059 to couple of functions as a new argument.
2060
2061 2019-11-14 Martin Liska <mliska@suse.cz>
2062
2063 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2064 bail out reason.
2065 (func_checker::compare_gimple_assign): Likewise.
2066
2067 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2068
2069 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2070 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2071 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2072
2073 * omp-general.c (omp_context_name_list_prop): New function.
2074 (omp_context_selector_matches): Use it. Return 0 if it returns
2075 NULL.
2076 (omp_context_selector_props_compare): Allow equivalency of an
2077 identifier and a string literal containing no embedded zeros.
2078
2079 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2080
2081 * range-op.cc (RANGE3): Remove.
2082 (range_tests): Remove all selftest that check for multi-ranges.
2083 Put tests in namespace selftest.
2084 * selftest.h: Move range_tests into namespace selftest.
2085 * value-range.h (class value_range): Unfriend range_tests.
2086
2087 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2088
2089 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2090 normalize_symbolics and normalize_addresses working in place.
2091 (range_fold_unary_symbolics_p): Same.
2092 (range_fold_unary_symbolics_p): Same.
2093 * value-range.cc (num_pairs): Same.
2094 (lower_bound): Same.
2095 (upper_bound): Same.
2096 (contains_p): Same.
2097 (normalize_addresses): Same.
2098 (normalize_symbolics): Same.
2099 * value-range.h (normalize_symbolics): Same.
2100 (normalize_addresses): Same.
2101
2102 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2103
2104 PR ipa/91682
2105 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2106 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2107 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2108 (ipa_agg_jump_function): Remove member function equal_to.
2109 (ipa_agg_jump_function_p): Remove typedef.
2110 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2111 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2112 information for aggregate jump function.
2113 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2114 record last definition statement.
2115 (load_from_unmodified_param_or_agg): New function.
2116 (ipa_known_agg_contents_list): Add new field type and value, remove
2117 field constant.
2118 (build_agg_jump_func_from_list): Rename parameter const_count to
2119 value_count, build aggregate jump function from ipa_load_agg_data.
2120 (analyze_agg_content_value): New function.
2121 (extract_mem_content): Analyze memory store assignment to prepare
2122 information for aggregate jump function generation.
2123 (determine_known_aggregate_parts): Add new parameter fbi, remove
2124 parameter aa_walk_budeget_p.
2125 (update_jump_functions_after_inlining): Update aggregate jump function.
2126 (ipa_find_agg_cst_for_param): Change type of parameter agg.
2127 (try_make_edge_direct_simple_call): Add new parameter new_root.
2128 (try_make_edge_direct_virtual_call): Add new parameter new_root and
2129 new_root_info.
2130 (update_indirect_edges_after_inlining): Pass new argument to
2131 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2132 (ipa_write_jump_function): Write aggregate jump function to file.
2133 (ipa_read_jump_function): Read aggregate jump function from file.
2134 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
2135 * ipa-cp.c (ipa_get_jf_arith_result): New function.
2136 (ipa_agg_value_from_node): Likewise.
2137 (ipa_agg_value_set_from_jfunc): Likewise.
2138 (propagate_vals_across_arith_jfunc): Likewise.
2139 (propagate_aggregate_lattice): Likewise.
2140 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
2141 (propagate_vals_across_pass_through): Call
2142 propagate_vals_across_arith_jfunc.
2143 (get_clone_agg_value): Move forward.
2144 (propagate_aggs_across_jump_function): Handle value propagation for
2145 aggregate jump function.
2146 (agg_jmp_p_vec_for_t_vec): Remove.
2147 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
2148 with vec<ipa_agg_value>.
2149 (copy_plats_to_inter, intersect_with_plats): Likewise.
2150 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
2151 (intersect_aggregate_with_edge): Likewise.
2152 (find_aggregate_values_for_callers_subset): Likewise.
2153 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2154 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
2155 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2156 (gather_context_independent_values): Likewise.
2157 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
2158 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
2159 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2160 (evaluate_properties_for_edge): Likewise.
2161 (estimate_edge_devirt_benefit): Likewise.
2162 (estimate_edge_size_and_time): Likewise.
2163 (estimate_calls_size_and_time): Likewise.
2164 (ipa_call_context::ipa_call_context): Likewise.
2165 (estimate_ipcp_clone_size_and_time): Likewise.
2166 * ipa-fnsummary.h (ipa_call_context): Replace
2167 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2168 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
2169 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2170 (do_estimate_edge_size): Likewise.
2171 (do_estimate_edge_hints): Likewise.
2172
2173 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2174
2175 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
2176 binary operations.
2177
2178 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2179
2180 * ipa-profile.c (check_argument_count): Check properly that e_info
2181 is non-NULL; do not check descriptors.
2182
2183 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2184
2185 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
2186 check for ipa profiles.
2187
2188 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2189
2190 PR c++/92421
2191 * ipa-prop.c (update_indirect_edges_after_inlining):
2192 Mark parameter as used.
2193 * ipa-inline.c (recursive_inlining): Reset node cache
2194 after inlining.
2195 (inline_small_functions): Remove checking ifdef.
2196 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
2197 cache consistency.
2198
2199 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2200
2201 PR ipa/92498
2202 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
2203 is NULL.
2204 (ipa_profile): Fix reversed test.
2205
2206 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2207
2208 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
2209 (propagate_constants_topo): Fix typo.
2210
2211 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2212
2213 * Makefile.in (OBJS): Add value-range.o.
2214 (GTFILES): Add value-range.h.
2215 * gengtype.c (open_base_files): Add value-range.h to list of
2216 header files.
2217 * tree-vrp.c: Move the following value_range related functions:
2218 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
2219 constant_p, set_undefined, set_varying, may_contain_p,
2220 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
2221 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
2222 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
2223 value_inside_range, ranges_from_anti_range, union_ranges,
2224 intersect_ranges, intersect_helper, union_helper, union_,
2225 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
2226 upper_bound, contains_p, invert, intersect...
2227 * value-range.cc: ...to here.
2228 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
2229 associated inline methods from here...
2230 * value-range.h: ...to here.
2231
2232 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2233
2234 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
2235 instead of asserting its value.
2236
2237 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2238
2239 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
2240 constructors and set methods so value_range_kind is the last
2241 argument and defaults to VR_RANGE.
2242 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
2243 * ipa-cp.c (propagate_vr_across_jump_function): Same.
2244 * ipa-prop.c (ipa_get_value_range): Same.
2245 (ipa_compute_jump_functions_for_edge): Same.
2246 * range-op.cc (value_range_from_overflowed_bounds): Same.
2247 (operator_cast::op1_range): Same.
2248 (range_tests): Same.
2249 * range.cc (range_nonzero): Same.
2250 * tree-ssanames.c (get_range_info): Same.
2251 * tree-vrp.c (value_range_equiv::set): Same.
2252 (value_range::value_range): Same.
2253 (value_range_equiv::value_range_equiv): Same.
2254 (value_range_equiv::update): Same.
2255 (value_range_equiv::deep_copy): Same.
2256 (value_range_equiv::move): Same.
2257 (value_range_equiv::set_undefined): Same.
2258 (value_range::set): Same.
2259 (value_range::set_nonzero): Same.
2260 (ranges_from_anti_range): Same.
2261 (extract_range_from_plus_minus_expr): Same.
2262 (value_range::intersect_helper): Same.
2263 (value_range_equiv::intersect): Same.
2264 (value_range::union_helper): Same.
2265 (value_range_equiv::union_): Same.
2266 (value_range::normalize_symbolics): Same.
2267 (value_range::invert): Same.
2268 (determine_value_range_1): Same.
2269 * tree-vrp.h (class value_range): Same.
2270 (class value_range_equiv): Same.
2271 * vr-values.c (set_value_range_to_nonnegative): Same.
2272 (set_value_range_to_truthvalue): Same.
2273 (vr_values::update_value_range): Same.
2274 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2275 (vr_values::extract_range_from_binary_expr): Same.
2276 (vr_values::extract_range_from_comparison): Same.
2277 (vr_values::extract_range_basic): Same.
2278 (vr_values::adjust_range_with_scev): Same.
2279 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
2280 (vr_values::extract_range_from_phi_node): Same.
2281
2282 2019-11-13 Ulrich Drepper <drepper@redhat.com>
2283
2284 * tree-dump.c (dequeue_and_dump): Print first tree operand
2285 for VIEW_CONVERT_EXPR.
2286
2287 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2288
2289 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
2290 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
2291 * real.c (get_max_float): Add norm_max argument.
2292 * real.h (get_max_float): Update prototype.
2293 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
2294 get_max_float.
2295
2296 2019-11-13 Martin Liska <mliska@suse.cz>
2297
2298 * dbgcnt.c (test_sorted_dbg_counters): New.
2299 (dbgcnt_c_tests): Likewise.
2300 * selftest-run-tests.c (selftest::run_tests): Likewise.
2301 * selftest.h (dbgcnt_c_tests): Likewise.
2302
2303 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2304 Martin Jambor <mjambor@suse.cz>
2305
2306 PR ipa/92454
2307 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
2308 (identify_dead_nodes): Likewise.
2309
2310 2019-11-13 Martin Liska <mliska@suse.cz>
2311
2312 * ipa-icf.c (sem_function::equals_private): Do not overuse
2313 push/pop_cfun functions.
2314
2315 2019-11-13 Martin Liska <mliska@suse.cz>
2316
2317 * common.opt: Document change of -fdbg-cnt option.
2318 * dbgcnt.c (DEBUG_COUNTER): Remove.
2319 (dbg_cnt_is_enabled): Remove.
2320 (dbg_cnt): Work with new intervals.
2321 (dbg_cnt_set_limit_by_index): Set to new
2322 list of intervals.
2323 (dbg_cnt_set_limit_by_name): Likewise.
2324 (dbg_cnt_process_single_pair): Process new format.
2325 (dbg_cnt_process_opt): Likewise.
2326 (dbg_cnt_list_all_counters): Likewise.
2327 * doc/invoke.texi: Document change of -fdbg-cnt option.
2328 (cmp_tuples): New.
2329
2330 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2331
2332 * ipa-inline.c (ipa_inline): Check that function is defined before
2333 flattening.
2334
2335 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2336 Julian Brown <julian@codesourcery.com>
2337
2338 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
2339 flag_worker_partitioning is not set.
2340 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
2341 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
2342
2343 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2344
2345 * config/gcn/gcn-run.c (heap_region): New global variable.
2346 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
2347 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
2348 (get_kernarg_region): Move contents to ....
2349 (get_memory_region): .... here.
2350 (get_heap_region): New function.
2351 (init_device): Initialize the heap_region.
2352 (device_malloc): Add region parameter.
2353 (struct kernargs): Move heap ....
2354 (heap): ... to global scope.
2355 (main): Allocate heap separate to kernargs.
2356
2357 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2358
2359 * ipa-prop.c (ipa_print_node_jump_functions,
2360 ipa_print_node_params): Print info about missing summaries.
2361
2362 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2363
2364 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
2365 the cost of generating loop masks.
2366
2367 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2368
2369 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
2370 New function.
2371 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
2372 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2373 (vect_transform_loop): Likewise.
2374 (vect_analyze_loop_costing): Don't take the cost of versioning
2375 into account for the static profitability threshold if it turns
2376 out that no versioning is needed.
2377
2378 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2379
2380 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
2381 and target_option_default_node to get -fprofile-generate ctors working
2382 right with LTO.
2383
2384 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2385
2386 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
2387 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
2388 (vectorizable_assignment): Don't add a cost for nop conversions.
2389 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2390 Likewise.
2391 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
2392
2393 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2394
2395 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
2396 number of ncopies as an additional argument.
2397 (vectorizable_conversion): Update call accordingly. Use "modifier"
2398 to check whether a conversion is between vectors with the same
2399 numbers of units.
2400
2401 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2402
2403 * config/aarch64/aarch64-sve-builtins-functions.h
2404 (unary_count::expand): Use aarch64_sve_int_mode instead of
2405 mode_for_int_vector.
2406
2407 2019-11-13 Martin Liska <mliska@suse.cz>
2408
2409 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
2410
2411 2019-11-13 Martin Liska <mliska@suse.cz>
2412
2413 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2414 Remove call to finalize_options_struct.
2415
2416 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
2417
2418 PR target/92055
2419 * config/avr/t-avr (avr-mcus): Do not depend on
2420 $(srcdir)/config/avr/t-multilib.
2421
2422 2019-11-13 Richard Biener <rguenther@suse.de>
2423
2424 PR tree-optimization/92473
2425 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
2426 direct optab reduction in the correct type.
2427
2428 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2429
2430 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
2431 hexadecimal literal.
2432
2433 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2434
2435 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
2436 UNORDERED if !HONOR_NANS (DFmode).
2437 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
2438 if !HONOR_NANS (<MODE>mode).
2439
2440 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2441
2442 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
2443 (ipcp_verify_propagated_values): Likewise.
2444 (propagate_constants_across_call): Likewise.
2445 (propagate_constants_topo): Likewise.
2446 (ipcp_propagate_stage): Likewise.
2447
2448 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2449
2450 PR ipa/92471
2451 * ipa-profile.c (check_argument_count): Break out from ...;
2452 watch for missing summaries.
2453 (ipa_profile): Here.
2454
2455 2019-11-12 Martin Sebor <msebor@redhat.com>
2456
2457 PR tree-optimization/92412
2458 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
2459 extern variables.
2460
2461 2019-11-12 Martin Sebor <msebor@redhat.com>
2462
2463 PR middle-end/83688
2464 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
2465 (directive::argno): New member.
2466 (format_result::aliases, format_result::alias_count): New data members.
2467 (format_result::append_alias): New member function.
2468 (fmtresult::dst_offset): New data member.
2469 (pass_sprintf_length::call_info::dst_origin): New data member.
2470 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
2471 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
2472 (get_origin_and_offset): Same.
2473 (format_string): Call it.
2474 (format_directive): Call append_alias and set directive argument
2475 number.
2476 (maybe_warn_overlap): New function.
2477 (pass_sprintf_length::compute_format_length): Call it.
2478 (pass_sprintf_length::handle_gimple_call): Initialize new members.
2479 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
2480
2481 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
2482
2483 PR rtl-optimization/92430
2484 * cfgcleanup.c (pass_jump_after_combine::execute): Free
2485 dominance info at the beginning.
2486
2487 2019-11-12 Richard Biener <rguenther@suse.de>
2488
2489 PR tree-optimization/92460
2490 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
2491 expression before gimplifying.
2492
2493 2019-11-12 Richard Biener <rguenther@suse.de>
2494
2495 PR tree-optimization/92461
2496 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
2497 stmt after propagation.
2498
2499 2019-11-12 Martin Liska <mliska@suse.cz>
2500
2501 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
2502 Use SET_OPTION_IF_UNSET.
2503 (ix86_option_override_internal): Likewise.
2504 * opts.c (default_options_optimization): Likewise.
2505 (finish_options): Likewise.
2506 (enable_fdo_optimizations): Likewise.
2507 (common_handle_option): Likewise.
2508
2509 2019-11-12 Martin Liska <mliska@suse.cz>
2510
2511 * common/common-target.def: Remove option_validate_param and
2512 option_default_params.
2513 * common/common-targhooks.c (default_option_validate_param):
2514 Remove.
2515 * common/common-targhooks.h (default_option_validate_param):
2516 Remove.
2517 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
2518 Remove usage of this.
2519 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
2520 (aarch64_option_validate_param): Likewise.
2521 (aarch64_option_default_params): Likewise
2522 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
2523 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2524 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2525 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2526 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2527 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2528 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2529 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2530 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2531 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2532 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
2533 guard_size here.
2534 * doc/tm.texi: Remove option_default_params and option_validate_param.
2535 * doc/tm.texi.in: Likewise.
2536
2537 2019-11-12 Martin Liska <mliska@suse.cz>
2538
2539 * common/common-target.def:
2540 Do not mention set_default_param_value
2541 and set_param_value.
2542 * doc/tm.texi: Likewise.
2543
2544 2019-11-12 Martin Liska <mliska@suse.cz>
2545
2546 * common.opt: Remove param_values.
2547 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
2548 Remove finalize_options_struct.
2549 * gcc.c (driver::decode_argv): Do not call global_init_params
2550 and finish_params.
2551 (driver::finalize): Do not call params_c_finalize
2552 and finalize_options_struct.
2553 * opt-suggestions.c (option_proposer::get_completions): Remove
2554 special casing of params.
2555 (option_proposer::find_param_completions): Remove.
2556 (test_completion_partial_match): Update expected output.
2557 * opt-suggestions.h: Remove find_param_completions.
2558 * opts-common.c (add_misspelling_candidates): Add
2559 --param with a space.
2560 * opts.c (handle_param): Remove.
2561 (init_options_struct):. Remove init_options_struct and
2562 similar calls.
2563 (finalize_options_struct): Remove.
2564 (common_handle_option): Use SET_OPTION_IF_UNSET.
2565 * opts.h (finalize_options_struct): Remove.
2566 * toplev.c (general_init): Do not call global_init_params.
2567 (toplev::finalize): Do not call params_c_finalize and
2568 finalize_options_struct.
2569
2570 2019-11-12 Martin Liska <mliska@suse.cz>
2571
2572 * Makefile.in: Remove PARAMS_H and params.list
2573 and params.options.
2574 * params-enum.h: Remove.
2575 * params-list.h: Remove.
2576 * params-options.h: Remove.
2577 * params.c: Remove.
2578 * params.def: Remove.
2579 * params.h: Remove.
2580 * asan.c: Do not include params.h.
2581 * auto-profile.c: Likewise.
2582 * bb-reorder.c: Likewise.
2583 * builtins.c: Likewise.
2584 * cfgcleanup.c: Likewise.
2585 * cfgexpand.c: Likewise.
2586 * cfgloopanal.c: Likewise.
2587 * cgraph.c: Likewise.
2588 * combine.c: Likewise.
2589 * common/config/aarch64/aarch64-common.c: Likewise.
2590 * common/config/gcn/gcn-common.c: Likewise.
2591 * common/config/ia64/ia64-common.c: Likewise.
2592 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
2593 * common/config/rs6000/rs6000-common.c: Likewise.
2594 * common/config/sh/sh-common.c: Likewise.
2595 * config/aarch64/aarch64.c: Likewise.
2596 * config/alpha/alpha.c: Likewise.
2597 * config/arm/arm.c: Likewise.
2598 * config/avr/avr.c: Likewise.
2599 * config/csky/csky.c: Likewise.
2600 * config/i386/i386-builtins.c: Likewise.
2601 * config/i386/i386-expand.c: Likewise.
2602 * config/i386/i386-features.c: Likewise.
2603 * config/i386/i386-options.c: Likewise.
2604 * config/i386/i386.c: Likewise.
2605 * config/ia64/ia64.c: Likewise.
2606 * config/rs6000/rs6000-logue.c: Likewise.
2607 * config/rs6000/rs6000.c: Likewise.
2608 * config/s390/s390.c: Likewise.
2609 * config/sparc/sparc.c: Likewise.
2610 * config/visium/visium.c: Likewise.
2611 * coverage.c: Likewise.
2612 * cprop.c: Likewise.
2613 * cse.c: Likewise.
2614 * cselib.c: Likewise.
2615 * dse.c: Likewise.
2616 * emit-rtl.c: Likewise.
2617 * explow.c: Likewise.
2618 * final.c: Likewise.
2619 * fold-const.c: Likewise.
2620 * gcc.c: Likewise.
2621 * gcse.c: Likewise.
2622 * ggc-common.c: Likewise.
2623 * ggc-page.c: Likewise.
2624 * gimple-loop-interchange.cc: Likewise.
2625 * gimple-loop-jam.c: Likewise.
2626 * gimple-loop-versioning.cc: Likewise.
2627 * gimple-ssa-split-paths.c: Likewise.
2628 * gimple-ssa-sprintf.c: Likewise.
2629 * gimple-ssa-store-merging.c: Likewise.
2630 * gimple-ssa-strength-reduction.c: Likewise.
2631 * gimple-ssa-warn-alloca.c: Likewise.
2632 * gimple-ssa-warn-restrict.c: Likewise.
2633 * graphite-isl-ast-to-gimple.c: Likewise.
2634 * graphite-optimize-isl.c: Likewise.
2635 * graphite-scop-detection.c: Likewise.
2636 * graphite-sese-to-poly.c: Likewise.
2637 * graphite.c: Likewise.
2638 * haifa-sched.c: Likewise.
2639 * hsa-gen.c: Likewise.
2640 * ifcvt.c: Likewise.
2641 * ipa-cp.c: Likewise.
2642 * ipa-fnsummary.c: Likewise.
2643 * ipa-inline-analysis.c: Likewise.
2644 * ipa-inline.c: Likewise.
2645 * ipa-polymorphic-call.c: Likewise.
2646 * ipa-profile.c: Likewise.
2647 * ipa-prop.c: Likewise.
2648 * ipa-split.c: Likewise.
2649 * ipa-sra.c: Likewise.
2650 * ira-build.c: Likewise.
2651 * ira-conflicts.c: Likewise.
2652 * loop-doloop.c: Likewise.
2653 * loop-invariant.c: Likewise.
2654 * loop-unroll.c: Likewise.
2655 * lra-assigns.c: Likewise.
2656 * lra-constraints.c: Likewise.
2657 * modulo-sched.c: Likewise.
2658 * opt-suggestions.c: Likewise.
2659 * opts.c: Likewise.
2660 * postreload-gcse.c: Likewise.
2661 * predict.c: Likewise.
2662 * reload.c: Likewise.
2663 * reorg.c: Likewise.
2664 * resource.c: Likewise.
2665 * sanopt.c: Likewise.
2666 * sched-deps.c: Likewise.
2667 * sched-ebb.c: Likewise.
2668 * sched-rgn.c: Likewise.
2669 * sel-sched-ir.c: Likewise.
2670 * sel-sched.c: Likewise.
2671 * shrink-wrap.c: Likewise.
2672 * stmt.c: Likewise.
2673 * targhooks.c: Likewise.
2674 * toplev.c: Likewise.
2675 * tracer.c: Likewise.
2676 * trans-mem.c: Likewise.
2677 * tree-chrec.c: Likewise.
2678 * tree-data-ref.c: Likewise.
2679 * tree-if-conv.c: Likewise.
2680 * tree-inline.c: Likewise.
2681 * tree-loop-distribution.c: Likewise.
2682 * tree-parloops.c: Likewise.
2683 * tree-predcom.c: Likewise.
2684 * tree-profile.c: Likewise.
2685 * tree-scalar-evolution.c: Likewise.
2686 * tree-sra.c: Likewise.
2687 * tree-ssa-ccp.c: Likewise.
2688 * tree-ssa-dom.c: Likewise.
2689 * tree-ssa-dse.c: Likewise.
2690 * tree-ssa-ifcombine.c: Likewise.
2691 * tree-ssa-loop-ch.c: Likewise.
2692 * tree-ssa-loop-im.c: Likewise.
2693 * tree-ssa-loop-ivcanon.c: Likewise.
2694 * tree-ssa-loop-ivopts.c: Likewise.
2695 * tree-ssa-loop-manip.c: Likewise.
2696 * tree-ssa-loop-niter.c: Likewise.
2697 * tree-ssa-loop-prefetch.c: Likewise.
2698 * tree-ssa-loop-unswitch.c: Likewise.
2699 * tree-ssa-math-opts.c: Likewise.
2700 * tree-ssa-phiopt.c: Likewise.
2701 * tree-ssa-pre.c: Likewise.
2702 * tree-ssa-reassoc.c: Likewise.
2703 * tree-ssa-sccvn.c: Likewise.
2704 * tree-ssa-scopedtables.c: Likewise.
2705 * tree-ssa-sink.c: Likewise.
2706 * tree-ssa-strlen.c: Likewise.
2707 * tree-ssa-structalias.c: Likewise.
2708 * tree-ssa-tail-merge.c: Likewise.
2709 * tree-ssa-threadbackward.c: Likewise.
2710 * tree-ssa-threadedge.c: Likewise.
2711 * tree-ssa-uninit.c: Likewise.
2712 * tree-switch-conversion.c: Likewise.
2713 * tree-vect-data-refs.c: Likewise.
2714 * tree-vect-loop.c: Likewise.
2715 * tree-vect-slp.c: Likewise.
2716 * tree-vrp.c: Likewise.
2717 * tree.c: Likewise.
2718 * value-prof.c: Likewise.
2719 * var-tracking.c: Likewise.
2720
2721 2019-11-12 Martin Liska <mliska@suse.cz>
2722
2723 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
2724 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
2725 macro.
2726 (asan_sanitize_allocas_p): Likewise.
2727 (asan_emit_stack_protection): Likewise.
2728 (asan_protect_global): Likewise.
2729 (instrument_derefs): Likewise.
2730 (instrument_builtin_call): Likewise.
2731 (asan_expand_mark_ifn): Likewise.
2732 * auto-profile.c (auto_profile): Likewise.
2733 * bb-reorder.c (copy_bb_p): Likewise.
2734 (duplicate_computed_gotos): Likewise.
2735 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
2736 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
2737 (try_crossjump_bb): Likewise.
2738 * cfgexpand.c (defer_stack_allocation): Likewise.
2739 (stack_protect_classify_type): Likewise.
2740 (pass_expand::execute): Likewise.
2741 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2742 (estimate_reg_pressure_cost): Likewise.
2743 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
2744 * combine.c (combine_instructions): Likewise.
2745 (record_value_for_reg): Likewise.
2746 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
2747 (aarch64_option_default_params): Likewise.
2748 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2749 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2750 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2751 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2752 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
2753 (aarch64_allocate_and_probe_stack_space): Likewise.
2754 (aarch64_expand_epilogue): Likewise.
2755 (aarch64_override_options_internal): Likewise.
2756 * config/alpha/alpha.c (alpha_option_override): Likewise.
2757 * config/arm/arm.c (arm_option_override): Likewise.
2758 (arm_valid_target_attribute_p): Likewise.
2759 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
2760 * config/i386/i386.c (get_probe_interval): Likewise.
2761 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
2762 (ix86_max_noce_ifcvt_seq_cost): Likewise.
2763 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
2764 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
2765 (get_stack_clash_protection_guard_size): Likewise.
2766 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
2767 * config/s390/s390.c (allocate_stack_space): Likewise.
2768 (s390_emit_prologue): Likewise.
2769 (s390_option_override_internal): Likewise.
2770 * config/sparc/sparc.c (sparc_option_override): Likewise.
2771 * config/visium/visium.c (visium_option_override): Likewise.
2772 * coverage.c (get_coverage_counts): Likewise.
2773 (coverage_compute_profile_id): Likewise.
2774 (coverage_begin_function): Likewise.
2775 (coverage_end_function): Likewise.
2776 * cse.c (cse_find_path): Likewise.
2777 (cse_extended_basic_block): Likewise.
2778 (cse_main): Likewise.
2779 * cselib.c (cselib_invalidate_mem): Likewise.
2780 * dse.c (dse_step1): Likewise.
2781 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
2782 (get_max_insn_count): Likewise.
2783 (make_debug_insn_raw): Likewise.
2784 (init_emit): Likewise.
2785 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
2786 * final.c (compute_alignments): Likewise.
2787 * fold-const.c (fold_range_test): Likewise.
2788 (fold_truth_andor): Likewise.
2789 (tree_single_nonnegative_warnv_p): Likewise.
2790 (integer_valued_real_single_p): Likewise.
2791 * gcse.c (want_to_gcse_p): Likewise.
2792 (prune_insertions_deletions): Likewise.
2793 (hoist_code): Likewise.
2794 (gcse_or_cprop_is_too_expensive): Likewise.
2795 * ggc-common.c: Likewise.
2796 * ggc-page.c (ggc_collect): Likewise.
2797 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
2798 (MAX_DATAREFS): Likewise.
2799 (OUTER_STRIDE_RATIO): Likewise.
2800 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2801 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
2802 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
2803 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
2804 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2805 (imm_store_chain_info::output_merged_store): Likewise.
2806 (pass_store_merging::process_store): Likewise.
2807 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
2808 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
2809 (scop_to_isl_ast): Likewise.
2810 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
2811 (optimize_isl): Likewise.
2812 * graphite-scop-detection.c (build_scops): Likewise.
2813 * haifa-sched.c (set_modulo_params): Likewise.
2814 (rank_for_schedule): Likewise.
2815 (model_add_to_worklist): Likewise.
2816 (model_promote_insn): Likewise.
2817 (model_choose_insn): Likewise.
2818 (queue_to_ready): Likewise.
2819 (autopref_multipass_dfa_lookahead_guard): Likewise.
2820 (schedule_block): Likewise.
2821 (sched_init): Likewise.
2822 * hsa-gen.c (init_prologue): Likewise.
2823 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
2824 (cond_move_process_if_block): Likewise.
2825 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
2826 (merge_agg_lats_step): Likewise.
2827 (devirtualization_time_bonus): Likewise.
2828 (hint_time_bonus): Likewise.
2829 (incorporate_penalties): Likewise.
2830 (good_cloning_opportunity_p): Likewise.
2831 (ipcp_propagate_stage): Likewise.
2832 * ipa-fnsummary.c (decompose_param_expr): Likewise.
2833 (set_switch_stmt_execution_predicate): Likewise.
2834 (analyze_function_body): Likewise.
2835 (compute_fn_summary): Likewise.
2836 * ipa-inline-analysis.c (estimate_growth): Likewise.
2837 * ipa-inline.c (caller_growth_limits): Likewise.
2838 (inline_insns_single): Likewise.
2839 (inline_insns_auto): Likewise.
2840 (can_inline_edge_by_limits_p): Likewise.
2841 (want_early_inline_function_p): Likewise.
2842 (big_speedup_p): Likewise.
2843 (want_inline_small_function_p): Likewise.
2844 (want_inline_self_recursive_call_p): Likewise.
2845 (edge_badness): Likewise.
2846 (recursive_inlining): Likewise.
2847 (compute_max_insns): Likewise.
2848 (early_inliner): Likewise.
2849 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
2850 * ipa-profile.c (ipa_profile): Likewise.
2851 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2852 (ipa_analyze_node): Likewise.
2853 (ipcp_transform_function): Likewise.
2854 * ipa-split.c (consider_split): Likewise.
2855 * ipa-sra.c (allocate_access): Likewise.
2856 (process_scan_results): Likewise.
2857 (ipa_sra_summarize_function): Likewise.
2858 (pull_accesses_from_callee): Likewise.
2859 * ira-build.c (loop_compare_func): Likewise.
2860 (mark_loops_for_removal): Likewise.
2861 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2862 * loop-doloop.c (doloop_optimize): Likewise.
2863 * loop-invariant.c (gain_for_invariant): Likewise.
2864 (move_loop_invariants): Likewise.
2865 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
2866 (decide_unroll_runtime_iterations): Likewise.
2867 (decide_unroll_stupid): Likewise.
2868 (expand_var_during_unrolling): Likewise.
2869 * lra-assigns.c (spill_for): Likewise.
2870 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
2871 * modulo-sched.c (sms_schedule): Likewise.
2872 (DFA_HISTORY): Likewise.
2873 * opts.c (default_options_optimization): Likewise.
2874 (finish_options): Likewise.
2875 (common_handle_option): Likewise.
2876 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2877 (if): Likewise.
2878 * predict.c (get_hot_bb_threshold): Likewise.
2879 (maybe_hot_count_p): Likewise.
2880 (probably_never_executed): Likewise.
2881 (predictable_edge_p): Likewise.
2882 (predict_loops): Likewise.
2883 (expr_expected_value_1): Likewise.
2884 (tree_predict_by_opcode): Likewise.
2885 (handle_missing_profiles): Likewise.
2886 * reload.c (find_equiv_reg): Likewise.
2887 * reorg.c (redundant_insn): Likewise.
2888 * resource.c (mark_target_live_regs): Likewise.
2889 (incr_ticks_for_insn): Likewise.
2890 * sanopt.c (pass_sanopt::execute): Likewise.
2891 * sched-deps.c (sched_analyze_1): Likewise.
2892 (sched_analyze_2): Likewise.
2893 (sched_analyze_insn): Likewise.
2894 (deps_analyze_insn): Likewise.
2895 * sched-ebb.c (schedule_ebbs): Likewise.
2896 * sched-rgn.c (find_single_block_region): Likewise.
2897 (too_large): Likewise.
2898 (haifa_find_rgns): Likewise.
2899 (extend_rgns): Likewise.
2900 (new_ready): Likewise.
2901 (schedule_region): Likewise.
2902 (sched_rgn_init): Likewise.
2903 * sel-sched-ir.c (make_region_from_loop): Likewise.
2904 * sel-sched-ir.h (MAX_WS): Likewise.
2905 * sel-sched.c (process_pipelined_exprs): Likewise.
2906 (sel_setup_region_sched_flags): Likewise.
2907 * shrink-wrap.c (try_shrink_wrapping): Likewise.
2908 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2909 * toplev.c (print_version): Likewise.
2910 (process_options): Likewise.
2911 * tracer.c (tail_duplicate): Likewise.
2912 * trans-mem.c (tm_log_add): Likewise.
2913 * tree-chrec.c (chrec_fold_plus_1): Likewise.
2914 * tree-data-ref.c (split_constant_offset): Likewise.
2915 (compute_all_dependences): Likewise.
2916 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
2917 * tree-inline.c (remap_gimple_stmt): Likewise.
2918 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
2919 * tree-parloops.c (MIN_PER_THREAD): Likewise.
2920 (create_parallel_loop): Likewise.
2921 * tree-predcom.c (determine_unroll_factor): Likewise.
2922 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
2923 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2924 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2925 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
2926 (dse_optimize_redundant_stores): Likewise.
2927 (dse_classify_store): Likewise.
2928 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2929 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2930 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
2931 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2932 (try_peel_loop): Likewise.
2933 (tree_unroll_loops_completely): Likewise.
2934 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2935 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
2936 (MAX_CONSIDERED_GROUPS): Likewise.
2937 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
2938 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
2939 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
2940 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
2941 (L1_CACHE_SIZE_BYTES): Likewise.
2942 (L2_CACHE_SIZE_BYTES): Likewise.
2943 (should_issue_prefetch_p): Likewise.
2944 (schedule_prefetches): Likewise.
2945 (determine_unroll_factor): Likewise.
2946 (volume_of_references): Likewise.
2947 (add_subscript_strides): Likewise.
2948 (self_reuse_distance): Likewise.
2949 (mem_ref_count_reasonable_p): Likewise.
2950 (insn_to_prefetch_ratio_too_small_p): Likewise.
2951 (loop_prefetch_arrays): Likewise.
2952 (tree_ssa_prefetch_arrays): Likewise.
2953 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
2954 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2955 (convert_mult_to_fma): Likewise.
2956 (math_opts_dom_walker::after_dom_children): Likewise.
2957 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
2958 (hoist_adjacent_loads): Likewise.
2959 (gate_hoist_loads): Likewise.
2960 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2961 (compute_partial_antic_aux): Likewise.
2962 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
2963 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
2964 (vn_reference_lookup): Likewise.
2965 (do_rpo_vn): Likewise.
2966 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
2967 * tree-ssa-sink.c (select_best_block): Likewise.
2968 * tree-ssa-strlen.c (new_stridx): Likewise.
2969 (new_addr_stridx): Likewise.
2970 (get_range_strlen_dynamic): Likewise.
2971 (class ssa_name_limit_t): Likewise.
2972 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
2973 (create_variable_info_for_1): Likewise.
2974 (init_alias_vars): Likewise.
2975 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
2976 (tail_merge_optimize): Likewise.
2977 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
2978 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
2979 (thread_jumps::find_jump_threads_backwards): Likewise.
2980 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
2981 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
2982 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
2983 (jump_table_cluster::can_be_handled): Likewise.
2984 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
2985 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
2986 (param_switch_conversion_branch_ratio): Likewise.
2987 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
2988 (vect_enhance_data_refs_alignment): Likewise.
2989 (vect_prune_runtime_alias_test_list): Likewise.
2990 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
2991 (vect_get_datarefs_in_loop): Likewise.
2992 (vect_analyze_loop): Likewise.
2993 * tree-vect-slp.c (vect_slp_bb): Likewise.
2994 * tree-vectorizer.h: Likewise.
2995 * tree-vrp.c (find_switch_asserts): Likewise.
2996 (vrp_prop::check_mem_ref): Likewise.
2997 * tree.c (wide_int_to_tree_1): Likewise.
2998 (cache_integer_cst): Likewise.
2999 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3000 (reverse_op): Likewise.
3001 (vt_find_locations): Likewise.
3002
3003 2019-11-12 Martin Liska <mliska@suse.cz>
3004
3005 * Makefile.in: Include params.opt.
3006 * flag-types.h (enum parloops_schedule_type): Add
3007 parloops_schedule_type used in params.opt.
3008 * params.opt: New file.
3009
3010 2019-11-12 Martin Liska <mliska@suse.cz>
3011
3012 * common.opt: Remove --param and --param= options.
3013 * opt-functions.awk: Mark CL_PARAMS for options
3014 that have Param keyword.
3015 * opts-common.c (decode_cmdline_options_to_array):
3016 Replace --param key=value with --param=key=value.
3017 * opts.c (print_filtered_help): Remove special
3018 printing of params.
3019 (print_specific_help): Update title for params.
3020 (common_handle_option): Do not handle OPT__param.
3021 opts.h (SET_OPTION_IF_UNSET): New macro.
3022 * doc/options.texi: Document Param keyword.
3023
3024 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3025 Frederik Harwath <frederik@codesourcery.com>
3026 Thomas Schwinge <thomas@codesourcery.com>
3027
3028 gcc/
3029 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3030 enumeration constant.
3031 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3032 (is_gimple_omp_offloaded): Likewise.
3033 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3034 constant. Adjust the value of ORT_NONE accordingly.
3035 (is_gimple_stmt): Handle OACC_SERIAL.
3036 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3037 (gomp_needs_data_present): Likewise.
3038 (gimplify_adjust_omp_clauses): Likewise.
3039 (gimplify_omp_workshare): Handle OACC_SERIAL.
3040 (gimplify_expr): Likewise.
3041 * omp-expand.c (expand_omp_target):
3042 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3043 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3044 * omp-low.c (is_oacc_parallel): Rename function to...
3045 (is_oacc_parallel_or_serial): ... this.
3046 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3047 (scan_sharing_clauses): Adjust accordingly.
3048 (scan_omp_for): Likewise.
3049 (lower_oacc_head_mark): Likewise.
3050 (convert_from_firstprivate_int): Likewise.
3051 (lower_omp_target): Likewise.
3052 (check_omp_nesting_restrictions): Handle
3053 GF_OMP_TARGET_KIND_OACC_SERIAL.
3054 (lower_oacc_reductions): Likewise.
3055 (lower_omp_target): Likewise.
3056 * tree.def (OACC_SERIAL): New tree code.
3057 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3058
3059 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3060
3061 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3062
3063 PR target/92449
3064 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3065 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3066
3067 PR tree-optimization/92452
3068 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3069 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3070 MINUS_EXPR on it.
3071
3072 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3073
3074 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3075 safelen with 0.
3076
3077 2019-11-12 Alan Modra <amodra@gmail.com>
3078
3079 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3080 element of unspec vec.
3081 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3082 PC-relative TLS.
3083 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3084 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3085 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3086 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3087
3088 2019-11-12 Alan Modra <amodra@gmail.com>
3089
3090 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3091 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3092 (IS_NOMARK_TLSGETADDR): Likewise.
3093 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3094 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3095 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3096 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3097 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3098 (rs6000_indirect_call_template_1): Likewise.
3099 (rs6000_pltseq_template): Likewise.
3100 (rs6000_opt_vars): Remove "tls-markers" entry.
3101 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3102 with TARGET_ELF.
3103 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3104 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3105 (pltseq_plt_pcrel<mode>): Likewise.
3106 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3107 (call_value_local64): Likewise.
3108 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3109 output and length attribute sub-expression.
3110 (call_value_nonlocal_sysv<mode>),
3111 (call_value_nonlocal_sysv_secure<mode>),
3112 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3113 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3114 (call_value_indirect_pcrel<mode>): Likewise.
3115 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3116 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3117 * configure: Regenerate.
3118 * config.in: Regenerate.
3119
3120 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3121
3122 * config/rs6000/predicates.md (prefixed_memory): New predicate.
3123 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3124 address being a prefixed load/store.
3125 (stack_protect_testdi): Deal with either address being a prefixed
3126 load.
3127
3128 2019-11-11 Jakub Jelinek <jakub@redhat.com>
3129
3130 PR bootstrap/92433
3131 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3132 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
3133 std::swap.
3134
3135 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
3136
3137 PR tree-optimization/92420
3138 * tree-vect-stmts.c (get_negative_load_store_type): Move further
3139 up file.
3140 (get_group_load_store_type): Use it for reversed SLP accesses.
3141
3142 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
3143
3144 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
3145 summary.
3146 (ipcp_transformation_t::duplicate): Break out from ...
3147 (ipa_node_params_t::duplicate): ... here; add copying of agg
3148 replacements.
3149 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
3150 (ipcp_transformation_t): Add duplicate.
3151
3152 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
3153
3154 PR fortran/91828
3155 * doc/install.texi: Document that the minimum MPFR version is
3156 3.1.0.
3157
3158 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3159
3160 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
3161 use new register constraint letters.
3162
3163 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3164
3165 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
3166 as well, if interesting recover the symbol and re-legitimize the
3167 pic address.
3168
3169 2019-11-11 Martin Liska <mliska@suse.cz>
3170
3171 * dbgcnt.def (DEBUG_COUNTER): Sort counters
3172 alphabetically.
3173
3174 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
3175
3176 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
3177 account when checking if there are enough iterations to vectorize
3178 epilogue.
3179
3180 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
3181 Kwok Cheung Yeung <kcy@codesourcery.com>
3182
3183 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
3184 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
3185 (LANG_HOOKS_DECLS): Rename also here.
3186 * langhooks.h (lang_hooks_for_decls): Rename
3187 omp_is_optional_argument to omp_check_optional_argument; take
3188 additional bool argument.
3189 * omp-general.h (omp_check_optional_argument): Likewise.
3190 * omp-general.h (omp_check_optional_argument): Likewise.
3191 * omp-low.c (lower_omp_target): Update calls; handle absent
3192 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
3193
3194 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
3195
3196 PR target/87833
3197 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
3198 -fPIC and -shared the last to create offload image.
3199
3200 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
3201
3202 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
3203 of 'offset'.
3204
3205 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
3206 (config.status): Use/depend on it.
3207 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
3208 * configure: Regenerate.
3209
3210 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
3211
3212 PR tree-optimization/88760
3213 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
3214 * gcc/common/config/rs6000/rs6000-common.c
3215 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
3216 Turn on -funroll-loops and -munroll-only-small-loops.
3217 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
3218 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3219 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
3220 Turn off -munroll-only-small-loops for explicit -funroll-loops.
3221 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
3222 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
3223
3224 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
3225
3226 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3227 Make scalar_load, vector_load, unaligned_load and
3228 vector_gather_load cost more to conform hardware latency and
3229 insn cost settings.
3230
3231 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
3232
3233 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
3234 (MACHO_SYMBOL_LINKER_VIS_P): New.
3235
3236 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
3237
3238 * lra-spills.c (assign_spill_hard_regs): Do not spill into
3239 registers in eliminable_regset.
3240
3241 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3242
3243 * ipa-inline.c (compute_uninlined_call_time,
3244 compute_inlined_call_time): Take edge frequency as
3245 parameter rather than computing it by itself.
3246 (big_speedup_p, edge_badness): Manually CSE sreal
3247 frequency calculations.
3248
3249 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3250
3251 * profile-count.c (profile_count::to_sreal_scale): Short circuit
3252 case where profiles are same.
3253
3254 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3255
3256 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
3257
3258 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3259
3260 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
3261 args summaries of inlined edge unless it holds info about
3262 described reference.
3263
3264 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3265
3266 * config/rs6000/rs6000.md (CC_any): New mode iterator.
3267 (*movcc_internal1): Rename to...
3268 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
3269
3270 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3271
3272 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
3273 (cgraph_node::create_virtual_clone): Copy it.
3274 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
3275 summaries.
3276 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
3277 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
3278 is disabled.
3279 (propagate_constants_across_call): If callee is not analyzed, give up.
3280 (propagate_constants_topo): Lower to bottom latties of all callees of
3281 functions with ipa-cp disabled.
3282 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
3283 (cgraph_edge_brings_value_p): Check for availability first.
3284 (create_specialized_node): Set ipcp_clone.
3285 (ipcp_store_bits_results): Check that info is present.
3286 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
3287 thunks.
3288 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
3289 conservative when callee summary is missing.
3290 (remap_edge_summaries): Lookup call summary only when needed.
3291 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
3292 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
3293 Use get_create.
3294 (ipa_analyze_node): Use get_create.
3295 (propagate_controlled_uses): Do not propagate when function is not
3296 analyzed.
3297 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
3298 (ipa_read_node_info): Use get_create.
3299 * ipa-prop.h (IPA_NODE_REF): Use get.
3300 (IPA_NODE_REF_GET_CREATE): New.
3301
3302 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3303
3304 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
3305 on function symbol.
3306
3307 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3308
3309 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
3310 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3311 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
3312 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3313
3314 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3315
3316 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
3317 capping the growth cumulated.
3318 (offline_size): Break out from ...
3319 (estimate_growth): ... here.
3320 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
3321 parameters.
3322 (growth_likely_positive): Turn to ...
3323 (growth_positive_p): Re-implement.
3324 * ipa-inline.h (growth_likely_positive): Remove.
3325 (growth_positive_p): Declare.
3326 * ipa-inline.c (want_inline_small_function_p): Use
3327 growth_positive_p.
3328 (want_inline_function_to_all_callers_p): Likewise.
3329
3330 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3331
3332 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
3333 calculation of min_size.
3334 (ipa_update_overall_fn_summary): Likewise.
3335
3336 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3337
3338 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
3339 estimate_edge_devirt_benefit when not computing hints;
3340 do not compute time when not asked for.
3341 (estimate_calls_size_and_time): Pass NULL hints and time when
3342 these are not computed; do not evaluate hint predicates when these are
3343 not computed.
3344 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
3345 frequency.
3346
3347 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3348
3349 PR tree-optimization/92401
3350 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
3351 if res_op->code is an expression with code length 1.
3352 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
3353 if res_op->code is an expression with code length 2.
3354 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
3355 if res_op->code is an expression with code length 3.
3356
3357 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
3358
3359 * config/darwin.c (machopic_mcount_stub_name): Validate the
3360 symbol stub name when it is created.
3361 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
3362 stub validation.
3363
3364 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3365
3366 * symtab.c: Fix comment typos.
3367 * cgraphunit.c: Likewise.
3368 * cgraph.h: Likewise.
3369 * cgraphclones.c: Likewise.
3370 * cgraph.c: Likewise.
3371 * varpool.c: Likewise.
3372 * tree-ssa-strlen.c: Likewise.
3373 * ipa-sra.c: Likewise.
3374 (scan_expr_access, check_all_callers_for_issues): Fix typo
3375 in a dump message.
3376
3377 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
3378
3379 * config/darwin-protos.h: Add include quard.
3380
3381 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
3382
3383 * range-op.h (range_operator::fold_range): Return result in a
3384 reference parameter instead of by value.
3385 (range_operator::wi_fold): Same.
3386 * range-op.cc (range_operator::wi_fold): Return result in a reference
3387 parameter instead of by value.
3388 (range_operator::fold_range): Same.
3389 (value_range_from_overflowed_bounds): Same.
3390 (value_range_with_overflow): Same
3391 (create_possibly_reversed_range): Same.
3392 (operator_equal::fold_range): Same.
3393 (operator_not_equal::fold_range): Same.
3394 (operator_lt::fold_range): Same.
3395 (operator_le::fold_range): Same.
3396 (operator_gt::fold_range): Same.
3397 (operator_ge::fold_range): Same.
3398 (operator_plus::wi_fold): Same.
3399 (operator_plus::op1_range): Change call to fold_range.
3400 (operator_plus::op2_range): Change call to fold_range.
3401 (operator_minus::wi_fold): Return result via reference parameter.
3402 (operator_minus::op1_range): Change call to fold_range.
3403 (operator_minus::op2_range): Change call to fold_range.
3404 (operator_min::wi_fold): Return result via reference parameter.
3405 (operator_max::wi_fold): Same.
3406 (cross_product_operator::wi_cross_product): Same.
3407 (operator_mult::wi_fold): Same.
3408 (operator_div::wi_fold): Same.
3409 (operator_div op_floor_div): Fix whitespace.
3410 (operator_exact_divide::op1_range): Change call to fold_range.
3411 (operator_lshift::fold_range): Return result via reference parameter.
3412 (operator_lshift::wi_fold): Same.
3413 (operator_rshift::fold_range): Same.
3414 (operator_rshift::wi_fold): Same.
3415 (operator_cast::fold_range): Same.
3416 (operator_cast::op1_range): Change calls to fold_range.
3417 (operator_logical_and::fold_range): Return result via reference.
3418 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
3419 (operator_bitwise_and::wi_fold): Return result via reference.
3420 (operator_logical_or::fold_range): Same.
3421 (operator_bitwise_or::wi_fold): Same.
3422 (operator_bitwise_xor::wi_fold): Same.
3423 (operator_trunc_mod::wi_fold): Same.
3424 (operator_logical_not::fold_range): Same.
3425 (operator_bitwise_not::fold_range): Same.
3426 (operator_bitwise_not::op1_range): Change call to fold_range.
3427 (operator_cst::fold_range): Return result via reference.
3428 (operator_identity::fold_range): Same.
3429 (operator_abs::wi_fold): Same.
3430 (operator_absu::wi_fold): Same.
3431 (operator_negate::fold_range): Same.
3432 (operator_negate::op1_range): Change call to fold_range.
3433 (operator_addr_expr::fold_range): Return result via reference.
3434 (operator_addr_expr::op1_range): Change call to fold_range.
3435 (operator_pointer_plus::wi_fold): Return result via reference.
3436 (operator_pointer_min_max::wi_fold): Same.
3437 (operator_pointer_and::wi_fold): Same.
3438 (operator_pointer_or::wi_fold): Same.
3439 (range_op_handler): Change call to fold_range.
3440 (range_cast): Same.
3441 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
3442 fold_range.
3443 (range_fold_unary_symbolics_p): Same.
3444 (range_fold_binary_expr): Same.
3445 (range_fold_unary_expr): Same.
3446
3447 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3448
3449 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
3450 vector type as an argument rather than reading it from the
3451 stmt_vec_info.
3452 (vect_create_epilog_for_reduction): Update accordingly.
3453 (vectorizable_reduction): Likewise.
3454 (vect_transform_cycle_phi): Likewise.
3455
3456 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
3457
3458 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
3459 the comparison codes that make sense for the mode used, and only the
3460 codes that can be done with a single branch instruction.
3461
3462 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3463
3464 PR tree-optimization/92351
3465 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
3466 peeling the main loop for alignment, make sure to set the misalignment
3467 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
3468
3469 2019-11-08 Richard Biener <rguenther@suse.de>
3470
3471 * dbgcnt.def (ivopts_loop): Add.
3472 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
3473 ivopts_loop before optimizing a loop.
3474
3475 2019-11-08 Richard Biener <rguenther@suse.de>
3476
3477 PR ipa/92409
3478 * tree-inline.c (declare_return_variable): Properly handle
3479 type mismatches for the return slot.
3480
3481 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
3482
3483 PR target/92095
3484 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
3485 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
3486 change.
3487 (got_helper_needed): New static variable.
3488 (output_load_pcrel_sym): New function.
3489 (get_pc_thunk_name): Remove after inlining...
3490 (load_got_register): ...here. Rework the initialization of the GOT
3491 register and of the GOT helper.
3492 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
3493 (sparc_file_end): Test got_helper_needed to decide whether the GOT
3494 helper must be emitted. Use output_asm_insn instead of fprintf.
3495 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
3496 if optimization is enabled.
3497 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
3498 by calling output_load_pcrel_sym.
3499
3500 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3501
3502 * tree-sra.c (create_access): Delay disqualifying the base
3503 for poly_int values until we know we have a base.
3504
3505 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3506
3507 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
3508 for loops with SIMDUID set. Enable epilogue vectorization for loops
3509 with SIMDLEN set after finding a main loop with a VF that matches it.
3510
3511 2019-11-08 Jakub Jelinek <jakub@redhat.com>
3512
3513 PR target/92038
3514 * gimple-ssa-store-merging.c (find_constituent_stores): For return
3515 value only, return non-NULL if there is a single non-clobber
3516 constituent store even if there are constituent clobbers and return
3517 one of clobber constituent stores if all constituent stores are
3518 clobbers.
3519 (split_group): Handle clobbers.
3520 (imm_store_chain_info::output_merged_store): When computing
3521 bzero_first, look after all clobbers at the start. Don't count
3522 clobber stmts in orig_num_stmts, except if the first orig store is
3523 a clobber covering the whole area and split_stores cover the whole
3524 area, consider equal number of stmts ok. Punt if split_stores
3525 contains only ->orig stores and their number plus number of original
3526 clobbers is equal to original number of stmts. For ->orig, look past
3527 clobbers in the constituent stores.
3528 (imm_store_chain_info::output_merged_stores): Don't remove clobber
3529 stmts.
3530 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
3531 rhs.
3532 (store_valid_for_store_merging_p): Allow clobber stmts.
3533 (verify_clear_bit_region_be): Fix up a thinko in function comment.
3534
3535 PR c++/92384
3536 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
3537 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
3538 slot.
3539 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
3540 force creation of a unique data.stack_parm slot.
3541
3542 2019-11-08 Richard Biener <rguenther@suse.de>
3543
3544 * genmatch.c (expr::gen_transform): Use the resimplify
3545 member function instead of hard-coding the gimple_resimplifyN variant.
3546 (dt_simplify::gen_1): Likewise.
3547
3548 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3549
3550 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3551 POLY_INT_CST.
3552
3553 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3554
3555 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
3556 instead of INTEGER_CST.
3557
3558 2019-11-08 Richard Biener <rguenther@suse.de>
3559
3560 PR tree-optimization/92324
3561 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3562 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
3563 sign-conversions as necessary.
3564 (vectorizable_reduction): Reject conversions in the chain
3565 that are not sign-conversions, base analysis on a non-converting
3566 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
3567 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
3568 for debug stmts.
3569 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
3570 (STMT_VINFO_REDUC_VECTYPE): Likewise.
3571
3572 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
3573
3574 PR target/92055
3575 * config/avr/avr.opt (-mdouble=, -mlong-double=):
3576 Fix a missing '-' when displaying these options in the
3577 help screen.
3578
3579 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3580
3581 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
3582
3583 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3584
3585 * config/aarch64/aarch64-builtins.c
3586 (aarch64_builtin_vectorized_function): Remove bswap handling.
3587
3588 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3589
3590 * tree-core.h (tree_type_common::indivisible_p): New member variable.
3591 * tree.h (TYPE_INDIVISIBLE_P): New macro.
3592 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3593 Treat the vector types as indivisible.
3594
3595 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3596
3597 * optabs.def (gather_load_optab, mask_gather_load_optab)
3598 (scatter_store_optab, mask_scatter_store_optab): Turn into
3599 conversion optabs, with the offset mode given explicitly.
3600 * doc/md.texi: Update accordingly.
3601 * config/aarch64/aarch64-sve-builtins-base.cc
3602 (svld1_gather_impl::expand): Likewise.
3603 (svst1_scatter_impl::expand): Likewise.
3604 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
3605 (expand_scatter_store_optab_fn): Likewise.
3606 (direct_gather_load_optab_supported_p): Likewise.
3607 (direct_scatter_store_optab_supported_p): Likewise.
3608 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
3609 to be argument 4.
3610 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
3611 (internal_gather_scatter_fn_supported_p): Replace the offset sign
3612 argument with the offset vector type. Require the two vector
3613 types to have the same number of elements but allow their element
3614 sizes to be different. Treat the optabs as conversion optabs.
3615 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
3616 prototype accordingly.
3617 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
3618 (supports_vec_convert_optab_p): ...this new function.
3619 (supports_vec_gather_load_p): Update accordingly.
3620 (supports_vec_scatter_store_p): Likewise.
3621 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
3622 Replace the offset sign and bits parameters with a scalar type tree.
3623 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
3624 Pass back the offset vector type instead of the scalar element type.
3625 Allow the offset to be wider than the memory elements. Search for
3626 an offset type that the target supports, stopping once we've
3627 reached the maximum of the element size and pointer size.
3628 Update call to internal_gather_scatter_fn_supported_p.
3629 (vect_check_gather_scatter): Update calls accordingly.
3630 When testing a new scale before knowing the final offset type,
3631 check whether the scale is supported for any signed or unsigned
3632 offset type. Check whether the target supports the source and
3633 target types of a conversion before deciding whether to look
3634 through the conversion. Record the chosen offset_vectype.
3635 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
3636 (vect_recog_gather_scatter_pattern): Get the scalar offset type
3637 directly from the gs_info's offset_vectype instead. Pass a zero
3638 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
3639 * tree-vect-stmts.c (check_load_store_masking): Update call to
3640 internal_gather_scatter_fn_supported_p, passing the offset vector
3641 type recorded in the gs_info.
3642 (vect_truncate_gather_scatter_offset): Update call to
3643 vect_check_gather_scatter, leaving it to search for a valid
3644 offset vector type.
3645 (vect_use_strided_gather_scatters_p): Convert the offset to the
3646 element type of the gs_info's offset_vectype.
3647 (vect_get_gather_scatter_ops): Get the offset vector type directly
3648 from the gs_info.
3649 (vect_get_strided_load_store_ops): Likewise.
3650 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
3651 and IFN_MASK_GATHER_LOAD.
3652 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
3653 (gather_load<mode><v_int_equiv>): ...this.
3654 (mask_gather_load<mode>): Rename to...
3655 (mask_gather_load<mode><v_int_equiv>): ...this.
3656 (scatter_store<mode>): Rename to...
3657 (scatter_store<mode><v_int_equiv>): ...this.
3658 (mask_scatter_store<mode>): Rename to...
3659 (mask_scatter_store<mode><v_int_equiv>): ...this.
3660
3661 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
3662
3663 PR target/92132
3664 * config/rs6000/predicates.md
3665 (signed_or_equality_comparison_operator): New predicate.
3666 (unsigned_or_equality_comparison_operator): Likewise.
3667 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
3668 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
3669 * config/rs6000/vector.md
3670 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
3671 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
3672 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
3673 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
3674 vector modes and same-size integer vector modes.
3675 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
3676 (vector_lt<mode> for VEC_F): New expand.
3677 (vector_le<mode> for VEC_F): Likewise.
3678 (vector_ne<mode> for VEC_F): Likewise.
3679 (vector_unge<mode> for VEC_F): Likewise.
3680 (vector_ungt<mode> for VEC_F): Likewise.
3681 (vector_unle<mode> for VEC_F): Likewise.
3682 (vector_unlt<mode> for VEC_F): Likewise.
3683 (vector_uneq<mode>): Expose name.
3684 (vector_ltgt<mode>): Likewise.
3685 (vector_unordered<mode>): Likewise.
3686 (vector_ordered<mode>): Likewise.
3687
3688 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
3689
3690 PR target/92295
3691 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
3692 Enhance ix86_expand_vector_init_concat.
3693
3694 2019-11-08 Joseph Myers <joseph@codesourcery.com>
3695
3696 * doc/invoke.texi (-Wold-style-definition): Document () not being
3697 considered an old-style definition for C2x.
3698
3699 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
3700
3701 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
3702 Enhance comment.
3703 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
3704 insn patterns using ldcw instruction.
3705 (memory_barrier): Remove insn pattern using sync instruction.
3706 * config/pa/pa.opt (coherent-ldcw): New option.
3707 (ordered): New option.
3708
3709 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3710
3711 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
3712 valid conditions.
3713
3714 2019-11-07 Jakub Jelinek <jakub@redhat.com>
3715
3716 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
3717 typo - mistmatch -> mismatch.
3718 * ipa-profile.c (ipa_profile): Likewise.
3719 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
3720 - mistmatch -> mismatch.
3721
3722 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3723
3724 * simplify-rtx.c (comparison_to_mask): New function.
3725 (mask_to_comparison): New function.
3726 (simplify_logical_relational_operation): New function.
3727 (simplify_binary_operation_1): Call
3728 simplify_logical_relational_operation.
3729
3730 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
3731
3732 PR other/92090
3733 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
3734 modes for integer constants.
3735
3736 2019-11-07 Jan Hubicka <jh@suse.cz>
3737
3738 PR ipa/92406
3739 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
3740 summary.
3741
3742 2019-11-07 Jan Hubicka <jh@suse.cz>
3743
3744 * optc-save-gen.awk: Generate cl_target_option_free
3745 and cl_optimization_option_free.
3746 * opth-en.awk: Declare cl_target_option_free
3747 and cl_optimization_option_free.
3748 * tree.c (free_node): Use it.
3749
3750 2019-11-06 Jan Hubicka <jh@suse.cz>
3751
3752 * lto-streamer-in.c: Include alloc-pool.h.
3753 (freeing_string_slot_hasher): Remove.
3754 (string_slot_allocator): New object allocator.
3755 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
3756 (file_name_obstack): New obstack.
3757 (canon_file_name): Allocate in obstack and allocator.
3758 (lto_reader_init): Initialize obstack and allocator.
3759 (lto_free_file_name_hash): New function.
3760 * lto-streamer.h (lto_free_file_name_hash): New.
3761
3762 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
3763
3764 PR tree-optimization/89134
3765 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
3766 * params.def: Add min-loop-cond-split-prob.
3767 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
3768 outside checks on loop into the function.
3769 (split_info): New class.
3770 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
3771 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
3772 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
3773 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
3774 (stmt_semi_invariant_p, branch_removable_p): Likewise.
3775 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
3776 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
3777 (split_loop_on_cond): Likewise.
3778 (tree_ssa_split_loops): Add loop split on conditional statement.
3779
3780 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
3781
3782 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
3783 pattern.
3784
3785 2019-11-07 Richard Biener <rguenther@suse.de>
3786
3787 PR tree-optimization/92405
3788 * tree-vect-loop.c (vectorizable_reduction): Appropriately
3789 restrict lane-reducing ops to single stmt chains.
3790
3791 2019-11-07 Martin Jambor <mjambor@suse.cz>
3792
3793 PR lto/70929
3794 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
3795 * cgraph.h (gimple_check_call_matching_types): Remove
3796 * cgraph.c (gimple_check_call_args): Likewise.
3797 (gimple_check_call_matching_types): Likewise.
3798 (symbol_table::create_edge): Do not call
3799 gimple_check_call_matching_types.
3800 (cgraph_edge::make_direct): Likewise.
3801 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3802 * value-prof.h (check_ic_target): Remove.
3803 * value-prof.c (check_ic_target): Remove.
3804 (gimple_ic_transform): Do nat call check_ic_target.
3805 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
3806 (afdo_indirect_call): Likewise.
3807 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
3808 gimple_check_call_matching_types.
3809 * ipa-inline.c (early_inliner): Likewise.
3810
3811 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3812
3813 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
3814 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
3815 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
3816 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3817 * config/arm/iterators.md (USSAT16): New int_iterator.
3818 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
3819 (sup): Likewise.
3820 * config/arm/predicates.md (ssat16_imm): New predicate.
3821 (usat16_imm): Likewise.
3822 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
3823
3824 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3825
3826 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
3827 New define_insns.
3828 (arm_<simd32_op>): New define_expands.
3829 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
3830 __smuad, __smuadx): Define.
3831 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3832 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
3833 (SIMD32_BINOP_Q): Likewise.
3834 (simd32_op): Handle the above.
3835 * config/arm/unspecs.md: Define unspecs for the above.
3836
3837 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3838
3839 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
3840 * config/arm/arm.md (APSRGE_REGNUM): Define.
3841 (arm_<simd32_op>): New define_insn.
3842 (arm_sel): Likewise.
3843 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
3844 (CALL_USED_REGISTERS): Likewise.
3845 (REG_ALLOC_ORDER): Likewise.
3846 (FIRST_PSEUDO_REGISTER): Update value.
3847 (ARM_GE_BITS_READ): Define.
3848 * config/arm/arm.c (arm_conditional_register_usage): Clear
3849 APSRGE_REGNUM from operand_reg_set.
3850 (arm_ge_bits_access): Define.
3851 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
3852 ARM_BUIILTIN_sel.
3853 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
3854 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
3855 FAIL if ARM_GE_BITS_READ.
3856 (*arm_add<mode>3): New define_insn.
3857 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
3858 (*arm_sub<mode>3): New define_insn.
3859 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
3860 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
3861 __usub16): Define.
3862 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3863 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
3864 (simd32_op): Handle the above.
3865 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
3866 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
3867 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
3868 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
3869
3870 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3871
3872 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
3873 (arm_smlabb): New define_expand.
3874 (*maddhisi4tb): Rename to...
3875 (maddhisi4tb): ... This.
3876 (*maddhisi4tt): Rename to...
3877 (maddhisi4tt): ... This.
3878 (arm_smlatb_setq): New define_insn.
3879 (arm_smlatb): New define_expand.
3880 (arm_smlatt_setq): New define_insn.
3881 (arm_smlatt): New define_expand.
3882 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
3883 (arm_<smlaw_op>): New define_expand.
3884 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
3885 __smlawb, __smlawt): Define.
3886 * config/arm_acle_builtins.def: Define builtins for the above.
3887 * config/arm/iterators.md (SMLAWBT): New int_iterator.
3888 (slaw_op): New int_attribute.
3889 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
3890
3891 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3892
3893 * config/arm/arm.md (arm_<ss_op>): New define_expand.
3894 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
3895 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
3896 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
3897 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
3898 (ss_op): New code_attr.
3899
3900 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3901
3902 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
3903 * config/arm/arm.md (APSRQ_REGNUM): Define.
3904 (add_setq): New define_subst.
3905 (add_clobber_q_name): New define_subst_attr.
3906 (add_clobber_q_pred): Likewise.
3907 (maddhisi4): Change to define_expand. Split into mult and add if
3908 ARM_Q_BIT_READ.
3909 (arm_maddhisi4): New define_insn.
3910 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
3911 (*maddhisi4tt): Likewise.
3912 (arm_ssat): New define_expand.
3913 (arm_usat): Likewise.
3914 (arm_get_apsr): New define_insn.
3915 (arm_set_apsr): Likewise.
3916 (arm_saturation_occurred): New define_expand.
3917 (arm_set_saturation): Likewise.
3918 (*satsi_<SAT:code>): Rename to...
3919 (satsi_<SAT:code><add_clobber_q_name>): ... This.
3920 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
3921 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
3922 (CALL_USED_REGISTERS): Mark apsrq.
3923 (FIRST_PSEUDO_REGISTER): Update value.
3924 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
3925 (machine_function): Add q_bit_access.
3926 (ARM_Q_BIT_READ): Define.
3927 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
3928 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
3929 operand_reg_set.
3930 (arm_q_bit_access): Define.
3931 * config/arm/arm-builtins.c: Include stringpool.h.
3932 (arm_sat_binop_imm_qualifiers,
3933 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
3934 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
3935 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
3936 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
3937 SET_SAT_QUALIFIERS): Likewise.
3938 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
3939 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
3940 Handle 0 argument expander.
3941 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
3942 (arm_check_builtin_call): Define.
3943 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
3944 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
3945 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
3946 (arm_q_bit_access): Likewise.
3947 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
3948 __saturation_occurred, __set_saturation_occurred): Define.
3949 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
3950 saturation_occurred, set_saturation_occurred.
3951 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
3952 (UNSPEC_APSR_READ): Likewise.
3953 (VUNSPEC_APSR_WRITE): Likewise.
3954 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
3955 (*arm_ssadd<mode>3): New define_insn.
3956 (sssub<mode>3): Convert to define_expand.
3957 (*arm_sssub<mode>3): New define_insn.
3958 (ssmulsa3): Convert to define_expand.
3959 (*arm_ssmulsa3): New define_insn.
3960 (usmulusa3): Convert to define_expand.
3961 (*arm_usmulusa3): New define_insn.
3962 (ssmulha3): FAIL if ARM_Q_BIT_READ.
3963 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
3964 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
3965
3966 2019-11-07 Martin Liska <mliska@suse.cz>
3967
3968 PR c++/92354
3969 * cgraph.c (delete_function_version): Clear global
3970 variable version_info_node if equal to deleted
3971 function.
3972
3973 2019-11-07 Martin Liska <mliska@suse.cz>
3974
3975 * fold-const.c (operand_compare::operand_equal_p): Add comparison
3976 of CONSTRUCTOR_NO_CLEARING.
3977 (operand_compare::hash_operand): Likewise.
3978
3979 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
3980
3981 Support 64-bit double and 64-bit long double configurations.
3982
3983 PR target/92055
3984 * config.gcc (tm_defines) [avr]: Set from --with-double=,
3985 --with-long-double=.
3986 * config/avr/t-multilib: Remove.
3987 * config/avr/t-avr: Output of genmultilib.awk is now fully
3988 dynamically generated and no more part of the repo.
3989 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
3990 Pass them down to...
3991 * config/avr/genmultilib.awk: ...here and handle them.
3992 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
3993 (-mlong-double=, avr_long_double). New option and var.
3994 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
3995 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
3996 Set default as requested by --with-double=
3997 (TARGET_HANDLE_OPTION): Define to this...
3998 (avr_handle_option): ...new hook worker.
3999 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4000 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4001 (avr_double_lib): New proto for spec function.
4002 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4003 (DRIVER_SELF_SPECS): Call %:double-lib.
4004 * config/avr/avr.c (avr_option_override): Assert
4005 sizeof(long double) >= sizeof(double) for the target.
4006 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4007 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4008 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4009 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4010 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4011 New built-in define depending on --with-double=, --with-long-double=.
4012 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4013 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4014 * doc/install.texi (Cross-Compiler-Specific Options)
4015 <--with-double=, --with-long-double=>: Doc.
4016
4017 2019-11-07 Richard Biener <rguenther@suse.de>
4018
4019 * dbgcnt.def (gimple_unroll): New.
4020 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4021 gimple_unroll debug counter before applying transform.
4022 (try_peel_loop): Likewise.
4023
4024 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4025
4026 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4027 frame pointer in multiple registers.
4028 (ira_setup_eliminable_regset): Setup eliminable_regset,
4029 ira_no_alloc_regs and regs_ever_live for frame pointer in
4030 multiple registers.
4031
4032 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4033
4034 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4035 V2DI modes.
4036
4037 2019-11-06 Jan Hubicka <jh@suse.cz>
4038
4039 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4040 allocations.
4041 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4042 Do not silently ignore summary corruptions.
4043
4044 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4045
4046 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4047 the epilogue if there are peeled iterations for it to handle.
4048
4049 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4050
4051 * config/arc/arc.c (arc_split_ior): Add asserts.
4052 (arc_split_mov_const): Likewise.
4053 (arc_check_ior_const): Do not match known short immediate values.
4054 * config/arc/arc.md (movsi): Don't split predicated instructions
4055 (iorsi): Likewise.
4056
4057 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4058
4059 * config/arc/arc.opt (mea): Update help string.
4060 * doc/invoke.texi(ARC): Update mea option info.
4061
4062 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4063
4064 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4065 (zero_extendqisi2_ac): Likewise.
4066 (zero_extendhisi2_i): Likewise.
4067 (extendqihi2_i): Likewise.
4068 (extendqisi2_ac): Likewise.
4069 (extendhisi2_i): Likewise.
4070
4071 2019-11-06 Richard Biener <rguenther@suse.de>
4072
4073 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4074 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4075 Simplify single_defuse_cycle condition.
4076
4077 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4078
4079 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4080 epilogue loop, make sure that the VF is small enough or that
4081 the epilogue loop can be fully-masked.
4082
4083 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4084
4085 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4086 loop when we've finished, rather than returning directly from
4087 the loop. Use a local variable to track whether we're still
4088 searching for the preferred simdlen. Make vect_epilogues
4089 record whether the next iteration should try to treat the
4090 loop as an epilogue.
4091
4092 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4093
4094 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4095 __arc_hard_float__, __ARC_HARD_FLOAT__,
4096 __arc_soft_float__, __ARC_SOFT_FLOAT__
4097
4098 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4099
4100 PR tree-optimization/92317
4101 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4102 update phi's with constant phi arguments.
4103
4104 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4105 Alexandre Oliva <oliva@adacore.com>
4106
4107 * common.opt (-fcallgraph-info[=]): New option.
4108 * doc/invoke.texi (Developer options): Document it.
4109 * opts.c (common_handle_option): Handle it.
4110 * builtins.c (expand_builtin_alloca): Record allocation if
4111 -fcallgraph-info=da.
4112 * calls.c (expand_call): If -fcallgraph-info, record the call.
4113 (emit_library_call_value_1): Likewise.
4114 * flag-types.h (enum callgraph_info_type): New type.
4115 * explow.c: Include stringpool.h.
4116 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4117 * function.c (allocate_stack_usage_info): New.
4118 (allocate_struct_function): Call it for -fcallgraph-info.
4119 (prepare_function_start): Call it otherwise.
4120 (record_final_call, record_dynamic_alloc): New.
4121 * function.h (struct callinfo_callee): New.
4122 (CALLEE_FROM_CGRAPH_P): New.
4123 (struct callinfo_dalloc): New.
4124 (struct stack_usage): Add callees and dallocs.
4125 (record_final_call, record_dynamic_alloc): Declare.
4126 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4127 object if -fcallgraph-info=da.
4128 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4129 * print-tree.h (print_decl_identifier): Declare.
4130 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4131 * print-tree.c: Include print-tree.h.
4132 (print_decl_identifier): New function.
4133 * toplev.c: Include print-tree.h.
4134 (callgraph_info_file): New global variable.
4135 (callgraph_info_external_printed): Likewise.
4136 (output_stack_usage): Rename to...
4137 (output_stack_usage_1): ... this. Make it static, add cf
4138 parameter. If -fcallgraph-info=su, print stack usage to cf.
4139 If -fstack-usage, use print_decl_identifier for
4140 pretty-printing.
4141 (INDIRECT_CALL_NAME): New.
4142 (dump_final_node_vcg_start): New.
4143 (dump_final_callee_vcg, dump_final_node_vcg): New.
4144 (output_stack_usage): New.
4145 (lang_dependent_init): Open and start file if
4146 -fcallgraph-info. Allocated callgraph_info_external_printed.
4147 (finalize): If callgraph_info_file is not null, finish it,
4148 close it, and release callgraph_info_external_printed.
4149
4150 2019-11-06 Gergö Barany <gergo@codesourcery.com>
4151 Frederik Harwath <frederik@codesourcery.com>
4152 Thomas Schwinge <thomas@codesourcery.com>
4153
4154 * omp-low.c (struct omp_context): New fields
4155 local_reduction_clauses, outer_reduction_clauses.
4156 (new_omp_context): Initialize these.
4157 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
4158 (scan_omp_for): Check reduction clauses for incorrect nesting.
4159
4160 2019-11-06 Jakub Jelinek <jakub@redhat.com>
4161
4162 PR inline-asm/92352
4163 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
4164 operands with non-memory constraints.
4165
4166 2019-11-05 Martin Sebor <msebor@redhat.com>
4167
4168 PR tree-optimization/92373
4169 * tree.c (component_ref_size): Only consider initializers of objects
4170 of matching struct types.
4171 Return null for instances of interior zero-length arrays.
4172
4173 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
4174
4175 * doc/md.texi (Insn Splitting): Fix combiner documentation.
4176
4177 2019-11-05 Jason Merrill <jason@redhat.com>
4178
4179 PR tree-optimization/91825
4180 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
4181
4182 2019-11-05 Jim Wilson <jimw@sifive.com>
4183
4184 PR middle-end/92263
4185 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
4186 optimize_insn_for_speed_p is true.
4187
4188 2019-11-05 Martin Sebor <msebor@redhat.com>
4189
4190 PR middle-end/92333
4191 PR middle-end/82608
4192 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
4193 size.
4194 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
4195 name and location for a temporary variable.
4196
4197 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4198
4199 * tree-vrp.c (value_range::value_range): Fix whitespace.
4200 (defined_ranges_p): Same.
4201 (range_fold_binary_symbolics_p): Same.
4202 (value_range::intersect_helper): Same.
4203 (value_range::union_helper): Same.
4204 * tree-vrp.h (range_fold_binary_expr): Same.
4205
4206 2019-11-04 Martin Sebor <msebor@redhat.com>
4207
4208 PR middle-end/92341
4209 PR middle-end/82612
4210 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
4211 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
4212 of message printed in a warning for empty arrays.
4213 (vrp_prop::check_mem_ref): Also handle function parameters and
4214 empty arrays.
4215
4216 2019-11-05 Richard Biener <rguenther@suse.de>
4217
4218 PR tree-optimization/92371
4219 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
4220 on the original stmt of live stmts in the chain.
4221 (vectorizable_live_operation): Look at the original stmt when
4222 checking STMT_VINFO_REDUC_DEF.
4223
4224 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4225
4226 * gimple-fold.c, gimple-loop-versioning.cc,
4227 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
4228 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
4229 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
4230 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
4231 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
4232 value_range_equiv, and value_range_base to value_range.
4233
4234 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4235
4236 * expr.c (build_personality_function): Fix generated type to
4237 match actual personality functions.
4238
4239 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4240
4241 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
4242 enough bytes for the NULL character.
4243
4244 2019-11-05 Richard Biener <rguenther@suse.de>
4245
4246 PR tree-optimization/92280
4247 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
4248 had a single use do not create a new CTOR.
4249 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
4250 BIT_FIELD_REF of a CTOR via GENERIC.
4251
4252 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
4253
4254 * config/s390/s390.c (s390_vector_alignment): Check if the value
4255 fits into uhwi before using it.
4256
4257 2019-11-05 Martin Liska <mliska@suse.cz>
4258
4259 * symbol-summary.h: Use ggc_delete.
4260
4261 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4262
4263 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
4264 Change vec_perm field to 10.
4265
4266 2019-11-05 Arnaud Charlet <charlet@adacore.com>
4267
4268 * doc/install.texi: Further fix syntax for html generation.
4269
4270 2019-11-05 Martin Liska <mliska@suse.cz>
4271
4272 * symbol-summary.h: Rename allocator to m_allocator and
4273 add comment.
4274
4275 2019-11-05 Richard Biener <rguenther@suse.de>
4276
4277 PR tree-optimization/92324
4278 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
4279 all signed or unsigned operations.
4280
4281 2019-11-05 Jan Hubicka <jh@suse.cz>
4282
4283 * hsa-brig.c: Include alloc-pool.h
4284 * hsa-dump.c: Likewise.
4285 * hsa-gen.c: Likewise.
4286 * hse-regalloc.c: Likewise.
4287 * ipa-hsa.c: Likewise.
4288 * ipa-predicate.c: Likewise.
4289 * ipa-reference.c: Likewise.
4290 * ipa-sra.c: Likewise.
4291 * omp-expand.c: Likewise.
4292 * omp-general.c: Likewise.
4293 * omp-low.c: Likewise.
4294 * sumbol-summary.h (function_summary_base): Add allocator.
4295 (function_summary<T *>::function_summary): Update construction.
4296 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
4297 (call_summary_base): Add allcator.
4298 (call_summary<T *>::call_summary): Update construction.
4299 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
4300
4301 2019-11-05 Jakub Jelinek <jakub@redhat.com>
4302
4303 PR tree-optimization/91945
4304 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
4305 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
4306 Formatting fix.
4307
4308 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4309
4310 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
4311 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
4312 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
4313 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
4314 (vrp_set_zero_nonzero_bits): Move to...
4315 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
4316 (vr_values::simplify_bit_ops_using_ranges): Rename
4317 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
4318
4319 2019-11-05 Martin Liska <mliska@suse.cz>
4320
4321 PR c++/92339
4322 * fold-const.c (operand_compare::hash_operand): Remove
4323 FIELD_DECL handling.
4324
4325 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4326
4327 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
4328 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
4329 static.
4330
4331 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4332
4333 * tree-vrp.c (value_range_base::operator==): Use equal_p to
4334 properly handle symbolics.
4335 (range_compatible_p): Remove.
4336
4337 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
4338
4339 * common.opt (-fabi-version): Document =14.
4340 * doc/invoke.texi (C++ Dialect Options): Likewise.
4341
4342 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4343
4344 * tree-vrp.c (value_range_base::set): Do not special case pointers.
4345
4346 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4347
4348 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
4349 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4350 gcn_omp_device_kind_arch_isa.
4351 * config/gcn/t-omp-device: New file.
4352 * configure.ac: Support gcn for omp_device_property.
4353 * configure: Regenerate.
4354
4355 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4356
4357 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
4358 (vrp_val_max): Same.
4359 (vrp_val_is_min): Same.
4360 (vrp_val_is_max): Same.
4361 (value_range_base::nonzero_p): Remove last argument to
4362 vrp_val_is_max.
4363 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
4364 (vrp_val_max): Same.
4365 (vrp_val_is_min): Same.
4366 (vrp_val_is_max): Same.
4367 (value_range_base::set_varying): Remove last argument to vrp_val*.
4368 (value_range_base::dump): Same.
4369 (value_range_base::set): Same.
4370 (value_range_base::normalize_symbolics): Same.
4371 (value_range_base::num_pairs): Same.
4372 (value_range_base::lower_bound): Same.
4373 (value_range_base::upper_bound): Same.
4374 (ranges_from_anti_range): Remove handle_pointers argument.
4375 (value_range_base::singleton_p): Remove last argument to
4376 ranges_from_anti_range.
4377
4378 2019-11-04 Jan Hubicka <jh@suse.cz>
4379
4380 * ipa-reference.c (init_function_info): Initialize
4381 info->global.statics_read.
4382
4383 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4384
4385 * tree-vrp.c (value_range_base::invert): Use constructors to build
4386 range.
4387
4388 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4389
4390 * tree-vrp.c (range_int_cst_singleton_p): Remove.
4391 * tree-vrp.h (range_int_cst_singleton_p): Remove.
4392
4393 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4394
4395 * tree-vrp.c (value_range_base::normalize_addresses): Handle
4396 VR_UNDEFINED.
4397
4398 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4399
4400 * tree-vrp.c (dump_assert_info): New.
4401 (dump_asserts_info): New.
4402
4403 2019-11-04 Jan Hubicka <jh@suse.cz>
4404
4405 * ipa-inline-transform.c: Include ipa-utils.h
4406 (inline_call): Set thunk_expansion flag.
4407 * ipa-utils.h (thunk_expansion): Declare.
4408 * ipa-devirt.c (thunk_expansion): New global var.
4409 (devirt_node_removal_hook): Do not invalidate cache while
4410 doing thunk expansion.
4411
4412 2019-11-04 Tamar Christina <tamar.christina@arm.com>
4413
4414 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
4415
4416 2019-11-04 Martin Sebor <msebor@redhat.com>
4417
4418 PR tree-optimization/92349
4419 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
4420 memebers have constant sizes.
4421
4422 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
4423
4424 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
4425 parameter.
4426 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
4427 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
4428 vect_analyze_loop.
4429
4430 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
4431
4432 * expr.c (store_constructor): Modify to handle single element vectors.
4433 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
4434 constructors.
4435 (vect_slp_check_for_constructors): New function.
4436 (vect_slp_analyze_bb_1): Call new function to check for vector
4437 constructors.
4438 (vectorize_slp_instance_root_stmt): New function.
4439 (vect_schedule_slp): Call new function to vectorize root stmt of vector
4440 constructors.
4441 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
4442
4443 2019-11-04 Richard Biener <rguenther@suse.de>
4444
4445 PR tree-optimization/92345
4446 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
4447 we produced a reduction chain.
4448 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
4449 LOOP_VINFO_REDUCTIONS.
4450
4451 2019-11-04 Jan Hubicka <jh@suse.cz>
4452
4453 * cgraphclones.c (cgraph_node::create_version_clone): Do not
4454 duplicate summaries.
4455 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
4456 first.
4457 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
4458 access call summaries.
4459 (dump_ipa_call_summary): Be ready for missing edge summaries.
4460 (analyze_function_body): Use get instead of get_create to access
4461 edge summary.
4462 (estimate_calls_size_and_time): Do not access summaries of
4463 inlined edges; sanity check they are missing.
4464 (ipa_call_context::estimate_size_and_time): Use get instead
4465 of get_create to access node summary.
4466 (inline_update_callee_summaries): Do not update depth of
4467 inlined edge.
4468 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
4469 growth caches.
4470 (ipa_merge_fn_summary_after_inlining): Use get instead
4471 of get_create.
4472 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
4473 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
4474 fast summary.
4475 (initialize_growth_caches): Update.
4476 (do_estimate_edge_time): Remove redundant copy of context.
4477 (ipa_remove_from_growth_caches): New function.
4478 * ipa-inline.c (flatten_function): Update overall summary
4479 only when optimizing.
4480 (inline_to_all_callers): Update overall summary of function
4481 inlined to.
4482 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
4483 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
4484 to false.
4485
4486 2019-11-04 Richard Biener <rguenther@suse.de>
4487
4488 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
4489 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
4490
4491 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
4492
4493 * ggc-common.c: Include system.h before malloc.h.
4494
4495 2019-11-04 Alexandre Oliva <oliva@adacore.com>
4496
4497 * configure.ac: Pass --enable-obsolete=* and
4498 --enable-option-checking=* down to build configure, and fail
4499 if it fails. AC_SUBST HAVE_AUTO_BUILD.
4500 * configure: Rebuild.
4501 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
4502 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
4503
4504 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4505
4506 * config.in: Regenerate.
4507 * config/msp430/msp430.c (msp430_option_override): Emit an error if
4508 -mtiny-printf is used without GCC being configured with
4509 --enable-newlib-nano-formatted-io.
4510 * config/msp430/msp430.h (LINK_SPEC): Pass
4511 "--wrap puts --wrap printf" when -mtiny-printf is used.
4512 * config/msp430/msp430.opt: Document -mtiny-printf.
4513 * configure: Regenerate.
4514 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
4515 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
4516 --enable-newlib-nano-formatted-io is passed.
4517 * doc/invoke.texi: Document -mtiny-printf.
4518
4519 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4520
4521 * configure: Regenerate.
4522
4523 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4524
4525 * config/msp430/driver-msp430.c
4526 (msp430_get_linker_devices_include_path): New spec function.
4527 * config/msp430/msp430-devices.c (msp430_dirname): New function.
4528 (extract_devices_dir_from_exec_prefix): New function.
4529 (extract_devices_dir_from_collect_gcc): New function.
4530 (msp430_check_env_var_for_devices): New function.
4531 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
4532 (parse_devices_csv): Call msp430_check_env_var_for_devices if
4533 devices.csv was not found using other methods.
4534 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
4535 New prototype.
4536 (msp430_dirname): Likewise.
4537 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
4538 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
4539 msp430_get_linker_devices_include_path.
4540 (TARGET_EXTRA_PRE_INCLUDES): Define.
4541 * doc/invoke.texi: Document new ways of searching for support files.
4542
4543 2019-11-04 Richard Biener <rguenther@suse.de>
4544
4545 PR tree-optimization/92301
4546 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
4547 as required by epilogue generation
4548
4549 2019-11-04 Martin Liska <mliska@suse.cz>
4550
4551 PR ipa/92304
4552 * fold-const.c (operand_compare::hash_operand): Fix field
4553 hashing of CONSTRUCTOR.
4554
4555 2019-11-04 Martin Liska <mliska@suse.cz>
4556
4557 * ggc.h (ggc_delete): New function.
4558 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
4559 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
4560 (ipa_free_all_node_params): Likewise.
4561 * ipa-sra.c (ipa_sra_analysis): Likewise.
4562
4563 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4564
4565 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
4566 set_switch_stmt_execution_predicate, compute_bb_predicates,
4567 will_be_nonconstant_expr_predicate,
4568 phi_result_unknown_predicate,
4569 analyze_function_body): Pass arround params summary.
4570 (ipa_call_context::duplicate_from): New comment;
4571 only duplicate useful values.
4572 (ipa_call_context::equal_to): Only compare useful values.
4573 (remap_edge_summaries): Pass params_summary.
4574 (remap_hint_predicate): Likewise.
4575 (ipa_merge_fn_summary_after_inlining): Likewise.
4576 (inline_read_section): Initialize params summary used flags.
4577 * ipa-predicate.c (predicate::remap_after_inlining): Pass
4578 around param_summary.
4579 (add_condition): Initialized used params summary flags.
4580 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
4581 (inline_param_summary::useless_p): New predicate.
4582 (remap_after_inlining, add_condition): Update prototype
4583 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
4584 move_cost.
4585 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
4586 summaries.
4587 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
4588 (ipa_analyze_virtual_call_uses): Likewise.
4589 (update_indirect_edges_after_inlining): Update param summaries.
4590 (ipa_print_node_params): Print used flags.
4591 (ipa_read_indirect_edge_info): Update param summareis.
4592 * ipa-prop.h (ipa_param_descriptor): Add
4593 used_by_ipa_predicates, used_by_indirect_call
4594 and used_by_polymorphic_call.
4595 (ipa_set_param_used_by_ipa_predicates,
4596 ipa_set_param_used_by_indirect_call,
4597 ipa_set_param_used_by_polymorphic_call,
4598 ipa_is_param_used_by_ipa_predicates,
4599 ipa_is_param_used_by_indirect_call,
4600 ipa_is_param_used_by_polymorphic_call): New inline functions.
4601
4602 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4603
4604 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
4605 member function.
4606 (ipa_call_context::release): Add ALL parameter.
4607 (ipa_call_context::equal_to): New member function.
4608 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
4609 duplicate_form, release, equal_to and exists_p member functoins.
4610 * ipa-inline-analysis.c (node_context_cache_entry): New
4611 class.
4612 (node_context_summary): Likewise.
4613 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
4614 node_context_clear): New static vars.
4615 (initialize_growth_caches): New function.
4616 (free_growth_caches): Also delete node_context_cache; output stats.
4617 (do_estimate_edge_time): Cache contexts.
4618 (reset_node_cache): New function.
4619 * ipa-inline.c (reset_edge_caches): Reset also node cache.
4620 (inline_small_functions): Initialize growth caches.
4621 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
4622 Declare.
4623 * ipa-predicate.h (inline_param_summary::equal_to): New.
4624 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
4625 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
4626 (ipa_agg_jump_function): Implement equal_to member function.
4627
4628 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4629
4630 * ipa-fnsummary.c (inline_read_section): Set vector size
4631 ahead of time.
4632
4633 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4634
4635 * ipa-fnsummary.c (ipa_call_context): New constructor.
4636 (estimate_node_size_and_time): Turn to ...
4637 (ipa_call_context::estimate_size_and_time): ... this one.
4638 (ipa_call_context::release): New.
4639 * ipa-fnsummary.h (ipa_call_context): New class.
4640 (estimate_node_size_and_time): Remove.
4641 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
4642 do_estimate_edge_hints): Update.
4643
4644 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4645
4646 * config.in: Regenerate.
4647 * configure: Regenerate.
4648 * configure.ac: Check for mallinfo.
4649 * ggc-common.c: Include malloc.h if available;
4650 include options.h
4651 (report_heap_memory_use): New functoin.
4652 * ggc-page.c (ggc_grow): Do not print "start".
4653 * ggc.h (report_heap_memory_use): Declare.
4654 * pases.c (execute_one_pass): Report memory after IPA passes.
4655 (ipa_read_summaries_1): Likewise.
4656 (ipa_read_optimization_summaries_1): Likewise.
4657
4658 2019-11-02 Jakub Jelinek <jakub@redhat.com>
4659
4660 * gimplify.h (omp_construct_selector_matches): Change return
4661 type to int, add a new SCORES argument.
4662 * gimplify.c (omp_construct_selector_matches): Likewise. If
4663 SCORES is non-NULL, compute scores of each construct.
4664 * omp-general.h (omp_get_context_selector): Declare.
4665 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
4666 Adjust omp_construct_selector_matches callers.
4667 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
4668 (omp_context_compute_score): New function.
4669 (omp_resolve_declare_variant): Compute scores and decide based on
4670 that.
4671
4672 PR bootstrap/92314
4673 * configure.ac: Don't look for omp-device-properties files from
4674 installed offloading compilers. Instead add tmake_file snippets
4675 for configured offloading targets and use files they generate.
4676 * Makefile.in (install): Don't depend on
4677 install-omp-device-properties.
4678 (install-omp-device-properties): Remove goal.
4679 * config/i386/t-omp-device: New file.
4680 * config/i386/t-intelmic (omp-device-properties): Remove goal.
4681 * config/nvptx/t-omp-device: New file.
4682 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
4683 * configure: Regenerated.
4684
4685 * omp-general.h (omp_context_selector_set_compare): Declare.
4686 * omp-general.c (omp_construct_simd_compare,
4687 omp_context_selector_props_compare, omp_context_selector_set_compare,
4688 omp_context_selector_compare): New functions.
4689 (omp_resolve_declare_variant): Prune variants that are strict subset
4690 of another variant.
4691
4692 2019-11-01 Martin Sebor <msebor@redhat.com>
4693
4694 PR middle-end/91679
4695 PR middle-end/91647
4696 PR middle-end/91463
4697 PR middle-end/92312
4698 * doc/invoke.texi (-Wzero-length-bounds): Document.
4699 * gimple-match-head.c (try_conditional_simplification): Use memcpy
4700 instead of a hand-rolled loop to avoid PR 92323.
4701 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
4702 with initializers.
4703 (vrp_prop::check_mem_ref): Handle declared struct objects.
4704 * tree.c (last_field): New function.
4705 (array_at_struct_end_p): Handle MEM_REF.
4706 (get_initializer_for): New helper.
4707 (component_ref_size): Add argument. Rename locals. Call
4708 get_initializer_for instead of fold_ctor_reference. Correct handling
4709 of flexible array members.
4710 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
4711
4712 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4713
4714 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
4715 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
4716 UNSPEC_VSX_CVSPUXDS): Remove.
4717 (vsx_xvcvspdp): New define_expand, old define_insn split to...
4718 (vsx_xvcvspdp_be): ... this. New. And...
4719 (vsx_xvcvspdp_le): ... this. New.
4720 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
4721 (vsx_xvcv<su>xwdp_be): ... this. New. And...
4722 (vsx_xvcv<su>xwdp_le): ... this. New.
4723 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
4724 (vsx_xvcvsp<su>xds_be): ... this. New. And...
4725 (vsx_xvcvsp<su>xds_le): ... this. New.
4726
4727 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4728
4729 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
4730 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
4731 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
4732 UNSPEC_VSX_XVCVSPSXWS): Remove.
4733 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
4734 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
4735
4736 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4737
4738 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
4739 (UNSPEC_VSX_XVCDPSP): Remove.
4740 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
4741 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
4742
4743 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4744
4745 * hooks.c (hook_tree_tree_bool_null): New.
4746 * hooks.h (hook_tree_tree_bool_null): Declare.
4747 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
4748 (LANG_HOOKS_DECLS): Add it.
4749 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
4750 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
4751 (lower_omp_target): Handle Fortran array with descriptor in
4752 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
4753
4754 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
4755
4756 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4757 Assert that the type we store in abi_vector_types is its own
4758 main variant.
4759 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
4760
4761 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4762
4763 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
4764 from a CONST_INT address when TARGET_THUMB2.
4765
4766 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4767
4768 * config/arm/arm.md (add_not_cin): New insn.
4769 (add_not_shift_cin): Likewise.
4770
4771 2019-10-31 Martin Liska <mliska@suse.cz>
4772
4773 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
4774 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
4775 and compare_memory_operand.
4776
4777 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4778
4779 * configure.ac: Compute and substitute omp_device_properties and
4780 omp_device_property_deps.
4781 * Makefile.in (generated_files): Add omp-device-properties.h.
4782 (omp-general.o): Depend on omp-device-properties.h.
4783 (omp_device_properties): New make variable.
4784 (omp-device-properties.h, s-omp-device-properties-h,
4785 install-omp-device-properties): New goals.
4786 (install): Depend on install-omp-device-properties for accelerators.
4787 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
4788 * target.h (enum omp_device_kind_arch_isa): New enum.
4789 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
4790 documentation.
4791 * omp-general.c: Include omp-device-properties.h.
4792 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
4793 colon instead of comma.
4794 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
4795 functions.
4796 (omp_context_selector_matches): Implement device set arch/isa
4797 selectors, improve device set kind selector handling.
4798 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
4799 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
4800 TARGET_SIMD_CLONE_USABLE): Formatting fix.
4801 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4802 ix86_omp_device_kind_arch_isa.
4803 * config/i386/i386-options.c (struct ix86_target_opts): Move type
4804 definition from ix86_target_string to file scope.
4805 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
4806 to file scope.
4807 (ix86_omp_device_kind_arch_isa): New function.
4808 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
4809 isa_opts definitions to file scope.
4810 * config/i386/t-intelmic (omp-device-properties): New goal.
4811 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
4812 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
4813 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4814 nvptx_omp_device_kind_arch_isa.
4815 * configure: Regenerate.
4816 * doc/tm.texi: Regenerate.
4817
4818 PR middle-end/92231
4819 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
4820 DECL_BUILT_IN in comment. Remove redundant ()s around return
4821 argument.
4822 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
4823 before calling fndecl_built_in_p.
4824 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
4825 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
4826 fndecl_built_in_p on it.
4827
4828 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4829
4830 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
4831
4832 2019-10-31 Martin Liska <mliska@suse.cz>
4833
4834 * config/arm/arm.c (arm_get_pcs_model): Remove usage
4835 of cgraph_local_info and use local_info_node instead.
4836 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
4837 (bfin_function_ok_for_sibcall): Likewise.
4838 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
4839 (must_reload_pic_reg_p): Likewise.
4840
4841 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4842
4843 PR c++/90947
4844 * tree.h (type_initializer_zero_p): Remove.
4845 * tree.c (type_initializer_zero_p): Remove.
4846
4847 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4848
4849 * doc/invoke.texi (-Wshadow, -Wshadow=global
4850 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
4851
4852 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4853
4854 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
4855 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
4856 and 'target exit data'.
4857
4858 2019-10-30 Martin Jambor <mjambor@suse.cz>
4859
4860 ipa/92278
4861 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
4862 availability comparison.
4863
4864 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4865
4866 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
4867 calls to __mspabi_mpy* functions.
4868 * config/msp430/msp430.md (mulhisi3): New define_expand.
4869 (umulhisi3): New define_expand.
4870 (*mulhisi3_inline): Use old mulhisi3 define_insn.
4871 (*umulhisi3_inline): Use old umulhisi3 define_insn.
4872
4873 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4874
4875 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
4876 (msp430_check_plus_not_high_mem): New.
4877 (msp430_op_not_in_high_mem): Use new functions to check if the operand
4878 might be in low memory.
4879 Indicate that a 16-bit absolute address is in lower memory.
4880
4881 2019-10-30 Martin Jambor <mjambor@suse.cz>
4882
4883 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
4884 ultimate_alias_target.
4885
4886 2019-10-30 Richard Biener <rguenther@suse.de>
4887
4888 PR tree-optimization/92275
4889 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
4890 Copy all loop-closed PHIs.
4891
4892 2019-10-30 Martin Liska <mliska@suse.cz>
4893
4894 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
4895 const_tree as function argument.
4896 (func_checker::compare_decl): Likewise.
4897 (func_checker::operand_equal_p): Likewise.
4898 (func_checker::compare_variable_decl): Likewise.
4899 (func_checker::parse_labels): Likewise.
4900 * ipa-icf-gimple.h: Likewise.
4901
4902 2019-10-30 Martin Liska <mliska@suse.cz>
4903
4904 * ipa-icf-gimple.c (func_checker::compatible_types_p):
4905 Do not compare alias sets. It's handled by operand_equal_p.
4906
4907 2019-10-30 Martin Liska <mliska@suse.cz>
4908
4909 * ipa-icf-gimple.c (func_checker::func_checker): Do not
4910 initialize m_compare_polymorphic.
4911 (func_checker::compare_decl): Do not compare polymorphic types.
4912 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
4913 * ipa-icf.c (sem_function::equals_private): Do not call
4914 compare_polymorphic_p.
4915
4916 2019-10-30 Martin Liska <mliska@suse.cz>
4917
4918 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
4919 compare_operand.
4920 (func_checker::compare_memory_operand): Remove.
4921 (func_checker::compare_cst_or_decl): Remove.
4922 (func_checker::operand_equal_valueize): Do not handle
4923 FIELD_DECL.
4924 (func_checker::compare_gimple_call): Call compare_operand.
4925 (func_checker::compare_gimple_assign): Likewise.
4926 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
4927 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
4928 * ipa-icf.h (icf_handled_component_p): Remove.
4929
4930 2019-10-30 Martin Liska <mliska@suse.cz>
4931
4932 * ipa-icf-gimple.c (func_checker::hash_operand): New.
4933 (func_checker::compare_cst_or_decl): Remove handling
4934 of FIELD_DECL.
4935 (func_checker::compare_operand): Transform to ...
4936 (func_checker::operand_equal_p): ... this.
4937 * ipa-icf-gimple.h (class func_checker): Add
4938 operand_equal_p and hash_operand.
4939 * ipa-icf.c (sem_function::equals_private): Fix
4940 pushing and popping of cfun.
4941
4942 2019-10-30 Martin Liska <mliska@suse.cz>
4943
4944 * fold-const.c (operand_equal_p): Move to ...
4945 (operand_compare::operand_equal_p): ... here.
4946 (operand_compare::verify_hash_value): New.
4947 (add_expr): Move to ...
4948 (operand_compare::hash_operand): ... here.
4949 * fold-const.h (operand_equal_p): Move to the class.
4950 (class operand_compare): New.
4951 * tree.c (add_expr): Remove.
4952
4953 2019-10-30 Martin Liska <mliska@suse.cz>
4954
4955 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
4956 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
4957
4958 2019-10-30 Martin Liska <mliska@suse.cz>
4959
4960 PR lto/91393
4961 PR lto/88220
4962 * cgraph.c (cgraph_node::get_create): Overwrite node->order
4963 from a first_clone in order to get proper LTO section
4964 in LTO stream.
4965 (cgraph_node::get_untransformed_body):
4966 Use lto_get_section_data where symtab_node::order
4967 must be provided.
4968 * cgraphclones.c (cgraph_node::find_replacement):
4969 Update also symbol order.
4970 * ipa-fnsummary.c (ipa_fn_summary_read):
4971 Use new function lto_get_summary_section_data.
4972 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
4973 * ipa-icf.c (sem_item_optimizer::read_summary):
4974 Likewise.
4975 * ipa-prop.c (ipa_prop_read_jump_functions):
4976 Likewise.
4977 (ipcp_read_transformation_summaries): Likewise.
4978 * ipa-sra.c (ipa_sra_read_summary): Likewise.
4979 * lto-cgraph.c (input_node): Add also order_base.
4980 (input_varpool_node): Likewise.
4981 (input_cgraph_1): Assign the order_base.
4982 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
4983 * lto-opts.c (lto_write_options): Pass new argument.
4984 * lto-section-in.c (lto_get_section_data): Add new argumente order.
4985 (lto_get_summary_section_data): New.
4986 (lto_get_raw_section_data): Add order argument.
4987 (lto_create_simple_input_block): Likewise.
4988 * lto-section-out.c (lto_destroy_simple_output_block):
4989 Likewise.
4990 * lto-streamer-in.c (lto_input_toplevel_asms):
4991 Use lto_get_summary_section_data.
4992 (lto_input_mode_table): Likewise.
4993 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
4994 (lto_output_toplevel_asms): Pass new argument.
4995 (copy_function_or_variable): Likewise.
4996 (produce_lto_section):Likewise.
4997 (produce_symtab): Likewise.
4998 (lto_write_mode_table): Likewise.
4999 (produce_asm_for_decls): Likewise.
5000 * lto-streamer.c (lto_get_section_name): Concat symbol name
5001 and symbol order.
5002 * lto-streamer.h (lto_get_section_data): Add order argument.
5003 (lto_get_summary_section_data): New.
5004 (lto_get_raw_section_data): Add order argument.
5005 (lto_get_section_name): Likewise.
5006 * varpool.c (varpool_node::get_constructor): Pass order argument.
5007
5008 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5009
5010 PR tree-optimization/92262
5011 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5012 ubase or cbase here.
5013 (remove_unused_ivs): Unshare comp before using it.
5014
5015 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5016
5017 * ipa-prop.c (update_jump_functions_after_inlining):
5018 Watch for missing summaries.
5019
5020 2019-10-30 Richard Biener <rguenther@suse.de>
5021
5022 PR tree-optimization/65930
5023 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5024 chains also allow a leading and trailing conversion.
5025 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5026 intermediate reduction chains.
5027 (vect_analyze_slp_instance): Likewise. Build a SLP
5028 node for a trailing conversion manually.
5029
5030 2019-10-30 Martin Liska <mliska@suse.cz>
5031
5032 * cgraph.c (cgraph_node::local_info): Transform to ...
5033 (cgraph_node::local_info_node): ... this.
5034 (cgraph_node::dump): Remove cgraph_local_info and
5035 put its fields directly into cgraph_node.
5036 (cgraph_node::get_availability): Likewise.
5037 (cgraph_node::make_local): Likewise.
5038 (cgraph_node::verify_node): Likewise.
5039 * cgraph.h (struct GTY): Likewise.
5040 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5041 (duplicate_thunk_for_node): Likewise.
5042 (cgraph_node::create_clone): Likewise.
5043 (cgraph_node::create_virtual_clone): Likewise.
5044 (cgraph_node::create_version_clone): Likewise.
5045 * cgraphunit.c (cgraph_node::reset): Likewise.
5046 (cgraph_node::finalize_function): Likewise.
5047 (cgraph_node::add_new_function): Likewise.
5048 (analyze_functions): Likewise.
5049 * combine.c (setup_incoming_promotions): Likewise.
5050 * config/i386/i386.c (ix86_function_regparm): Likewise.
5051 (ix86_function_sseregparm): Likewise.
5052 (init_cumulative_args): Likewise.
5053 * ipa-cp.c (determine_versionability): Likewise.
5054 (count_callers): Likewise.
5055 (set_single_call_flag): Likewise.
5056 (initialize_node_lattices): Likewise.
5057 (estimate_local_effects): Likewise.
5058 (create_specialized_node): Likewise.
5059 (identify_dead_nodes): Likewise.
5060 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5061 (ipa_fn_summary_generate): Likewise.
5062 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5063 (process_hsa_functions): Likewise.
5064 * ipa-icf.c (set_local): Likewise.
5065 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5066 * ipa-inline.c (speculation_useful_p): Likewise.
5067 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5068 (ipa_profile): Likewise.
5069 * ipa-split.c (split_function): Likewise.
5070 (execute_split_functions): Likewise.
5071 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5072 (ipa_sra_ipa_function_checks): Likewise.
5073 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5074 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5075 * lto-cgraph.c (lto_output_node): Likewise.
5076 (input_overwrite_node): Likewise.
5077 * multiple_target.c (expand_target_clones): Likewise.
5078 * omp-simd-clone.c (simd_clone_create): Likewise.
5079 * trans-mem.c (expand_call_tm): Likewise.
5080 (ipa_tm_mayenterirr_function): Likewise.
5081 (ipa_tm_diagnose_tm_safe): Likewise.
5082 (ipa_tm_diagnose_transaction): Likewise.
5083 (ipa_tm_create_version): Likewise.
5084 (ipa_tm_transform_calls_redirect): Likewise.
5085 (ipa_tm_execute): Likewise.
5086 * tree-inline.c (expand_call_inline): Likewise.
5087
5088 2019-10-29 Martin Liska <mliska@suse.cz>
5089
5090 * symbol-summary.h (function_summary): Pass memory location
5091 to underlaying hash_map (or vec).
5092 (V>::fast_function_summary): Likewise.
5093
5094 2019-10-29 Martin Liska <mliska@suse.cz>
5095
5096 * ggc.h (ggc_alloc_no_dtor): New function.
5097 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5098 destructor and ggc_free.
5099 (ipa_free_size_summary): Call delete instead
5100 of release.
5101 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5102 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5103 (ipa_free_all_edge_args): Call destructor and ggc_free.
5104 (ipa_free_all_node_params): Likewise.
5105 (ipcp_free_transformation_sum): Likewise.
5106 * ipa-prop.h (ipa_check_create_node_params):
5107 Call new ggc_alloc_no_dtor.
5108 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5109 (ipa_sra_analysis): Call destructor and ggc_free.
5110 Replace release with delete operator.
5111 * symbol-summary.h (release): Remove ..
5112 (V>::~fast_function_summary): and move logic here.
5113 Likewise for other classes.
5114
5115 2019-10-29 Richard Biener <rguenther@suse.de>
5116
5117 PR tree-optimization/92260
5118 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5119 lane-reducing ops.
5120
5121 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
5122
5123 PR tree-optimization/88915
5124 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5125 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5126 and make the valueize function pointer also take a void pointer.
5127 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5128 around vn_valueize, to call it without a context.
5129 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5130 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5131 (~_loop_vec_info): Release epilogue_vinfos.
5132 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5133 number of iterations of epilogue.
5134 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
5135 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
5136 versioning threshold needed for main loop.
5137 (vect_analyze_loop): Likewise.
5138 (find_in_mapping): New helper function.
5139 (update_epilogue_loop_vinfo): New function.
5140 (vect_transform_loop): When vectorizing epilogues re-use analysis done
5141 on main loop and call update_epilogue_loop_vinfo to update it.
5142 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
5143 stmts on loop preheader edge.
5144 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
5145 we decided to vectorize epilogues. Update epilogues NITERS and
5146 construct ADVANCE to update epilogues data references where needed.
5147 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
5148 (vect_do_peeling, vect_update_inits_of_drs,
5149 determine_peel_for_niter, vect_analyze_loop): Add or update
5150 declarations.
5151 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
5152 created loop_vec_info's for epilogues when available. Otherwise analyse
5153 epilogue separately.
5154
5155 2019-10-29 Richard Biener <rguenther@suse.de>
5156
5157 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
5158 example.
5159
5160 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5161
5162 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
5163 index for the COND_EXPR from stmt_info rather than reduc_info.
5164
5165 2019-10-29 Richard Biener <rguenther@suse.de>
5166
5167 PR tree-optimization/65930
5168 * tree-vect-loop.c (check_reduction_path): Relax single-use
5169 check allowing out-of-loop uses.
5170 (vect_is_simple_reduction): SLP reduction chains cannot have
5171 intermediate stmts used outside of the loop.
5172 (vect_create_epilog_for_reduction): The adjustment might need
5173 to be converted.
5174 (vectorizable_reduction): Annotate live stmts of the reduction
5175 chain with STMT_VINFO_REDUC_DEF.
5176 * tree-vect-stms.c (process_use): Remove no longer true asserts.
5177
5178 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5179
5180 * calls.c (pass_by_reference): Leave the target to decide whether
5181 POLY_INT_CST-sized arguments should be passed by value or reference,
5182 rather than forcing them to be passed by reference.
5183 (must_pass_in_stack_var_size): Likewise.
5184 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
5185 V31_REGNUM to P15_REGNUM.
5186 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
5187 Take an extra "silent_p" parameter, defaulting to false.
5188 (aarch64_sve::svbool_type_p): Declare.
5189 (aarch64_sve::nvectors_if_data_type): Likewise.
5190 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
5191 (aarch64_frame::reg_offset): Turn into poly_int64s.
5192 (aarch64_frame::save_regs_size): Likewise.
5193 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
5194 (aarch64_frame::sve_callee_adjust): Likewise.
5195 (aarch64_frame::spare_reg_reg): Likewise.
5196 (ARM_PCS_SVE): New arm_pcs value.
5197 (CUMULATIVE_ARGS::aapcs_nprn): New field.
5198 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
5199 (CUMULATIVE_ARGS::silent_p): Likewise.
5200 (BITS_PER_SVE_PRED): New macro.
5201 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
5202 function. Reject aarch64_vector_pcs attributes on SVE functions.
5203 (aarch64_attribute_table): Use the above handler.
5204 (aarch64_sve_abi): New function.
5205 (aarch64_sve_argument_p): Likewise.
5206 (aarch64_returns_value_in_sve_regs_p): Likewise.
5207 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
5208 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
5209 descriptor for them.
5210 (aarch64_simd_decl_p): Delete.
5211 (aarch64_emit_cfi_for_reg_p): New function.
5212 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
5213 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
5214 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
5215 as partly clobbered for the SVE PCS.
5216 (aarch64_function_ok_for_sibcall): Check whether the two functions
5217 use the same ABI, rather than checking specifically for whether
5218 they're aarch64_vector_pcs functions.
5219 (aarch64_pass_by_reference): Raise an error for attempts to pass
5220 SVE arguments when SVE is disabled. Pass SVE arguments by reference
5221 if there are not enough free registers left, or if the argument is
5222 variadic.
5223 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
5224 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
5225 tuples in memory.
5226 (aarch64_layout_arg): Take a function_arg_info rather than
5227 individual properties. Handle SVE predicates, vectors and tuples.
5228 Raise an error if they are passed to unprototyped functions.
5229 (aarch64_function_arg): If the silent_p flag is set, suppress the
5230 usual error about using float registers without TARGET_FLOAT.
5231 (aarch64_init_cumulative_args): Take a silent_p parameter and store
5232 it in the cumulative_args structure. Initialize aapcs_nprn and
5233 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
5234 error about using float registers without TARGET_FLOAT.
5235 If the silent_p flag is not set, also raise an error about
5236 using SVE functions when SVE is disabled.
5237 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
5238 and call it for SVE functions too. Update aapcs_nprn similarly
5239 to the other register counts.
5240 (aarch64_layout_frame): If a big-endian function needs to save
5241 and restore Z8-Z15, search for a spare predicate that it can use.
5242 Store SVE predicates at the bottom of the register save area,
5243 followed by SVE vectors, then followed by the normal slots.
5244 Keep pointing the hard frame pointer at the base of the normal slots,
5245 above the SVE vectors. Update the various frame creation and
5246 tear-down strategies for the new layout, initializing the new
5247 sve_callee_adjust field. Add an additional layout for frames
5248 whose saved registers are all SVE registers.
5249 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
5250 (aarch64_return_address_signing_enabled): Likewise.
5251 (aarch64_push_regs, aarch64_pop_regs): Update calls to
5252 aarch64_reg_save_mode.
5253 (aarch64_adjust_sve_callee_save_base): New function.
5254 (aarch64_add_cfa_expression): Move earlier in file. Take the
5255 saved register as an rtx rather than a register number and use
5256 its mode for the MEM slot.
5257 (aarch64_save_callee_saves): Remove the mode argument and instead
5258 use aarch64_reg_save_mode to get the mode of each save slot.
5259 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
5260 offsets. Allow GP offsets to be saved at a VL-based offset from
5261 the stack, handling this case using the frame pointer if available
5262 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
5263 big-endian SVE functions; use normal moves for other SVE saves.
5264 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
5265 returns true. Add explicit CFA notes when not storing via the
5266 stack pointer. Do not try to pair SVE saves.
5267 (aarch64_restore_callee_saves): Cope with poly_int64 register
5268 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
5269 use normal moves for other SVE restores. Only add CFA restore notes
5270 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
5271 SVE restores.
5272 (aarch64_get_separate_components): Always keep the first SVE save
5273 in the prologue if we need to use it as a stack probe. Don't allow
5274 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
5275 Likewise the spare predicate register that they need. Update the
5276 offset calculation to account for the SVE save area. Use the
5277 appropriate range check for SVE LDR and STR instructions.
5278 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
5279 (aarch64_process_components): Likewise. Update the offset
5280 calculation to account for the SVE save area. Only mark the
5281 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
5282 Do not try to pair SVE saves.
5283 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
5284 reg_offsets. When handling the final allocation, expect the
5285 first SVE register save to be part of the initial allocation
5286 and for it to act as a probe at SP. Account for the SVE callee
5287 save area in the dump information.
5288 (aarch64_expand_prologue): Update the frame diagram. Fold the
5289 SVE callee allocation into the initial allocation if stack clash
5290 protection is enabled. Use new variables to track the offset
5291 of the frame chain (and hard frame pointer) from the current
5292 stack pointer, and likewise the offset of the bottom of the
5293 register save area. Update calls to aarch64_save_callee_saves
5294 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
5295 saving the FP&SIMD registers. Save the predicate registers.
5296 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
5297 into account when setting the stack pointer from the frame pointer,
5298 and when deciding whether we can inherit the initial adjustment
5299 amount from the prologue. Restore the predicate registers after
5300 the vector registers, then apply sve_callee_adjust, then restore
5301 the general registers.
5302 (aarch64_secondary_reload): Don't use secondary SVE reloads
5303 for VNx16BImode.
5304 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
5305 (aarch64_short_vector_p): Return false for SVE types.
5306 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
5307 at the start of the function. Return false for SVE types.
5308 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
5309 functions too.
5310 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
5311 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
5312 to big-endian targets for bytewise moves.
5313 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
5314
5315 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5316 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5317 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5318
5319 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
5320 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
5321 aarch64-sve-builtins-base.o to extra_objs. Add
5322 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
5323 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
5324 (aarch64-sve-builtins-shapes.o): Likewise.
5325 (aarch64-sve-builtins-base.o): New rules.
5326 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
5327 (aarch64_resolve_overloaded_builtin): Likewise.
5328 (aarch64_check_builtin_call): Likewise.
5329 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
5330 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
5331 pragma.
5332 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
5333 (aarch64_svprfop): New enum.
5334 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
5335 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
5336 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
5337 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5338 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
5339 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
5340 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
5341 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
5342 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
5343 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
5344 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
5345 (aarch64_sve::mangle_builtin_type): Likewise.
5346 (aarch64_sve::resolve_overloaded_builtin): Likewise.
5347 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
5348 (aarch64_sve::expand_builtin): Likewise.
5349 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
5350 (aarch64_sve_int_mode): Likewise.
5351 (aarch64_ptrue_all_mode): New function.
5352 (aarch64_convert_sve_data_to_pred): Make public.
5353 (svprfop_token): New function.
5354 (aarch64_output_sve_prefetch): Likewise.
5355 (aarch64_fold_sve_cnt_pat): Likewise.
5356 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5357 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
5358 instead of gen_while_ult.
5359 (aarch64_replace_reg_mode): Make public.
5360 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
5361 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
5362 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
5363 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
5364 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
5365 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
5366 (aarch64_sve_ptrue_svpattern_p): Likewise.
5367 (aarch64_sve_pred_valid_immediate): Check
5368 aarch64_sve_ptrue_svpattern_p.
5369 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
5370 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
5371 functions.
5372 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
5373 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
5374 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
5375 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
5376 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
5377 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
5378 New unspecs.
5379 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
5380 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
5381 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
5382 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
5383 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
5384 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
5385 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
5386 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
5387 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
5388 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
5389 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
5390 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
5391 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
5392 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
5393 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
5394 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
5395 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
5396 (Vesize): Handle partial vector modes.
5397 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
5398 mode attributes.
5399 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
5400 iterators.
5401 (s, paired_extend, inc_dec): New code attributes.
5402 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
5403 (SVE_INT_UNARY): Add UNSPEC_RBIT.
5404 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
5405 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
5406 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
5407 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5408 UNSPEC_COND_FMULX.
5409 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
5410 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
5411 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5412 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
5413 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
5414 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
5415 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
5416 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
5417 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
5418 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
5419 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
5420 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
5421 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
5422 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
5423 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
5424 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
5425 UNSPEC_COND_FSCALE.
5426 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5427 (binqops_op, binqops_op_rev, last_op): New int attributes.
5428 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
5429 (fn, ab): New int attributes.
5430 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
5431 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
5432 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
5433 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
5434 UNSPEC_RBIT.
5435 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
5436 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
5437 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
5438 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
5439 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5440 UNSPEC_COND_FMULX.
5441 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
5442 (brk_reg_con, brk_reg_opno): New int attributes.
5443 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
5444 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
5445 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
5446 UNSPEC_COND_FMIN.
5447 (max_elem_bits): New int attribute.
5448 (min_elem_bits): Handle UNSPEC_RBIT.
5449 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
5450 TRUNCATE as well as SUBREG.
5451 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
5452 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
5453 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
5454 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
5455 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
5456 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
5457 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
5458 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
5459 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
5460 (aarch64_gather_scale_operand_h): New predicates.
5461 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
5462 (vgd, vgh, vgw, vsQ, vsS): New constraints.
5463 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
5464 (*aarch64_sve_reinterpret<mode>): Allow any source register
5465 instead of requiring an exact match.
5466 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
5467 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
5468 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
5469 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
5470 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
5471 (aarch64_update_ffrt): New patterns.
5472 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5473 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5474 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5475 (@aarch64_ld<fn>f1<mode>): New patterns.
5476 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5477 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5478 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5479 (@aarch64_ldnt1<mode>): New patterns.
5480 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5481 the scalar part of the address.
5482 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
5483 scalar part of the addresse and add an alternative for handling
5484 nonzero offsets.
5485 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5486 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
5487 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5488 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5489 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5490 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5491 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
5492 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
5493 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5494 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5495 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5496 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5497 (@aarch64_sve_prefetch<mode>): New patterns.
5498 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
5499 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
5500 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
5501 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
5502 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
5503 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5504 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5505 (@aarch64_stnt1<mode>): New patterns.
5506 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5507 the scalar part of the address.
5508 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
5509 the scalar part of the addresse and add an alternative for handling
5510 nonzero offsets.
5511 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5512 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
5513 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5514 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5515 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
5516 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
5517 New patterns.
5518 (vec_duplicate<mode>): Use QI as the mode of the input operand.
5519 (extract_last_<mode>): Generalize to...
5520 (@extract_<LAST:last_op>_<mode>): ...this.
5521 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
5522 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
5523 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
5524 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
5525 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
5526 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
5527 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
5528 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
5529 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
5530 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
5531 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
5532 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
5533 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
5534 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
5535 (*aarch64_adr_uxtw_unspec): Likewise.
5536 (*aarch64_adr_uxtw): Rename to...
5537 (*aarch64_adr_uxtw_and): ...this.
5538 (@aarch64_adr<mode>_shift): New expander.
5539 (*aarch64_adr_shift_sxtw): New pattern.
5540 (aarch64_<su>abd<mode>_3): Rename to...
5541 (@aarch64_pred_<su>abd<mode>): ...this.
5542 (<su>abd<mode>_3): Update accordingly.
5543 (@aarch64_cond_<su>abd<mode>): New expander.
5544 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
5545 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
5546 (*<su>mul<mode>3_highpart): Rename to...
5547 (@aarch64_pred_<optab><mode>): ...this.
5548 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
5549 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
5550 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
5551 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
5552 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
5553 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
5554 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
5555 (*v<ASHIFT:optab><mode>3): Rename to...
5556 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
5557 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
5558 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
5559 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
5560 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
5561 (@cond_asrd<mode>): New expander.
5562 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
5563 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
5564 (*sdiv_pow2<mode>3): Delete.
5565 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
5566 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
5567 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
5568 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
5569 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
5570 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
5571 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
5572 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
5573 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
5574 (*add<SVE_F:mode>3): Rename to...
5575 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
5576 for SVE_STRICT_GP.
5577 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
5578 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
5579 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
5580 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
5581 (*sub<SVE_F:mode>3): Rename to...
5582 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
5583 for SVE_STRICT_GP.
5584 (@aarch64_pred_abd<SVE_F:mode>): New expander.
5585 (*fabd<SVE_F:mode>3): Rename to...
5586 (*aarch64_pred_abd<SVE_F:mode>): ...this.
5587 (@aarch64_cond_abd<SVE_F:mode>): New expander.
5588 (*mul<SVE_F:mode>3): Rename to...
5589 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
5590 for SVE_STRICT_GP.
5591 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
5592 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
5593 to...
5594 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
5595 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
5596 (*<nlogical><PRED_ALL:mode>3): Rename to...
5597 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
5598 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
5599 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
5600 (*<logical_nn><PRED_ALL:mode>3): Rename to...
5601 (aarch64_pred_<logical_nn><mode>_z): ...this.
5602 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
5603 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
5604 (*fma<SVE_I:mode>4): Rename to...
5605 (@aarch64_pred_fma<SVE_I:mode>): ...this.
5606 (*fnma<SVE_I:mode>4): Rename to...
5607 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
5608 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
5609 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
5610 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
5611 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
5612 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
5613 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
5614 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
5615 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
5616 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
5617 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
5618 (@aarch64_sve_tmad<mode>): Likewise.
5619 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
5620 (*aarch64_sel_dup<mode>): Rename to...
5621 (@aarch64_sel_dup<mode>): ...this.
5622 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
5623 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
5624 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
5625 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
5626 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
5627 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
5628 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
5629 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
5630 (*fcm<cmp_op><mode>): Rename to...
5631 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
5632 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5633 (*fcmuo<mode>): Rename to...
5634 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
5635 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5636 (@aarch64_pred_fac<cmp_op><mode>): New expander.
5637 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
5638 (fold_extract_last_<mode>): Generalize to...
5639 (@fold_extract_<last_op>_<mode>): ...this.
5640 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
5641 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
5642 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
5643 DImode result explicit.
5644 (reduc_plus_scal_<mode>): Update accordingly.
5645 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
5646 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
5647 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
5648 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
5649 (*aarch64_sve_tbl<mode>): Rename to...
5650 (@aarch64_sve_tbl<mode>): ...this.
5651 (@aarch64_sve_compact<mode>): New pattern.
5652 (*aarch64_sve_dup_lane<mode>): Rename to...
5653 (@aarch64_sve_dup_lane<mode>): ...this.
5654 (@aarch64_sve_dupq_lane<mode>): New pattern.
5655 (@aarch64_sve_splice<mode>): Likewise.
5656 (aarch64_sve_<perm_insn><mode>): Rename to...
5657 (@aarch64_sve_<perm_insn><mode>): ...this.
5658 (*aarch64_sve_ext<mode>): Rename to...
5659 (@aarch64_sve_ext<mode>): ...this.
5660 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
5661 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
5662 to...
5663 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
5664 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5665 Rename to...
5666 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5667 ...this.
5668 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
5669 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
5670 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
5671 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
5672 to...
5673 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
5674 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
5675 a "@" marker.
5676 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
5677 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
5678 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
5679 pattern.
5680 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
5681 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
5682 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
5683 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
5684 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
5685 "@" marker.
5686 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
5687 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
5688 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
5689 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
5690 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
5691 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
5692 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
5693 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
5694 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
5695 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
5696 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
5697 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
5698 (aarch64_sve_cnt_pat): Likewise.
5699 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5700 (*aarch64_sve_incsi_pat): Likewise.
5701 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5702 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5703 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5704 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5705 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5706 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5707 (*aarch64_sve_decsi_pat): Likewise.
5708 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5709 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5710 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5711 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5712 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5713 (@aarch64_pred_cntp<mode>): Likewise.
5714 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5715 New expander.
5716 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5717 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5718 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5719 New expander.
5720 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5721 New pattern.
5722 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
5723 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5724 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
5725 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5726 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
5727 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5728 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5729 New expander.
5730 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5731 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5732 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5733 New expander.
5734 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5735 New pattern.
5736 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
5737 expander.
5738 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5739 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
5740 expander.
5741 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5742 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
5743 expander.
5744 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5745 * config/aarch64/arm_sve.h: New file.
5746 * config/aarch64/aarch64-sve-builtins.h: Likewise.
5747 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
5748 * config/aarch64/aarch64-sve-builtins.def: Likewise.
5749 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
5750 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
5751 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
5752 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
5753 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
5754 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
5755
5756 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5757
5758 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
5759 New pattern.
5760 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
5761 SVE modes.
5762
5763 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5764
5765 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
5766 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
5767 FFRT_REGNUM + 1.
5768 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
5769 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
5770 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
5771 (aarch64_hard_regno_nregs): Handle the new register classes.
5772 (aarch64_hard_regno_mode_ok): Likewise.
5773 (aarch64_regno_regclass): Likewise.
5774 (aarch64_class_max_nregs): Likewise.
5775 (aarch64_register_move_cost): Likewise.
5776 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
5777 as general register_operands.
5778
5779 2019-10-29 Martin Liska <mliska@suse.cz>
5780
5781 * ggc-common.c: One can't subtract unsigned types
5782 in compare function.
5783
5784 2019-10-29 Martin Liska <mliska@suse.cz>
5785
5786 * cgraphunit.c (symbol_table::compile): Pass
5787 title as dump_memory_report argument.
5788 * toplev.c (dump_memory_report): New argument.
5789 (finalize): Pass new argument.
5790 * toplev.h (dump_memory_report): Add argument.
5791
5792 2019-10-29 Martin Liska <mliska@suse.cz>
5793
5794 * ggc-common.c: Move Leak to the first column.
5795
5796 2019-10-29 Martin Liska <mliska@suse.cz>
5797
5798 * cgraphunit.c (symbol_table::compile): Remove argument
5799 for dump_memory_report.
5800 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
5801 (compare_final): Remove in order to make report
5802 better readable.
5803 * ggc.h (dump_ggc_loc_statistics): Remove argument.
5804 * mem-stats.h (mem_alloc_description::get_list):
5805 Do not pass cmp.
5806 (mem_alloc_description::dump): Likewise here.
5807 * toplev.c (dump_memory_report): Remove final
5808 argument.
5809 (finalize): Likewise.
5810 * toplev.h (dump_memory_report): Remove argument.
5811
5812 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5813
5814 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
5815 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
5816 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
5817 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
5818 accept "const".
5819
5820 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5821
5822 * coretypes.h (string_int_pair): New typedef.
5823 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
5824 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
5825 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
5826
5827 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5828
5829 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
5830 (simulate_builtin_function_decl): Declare.
5831 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
5832 (LANG_HOOKS_INITIALIZER): Include it.
5833 * langhooks.c (add_builtin_function_common): Rename to...
5834 (build_builtin_function): ...this. Add a location parameter and use
5835 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
5836 the decl instead.
5837 (add_builtin_function): Update accordingly, passing the returned
5838 decl to the lang hook.
5839 (add_builtin_function_ext_scope): Likewise
5840 (simulate_builtin_function_decl): New function.
5841
5842 2019-10-29 Jakub Jelinek <jakub@redhat.com>
5843
5844 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
5845 example, use actual names of supported offload targets.
5846
5847 PR target/92258
5848 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
5849
5850 2019-10-28 Martin Sebor <msebor@redhat.com>
5851
5852 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
5853 (handle_store): Pass argument to get_addr_stridx.
5854
5855 2019-10-28 Martin Sebor <msebor@redhat.com>
5856
5857 PR tree-optimization/92226
5858 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
5859 the offset is in the open range outlined by SI's length.
5860
5861 2019-10-28 Martin Sebor <msebor@redhat.com>
5862
5863 PR c/66970
5864 * doc/cpp.texi (__has_builtin): Document.
5865 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
5866
5867 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5868
5869 PR target/82981
5870 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
5871 doubleword and low doubleword result of multiplication on
5872 MIPS64R6.
5873
5874 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
5875 pure qualifier to the built-in.
5876 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
5877 built-ins.
5878 (struct mips_builtin_description): Add is_pure flag.
5879 (mips_init_builtins): Mark built-in as pure if the flag in the
5880 corresponding mips_builtin_description struct is set.
5881
5882 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
5883 alternative which covers the floating-point input value. Also
5884 forbid the split of insert.d pattern for floating-point values.
5885
5886 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
5887
5888 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
5889 * config/riscv/riscv-sr.c: New file.
5890 * config/riscv/riscv.c (riscv_reorg): New function.
5891 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5892 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
5893 (riscv_remove_unneeded_save_restore_calls): Declare.
5894 * config/riscv/t-riscv (riscv-sr.o): New build rule.
5895
5896 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5897
5898 PR tree-optimization/92163
5899 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
5900 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
5901 before calling bitmap_set_bit.
5902 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
5903 delete_dead_or_redundant_assignment.
5904 (dse_dom_walker::dse_optimize_stmt): Likewise.
5905 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
5906
5907 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5908
5909 PR middle-end/91272
5910 * tree-vect-stmts.c (vectorizable_condition): Support
5911 EXTRACT_LAST_REDUCTION with fully-masked loops.
5912
5913 2019-10-28 Richard Biener <rguenther@suse.de>
5914
5915 PR tree-optimization/92252
5916 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
5917 STMT_VINFO_REDUC_IDX when swapping operands.
5918
5919 2019-10-28 Richard Biener <rguenther@suse.de>
5920
5921 PR tree-optimization/92241
5922 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
5923 we failed to update the reduction index do not use the pattern
5924 stmts for the reduction chain.
5925 (vectorizable_reduction): When the reduction chain is corrupt,
5926 fail.
5927 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
5928 fail to update the reduction chain.
5929
5930 2019-10-28 Richard Biener <rguenther@suse.de>
5931
5932 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5933 STMT_VINFO_REDUC_IDX from the actual stmt.
5934 (vect_transform_reduction): Likewise.
5935 (vectorizable_reduction): Compute the reduction chain length,
5936 do not recompute the reduction operand index. Remove no longer
5937 necessary restriction for condition reduction chains.
5938
5939 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5940
5941 PR target/92225
5942 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
5943 condition for V2DImode.
5944
5945 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5946
5947 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
5948 Remove %k operand modifier.
5949 (*vec_extractv2df_1_sse): Remove %q operand modifier.
5950
5951 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
5952
5953 PR rtl-optimization/92007
5954 * cfgcleanup.c (thread_jump): Add an assertion that we don't
5955 call it after reload if hot/cold partitioning has been done.
5956 (class pass_postreload_jump): Rename to
5957 pass_jump_after_combine.
5958 (make_pass_postreload_jump): Rename to
5959 make_pass_jump_after_combine.
5960 * passes.def(pass_postreload_jump): Move before reload, rename
5961 to pass_jump_after_combine.
5962 * tree-pass.h (make_pass_postreload_jump): Rename to
5963 make_pass_jump_after_combine.
5964
5965 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
5966
5967 PR ipa/92242
5968 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
5969 for missing EDGE_REF
5970 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
5971
5972 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
5973
5974 PR tree-optimization/88760
5975 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
5976 Enable -funroll-loops for -O2 and above.
5977 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
5978 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
5979 do not turn on web and rngreg implicitly, if the unroller is not
5980 explicitly enabled.
5981
5982 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5983
5984 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
5985 jump functions.
5986
5987 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
5988
5989 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
5990 * cgraph.h (cgraph_node::rtl_info): Likewise.
5991
5992 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5993
5994 * ipa-cp.c (propagate_constants_across_call): If args are not available
5995 just drop everything to varying.
5996 (find_aggregate_values_for_callers_subset): Watch for missing
5997 edge summary.
5998 (find_more_scalar_values_for_callers_subs): Likewise.
5999 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6000 update_jump_functions_after_inlining, propagate_controlled_uses):
6001 Watch for missing summaries.
6002 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6003 is finished.
6004 (ipa_write_node_info): Watch for missing summaries.
6005 (ipa_read_edge_info): Create new ref.
6006 (ipa_edge_args_sum_t): Add remove.
6007 (IPA_EDGE_REF_GET_CREATE): New macro.
6008 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6009 edge summary.
6010 (remap_edge_change_prob): Likewise.
6011
6012 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6013
6014 * ipa-inline-transform.c (inline_call): update function summaries
6015 after expanidng thunk.
6016
6017 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6018
6019 * ipa-icf.c (sem_function::merge): Update function summaries.
6020 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6021
6022 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6023
6024 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6025 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6026 operand already has scalar mode.
6027 (iptr): Remove SF/DF.
6028
6029 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6030
6031 PR target/91289
6032 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6033 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6034 this.
6035
6036 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6037
6038 * config/i386/sse.md
6039 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6040 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6041 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6042 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6043 <sse>_vmmaskcmp<mode>3):
6044 Change predicates from vector_operand to nonimmediate_operand,
6045 constraints xBm to xm, since scalar operations don't need
6046 memory address alignment.
6047 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6048 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6049 round_saeonly_nimm_predicate with
6050 round_saeonly_nimm_scalar_predicate.
6051 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6052 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6053 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6054 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6055 avx512f_vmfmadd_<mode>_mask3<round_name>,
6056 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6057 *avx512f_vmfmsub_<mode>_mask<round_name>,
6058 avx512f_vmfmsub_<mode>_mask3<round_name>,
6059 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6060 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6061 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6062 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6063 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6064 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6065 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6066 cvtusi2<ssescalarmodesuffix>32<round_name>,
6067 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6068 round_nimm_predicate with round_nimm_scalr_predicate.
6069 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6070 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6071 avx512er_vmrcp28<mode><round_saeonly_name>,
6072 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6073 ): Replace round_saeonly_nimm_predicate with
6074 round_saeonly_nimm_scalar_predicate.
6075 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6076 vector_operand with nonimmediate_operand.
6077 * config/i386/subst.md (round_scalar_nimm_predicate,
6078 round_saeonly_scalar_nimm_predicate): Replace
6079 vector_operand with nonimmediate_operand.
6080
6081 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6082
6083 PR target/89071
6084 * config/i386/i386.md (*rcpsf2_sse): Add
6085 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6086 (*rsqrtsf2_sse): Ditto.
6087 (*sqrt<mode>2_sse): Ditto.
6088 (sse4_1_round<mode>2): separate constraint vm, add
6089 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6090 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6091 by pass rpad.
6092 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6093 Ditto.
6094 (*sse_vmrsqrtv4sf2): Ditto.
6095 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6096 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6097 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6098 <iptr> pointer size modifier since vround support memory operand.
6099
6100 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6101
6102 PR target/85969
6103 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6104 static function.
6105
6106 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6107 Tobias Burnus <tobias@codesourcery.com>
6108
6109 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6110 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6111 common block decls.
6112
6113 2019-10-25 Richard Biener <rguenther@suse.de>
6114
6115 PR tree-optimization/92222
6116 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6117 (_slp_oprnd_info::second_pattern): Likewise.
6118 (_slp_oprnd_info::any_pattern): New.
6119 (vect_create_oprnd_info): Adjust.
6120 (vect_get_and_check_slp_defs): Compute whether any stmt is
6121 in a pattern.
6122 (vect_build_slp_tree_2): Avoid building up a node from scalars
6123 if any of the operand defs, not just the first, is in a pattern.
6124
6125 2019-10-25 Richard Biener <rguenther@suse.de>
6126
6127 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6128 swapping if we actually have to modify the IL on a shared stmt.
6129 (vect_build_slp_tree_2): Never fail swapping on shared stmts
6130 because we no longer modify the IL.
6131
6132 2019-10-25 Martin Liska <mliska@suse.cz>
6133
6134 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
6135
6136 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
6137
6138 * tree-vect-loop.c (vectorizable_reduction): Restrict the
6139 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
6140 handled by vect_transform_reduction. Allow fully-masked loops
6141 to be used with reduction chains.
6142 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
6143 operations in fully-masked loops.
6144 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
6145 operations in fully-masked loops.
6146
6147 2019-10-25 Richard Biener <rguenther@suse.de>
6148
6149 * tree-vect-loop.c (vectorizable_reduction): Verify
6150 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
6151 correctly.
6152 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
6153 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
6154 stmts.
6155
6156 2019-10-24 Jakub Jelinek <jakub@redhat.com>
6157
6158 * gimplify.h (omp_construct_selector_matches): Declare.
6159 * gimplify.c (struct gimplify_omp_ctx): Add code member.
6160 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
6161 called function if needed for flag_openmp.
6162 (gimplify_scan_omp_clauses): Set ctx->code.
6163 (omp_construct_selector_matches): New function.
6164 * omp-general.h (omp_constructor_traits_to_codes,
6165 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
6166 * omp-general.c (omp_constructor_traits_to_codes,
6167 omp_context_selector_matches, omp_resolve_declare_variant): New
6168 functions.
6169
6170 * config/arc/arc.c (hwloop_optimize): Add missing space in string
6171 literal.
6172 * config/rx/rx.c (rx_print_operand): Likewise.
6173 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6174 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6175 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
6176 Likewise.
6177 * genemit.c (emit_c_code): Likewise.
6178 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
6179
6180 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6181
6182 * symbols-summary.h (fast_function_summary<T *, V>::release,
6183 fast_call_summary<T *, V>::release): Free m_vector.
6184
6185 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6186
6187 * cgraphunit.c (symbol_table::process_new_functions): Call
6188 ipa_free_size_summary.
6189 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
6190 (devirtualization_time_bonus): Update.
6191 (ipcp_propagate_stage): Update.
6192 * ipa-fnsummary.c (ipa_size_summaries): New.
6193 (ipa_fn_summary_alloc): Alloc size summary.
6194 (dump_ipa_call_summary): Update.
6195 (ipa_dump_fn_summary): Update.
6196 (analyze_function_body): Update.
6197 (compute_fn_summary): Likewise.
6198 (ipa_get_stack_frame_offset): New function.
6199 (inline_update_callee_summaries): Do not update frame offsets.
6200 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
6201 remove call and function summary.
6202 (ipa_update_overall_fn_summary): Update.
6203 (inline_read_section): Update.
6204 (ipa_fn_summary_write): Update.
6205 (ipa_free_fn_summary): Do not remove summaries.
6206 (ipa_free_size_summary): New.
6207 (release summary pass): Also run at WPA.
6208 * ipa-fnsummary.h (ipa_size_summary): Declare.
6209 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
6210 estimated_self_stack_size.
6211 (ipa_size_summary_t): New type.
6212 (ipa_size_summaries): Declare.
6213 (ipa_free_size_summary): Declare.
6214 (ipa_get_stack_frame_offset): Declare.
6215 * ipa-icf.c (sem_function::merge): Update.
6216 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
6217 (estimate_growth): Update.
6218 (growth_likely_positive): Update.
6219 (clone_inlined_nodes): Update.
6220 (inline_call): Update.
6221 * ipa-inline.c (caller_growth_limits): Update.
6222 (edge_badness): Update.
6223 (recursive_inlining): Update.
6224 (inline_small_functions): Update.
6225 (inline_to_all_callers_1): Update.
6226 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
6227
6228 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
6229
6230 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
6231 (uavg<mode>3_ceil): ... This.
6232 (altivec_vavgs<VI_char>): Rename to...
6233 (avg<mode>3_ceil): ... This.
6234 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
6235 VAVGUW, VAVGSW): Adjust.
6236
6237 2019-10-24 Nathan Sidwell <nathan@acm.org>
6238
6239 * dumpfile.c (dump_begin): Reorder decls to use RAII.
6240
6241 2019-10-24 Martin Liska <mliska@suse.cz>
6242
6243 * symbol-summary.h (gt_pch_nx): Mark all functions
6244 with gcc_unreachable as we do not expect to be called.
6245
6246 2019-10-24 Richard Biener <rguenther@suse.de>
6247
6248 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
6249 chains try harder with operand swapping and instead of
6250 putting a shifted chain into the reduction operands put
6251 a repetition of the final reduction op there as if we'd
6252 reassociate the expression.
6253
6254 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6255
6256 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
6257 statics_not_read and statics_not_written to statics_read and
6258 statics_written respectively.
6259 (no_module_statics): New static var.
6260 (ipa_reference_get_not_read_global): Rename to ...
6261 (ipa_reference_get_read_global): ... this.
6262 (ipa_reference_get_not_written_global): Rename to ...
6263 (ipa_reference_get_written_global): ... this.
6264 (dump_static_vars_set_to_file): Dump no_module_statics.
6265 (copy_static_var_set): Add for propagation parameter.
6266 (ipa_init): Initialize no_module_statics.
6267 (ipa_ref_opt_summary_t::duplicate): Update.
6268 (ipa_ref_opt_summary_t::remove): Update.
6269 (propagate): Update.
6270 (write_node_summary_p): Look correctly for bitmap differences.
6271 (ipa_reference_write_optimization_summary): Update.
6272 (ipa_reference_read_optimization_summary): Update.
6273 * ipa-reference.h
6274 (ipa_reference_get_not_read_global): Rename to ...
6275 (ipa_reference_get_read_global): ... this.
6276 (ipa_reference_get_not_written_global): Rename to ...
6277 (ipa_reference_get_written_global): ... this.
6278 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
6279 (call_may_clobber_ref_p_1): Update.
6280
6281 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6282
6283 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
6284 and add comment.
6285 (msp430_hard_regno_nregs_with_padding): Remove.
6286
6287 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6288
6289 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
6290 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
6291 shift amount is between 1 and 4.
6292 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
6293 is between 1 and 4.
6294
6295 2019-10-24 Richard Biener <rguenther@suse.de>
6296
6297 PR tree-optimization/92205
6298 * tree-vect-loop.c (vectorizable_reduction): Restrict
6299 search for alternate vectype_in to lane-reducing patterns
6300 we support.
6301
6302 2019-10-24 Richard Biener <rguenther@suse.de>
6303
6304 PR tree-optimization/92203
6305 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
6306 Skip eliminating conversion stmts inserted by insertion.
6307
6308 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
6309
6310 * config/s390/s390.c (s390_get_thread_pointer): Use
6311 gen_get_thread_pointer.
6312 (s390_expand_split_stack_prologue): Likewise.
6313 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
6314 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
6315 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
6316 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
6317 parameterized name.
6318
6319 2019-10-24 Richard Biener <rguenther@suse.de>
6320
6321 * tree-vect-slp.c (vect_analyze_slp): When reduction group
6322 SLP discovery fails try to handle the reduction as part
6323 of SLP reduction discovery.
6324
6325 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
6326
6327 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
6328 declaration.
6329 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
6330 attribute if it exists, rather than the insn size. If we use the
6331 insn size, adjust the size to remove the extra size that prefixed
6332 instructions take.
6333 (rs6000_adjust_insn_length): New function.
6334 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
6335 update the instruction sized if prefixed instructions are used.
6336 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
6337 (non_prefixed_length attribute): Delete.
6338 (num_insns attribute): New insn attribute to return the number of
6339 instructions.
6340 (max_prefixed_insns attribute): New insn attribute to return the
6341 maximum number of prefixed instructions in an insn.
6342 (length attribute): Do not adjust for prefix instructions here,
6343 punt to ADJUST_INSN_LENGTH.
6344 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
6345 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
6346 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
6347 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
6348 max_prefixed_insns and num_insns.
6349
6350 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
6351 (movtd_64bit_nodm): Reformat.
6352 (mov<mode>_32bit): Reformat.
6353 (mov<mode>_softfloat): Reformat.
6354 (FMOVE128_GPR splitter): Reformat.
6355 (DIFD splitter): Reformat.
6356 (TI2 splitter): Reformat.
6357 * config/rs6000/predicates.md (lwa_operand): If the bottom two
6358 bits of the offset for the memory address are non-zero, use PLWA
6359 if prefixed instructions are available.
6360
6361 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6362
6363 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
6364
6365 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6366
6367 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
6368 previous patch.
6369
6370 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6371
6372 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
6373 (cmp_symbol_files): New.
6374 (lto_output): Copy sections in file order.
6375 * lto-streamer.h (lto_file_decl_data): Add field order.
6376
6377 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6378
6379 * ipa-reference.h (ipa_reference_var_uid): Move offline.
6380 * ipa-reference.c (reference_vars_map_t): new type.
6381 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
6382 (ipa_reference_var_uid): Implement.
6383 (varpool_node_hooks): New static var.
6384 (varpool_removal_hook): New function.
6385 (is_improper): Do not check bitmap for id==-1
6386 (get_static_name): Update.
6387 (ipa_init): Initialize new datastructures.
6388 (analyze_function): Do not recompute ids.
6389 (propagate): Free reference_vars_to_consider.
6390 (stream_out_bitmap): Update.
6391 (ipa_reference_read_optimization_summary): Update.
6392
6393 2019-10-23 qing zhao <qing.zhao@oracle.com>
6394
6395 PR gcov-profile/91971
6396 * coverage.c (coverage_init): Mangle the full path of filename when
6397 filename is a absolute path.
6398
6399 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6400
6401 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
6402 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
6403 (msp430_has_hwmult): New.
6404 (msp430_output_labelref):
6405 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
6406 * config/msp430/msp430.md (mulhisi3): Likewise.
6407 (umulhisi3): Likewise.
6408 (mulsidi3): Likewise.
6409 (umulsidi3): Likewise.
6410
6411 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6412
6413 PR ipa/92074
6414 * params.def (inline-heuristics-hint-percent): Set to 600.
6415
6416 2019-10-23 Richard Biener <rguenther@suse.de>
6417
6418 PR tree-optimization/65930
6419 * tree-vect-loop.c (check_reduction_path): Allow conversions
6420 that only change the sign.
6421 (vectorizable_reduction): Relax latch def stmts we handle further.
6422
6423 2019-10-23 Jakub Jelinek <jakub@redhat.com>
6424
6425 PR debug/90231
6426 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
6427 (remove_unused_ivs): Use it instead of get_computation_at. When
6428 choosing best candidate, only consider candidates where
6429 get_debug_computation_at actually returns non-NULL.
6430
6431 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
6432
6433 PR tree-optimization/92131
6434 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
6435 range would be symbolic, drop to varying for any explicit overflow
6436 in the constant part or if neither range is a singleton.
6437
6438 2019-10-23 Martin Liska <mliska@suse.cz>
6439
6440 PR middle-end/81669
6441 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
6442 Initialize m_data.
6443
6444 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
6445
6446 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
6447 int_mode_for_mode rather than mode_for_int_vector for scalars.
6448
6449 2019-10-23 Richard Biener <rguenther@suse.de>
6450
6451 PR tree-optimization/92179
6452 * tree-vect-stmts.c (vectorizable_shift): For shift args
6453 that are all the same remove type restriction in the SLP case.
6454 Adjust SLP code to handle converting of the shift arg to
6455 only apply in case the modes are different.
6456
6457 2019-10-23 Martin Liska <mliska@suse.cz>
6458
6459 PR ipa/91969
6460 * ipa-inline.c (recursive_inlining): Do not print
6461 when curr->count is not initialized.
6462
6463 2019-10-23 Richard Biener <rguenther@suse.de>
6464
6465 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
6466 op from scalars in case there's a constant operand in its
6467 definition.
6468
6469 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
6470
6471 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
6472 against out of range max skip or log values.
6473
6474 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
6475
6476 * cgraph.c (dump_graphviz): Change name to dump_name
6477
6478 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6479
6480 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
6481 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6482 subtraction from a carry operation.
6483
6484 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6485
6486 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
6487
6488 2019-10-22 Richard Biener <rguenther@suse.de>
6489
6490 PR tree-optimization/92173
6491 * tree-vect-loop.c (vectorizable_reduction): If
6492 vect_transform_reduction cannot handle code-generation try without
6493 the single-def-use-cycle optimization. Pass optab_vector to
6494 optab_for_tree_code to get vector shifts as that's what we'd
6495 generate.
6496
6497 2019-10-22 Michael Matz <matz@suse.de>
6498
6499 PR middle-end/90796
6500 * gimple-loop-jam.c (any_access_function_variant_p): New function.
6501 (adjust_unroll_factor): Use it to constrain safety, new parameter.
6502 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
6503
6504 2019-10-22 Richard Biener <rguenther@suse.de>
6505
6506 PR tree-optimization/92173
6507 * tree-vect-loop.c (vectorizable_reduction): If
6508 vect_transform_reduction cannot handle code-generation try without
6509 the single-def-use-cycle optimization. Pass optab_vector to
6510 optab_for_tree_code to get vector shifts as that's what we'd
6511 generate.
6512
6513 2019-10-22 Martin Liska <mliska@suse.cz>
6514
6515 * diagnostic-format-json.cc (json_from_expanded_location):
6516 Use json::integer_number.
6517 * gcov.c (output_intermediate_json_line): Use new
6518 json::integer_number.
6519 (output_json_intermediate_file): Likewise.
6520 * json.cc (number::print): Move to ...
6521 (float_number::print): ... this.
6522 (integer_number::print): New.
6523 (test_writing_numbers): Move to ...
6524 (test_writing_float_numbers): ... this.
6525 (test_writing_integer_numbers): New.
6526 (json_cc_tests): Register test_writing_integer_numbers.
6527 * json.h (class value): Add forward declaration
6528 for float_number and integer_number.
6529 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
6530 (class number): Move to ...
6531 (class float_number): ... this.
6532 (class integer_number): New.
6533 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
6534 Use json::integer_number.
6535 (optrecord_json_writer::location_to_json): Likewise.
6536 (optrecord_json_writer::profile_count_to_json): Likewise.
6537 (optrecord_json_writer::pass_to_json): Likewise.
6538
6539 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
6540
6541 * tree-vect-slp.c (vect_slp_bb_region): Check whether
6542 autodetected_vector_size rather than vector_size is zero.
6543 * tree-vect-loop.c (vect_analyze_loop): Likewise.
6544 Set autodetected_vector_size immediately after calling
6545 vect_analyze_loop_2. Check for a fatal error before advancing
6546 next_size.
6547
6548 2019-10-21 Jason Merrill <jason@redhat.com>
6549
6550 * lock-and-run.sh: Check for process existence rather than timeout.
6551
6552 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6553
6554 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
6555 widening multiplication.
6556
6557 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
6558
6559 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
6560 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
6561 type attribute.
6562 (subsi3_carryin_shift): Separate into register and constant controlled
6563 alternatives. Use shift_amount_operand for operand 4. Set shift
6564 attribute and simplify type attribute.
6565 (subsi3_carryin_shift_alt): Likewise.
6566 (rsbsi3_carryin_shift): Likewise.
6567 (rsbsi3_carryin_shift_alt): Likewise.
6568 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
6569 and register controlled shifts into distinct alternatives.
6570 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
6571 (andsi_not_shiftsi_si_scc): Likewise.
6572 (arm_cmpsi_negshiftsi_si): Likewise.
6573 (not_shiftsi): Remove redundant M constraint from alternative 1.
6574 (not_shiftsi_compare0): Likewise.
6575 (arm_cmpsi_insn): Remove redundant alternative 2.
6576 (cmpsi_shift_swp): Likewise.
6577 (sub_shiftsi): Likewise.
6578 (sub_shiftsi_compare0_scratch): Likewise.
6579 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
6580 (thumb2_cmpsi_neg_shiftsi): Likewise.
6581
6582 2019-10-21 Richard Biener <rguenther@suse.de>
6583
6584 PR tree-optimization/92162
6585 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
6586 STMT_VINFO_REDUC_IDX in reduc_info.
6587 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6588
6589 2019-10-21 Richard Biener <rguenther@suse.de>
6590
6591 * tree-vectorizer.h (_slp_tree::ops): New member.
6592 (SLP_TREE_SCALAR_OPS): New.
6593 (vect_get_slp_defs): Adjust prototype.
6594 * tree-vect-slp.c (vect_free_slp_tree): Release
6595 SLP_TREE_SCALAR_OPS.
6596 (vect_create_new_slp_node): Initialize it. New overload for
6597 initializing by an operands array.
6598 (_slp_oprnd_info::ops): New member.
6599 (vect_create_oprnd_info): Initialize it.
6600 (vect_free_oprnd_info): Release it.
6601 (vect_get_and_check_slp_defs): Populate the operands array.
6602 Do not swap operands in the IL when not necessary.
6603 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
6604 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
6605 swap operands in the operands array. Do not swap operands in
6606 the IL.
6607 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
6608 (vect_gather_slp_loads): Fix.
6609 (vect_detect_hybrid_slp_stmts): Likewise.
6610 (vect_slp_analyze_node_operations_1): Search for a internal
6611 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
6612 (vect_slp_analyze_node_operations): Skip ops-only stmts for
6613 the def-type push/pop dance.
6614 (vect_get_constant_vectors): Compute number_of_vectors here.
6615 Use SLP_TREE_SCALAR_OPS and simplify greatly.
6616 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
6617 (vect_get_slp_defs): Simplify greatly.
6618 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
6619 (vect_transform_reduction): Likewise.
6620 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
6621 (vectorizable_call): Likewise.
6622 (vectorizable_operation): Likewise.
6623 (vectorizable_load): Likewise.
6624 (vectorizable_condition): Likewise.
6625 (vectorizable_comparison): Likewise.
6626
6627 2019-10-21 Richard Biener <rguenther@suse.de>
6628
6629 PR tree-optimization/92161
6630 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
6631 for reductions.
6632
6633 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6634
6635 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
6636 (aarch64_rndr): New define_insn.
6637 (aarch64_rndrrs): Likewise.
6638 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
6639 (TARGET_RNG): Likewise.
6640 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
6641 argument.
6642 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
6643 Add fourth argument in prototype.
6644 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
6645 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
6646 (aarch64_init_rng_builtins): Define.
6647 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
6648 (aarch64_expand_rng_builtin): Define.
6649 (aarch64_general_expand_builtin): Use IGNORE argument, handle
6650 RNG builtins.
6651 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6652 __ARM_FEATURE_RNG when TARGET_RNG.
6653 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
6654
6655 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
6656
6657 * tree-vect-stmts (ensure_base_align): Only change alignment if new
6658 alignment is more restrictive.
6659
6660 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6661
6662 * tree-vectorizer.h (vec_info::vector_size): New member variable.
6663 (vect_update_max_nunits): Update comment.
6664 (current_vector_size): Delete.
6665 * tree-vect-stmts.c (current_vector_size): Likewise.
6666 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
6667 of current_vector_size.
6668 (get_mask_type_for_scalar_type): Likewise.
6669 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
6670 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
6671 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
6672 (vect_double_mask_nunits, vect_transform_loop): Likewise.
6673 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6674 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
6675
6676 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6677
6678 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
6679 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
6680 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
6681 accordingly.
6682
6683 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6684
6685 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
6686 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
6687 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
6688 call accordingly.
6689 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6690
6691 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6692
6693 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
6694 a loop_vec_info.
6695 (vect_set_loop_condition_masked): Update call accordingly.
6696
6697 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6698
6699 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
6700 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6701 (simple_integer_narrowing): Update call accordingly.
6702 (vectorizable_conversion): Likewise.
6703
6704 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6705
6706 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
6707 (vectorizable_call): Update call accordingly.
6708
6709 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6710
6711 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
6712 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6713 (duplicate_and_interleave): Update call accordingly.
6714 * tree-vect-loop.c (vectorizable_reduction): Likewise.
6715
6716 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6717
6718 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
6719 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
6720 (vect_get_constant_vectors): Update call accordingly.
6721 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
6722
6723 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6724
6725 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
6726 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
6727 (vect_prologue_cost_for_slp_op): Update call accordingly.
6728 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
6729 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
6730 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
6731 (get_mask_type_for_scalar_type): Likewise.
6732 (vect_get_vector_types_for_stmt): Likewise.
6733 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6734 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6735 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
6736 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
6737 (vect_split_statement, vect_convert_input): Likewise.
6738 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
6739 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
6740 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
6741 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
6742 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
6743 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
6744 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
6745 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
6746 (vect_recog_mask_conversion_pattern): Likewise.
6747 (vect_add_conversion_to_pattern): Likewise.
6748 (vect_recog_gather_scatter_pattern): Likewise.
6749 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
6750 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
6751
6752 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6753
6754 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
6755 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
6756 (vect_check_load_store_mask): Update call accordingly.
6757 (vect_get_mask_type_for_stmt): Likewise.
6758 * tree-vect-patterns.c (check_bool_pattern): Likewise.
6759 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
6760 (vect_convert_mask_for_vectype): Likewise.
6761
6762 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6763
6764 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
6765 a vec_info.
6766 (vect_recog_dot_prod_pattern): Update call accordingly.
6767 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
6768 (vect_recog_widen_sum_pattern): Likewise.
6769
6770 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6771
6772 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
6773 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
6774 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
6775 accordingly.
6776
6777 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6778
6779 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
6780 get_vectype_for_scalar_type_and_size instead of
6781 get_vectype_for_scalar_type.
6782
6783 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6784
6785 * common.opt (-fcommon): Fix description.
6786
6787 2019-10-20 Jakub Jelinek <jakub@redhat.com>
6788
6789 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
6790 * config/i386/i386.c (ix86_pre_reload_split): New function.
6791 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
6792 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
6793 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
6794 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
6795 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
6796 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
6797 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
6798 *<shift_insn><dwi>3_doubleword_mask,
6799 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
6800 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
6801 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
6802 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
6803 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
6804 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
6805 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
6806 *avx2_<code>v8qiv8si2<mask_name>_2,
6807 *sse4_1_<code>v4qiv4si2<mask_name>_2,
6808 *sse4_1_<code>v4hiv4si2<mask_name>_2,
6809 *avx512f_<code>v8qiv8di2<mask_name>_2,
6810 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
6811 *sse4_1_<code>v2hiv2di2<mask_name>_2,
6812 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
6813 sse4_2_pcmpistr): Likewise.
6814
6815 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
6816
6817 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
6818 now defaults to https.
6819
6820 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
6821
6822 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
6823 skip non-zero array accesses.
6824
6825 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6826
6827 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
6828 and return a boolean success value. Move the allocation and
6829 initialization of the bb_vec_info to...
6830 (vect_slp_bb_region): ...here. Update call accordingly.
6831 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
6832 than in vect_slp_analyze_bb_1.
6833
6834 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6835
6836 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
6837 when processing the given datarefs for the first time and
6838 check_datarefs subsequently.
6839 (vect_slp_bb_region): New function, split out of...
6840 (vect_slp_bb): ...here. Don't recompute the region bounds and
6841 dataref sets when retrying with a different vector size.
6842
6843 2019-10-19 Jakub Jelinek <jakub@redhat.com>
6844 Uroš Bizjak <ubizjak@gmail.com>
6845
6846 PR target/92140
6847 * config/i386/predicates.md (int_nonimmediate_operand): New special
6848 predicate.
6849 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
6850 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
6851 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
6852 define_insn_and_split patterns.
6853
6854 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
6855
6856 * config/rs6000/rs6000.md: Delete out--of-date comment about
6857 special-casing integer loads.
6858
6859 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
6860
6861 * escaped_string.h (escaped_string): New header.
6862 * tree.c (escaped_string): Remove escaped_string class.
6863
6864 2019-10-18 Martin Sebor <msebor@redhat.com>
6865
6866 PR tree-optimization/92157
6867 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
6868 compute_string_length to return a negative result.
6869
6870 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6871
6872 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
6873 (negvsi3, negvdi3): Delete.
6874 (negdi2_compare): Delete.
6875
6876 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6877
6878 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
6879 operations.
6880 (subdi3_compare1): Delete pattern.
6881 (subvsi3_borrow): New insn pattern.
6882 (subvsi3_borrow_imm): Likewise.
6883
6884 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6885
6886 * config/arm/arm.md (subv<mode>4): Delete.
6887 (subvdi4): New expander pattern.
6888 (subvsi4): Likewise. Handle some immediate values.
6889 (subvsi3_intmin): New insn pattern.
6890 (subvsi3): Likewise.
6891 (subvsi3_imm1): Likewise.
6892 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
6893 idioms.
6894
6895 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6896
6897 * config/arm/arm.md (usubvdi4): Allow registers or integers for
6898 incoming operands. Early split the calculation into SImode
6899 operations.
6900 (usubvsi3_borrow): New insn pattern.
6901 (usubvsi3_borrow_imm): Likewise.
6902
6903 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6904
6905 * config/arm/arm.md (usubv<mode>4): Delete expansion.
6906 (usubvsi4): New pattern. Allow some immediate values for inputs.
6907 (usubvdi4): New pattern.
6908
6909 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6910
6911 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
6912 or second operand of the PLUS inside a DImode equality test to be
6913 sign-extend when selecting CC_Vmode.
6914 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
6915 instructions.
6916 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
6917 expand patterns.
6918 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
6919 (addsi3_cin_vout_0): Likewise.
6920 (adddi3_compareV): Delete.
6921
6922 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6923
6924 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
6925 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
6926 to transform this back into the summation version when that leads
6927 to smaller code.
6928
6929 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6930
6931 * config/arm/arm.md (addv<mode>4): Delete.
6932 (addvsi4): New pattern. Handle immediate values that the architecture
6933 supports.
6934 (addvdi4): New pattern.
6935 (addsi3_compareV): Rename to ...
6936 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
6937 and use COMPARE rather than NE.
6938 (addsi3_compareV_imm): New pattern.
6939 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
6940 a signed-overflow check.
6941
6942 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6943
6944 * config/arm/arm-modes.def (CC_ADC): New CC mode.
6945 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
6946 CC_ADCmode.
6947 (maybe_get_arm_condition_code): Handle CC_ADCmode.
6948 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
6949 with overflow.
6950 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
6951 expand patterns.
6952 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
6953 (addsi3_cin_cout_imm_insn): Likewise.
6954 (adddi3_compareC): Delete insn.
6955 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
6956
6957 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6958
6959 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
6960 * (uaddv<mode>4): Delete expansion pattern.
6961 (uaddvsi4): New pattern.
6962 (uaddvdi4): Likewise.
6963 (addsi3_compareC): Delete pattern, change callers to use
6964 addsi3_compare_op1.
6965 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
6966 reduce the number of alternatives and re-work type attribute handling.
6967 (addsi3_compare_op2): Clean up constraints to reduce the number of
6968 alternatives and re-work type attribute handling.
6969 (compare_addsi2_op0): Likewise.
6970 (compare_addsi2_op1): Likewise.
6971
6972 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6973
6974 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
6975 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
6976 for DImode operands.
6977 (arm_gen_dicompare_reg): Remove unreachable expansion code.
6978 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
6979 CC_NCVmode.
6980 * config/arm/arm.md (arm_cmpdi_insn): Delete.
6981 (arm_cmpdi_unsigned): Delete.
6982
6983 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6984
6985 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
6986 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
6987 unchanged only if that will be cheaper.
6988 (arm_select_cc_mode): Recognize a swapped comparison that will
6989 be regenerated using RSBS or RSCS. Relax restriction on selecting
6990 CC_RSBmode.
6991 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
6992 a constant.
6993 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
6994 is CC_RSBmode.
6995 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
6996 as CCmode.
6997 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
6998 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
6999
7000 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7001
7002 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7003 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7004 need these modes.
7005 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7006 of EQ, NE, LT, GE, LTU and GEU.
7007 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7008 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7009 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7010 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7011 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7012
7013 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7014
7015 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7016 operand 2.
7017 (cstoredi4): Similarly, but for operand 3.
7018 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7019 canonicalization of unsigned compares with a constant on Arm.
7020 Prefer using const+1 and adjusting the comparison over swapping the
7021 operands whenever the original constant was not valid.
7022 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7023 register here.
7024 (arm_validize_comparison): Do not force invalid DImode operands to
7025 registers here.
7026
7027 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7028
7029 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7030 return CC_Zmode if comparing against a constant where one word is
7031 zero.
7032 (arm_gen_compare_reg): Split DImode handling to ...
7033 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7034 against simple constants.
7035 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7036
7037 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7038
7039 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7040 (rsbsi3_carryin_shift_alt): Likewise.
7041
7042 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7043
7044 * config/arm/arm.md (negscc_borrow): New pattern.
7045 (mov_negscc): Don't split if the insn would match negscc_borrow.
7046 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7047 (thumb2_mov_negscc_strict_it): Likewise.
7048
7049 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7050
7051 * config/arm/arm.c (arm_insn_cost): New function.
7052 (TARGET_INSN_COST): Override default definition.
7053
7054 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7055
7056 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7057 borrow operations.
7058
7059 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7060
7061 * config/arm/arm.c (strip_carry_operation): New function.
7062 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7063 for SImode.
7064
7065 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7066
7067 * config/arm/predicates.md (arm_carry_operation): New special
7068 predicate.
7069 * config/arm/iterators.md (LTUGEU): Delete iterator.
7070 (cnb): Delete code attribute.
7071 (optab): Delete ltu and geu elements.
7072 * config/arm/arm.md (addsi3_carryin): Renamed from
7073 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7074 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7075 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7076 (addsi3_carryin_clobercc): Similarly.
7077 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7078 Thumb2 state.
7079
7080 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7081
7082 * config/arm/arm.md (arm_subdi3): Delete insn.
7083 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7084
7085 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7086
7087 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7088 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7089 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7090 return CC_RSBmode.
7091 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7092 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7093 expand.
7094 (subdi3): Rewrite to early-expand the sub-operations.
7095 (rsb_im_compare): New pattern.
7096 (negdi2): Delete.
7097 (negdi2_insn): Delete.
7098 (arm_negsi2): Correct type attribute to alu_imm.
7099 (negsi2_0compare): New insn pattern.
7100 (negsi2_carryin): New insn pattern.
7101
7102 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7103
7104 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7105 operand 2.
7106
7107 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7108
7109 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7110 to match canonical form.
7111
7112 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7113
7114 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7115 (extend<mode>di2): Likewise.
7116
7117 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7118
7119 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7120 * config/arm/arm.c (arm_decompose_di_binop): New function.
7121 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7122 If not generating Thumb-1 code, decompose the operation into 32-bit
7123 pieces.
7124 * add0si_carryin_<optab>: New pattern.
7125
7126 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7127
7128 * arm.md (adddi3): Only accept register operands.
7129 (arm_adddi3): Convert to simple insn with no split. Do not accept
7130 constants.
7131 (adddi_sesidi_di): Delete patern.
7132 (adddi_zesidi_di): Likewise.
7133 (uaddv<mode>4): Use LTU as condition for branch.
7134 (adddi3_compareV): Convert to simple insn with no split.
7135 (addsi3_compareV_upper): Delete pattern.
7136 (adddi3_compareC): Convert to simple insn with no split. Correct
7137 flags setting expression.
7138 (addsi3_compareC_upper): Delete pattern.
7139 (addsi3_compareC): Correct flags setting expression.
7140 (subdi3_compare1): Convert to simple insn with no split.
7141 (subsi3_carryin_compare): Delete pattern.
7142 (arm_subdi3): Convert to simple insn with no split.
7143 (subdi_zesidi): Delete pattern.
7144 (subdi_di_sesidi): Delete pattern.
7145 (subdi_zesidi_di): Delete pattern.
7146 (subdi_sesidi_di): Delete pattern.
7147 (subdi_zesidi_zesidi): Delete pattern.
7148 (negvdi3): Use s_register_operand.
7149 (negdi2_compare): Convert to simple insn with no split.
7150 (negdi2_insn): Likewise.
7151 (negsi2_carryin_compare): Delete pattern.
7152 (negdi_zero_extendsidi): Delete pattern.
7153 (arm_cmpdi_insn): Convert to simple insn with no split.
7154 (negdi2): Don't call gen_negdi2_neon.
7155 * config/arm/neon.md (adddi3_neon): Delete pattern.
7156 (subdi3_neon): Delete pattern.
7157 (negdi2_neon): Delete pattern.
7158 (splits for negdi2_neon): Delete splits.
7159
7160 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7161
7162 PR middle-end/92153
7163 * ggc-page.c (release_pages): Read g->alloc_size before free rather
7164 than after it.
7165
7166 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
7167
7168 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
7169 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
7170 new multilib variants and new mappings.
7171
7172 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7173
7174 PR target/86040
7175 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
7176
7177 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7178 Richard Sandiford <richard.sandiford@arm.com>
7179
7180 PR target/86753
7181 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
7182 and define hashmap traits for it.
7183 (loop_vec_info::scalar_cond_masked_set): New member.
7184 (vect_record_loop_mask): Adjust prototype.
7185 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
7186 Implement method.
7187 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
7188 vect_record_loop_mask.
7189 (vectorizable_live_operation): Likewise.
7190 (vect_record_loop_mask): New param scalar_mask. Add entry
7191 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
7192 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
7193 Pass it as last arg to vect_record_loop_mask.
7194 (vectorizable_call): Pass scalar_mask as last arg to
7195 vect_record_loop_mask.
7196 (vectorizable_store): Likewise.
7197 (vectorizable_load): Likewise.
7198 (vectorizable_condition): Check if another part of vectorized code
7199 applies loop_mask to condition or to it's inverse, and if yes,
7200 apply loop_mask to result of vector comparison.
7201
7202 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
7203
7204 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
7205
7206 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7207
7208 PR tree-optimization/92056
7209 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
7210 before calling compute_builtin_object_size.
7211
7212 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
7213
7214 PR target/65342
7215 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
7216 (movdi_low_st): Delete.
7217 * config/rs6000/rs6000.c
7218 (darwin_rs6000_legitimate_lo_sum_const_p): New.
7219 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
7220 * config/rs6000/rs6000.md (movsi_low): Delete.
7221
7222 2019-10-17 Jason Merrill <jason@redhat.com>
7223
7224 * gimplify.h (get_initialized_tmp_var): Add default argument to
7225 post_p.
7226 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
7227 NULL post_p argument.
7228 * targhooks (std_gimplify_va_arg_expr): Likewise.
7229
7230 2019-10-17 Richard Biener <rguenther@suse.de>
7231
7232 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
7233 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
7234 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
7235 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
7236 * tree-vect-loop.c (vect_is_simple_reduction): Set
7237 STMT_VINFO_REDUC_CODE.
7238 (vectorizable_reduction): Remove dead and redundant code, use
7239 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
7240
7241 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
7242
7243 Fix breakage introduced by r276985.
7244
7245 * config/avr/avr.c (avr_option_override): Remove set of
7246 PARAM_ALLOW_STORE_DATA_RACES.
7247 * common/config/avr/avr-common.c (avr_option_optimization_table)
7248 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
7249
7250 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
7251
7252 * config/i386/i386.h (processor_costs): Add clear_ratio.
7253 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
7254 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
7255 of 6 and move_ratio in all cost models.
7256
7257 2019-10-17 Richard Biener <rguenther@suse.de>
7258
7259 * tree-vect-loop.c (check_reduction_path): Compute reduction
7260 operation here.
7261 (vect_is_simple_reduction): Remove special-case of single-stmt
7262 reduction path detection.
7263
7264 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
7265
7266 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
7267
7268 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
7269
7270 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
7271 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
7272 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
7273 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
7274 New combine patterns.
7275 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
7276 above.
7277 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
7278
7279 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
7280
7281 * tree-vrp.c (value_range_base::dump): Display +INF for both
7282 pointers and integers when appropriate.
7283
7284 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7285
7286 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
7287 when to use versioning threshold.
7288
7289 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7290
7291 * tree-vect-loop.c (determine_peel_for_niter): New function contained
7292 outlined code from ...
7293 (vect_analyze_loop_2): ... here.
7294
7295 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7296
7297 * tree-vect-loop.c (vect_transform_loop): Move code from here...
7298 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
7299 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
7300
7301 2019-10-17 Richard Biener <rguenther@suse.de>
7302
7303 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
7304 (vect_is_simple_reduction): Move all validity checks ...
7305 (vectorizable_reduction): ... here. Compute whether we
7306 need a fold-left reduction here.
7307 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
7308 both overloads, check needs_fold_left_reduction_p directly.
7309 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
7310
7311 2019-10-17 Richard Biener <rguenther@suse.de>
7312
7313 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
7314 TARGET_MEM_REF creation.
7315
7316 2019-10-17 Richard Biener <rguenther@suse.de>
7317
7318 PR tree-optimization/92129
7319 * tree-vect-loop.c (vectorizable_reduction): Also fail
7320 on GIMPLE_SINGLE_RHS.
7321
7322 2019-10-17 Jakub Jelinek <jakub@redhat.com>
7323
7324 PR tree-optimization/92056
7325 * tree-object-size.c (cond_expr_object_size): Return early if then_
7326 processing resulted in unknown size.
7327
7328 PR tree-optimization/92115
7329 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
7330 temporary if it could trap.
7331
7332 2019-10-17 Richard Biener <rguenther@suse.de>
7333
7334 PR debug/91887
7335 * dwarf2out.c (gen_formal_parameter_die): Also try to match
7336 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7337
7338 2019-10-16 Jakub Jelinek <jakub@redhat.com>
7339
7340 * tree-ssa-strlen.c (maybe_invalidate): Use
7341 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
7342
7343 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
7344 Jim Wilson <jimw@sifive.com>
7345
7346 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
7347 regs to SIBCALL_REGS.
7348 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
7349 passing regs to SIBCALL_REGS.
7350
7351 2019-10-16 Martin Sebor <msebor@redhat.com>
7352
7353 PR tree-optimization/83821
7354 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
7355 the length of a string when available.
7356 (handle_builtin_memset) Add argument.
7357 (handle_store, strlen_check_and_optimize_call): Same.
7358 (check_and_optimize_stmt): Same. Pass it to callees.
7359
7360 2019-10-16 Martin Sebor <msebor@redhat.com>
7361
7362 PR tree-optimization/91996
7363 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
7364 information.
7365 (compare_nonzero_chars): Add an overload.
7366 (count_nonzero_bytes): Add an argument. Call overload above.
7367 Handle non-constant lengths in some range.
7368 (handle_store): Add an argument.
7369 (check_and_optimize_stmt): Pass an argument to handle_store.
7370
7371 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
7372
7373 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
7374
7375 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7376
7377 * config/mips/mips.c (mips_expand_builtin_insn): Force the
7378 operands which correspond to the same input-output register to
7379 have the same pseudo assigned to them.
7380
7381 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
7382
7383 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
7384
7385 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
7386
7387 * config/aarch64/aarch64.c (aarch64_classify_symbol):
7388 Apply reasonable limit to symbol offsets.
7389
7390 2019-10-16 Richard Biener <rguenther@suse.de>
7391
7392 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
7393 (vect_is_simple_reduction): Delay checking to
7394 vectorizable_reduction and relax the checking.
7395 (vectorizable_reduction): Check we have a simple use. Check
7396 for bogus condition reductions.
7397 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
7398 are looking at the last stmt in a pattern sequence when
7399 filling in backedge PHI values.
7400
7401 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
7402 Jiufu Guo <guojiufu@linux.ibm.com>
7403
7404 PR target/70010
7405 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
7406 the callee explicitly disables some isa_flags the caller is using.
7407
7408 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7409
7410 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
7411
7412 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7413
7414 * genmodes.c (mode_data::order): New field.
7415 (blank_mode): Update accordingly.
7416 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
7417 (make_vector_modes): Likewise.
7418 (VECTOR_MODES): Update use accordingly.
7419 (cmp_modes): Sort by the new order field ahead of sorting by size.
7420 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
7421 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
7422 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
7423 (aarch64_classify_vector_mode): Handle the new partial modes.
7424 (aarch64_vl_bytes): New function.
7425 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
7426 when counting the number of registers in an SVE mode.
7427 (aarch64_class_max_nregs): Likewise.
7428 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
7429 in registers yet.
7430 (aarch64_classify_address): Treat partial vectors analogously
7431 to full vectors.
7432 (aarch64_print_address_internal): Consolidate the printing of
7433 MUL VL addresses, using aarch64_vl_bytes as the number of
7434 bytes represented by "VL".
7435 (aarch64_vector_mode_supported_p): Reject partial vector modes.
7436
7437 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7438
7439 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
7440 rather than known_lt when choosing frame layouts.
7441
7442 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7443
7444 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
7445 that all the adjustments add up to the full frame size.
7446 Use crtl->outgoing_args_size directly as the final adjustment
7447 where appropriate.
7448
7449 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7450
7451 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
7452 "frame" reference instead of always referring directly to
7453 "cfun->machine->frame".
7454
7455 2019-10-16 Richard Biener <rguenther@suse.de>
7456
7457 PR tree-optimization/92119
7458 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
7459 against missing bswap lhs.
7460
7461 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7462
7463 PR middle-end/92033
7464 * poly-int.h (constant_lower_bound_with_limit): New function.
7465 (constant_upper_bound_with_limit): Likewise.
7466 * doc/poly-int.texi: Document them.
7467 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
7468 into the worst-case INTEGER_CST bounds.
7469
7470 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
7471
7472 PR ipa/91088
7473 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
7474 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
7475 * ipa-predicat.h (struct expr_eval_op): New struct.
7476 (expr_eval_ops): New typedef.
7477 (struct condition): Add type and param_ops fields, remove size field.
7478 (add_condition): Replace size parameter with type parameter, add
7479 param_ops parameter.
7480 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
7481 (predicate::add_clause): Add comparisons on type and param_ops.
7482 (dump_condition): Add debug dump for param_ops.
7483 (remap_after_inlining): Adjust call arguments to add_condition.
7484 (add_condition): Replace size parameter with type parameter, add
7485 param_ops parameter. Unshare constant value used in conditions.
7486 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
7487 parameter expressions using param_ops.
7488 (decompose_param_expr): New function.
7489 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
7490 to replace call to unmodified_parm_or_parm_agg_item.
7491 (set_switch_stmt_execution_predicate): Likewise.
7492 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
7493 with type.
7494 (inline_read_section): Read param_ops from summary stream.
7495 (ipa_fn_summary_write): Write param_ops to summary stream.
7496
7497 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
7498
7499 PR rtl-optimization/92107
7500 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
7501 expression written.
7502
7503 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7504
7505 * config/darwin.c: Update description of fix and continue.
7506
7507 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7508
7509 * config/darwin.c (darwin_binds_local_p): Update to call
7510 default_binds_local_p_3 () directly. amend comments.
7511
7512 2019-10-15 Richard Biener <rguenther@suse.de>
7513
7514 * lto-streamer-out.c (lto_variably_modified_type_p): New.
7515 (tree_is_indexable): Use it.
7516 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7517 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
7518 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7519
7520 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7521
7522 * config/msp430/msp430.md (zero_extendqipsi2): New.
7523 (zero_extendqisi2): Optimize case where src register and base dst
7524 register are the same.
7525 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
7526 (zero_extendpsisi2): Optimize r->m case.
7527 Add unnamed insn patterns to catch insns combine searches for when
7528 optimizing pointer manipulation.
7529
7530 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7531
7532 * config/msp430/msp430.md: Group zero_extend* insns together.
7533
7534 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7535
7536 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
7537 constraint.
7538 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
7539 POST_INC.
7540 (msp430_subreg): Likewise.
7541 (msp430_split_addsi): Likewise.
7542 (msp430_print_operand_addr): Likewise.
7543 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
7544 (USE_STORE_POST_INCREMENT): Define.
7545 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
7546 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
7547 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
7548 (msp430_general_dst_operand): New.
7549 (msp430_general_dst_nonv_operand): New.
7550 (msp430_nonsubreg_operand): Remove.
7551 (msp430_nonsubreg_dst_operand): New.
7552 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
7553 of defunct msp430_nonsubreg_operand.
7554 (msp430_nonsubregnonpostinc_or_imm_operand): New.
7555
7556 2019-10-15 Richard Biener <rguenther@suse.de>
7557
7558 PR tree-optimization/91929
7559 * tree-ssa-pre.c (pre_expr_d::loc): New member.
7560 (get_or_alloc_expr_for_name): Initialize it.
7561 (get_or_alloc_expr_for_constant): Likewise.
7562 (phi_translate_1): Copy it.
7563 (create_expression_by_pieces): Use the original location
7564 of the expression for the inserted stmt.
7565 (compute_avail): Record the location of the stmt for the
7566 expressions created.
7567
7568 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
7569
7570 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
7571 before using tree_to_uhwi.
7572
7573 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
7574
7575 * config/s390/s390.md: Run %a0:DI splitters only after reload.
7576
7577 2019-10-15 Richard Biener <rguenther@suse.de>
7578
7579 PR tree-optimization/92094
7580 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
7581 do not adjust the reduction definition def type.
7582 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
7583 defines the latch argument of the PHI.
7584
7585 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
7586
7587 PR target/92035
7588 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
7589 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
7590 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
7591 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
7592 _mm_maskz_roundscale_round_sd): New intrinsics.
7593 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
7594 __builtin_ia32_rndscales?_mask_round builtins instead of
7595 __builtin_ia32_rndscales?_round.
7596 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
7597 __builtin_ia32_rndscalesd_round): Remove.
7598 (__builtin_ia32_rndscaless_mask_round,
7599 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
7600 * config/i386/sse.md
7601 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
7602 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
7603 ... this, adjust and add subst atrributes to make it maskable.
7604
7605 2019-10-15 Richard Biener <rguenther@suse.de>
7606
7607 PR middle-end/92046
7608 * common.opt (fallow-store-data-races): New.
7609 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
7610 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
7611 * doc/invoke.texi (fallow-store-data-races): Document.
7612 (--param allow-store-data-races): Remove docs.
7613 * opts.c (default_options_table): Enable -fallow-store-data-races
7614 at -Ofast.
7615 (default_options_optimization): Do not enable --param
7616 allow-store-data-races at -Ofast.
7617 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
7618 instead of PARAM_ALLOW_STORE_DATA_RACES.
7619 * tree-ssa-loop-im.c (execute_sm): Likewise.
7620
7621 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7622
7623 PR tree-optimization/92085
7624 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
7625 instead of calling it unconditionally after
7626 delete_dead_or_redundant_assignment and fix indentation.
7627
7628 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7629
7630 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
7631 TARGET_VFP_DOUBLE.
7632 (*fmsub<SDF:mode>4): Likewise.
7633 *fnmsub<SDF:mode>4): Likewise.
7634 (*fnmadd<SDF:mode>4): Likewise.
7635
7636 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
7637
7638 * doc/tree-ssa.texi: Update renamed macro name.
7639
7640 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7641
7642 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
7643 vector constants.
7644
7645 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
7646
7647 * config/darwin.c: Use unsigned ints for the picbase label
7648 counters, initialise the vars explicitly.
7649 (update_pic_label_number_if_needed): Move a variable declaration
7650 to where it's needed.
7651 (machopic_output_function_base_name): Use a more strict checking
7652 assert, and and unsigned int for the picbase label counter.
7653 (machopic_get_function_picbase): Likewise.
7654
7655 2019-10-14 Richard Biener <rguenther@suse.de>
7656
7657 PR middle-end/92046
7658 * dse.c (scan_insn): Use param max_active_local_stores.
7659 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
7660 based on optimization level.
7661 * loop-invariant.c (move_loop_invariants): Adjust
7662 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
7663 * opts.c (default_options_optimization): Do not adjust
7664 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
7665 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
7666
7667 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7668
7669 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
7670
7671 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7672
7673 * config/arm/arm.c (arm_option_override): Don't override sched
7674 pressure algorithm.
7675
7676 2019-10-14 Richard Biener <rguenther@suse.de>
7677
7678 PR tree-optimization/92069
7679 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
7680 cycles do not set vect_nested_cycle on the latch definition.
7681
7682 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
7683
7684 * function-abi.h (expr_callee_abi): Declare.
7685 * function-abi.cc (expr_callee_abi): New function.
7686
7687 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
7688
7689 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
7690 into [1,MAX].
7691 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
7692 non-zero being represented as [1,MAX].
7693
7694 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7695
7696 * tree-sra.c (dump_access): Add missing braces.
7697
7698 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7699
7700 * config/darwin.c (machopic_indirection_name): Rework the
7701 function to emit linker-visible symbols only for indirections
7702 in the data section. Clean up the code and update comments.
7703
7704 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7705
7706 * config/darwin.c (machopic_indirect_data_reference): Remove
7707 redundant code.
7708
7709 2019-10-13 Nathan Sidwell <nathan@acm.org>
7710
7711 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
7712
7713 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7714
7715 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
7716 c99_runtime.
7717
7718 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
7719
7720 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
7721 so non-virutal are before virutals.
7722 (output_function): Avoid body modifications.
7723
7724 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7725
7726 * config/pa/pa.c (pa_output_call): Load descriptor address to register
7727 %r22. Load function address before global pointer.
7728 (pa_attr_length_indirect_call): Adjust length of inline versions of
7729 $$dyncall.
7730 (pa_output_indirect_call): Remove fast inline version of $$dyncall
7731 before normal cases. Update inline $$dyncall sequences to preserve
7732 function descriptor address in register %r22.
7733 (TRAMPOLINE_CODE_SIZE): Adjust.
7734 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
7735 register %r22 contains trampoline address.
7736 (pa_trampoline_init): Adjust offsets.
7737 (pa_trampoline_adjust_address): Likewise.
7738 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
7739
7740 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7741
7742 PR target/67183
7743 * config/darwin.c (machopic_indirection): New field to flag
7744 non-lazy-symbol-pointers in the data section.
7745 (machopic_indirection_name): Compute if an indirection should
7746 appear in the data section.
7747 (machopic_output_data_section_indirection): New callback split
7748 from machopic_output_indirection.
7749 (machopic_output_stub_indirection): Likewise.
7750 (machopic_output_indirection): Retain the code for non-lazy
7751 symbol pointers in their regular section.
7752 (machopic_finish): Use the new callbacks to order the indirection
7753 output.
7754
7755 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7756
7757 * config/darwin-protos.h (machopic_finish): Delete.
7758 * config/darwin.c (machopic_finish): Make static.
7759
7760 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7761
7762 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
7763 sections when building kernel extension code.
7764
7765 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
7766
7767 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
7768 later standard."
7769
7770 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7771
7772 * config/pa/pa.c (pa_option_override): Remove trailing comma
7773 from warning.
7774
7775 2019-10-12 Jakub Jelinek <jakub@redhat.com>
7776
7777 PR middle-end/92063
7778 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
7779 <case VEC_COND_EXPR>: Return false with *handled = false.
7780 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
7781 recursing on the first operand.
7782 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
7783 instead of tree_could_trap_p.
7784 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
7785
7786 2019-10-11 Jim Wilson <jimw@sifive.com>
7787
7788 PR rtl-optimization/91860
7789 * combine.c (subst): If new_rtx is a constant, also check for
7790 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
7791
7792 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
7793
7794 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
7795 INTVAL when calling store_bit_field.
7796
7797 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
7798
7799 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
7800 size.
7801
7802 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
7803
7804 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
7805 vectorizable_live_operation.
7806 (vectorizable_live_operation): Adjust parameters.
7807 * tree-vect-stmts.c (vect_init_vector,
7808 vect_gen_widened_results_half): Fix typo in function comment.
7809 (can_vectorize_live_stmts): Adjust function comment.
7810 Adjust parameters. Adjust call to vectorizable_live_operation.
7811 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
7812 (vect_transform_stmt): Adjust function comment. Adjust call to
7813 can_vectorize_live_stmts.
7814 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
7815
7816 2019-10-11 Richard Biener <rguenther@suse.de>
7817
7818 PR tree-optimization/90883
7819 PR tree-optimization/91091
7820 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
7821 alias-sets both for recording VN table entries and continuing
7822 walking after translating through copies. Handle same-sized
7823 reads from SSA names by returning the plain SSA name.
7824 (eliminate_dom_walker::eliminate_stmt): Properly handle
7825 non-size precision stores in redundant store elimination.
7826
7827 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7828
7829 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
7830 (ggc_collect): Dump later to not interfere with release_page dump.
7831 (ggc_trim): New function.
7832 * ggc-none.c (ggc_trim): New.
7833 * ggc.h (ggc_trim): Declare.
7834
7835 2019-10-11 Richard Biener <rguenther@suse.de>
7836
7837 PR tree-optimization/92066
7838 PR tree-optimization/92046
7839 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7840 Fix bogus cost model check.
7841
7842 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7843
7844 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
7845 (LANG_HOOKS_DECLS): Add it.
7846 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
7847 update comment for omp_is_optional_argument.
7848 * omp-general.c (omp_is_allocatable_or_ptr): New.
7849 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
7850 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
7851 Fortran's optional arguments and allocatable/pointer scalars
7852 with use_device_addr.
7853
7854 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
7855
7856 PR target/77918
7857 * config/s390/2827.md: Add new opcodes.
7858 * config/s390/2964.md: Likewise.
7859 * config/s390/3906.md: Likewise.
7860 * config/s390/8561.md: Likewise.
7861 * config/s390/s390-builtins.def (s390_vfchesb): Use
7862 the new vec_cmpgev4sf_quiet_nocc.
7863 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
7864 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
7865 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
7866 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
7867 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
7868 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
7869 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
7870 * config/s390/s390-modes.def (CCSFPS): New mode.
7871 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
7872 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
7873 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
7874 (s390_expand_vec_compare): Use non-signaling patterns where
7875 necessary.
7876 (s390_reverse_condition): Support CCSFPS.
7877 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
7878 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
7879 (asm_fcmp_op): Likewise.
7880 (*smaxv2df3_vx): Use pattern for quiet comparison.
7881 (*sminv2df3_vx): Likewise.
7882 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
7883 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
7884 (vec_cmpgt<mode>_quiet_nocc): Likewise.
7885 (vec_cmplt<mode>_quiet_nocc): New expander.
7886 (vec_cmpge<mode>_quiet_nocc): New pattern.
7887 (vec_cmple<mode>_quiet_nocc): New expander.
7888 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
7889 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
7890 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
7891 (*vec_cmpge<mode>_signaling_nocc): Likewise.
7892 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
7893 (vec_cmpungt<mode>): New expander.
7894 (vec_cmpunge<mode>): Likewise.
7895 (vec_cmpuneq<mode>): Use quiet patterns.
7896 (vec_cmpltgt<mode>): Allow only on z14+.
7897 (vec_cmpordered<mode>): Use quiet patterns.
7898 (vec_cmpunordered<mode>): Likewise.
7899 (VEC_CMP_EXPAND): Add ungt and unge.
7900
7901 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7902
7903 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
7904 parameter.
7905 * lto-streamer-out.c: Include tree-dfa.h.
7906 (output_cfg): Do not use cfun.
7907 (lto_prepare_function_for_streaming): New.
7908 (output_function): Do not push cfun; do not initialize loop optimizer.
7909 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
7910 * passes.c (ipa_write_summaries): Use it.
7911 (ipa_write_optimization_summaries): Do not modify bodies.
7912 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
7913 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
7914 * tree-ssa-dse.c (pass_dse::execute): Update use of
7915 renumber_gimple_stmt_uids.
7916 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
7917
7918 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
7919
7920 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7921 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
7922
7923 2019-10-10 Joseph Myers <joseph@codesourcery.com>
7924
7925 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
7926 macros.
7927 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
7928 Also define DFP macros for these conditions.
7929 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
7930 DEC128_SUBNORMAL_MIN): Do not define.
7931 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
7932 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
7933
7934 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
7935 Sandra Loosemore <sandra@codesourcery.com>
7936
7937 PR middle-end/26241
7938 * doc/lto.texi (IPA): Reference to the IPA passes.
7939 * doc/passes.texi (Pass manager): Add node IPA passes and
7940 description for each IPA pass.
7941
7942 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7943
7944 * ipa-reference.c: Do not include splay-tree.h
7945 (reference_vars_to_consider): Turn to hash map.
7946 (get_static_name, ipa_init, analyze_function, propagate,
7947 stream_out_bitmap, ipa_reference_write_optimization_summary,
7948 ipa_reference_write_optimization_summary): Update.
7949
7950 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7951
7952 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
7953
7954 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
7955
7956 * config/darwin.c: Lookup Objective C metadata and force indirection
7957 for IVAR refs.
7958
7959 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
7960
7961 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
7962 addresses.
7963 (mem_operand_gpr): Add check for prefixed addresses.
7964 (mem_operand_ds_form): Add check for prefixed addresses.
7965 (rs6000_legitimate_offset_address_p): If we support prefixed
7966 addresses, check for a 34-bit offset instead of 16-bit.
7967 (rs6000_legitimate_address_p): Add check for prefixed addresses.
7968 Do not allow load/store with update if the address is prefixed.
7969 (rs6000_mode_dependent_address): If we support prefixed
7970 addresses, check for a 34-bit offset instead of 16-bit.
7971
7972 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
7973
7974 PR target/77918
7975 * config/s390/vector.md (vcond_comparison_operator): New
7976 predicate.
7977 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
7978
7979 2019-10-10 David Malcolm <dmalcolm@redhat.com>
7980
7981 PR 87488
7982 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
7983 -D.
7984 * configure.ac (--with-documentation-root-url): New option.
7985 * configure: Regenerate.
7986 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
7987 option URL, add it as a new string field of the diagnostic option.
7988 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
7989 (print_option_information): If get_option_url is non-NULL, call
7990 it, and if the result is non-NULL, potentially emit an escape
7991 sequence to markup the option text with the resulting URL.
7992 * diagnostic.h (diagnostic_context::get_option_url): New callback.
7993 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
7994 example of JSON output.
7995 * opts-diagnostic.h (get_option_url): New decl.
7996 * opts.c (get_option_url): New function.
7997 * toplev.c (general_init): Initialize the get_option_url callback.
7998
7999 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8000
8001 PR 87488
8002 * common.opt (fdiagnostics-urls=): New option.
8003 (diagnostic-url.h): Add SourceInclude.
8004 (diagnostic_url_rule): New enum.
8005 * diagnostic-color.c: Include "diagnostic-url.h".
8006 (diagnostic_urls_enabled_p): New function.
8007 * diagnostic-url.h: New file.
8008 * diagnostic.c: Include "diagnostic-url.h".
8009 (diagnostic_urls_init): New function.
8010 * diagnostic.h (diagnostic_urls_init): New decl.
8011 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8012 -fdiagnostics-urls to the list.
8013 (-fdiagnostics-urls): New option.
8014 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8015 (driver::global_initializations): Call diagnostic_urls_init.
8016 * opts-global.c (init_options_once): Likewise.
8017 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8018 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8019 show_urls.
8020 (pp_begin_url): New function.
8021 (pp_end_url): New function.
8022 (selftest::test_urls): New selftest.
8023 (selftest::pretty_print_c_tests): Call it.
8024 * pretty-print.h (pretty_printer::show_urls): New field.
8025 (pp_begin_url): New decl.
8026 (pp_end_url): New decl.
8027
8028 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8029
8030 PR target/92022
8031 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8032
8033 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8034
8035 PR target/88630
8036 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8037 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8038 also for TARGET_FPU_SH4_300.
8039 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8040 TARGET_SH4_300.
8041 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8042 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8043 (*negsf2_i): Split into ...
8044 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8045 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8046 (**abssf2_i): Split into ...
8047 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8048 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8049 (*negdf2_i): Split into ...
8050 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8051 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8052 (**abssf2_i): Split into ...
8053 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8054
8055 2019-10-10 Richard Biener <rguenther@suse.de>
8056
8057 PR middle-end/92046
8058 * opts.c (finish_options): Do not influence global --params
8059 from options that are adjustable per function.
8060 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8061 Apply --param adjustment based on active cost-model.
8062 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8063 further store-sinking when vectorization or if-conversion
8064 are not enabled.
8065
8066 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8067
8068 PR middle-end/92037
8069 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8070 rather than ggc_alloc_cleared to alloc symbol table.
8071 * toplev.c (general_init): Likewise.
8072 * cgraph.h (symbol_table): Explicitly construct every field.
8073
8074 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8075
8076 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8077 (PF_Z15): ... this.
8078 * config.gcc: Add z15 as option for --with-arch and --with-tune
8079 configure switches.
8080 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8081 error reporting for unsupported builtins.
8082 * config/s390/s390-opts.h (enum processor_type): Rename
8083 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8084 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8085 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8086 Likewise.
8087 * config/s390/s390-builtins.def: Likewise.
8088 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8089 (s390_expand_builtin): Add missing check for unsupported builtins.
8090 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8091 (s390_rtx_costs): Likewise.
8092 (s390_get_sched_attrmask): Rename arch13 to z15.
8093 (s390_get_unit_mask): Likewise.
8094 (s390_is_fpd): Likewise.
8095 (s390_is_fxd): Likewise.
8096 * config/s390/s390.h (enum processor_flags): Likewise.
8097 * config/s390/s390.md: Likewise.
8098 * config/s390/vector.md: Likewise.
8099 * config/s390/vx-builtins.md: Likewise.
8100 * config/s390/s390.opt: Add z15 to processor_type value.
8101
8102 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8103
8104 PR target/91035
8105 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8106 prototype.
8107 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8108 ("split_stack_data", "split_stack_call")
8109 ("split_stack_call_<mode>", "split_stack_cond_call")
8110 ("split_stack_cond_call_<mode>"): Remove.
8111 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8112 insn definition.
8113 * config/s390/s390.c (s390_output_split_stack_data): New function.
8114 (s390_expand_split_stack_prologue): Use the merged expander.
8115
8116 2019-10-09 Martin Sebor <msebor@redhat.com>
8117
8118 PR tree-optimization/90879
8119 * builtins.c (check_access): Avoid using maxbound when null.
8120 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8121 * doc/invoke.texi (-Wstring-compare): Document new warning option.
8122 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8123 conditional.
8124 (get_range_strlen): Overwrite initial maxbound when non-null.
8125 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8126 changes.
8127 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8128 (used_only_for_zero_equality): New function.
8129 (handle_builtin_memcmp): Call it.
8130 (determine_min_objsize): Return an integer instead of tree.
8131 (get_len_or_size, strxcmp_eqz_result): New functions.
8132 (maybe_warn_pointless_strcmp): New function.
8133 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
8134 between a longer string and a smaller array.
8135 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
8136
8137 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8138
8139 * config/darwin.c (darwin_override_options): Make the check for
8140 Objective-C ABI version more specific for 64bit code.
8141
8142 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8143
8144 * config/darwin.c (machopic_indirect_data_reference): Set flag to
8145 indicate that the new symbol is an indirection.
8146 (machopic_indirect_call_target): Likewise.
8147 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
8148 (MACHO_SYMBOL_INDIRECTION_P): New.
8149 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
8150
8151 2019-10-08 Jason Merrill <jason@redhat.com>
8152
8153 * doc/invoke.texi: Document -fconcepts-ts.
8154
8155 2019-10-09 Richard Biener <rguenther@suse.de>
8156
8157 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
8158 allow stmts other than GIMPLE_ASSIGN in nested cycles.
8159
8160 2019-10-08 Richard Biener <rguenther@suse.de>
8161
8162 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
8163 (_stmt_vec_info::force_single_cycle): Likewise.
8164 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
8165 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
8166 * tree-vect-loop.c (vectorizable_reduction): Set
8167 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
8168 (vect_transform_reduction): Use them to remove redundant code.
8169 (vect_transform_cycle_phi): Likewise.
8170
8171 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8172
8173 PR tree-optimization/90836
8174 * match.pd (popcount): New pattern.
8175
8176 2019-10-08 Martin Sebor <msebor@redhat.com>
8177
8178 PR middle-end/92026
8179 PR middle-end/92014
8180 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
8181 again once nbytes has been set. Set the access size when not yet set.
8182
8183 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8184
8185 * config/darwin.c (machopic_select_section): Remove dead code for
8186 old Objective-C section selection method, replace with unreachable.
8187
8188 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8189
8190 * config/darwin.c (machopic_indirect_data_reference): Check for
8191 required indirections before making direct access to defined
8192 values.
8193 (machopic_output_indirection): Place the indirected pointes for
8194 required indirections into the non-lazy symbol pointers section.
8195 (darwin_encode_section_info):
8196 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
8197 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
8198
8199 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
8200
8201 PR target/91994
8202 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
8203 instead of ALL_SSE_REG to check if function call preserves some
8204 256-bit SSE registers.
8205
8206 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8207
8208 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
8209 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
8210 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
8211
8212 2019-10-08 Richard Biener <rguenther@suse.de>
8213
8214 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
8215 (_stmt_vec_info::is_reduc_info): Add.
8216 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
8217 (vectorizable_condition): Remove.
8218 (vectorizable_shift): Likewise.
8219 (vectorizable_reduction): Adjust.
8220 (info_for_reduction): New.
8221 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
8222 (vect_analyze_scalar_cycles_1): ... here.
8223 (vect_analyze_loop_operations): Adjust.
8224 (needs_fold_left_reduction_p): Simplify for single caller.
8225 (vect_is_simple_reduction): Likewise. Remove stmt restriction
8226 for nested cycles not part of double reductions.
8227 (vect_model_reduction_cost): Pass in the reduction type.
8228 (info_for_reduction): New function.
8229 (vect_create_epilog_for_reduction): Use it, access reduction
8230 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
8231 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8232 (vectorize_fold_left_reduction): Remove pointless assert.
8233 (vectorizable_reduction): Analyze the full reduction when
8234 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
8235 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
8236 stmt code-generation to vectorizable_* in most cases. Verify
8237 code-generation only for cases handled by
8238 vect_transform_reductuon.
8239 (vect_transform_reduction): Use info_for_reduction to get at
8240 reduction meta. Simplify.
8241 (vect_transform_cycle_phi): Likewise.
8242 (vectorizable_live_operation): Likewise.
8243 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
8244 at the PHI node for STMT_VINFO_REDUC_TYPE.
8245 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
8246 longer necessary code.
8247 * tree-vect-stmts.c (vectorizable_shift): Make static again.
8248 (vectorizable_condition): Likewise. Get at reduction related
8249 info via info_for_reduction.
8250 (vect_analyze_stmt): Adjust.
8251 (vect_transform_stmt): Likewise.
8252 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8253 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8254
8255 2019-10-08 Joseph Myers <joseph@codesourcery.com>
8256
8257 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
8258 -fno-fp-int-builtin-inexact default for C2X.
8259
8260 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8261 Richard Biener <rguenther@suse.de>
8262
8263 PR tree-optimization/91532
8264 * tree-if-conv.c: Include tree-ssa-dse.h.
8265 (ifcvt_local_dce): Change param from bb to loop,
8266 and call dse_classify_store.
8267 (tree_if_conversion): Pass loop instead of loop->header as arg
8268 to ifcvt_local_dce.
8269 * tree-ssa-dse.c: Include tree-ssa-dse.h.
8270 (delete_dead_or_redundant_assignment): Remove static qualifier from
8271 declaration, and add prototype in tree-ssa-dse.h.
8272 (dse_store_status): Move to tree-ssa-dse.h.
8273 (dse_classify_store): Remove static qualifier and add new tree param
8274 stop_at_vuse, and add prototype in tree-ssa-dse.h.
8275 * tree-ssa-dse.h: New header.
8276
8277 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8278
8279 * config/darwin.c (machopic_output_indirection): Don't put
8280 hidden symbol indirections into the .data section, use the
8281 non-lazy symbol pointers section as normal.
8282 (darwin_encode_section_info): Record if a symbol is hidden.
8283 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
8284 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
8285
8286 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8287
8288 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
8289 predicates instead of accessing bits directly.
8290 (machopic_indirect_call_target): Likewise.
8291 (machopic_output_indirection): Likewise.
8292 (darwin_encode_section_info): Improve description. Use renamed
8293 symbol flags. Use predicate macros for variables and functions.
8294 * config/darwin.h:
8295 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
8296 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
8297 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
8298 (MACHO_SYMBOL_VARIABLE_P): New.
8299 (MACHO_SYMBOL_DEFINED_P):New.
8300 (MACHO_SYMBOL_STATIC_P): New.
8301 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
8302 (SYMBOL_FLAG_SUBT_DEP): New.
8303 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
8304
8305 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8306
8307 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
8308 (msp430_expand_epilogue): Likewise.
8309 * config/msp430/predicates.md: Likewise.
8310 * config/msp430/msp430.md: Likewise.
8311 Replace blocks of 8 spaces with tabs.
8312
8313 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8314
8315 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
8316 * config/msp430/msp430.c (msp430_split_addsi): New.
8317 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
8318 a block of C code for splitting addsi.
8319
8320 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
8321
8322 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
8323 ix86_expand_rounddf_32): Reorder functions.
8324 * config/i386/i386-protos.h: Update.
8325
8326 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8327
8328 * config.in: Regenerate.
8329 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
8330 Add new "Yx" constraint.
8331 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
8332 function.
8333 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
8334 prototype.
8335 * config/msp430/msp430.c (msp430_option_override): Allow the lower
8336 code/data region to be selected in the small memory model.
8337 (msp430_section_attr): Don't warn if the "section" and "lower"
8338 attributes are used together.
8339 (msp430_handle_generic_attribute): Likewise.
8340 (msp430_var_in_low_mem): New function.
8341 (TARGET_ENCODE_SECTION_INFO): Define.
8342 (msp430_encode_section_info): New function.
8343 (gen_prefix): Return early in the small memory model.
8344 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
8345 ".lower" prefix if -m{code,data}-region=lower have been passed.
8346 (msp430_output_aligned_decl_common): Emit common symbols when
8347 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
8348 set.
8349 (TARGET_ASM_FILE_END): Define.
8350 (msp430_file_end): New function.
8351 (msp430_do_not_relax_short_jumps): Allow relaxation when
8352 function will be in the lower region.
8353 (msp430_op_not_in_high_mem): New function.
8354 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
8355 the 'X' operand selector.
8356 Clarify comment for 'x' operand selector.
8357 * config/msp430/msp430.h (LINK_SPEC): Propagate
8358 -m{code,data}-region to the linker via spec function
8359 msp430_propagate_region_opt.
8360 (msp430_propagate_region_opt): New prototype.
8361 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
8362 (SYMBOL_FLAG_LOW_MEM): Define.
8363 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
8364 selector.
8365 (zero_extendqihi2): Fix operand number used by "%X" selector.
8366 (zero_extendqisi2): Likewise.
8367 (zero_extendhisi2): Likewise.
8368 (movqi): Use "Yx" constraint in place of "%X" operand selector.
8369 (movhi): Likewise.
8370 (addqi3): Likewise.
8371 (addhi3): Likewise.
8372 (addsi3): Likewise.
8373 (addhi3_cy): Likewise.
8374 (addchi4_cy): Likewise.
8375 (subqi3): Likewise.
8376 (subhi3): Likewise.
8377 (subsi3): Likewise.
8378 (bic<mode>3): Likewise.
8379 (and<mode>3): Likewise.
8380 (ior<mode>3): Likewise.
8381 (xor<mode>3): Likewise.
8382 (slli_1): Add missing "%X" operand selector.
8383 (slll_1): Likewise.
8384 (slll_2): Likewise.
8385 (srai_1): Likewise.
8386 (sral_1): Likewise.
8387 (sral_2): Likewise.
8388 (srli_1): Likewise.
8389 (srll_1): Likewise.
8390 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
8391 selector.
8392 (cbranchhi4_real): Likewise.
8393 (cbranchqi4_reversed): Likewise.
8394 (cbranchhi4_reversed): Likewise.
8395 (*bitbranch<mode>4): Likewise.
8396 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
8397 * config/msp430/msp430.opt (mcode-region=): Set default to
8398 MSP430_REGION_LOWER. Improve docstring.
8399 (mdata-region=): Likewise.
8400 (muse-lower-region-prefix): New option.
8401 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
8402 mdata-region=none multilib.
8403 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
8404 mdata-region=none multilib.
8405 MULTILIB_EXCEPTIONS: Remove.
8406 MULTILIB_REQUIRED: Define.
8407 * configure: Regenerate.
8408 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
8409 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
8410 * doc/extend.texi: Clarify comment for {upper,lower,either}
8411 function attributes.
8412 Add separate description for "lower" variable attribute.
8413
8414 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8415
8416 PR target/77918
8417 * optabs-tree.c (vcond_icode_p): New function.
8418 (vcond_eq_icode_p): Likewise.
8419 (expand_vec_cond_expr_p): Use vcond_icode_p and
8420 vcond_eq_icode_p.
8421 * optabs.c (can_vcond_compare_p): New function.
8422 * optabs.h (can_vcond_compare_p): Likewise.
8423
8424 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8425
8426 PR target/77918
8427 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
8428 caller passes a non-trapping condition.
8429 (is_gimple_condexpr): Allow trapping conditions.
8430 (is_gimple_condexpr_1): New helper function.
8431 (is_gimple_condexpr_for_cond): New function, acts like old
8432 is_gimple_condexpr.
8433 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
8434 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
8435 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
8436 * gimplify.c (gimplify_cond_expr): Use
8437 is_gimple_condexpr_for_cond.
8438 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
8439 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
8440 VEC_COND_EXPR.
8441 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
8442 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
8443 is_gimple_condexpr_for_cond, remove pointless tmp check
8444 (forward_propagate_into_cond): Remove pointless tmp check.
8445
8446 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8447
8448 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
8449 match that of other gsi_next_* functions. Adjust the comment.
8450 (gsi_start_nonvirtual_phis): New function.
8451 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
8452 gsi_next_nonvirtual_phi accordingly. (No functional change.)
8453
8454 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8455
8456 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
8457 setjmp situation here. Fix a verb's ending: "the exact variables or
8458 elements for which there are warnings depends" -> "... depend".
8459
8460 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8461
8462 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
8463
8464 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8465
8466 * ipa-prop.c (ipa_vr::nonzero_p): New.
8467 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
8468 non-zero range.
8469 * ipa-prop.h (class ipa_vr): Add nonzero_p.
8470 * tree-vrp.c (range_has_numeric_bounds_p): New.
8471 (range_int_cst_p): Use range_has_numeric_bounds_p.
8472 (get_range_op_handler): New.
8473 (supported_types_p): New.
8474 (defined_ranges_p): New.
8475 (drop_undefines_to_varying): New.
8476 (range_fold_binary_symbolics_p): New.
8477 (range_fold_unary_symbolics_p): New.
8478 (range_fold_unary_expr): Extract out into above functions.
8479 (range_fold_binary_expr): Same.
8480 (value_range_base::normalize_addresses): New.
8481 (value_range_base::normalize_symbolics): Normalize addresses.
8482 * tree-vrp.h (class value_range_base): Add normalize_addresses.
8483
8484 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8485
8486 * tree-vrp.c (value_range_base::singleton_p): Use
8487 value_range_base::num_pairs instead of vrp_val_is* to check
8488 if a range has one sub-range.
8489
8490 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8491
8492 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
8493 DEF is not a true earlyclobber but is tied to a specific input
8494 operand, and so is effectively earlyclobber wrt inputs that have
8495 different values.
8496 (make_early_clobber_and_input_conflicts): Pass this case to the above.
8497
8498 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8499
8500 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
8501 (pod_mode): Mark operators likewise.
8502 (scalar_int_mode): Mark non-default constructors and
8503 operators with CONSTEXPR.
8504 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
8505 (fixed_size_mode): Likewise.
8506
8507 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8508
8509 PR target/91994
8510 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
8511 and wrap the unspec_volatile in a parallel.
8512 (*avx_vzeroupper): New define_insn. Use a match_parallel around
8513 the unspec_volatile.
8514 * config/i386/predicates.md (vzeroupper_pattern): Expect the
8515 unspec_volatile to be wrapped in a parallel.
8516 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
8517 (ix86_add_reg_usage_to_vzerouppers): New functions.
8518 (rest_of_handle_insert_vzeroupper): Use them to add register
8519 usage information to the vzeroupper instructions.
8520
8521 2019-10-07 Richard Biener <rguenther@suse.de>
8522
8523 PR tree-optimization/91975
8524 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
8525 handle invariants.
8526
8527 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
8528
8529 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
8530 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
8531
8532 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
8533
8534 * config/darwin.c (darwin_override_options): Adjust objective-c
8535 ABI version error messages to avoid punctuation and contracted
8536 negations.
8537
8538 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
8539
8540 * ipa-inline.c: Fix type; compute size rather than self_size
8541 for size of caller function.
8542
8543 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
8544
8545 PR target/59888
8546 * config/darwin.c (darwin_rodata_section): Add relocation flag,
8547 choose const_data section for constants with relocations.
8548 (machopic_select_section): Pass relocation flag to
8549 darwin_rodata_section ().
8550
8551 2019-10-05 Jakub Jelinek <jakub@redhat.com>
8552
8553 PR tree-optimization/91734
8554 * generic-match-head.c: Include fold-const-call.h.
8555 * match.pd (sqrt(x) cmp c): Check the boundary value and
8556 in case inexact computation of c*c affects comparison of the boundary,
8557 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
8558 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
8559 for -frounding-math. For c2, try the next smaller or larger floating
8560 point constant depending on comparison code and if it has the same
8561 sqrt as c2, use it instead of c2.
8562
8563 2019-10-04 Martin Sebor <msebor@redhat.com>
8564
8565 PR middle-end/91977
8566 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
8567 MEM_REF right operand. Avoid failing for MEM_REF assignments from
8568 uninitialized objects.
8569
8570 2019-10-04 Martin Sebor <msebor@redhat.com>
8571
8572 * builtins.c (compute_objsize): Add an argument.
8573 * tree-object-size.c (addr_object_size): Same.
8574 (compute_builtin_object_size): Same.
8575 * tree-object-size.h (compute_builtin_object): Same.
8576
8577 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
8578
8579 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
8580
8581 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
8582
8583 * match.pd (sinh (x) / cosh (x)): New simplification rule.
8584
8585 2019-10-04 Martin Jambor <mjambor@suse.cz>
8586
8587 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
8588 fntype when switching to calling memcpy instead of memset.
8589
8590 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8591
8592 * hash-table.h (hash_table::empty_slow): Don't assign
8593 size_t values to int variables.
8594
8595 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8596
8597 * expr.c (convert_mode_scalar): Remove shadowing local var.
8598 (emit_block_move): Rename local vars.
8599 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
8600 (emit_push_insn): Rename local vars.
8601 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
8602 shadowing local vars.
8603 (store_constructor): Remove shadowing local vars. Rename local var.
8604 (store_field, expand_cond_expr_using_cmove,
8605 expand_expr_real_2): Remove shadowing local vars.
8606 (expand_expr_real_1,
8607 do_store_flag): Remove shadowing local vars. Rename local vars.
8608
8609 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8610
8611 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
8612
8613 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8614
8615 * genmatch.c (commutate): Rename local var.
8616 (lower_cond): Reuse local var.
8617 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
8618 dt_operand::gen, dt_operand::gen_gimple_expr,
8619 dt_simplify::gen): Add a param. Rename generated vars.
8620 (decision_tree::insert_operand,
8621 (capture_info::walk_match, capture_info::walk_result,
8622 capture_info::walk_c_expr): Rename local vars.
8623 (expr::gen_transform): Rename generated vars.
8624 Use snprintf. Rename local vars.
8625 (capture::gen_transform, dt_operand::get_name,
8626 dt_operand::gen_opname): Rename generated vars.
8627 (write_predicate): Adjust call to gen_kids.
8628 (parser::get_internal_capture_id): Rename generated vars.
8629 (parser::parse_expr): Rename local vars.
8630 (parser::parse_if): Remove local var.
8631 (parser::parse_pattern, add_operator): Rename local vars.
8632
8633 2019-10-04 Joseph Myers <joseph@codesourcery.com>
8634
8635 * builtins.def (DEF_C2X_BUILTIN): New macro.
8636 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
8637 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
8638 (strndup): Use DEF_C2X_BUILTIN.
8639 * coretypes.h (enum function_class): Add function_c2x_misc.
8640
8641 2019-10-04 Maya Rashish <coypu@sdf.org>
8642
8643 * ira-color.c (update_costs_from_allocno): Call
8644 ira_init_register_move_cost_if_necessary.
8645
8646 2019-10-04 Jeff Law <law@redhat.com>
8647
8648 * config/h8300/h8300.md (cpymemsi): Disable.
8649 (movmd, movmd_internal_<mode>, movstr, movsd):
8650 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
8651 (movmd splitter, movsd splitter): Likewise.
8652
8653 * range-op.cc (range_tests): Avoid two tests when ints and
8654 shorts are the same size.
8655
8656 2019-10-04 Richard Biener <rguenther@suse.de>
8657
8658 PR lto/91968
8659 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
8660 BLOCK_VARS.
8661
8662 2019-10-04 Richard Biener <rguenther@suse.de>
8663
8664 PR tree-optimization/91982
8665 * tree-vect-loop.c (vectorizable_live_operation): Also guard
8666 against EXTRACT_LAST_REDUCTION.
8667 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
8668
8669 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
8670
8671 * range-op.o (value_range_from_overflowed_bounds): Rename from
8672 adjust_overflow_bound.
8673 (value_range_with_overflow): Rename from
8674 create_range_with_overflow.
8675 (create_possibly_reversed_range): Adjusted for above renames.
8676 (operator_*::wi_fold): Same.
8677 (cross_product_operator::wi_cross_productor): Same.
8678
8679 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8680
8681 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
8682 -Wshadow=compatible-local): Fix description.
8683 Add an example where -Wshadow=compatible-local does not
8684 warn.
8685
8686 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
8687
8688 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
8689
8690 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
8691 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
8692
8693 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8694
8695 * expr.c (emit_block_move_hints): Slightly cleaner fix to
8696 can_move_by_pieces issue.
8697
8698 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
8699
8700 PR target/87243
8701 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
8702 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
8703 is available and the user has not set one on the command line.
8704
8705 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8706
8707 PR target/91769
8708 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
8709 instead of REGNO equality check on addr.reg.
8710
8711 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
8712
8713 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
8714 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
8715 * doc/invoke.texi (inline-heuristics-hint-percent,
8716 inline-heuristics-hint-percent-O2): Document.
8717 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
8718 hint attribute.
8719 (can_inline_edge_by_limits_p): Use it.
8720
8721 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
8722
8723 * config/arm/arm.c (arm_print_value): Use real_to_decimal
8724 to print CONST_DOUBLEs.
8725
8726 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
8727
8728 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
8729 * ipa-prop.c (ipcp_free_transformation_sum): New function.
8730 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
8731
8732 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
8733
8734 * Makefile.in (OBJS): Add range.o and range-op.o.
8735 Remove wide-int-range.o.
8736 * function-tests.c (test_ranges): New.
8737 (function_tests_c_tests): Call test_ranges.
8738 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
8739 range_fold_unary_expr instead of extract_range_from_unary_expr.
8740 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
8741 * range-op.cc: New file.
8742 * range-op.h: New file.
8743 * range.cc: New file.
8744 * range.h: New file.
8745 * selftest.h (range_tests): New prototype.
8746 * ssa.h: Include range.h.
8747 * tree-vrp.c (value_range_base::value_range_base): New
8748 constructors.
8749 (value_range_base::singleton_p): Do not call
8750 ranges_from_anti_range until sure we will need to.
8751 (value_range_base::type): Rename gcc_assert to
8752 gcc_checking_assert.
8753 (vrp_val_is_max): New argument.
8754 (vrp_val_is_min): Same.
8755 (wide_int_range_set_zero_nonzero_bits): Move from
8756 wide-int-range.cc.
8757 (extract_range_into_wide_ints): Remove.
8758 (extract_range_from_multiplicative_op): Remove.
8759 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
8760 from extract_range_from_binary_expr.
8761 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
8762 from extract_range_from_binary_expr.
8763 (extract_range_from_binary_expr): Remove.
8764 (normalize_for_range_ops): New.
8765 (range_fold_binary_expr): New.
8766 (range_fold_unary_expr): New.
8767 (value_range_base::num_pairs): New.
8768 (value_range_base::lower_bound): New.
8769 (value_range_base::upper_bound): New.
8770 (value_range_base::upper_bound): New.
8771 (value_range_base::contains_p): New.
8772 (value_range_base::invert): New.
8773 (value_range_base::union_): New.
8774 (value_range_base::intersect): New.
8775 (range_compatible_p): New.
8776 (value_range_base::operator==): New.
8777 (determine_value_range_1): Call range_fold_*expr instead of
8778 extract_range_from_*expr.
8779 * tree-vrp.h (class value_range_base): Add new constructors.
8780 Add methods for union_, intersect, operator==, contains_p,
8781 num_pairs, lower_bound, upper_bound, invert.
8782 (vrp_val_is_min): Add handle_pointers argument.
8783 (vrp_val_is_max): Same.
8784 (extract_range_from_unary_expr): Remove.
8785 (extract_range_from_binary_expr): Remove.
8786 (range_fold_unary_expr): New.
8787 (range_fold_binary_expr): New.
8788 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
8789 range_fold_binary_expr instead of extract_range_from_binary_expr.
8790 (vr_values::extract_range_basic): Same.
8791 (vr_values::extract_range_from_unary_expr): Call
8792 range_fold_unary_expr instead of extract_range_from_unary_expr.
8793 * wide-int-range.cc: Remove.
8794 * wide-int-range.h: Remove.
8795
8796 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
8797
8798 * config/rs6000/rs6000.c (mem_operand_gpr): Use
8799 SIGNED_16BIT_OFFSET_EXTRA_P macro.
8800 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
8801 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
8802 macro.
8803
8804 2019-10-02 Joseph Myers <joseph@codesourcery.com>
8805
8806 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
8807 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
8808 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
8809 * glimits.h: Likewise.
8810
8811 2019-10-03 Jakub Jelinek <jakub@redhat.com>
8812
8813 PR rtl-optimization/91976
8814 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
8815 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
8816 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
8817
8818 2019-10-02 Martin Sebor <msebor@redhat.com>
8819
8820 PR tree-optimization/80936
8821 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
8822
8823 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8824
8825 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
8826 instead of reg_class_contents[ALL_REGS].
8827
8828 2019-09-30 Jason Merrill <jason@redhat.com>
8829
8830 Add some hash_map_safe_* functions like vec_safe_*.
8831 * hash-map.h (default_hash_map_size): New variable.
8832 (create_ggc): Use it as default argument.
8833 (hash_map_maybe_create, hash_map_safe_get)
8834 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
8835
8836 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
8837
8838 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
8839 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
8840 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
8841 (can_inline_edge_by_limits_p): Use it.
8842 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
8843 (want_inline_small_function_p): Use O2 bounds.
8844 (edge_badness): LIkewise.
8845 * opts.c (default_options): Add OPT_finline_functions.
8846 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
8847 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
8848 New parameters.
8849 * doc/invoke.texi (-finline-functions): Update documentation.
8850 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
8851 inline-min-speedup-O2): Document.
8852 (early-inlining-insns-O2): Simplify docs.
8853
8854 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
8855
8856 PR rtl-optimization/87047
8857 * ifcvt.c (average_cost): New static function. Use it...
8858 (noce_process_if_block): ... here.
8859
8860 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8861
8862 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
8863 * config/rs6000/rs6000-string.c (expand_block_move): Add
8864 might_overlap parm.
8865 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
8866 (cpymemsi): Add might_overlap parm to expand_block_move() call.
8867
8868 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8869
8870 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
8871 (expand_builtin_memcpy): Use might_overlap parm.
8872 (expand_builtin_mempcpy_args): Use might_overlap parm.
8873 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
8874 (expand_builtin_memory_copy_args): Add might_overlap parm.
8875 * expr.c (emit_block_move_via_cpymem): Rename to
8876 emit_block_move_via_pattern, add might_overlap parm, use cpymem
8877 or movmem optab as appropriate.
8878 (emit_block_move_hints): Add might_overlap parm, do the right
8879 thing for might_overlap==true.
8880 * expr.h (emit_block_move_hints): Update prototype.
8881
8882 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
8883
8884 * tree-eh.h (unsplit_eh_edges): Declare.
8885 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
8886 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
8887 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
8888 (struct store_immediate_info): Add lp_nr field.
8889 (store_immediate_info::store_immediate_info): Add NR2 parameter and
8890 initialize lp_nr with it.
8891 (struct merged_store_group): Add lp_nr and only_constants fields.
8892 (merged_store_group::merged_store_group): Initialize them.
8893 (merged_store_group::can_be_merged_into): Deal with them.
8894 (pass_store_merging): Rename terminate_and_release_chain into
8895 terminate_and_process_chain.
8896 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
8897 renaming and remove useless assertions.
8898 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
8899 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
8900 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
8901 instead of always recomputing it and compare lp_nr.
8902 (imm_store_chain_info::output_merged_store): If the group is in an
8903 active EH region, register new stores if they can throw. Moreover,
8904 if the insertion has created new basic blocks, adjust the PHI nodes
8905 of the post landing pad.
8906 (imm_store_chain_info::output_merged_stores): If the original stores
8907 are in an active EH region, deregister them.
8908 (lhs_valid_for_store_merging_p): Prettify.
8909 (adjust_bit_pos): New function extracted from...
8910 (mem_valid_for_store_merging): ...here. Use it for the base address
8911 and also for the offset if it is the addition of a constant.
8912 (lp_nr_for_store): New function.
8913 (pass_store_merging::process_store): Change return type to bool.
8914 Call lp_nr_for_store to initialize the store info. Propagate the
8915 return status of various called functions to the return value.
8916 (store_valid_for_store_merging_p): New predicate.
8917 (enum basic_block_status): New enumeration.
8918 (get_status_for_store_merging): New function.
8919 (pass_store_merging::execute): If the function can throw and catch
8920 non-call exceptions, unsplit the EH edges on entry and clean up the
8921 CFG on exit if something changed. Call get_status_for_store_merging
8922 for every basic block and keep the chains open across basic blocks
8923 when possible. Terminate and process open chains at the end, if any.
8924
8925 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8926
8927 * reginfo.c (globalize_reg): Fix shadowed variable in
8928 function_abis walk.
8929
8930 2019-10-02 Martin Jambor <mjambor@suse.cz>
8931
8932 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
8933 do not compute some stuff when set.
8934 (cgraph_node::create_edge): Likewise.
8935 (cgraph_node::create_indirect_edge): Renamed last parameter to
8936 coning_p and flipped its meaning, don't even calculate
8937 inline_failed when set.
8938 * cgraph.h (cgraph_node::create_edge): Add new parameter.
8939 (symbol_table::::create_edge): Likewise.
8940 (cgraph_node::create_indirect_edge): Rename last parameter, flip
8941 the default value.
8942 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
8943 call graph edge creating functions.
8944
8945 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8946
8947 PR c++/91222
8948 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
8949 namespace types.
8950
8951 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
8952
8953 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
8954
8955 2019-10-02 Richard Biener <rguenther@suse.de>
8956
8957 * tree-vectorizer.h (vect_transform_reduction): Declare.
8958 * tree-vect-stmts.c (vect_transform_stmt): Use it.
8959 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
8960 stmt transform to ...
8961 (vect_transform_reduction): ... this.
8962
8963 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
8964
8965 * omp-low.c (lower_omp_target): Dereference optional argument
8966 to work with the right pointer.
8967
8968 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
8969
8970 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
8971 false.
8972 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
8973 * langhooks.h (omp_is_optional_argument): New hook.
8974 * omp-general.c (omp_is_optional_argument): New.
8975 * omp-general.h (omp_is_optional_argument): New declaration.
8976 * omp-low.c (lower_omp_target): Create temporary for received value
8977 and take the address for new_var if the original variable was a
8978 DECL_BY_REFERENCE. Use size of referenced object when a
8979 pass-by-reference optional argument used as argument to firstprivate.
8980
8981 2019-10-02 Jakub Jelinek <jakub@redhat.com>
8982
8983 PR tree-optimization/91940
8984 * tree-vect-patterns.c: Include tree-vector-builder.h and
8985 vec-perm-indices.h.
8986 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
8987 unpromoting the argument back to uint16_t, or by converting into a
8988 rotate, or into shifts plus ior.
8989
8990 2019-10-02 Richard Biener <rguenther@suse.de>
8991
8992 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
8993 New.
8994 (vect_transform_cycle_phi): Declare.
8995 * tree-vect-stmts.c (vect_transform_stmt): Call
8996 vect_transform_cycle_phi.
8997 * tree-vect-loop.c (vectorizable_reduction): Split out
8998 PHI transformation stage to ...
8999 (vect_transform_cycle_phi): ... here.
9000
9001 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9002
9003 PR middle-end/91957
9004 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9005 eliminable registers.
9006 (make_hard_regno_live): Likewise, and don't make them live.
9007
9008 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9009
9010 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9011 Call pp_emit_prefix.
9012 (layout::print_source_line): Likewise.
9013 (layout::start_annotation_line): Likewise.
9014 (diagnostic_show_locus): Remove call to temporarily clear the
9015 prefix.
9016 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9017 interaction of pp_set_prefix with rulers and fix-it hints.
9018 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9019 prefix when calling diagnostic_show_locus, rather than destroying
9020 it afterwards.
9021 (print_parseable_fixits): Temporarily clear prefix.
9022 * pretty-print.c (pp_format): Save and restore line_length, rather
9023 than assuming it is zero.
9024 (pp_output_formatted_text): Remove assertion that line_length is
9025 zero.
9026
9027 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9028
9029 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9030 Rename to ...
9031 (nonoverlapping_refs_since_match_p): ... this; handle also
9032 ARRAY_REFs.
9033 (alias_stats): Update stats.
9034 (dump_alias_stats): Likewise.
9035 (cheap_array_ref_low_bound): New function.
9036 (aliasing_matching_component_refs_p): Add partial_overlap
9037 argument;
9038 pass it to nonoverlapping_refs_since_match_p.
9039 (aliasing_component_refs_walk): Update call of
9040 aliasing_matching_component_refs_p
9041 (nonoverlapping_array_refs_p): New function.
9042 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9043 indirect_refs_may_alias_p): Update calls of
9044 nonoverlapping_refs_since_match_p.
9045
9046 2019-10-01 Maya Rashish <coypu@sdf.org>
9047
9048 PR target/85401
9049 * ira-color.c (allocno_copy_cost_saving): Call
9050 ira_init_register_move_cost_if_necessary.
9051
9052 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9053
9054 * Makefile.in (gnat_install_lib): New variable.
9055 * configure.ac: Substitute it.
9056 * configure: Regenerate.
9057
9058 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9059
9060 PR lto/91222
9061 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9062 is matched with non-C++ type
9063
9064 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9065
9066 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9067 after local CSE.
9068
9069 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9070
9071 * doc/invoke.texi (early-inlining-insns-O2): Document.
9072 (early-inlining-insns): Update.
9073 * params.def (early-inlining-insns-O2): New bound.
9074 (early-inlining-insns): Update docs.
9075 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9076
9077 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9078
9079 PR target/88562
9080 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9081 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9082 a memory access insn.
9083
9084 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9085
9086 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9087 vpmsumd.
9088
9089 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9090
9091 PR target/77918
9092 * config/s390/s390.c (s390_expand_vec_compare): Use
9093 gen_vec_cmpordered and gen_vec_cmpunordered.
9094 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9095 vec_unordered): Delete.
9096 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9097 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9098 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9099 (vec_cmp<code>): Generic dispatcher.
9100
9101 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9102
9103 PR target/77918
9104 * config/s390/vector.md (V_HW): Add V1TI in order to make
9105 vcond$a$b generate vcondv1tiv1tf.
9106
9107 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9108
9109 PR rtl-optimization/91948
9110 * ira-build.c (ira_create_allocno): Initialize
9111 ALLOCNO_CROSSED_CALLS_ABIS.
9112 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9113 than regno to ira_need_caller_save_p.
9114
9115 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9116
9117 * config/i386/i386-options.c
9118 (ix86_recompute_optlev_based_flags): New, moved out of...
9119 (ix86_option_override_internal): ... this. Call it.
9120 (ix86_override_options_after_change): Call it here too.
9121
9122 PR debug/91507
9123 * dwarf2out.c (override_type_for_decl_p): New.
9124 (gen_variable_die): Use it.
9125
9126 2019-10-01 Richard Biener <rguenther@suse.de>
9127
9128 * tree-vect-loop.c (vectorizable_reduction): Move variables
9129 to where they are used.
9130
9131 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9132
9133 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
9134 (build_def_use): Use PC instead of CC0 in a comment.
9135
9136 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9137
9138 * rtl.def (CLOBBER_HIGH): Delete.
9139 * doc/rtl.texi (clobber_high): Remove documentation.
9140 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
9141 (reg_is_clobbered_by_clobber_high): Delete.
9142 (gen_hard_reg_clobber_high): Likewise.
9143 * alias.c (record_set): Remove CLOBBER_HIGH handling.
9144 * cfgexpand.c (expand_gimple_stmt): Likewise.
9145 * combine-stack-adj.c (single_set_for_csa): Likewise.
9146 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
9147 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
9148 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
9149 * cse.c (invalidate_reg): Remove clobber_high parameter.
9150 (invalidate): Update call accordingly.
9151 (canonicalize_insn): Remove CLOBBER_HIGH handling.
9152 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
9153 (count_reg_usage, insn_live_p): Likewise.
9154 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
9155 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
9156 (cselib_invalidate_rtx_note_stores): Update call accordingly.
9157 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
9158 (cselib_invalidate_regno, cselib_process_insn): Likewise.
9159 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
9160 (mark_nonreg_stores_2): Likewise.
9161 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
9162 (df_get_call_refs): Likewise.
9163 * dwarf2out.c (mem_loc_descriptor): Likewise.
9164 * emit-rtl.c (verify_rtx_sharing): Likewise.
9165 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
9166 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
9167 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
9168 * genemit.c (gen_exp, gen_insn): Likewise.
9169 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
9170 * haifa-sched.c (haifa_classify_rtx): Likewise.
9171 * ira-build.c (create_insn_allocnos): Likewise.
9172 * ira-costs.c (scan_one_insn): Likewise.
9173 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
9174 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
9175 * jump.c (mark_jump_label_1): Likewise.
9176 * lra-int.h (lra_insn_reg::clobber_high): Delete.
9177 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
9178 handling.
9179 (mark_not_eliminable): Likewise.
9180 * lra-lives.c (process_bb_lives): Likewise.
9181 * lra.c (new_insn_reg): Remove clobber_high parameter.
9182 (collect_non_operand_hard_regs): Likewise. Update call to new
9183 insn_reg. Remove CLOBBER_HIGH handling.
9184 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
9185 to collect_non_operand_hard_regs.
9186 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
9187 Update call to new_insn_reg.
9188 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
9189 * postreload.c (reload_cse_simplify, reload_combine_note_use)
9190 (move2add_note_store): Likewise.
9191 * print-rtl.c (print_pattern): Likewise.
9192 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
9193 (if_test_bypass_p): Likewise.
9194 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
9195 * reginfo.c (reg_scan_mark_refs): Likewise.
9196 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
9197 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
9198 (forget_old_reloads_1): Likewise.
9199 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
9200 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
9201 (dbr_schedule): Likewise.
9202 * resource.c (update_live_status, mark_referenced_resources)
9203 (mark_set_resources): Likewise.
9204 * rtl.c (copy_rtx): Likewise.
9205 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
9206 (note_pattern_stores): Likewise.
9207 (reg_is_clobbered_by_clobber_high): Delete.
9208 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
9209 CLOBBER_HIGH handling.
9210
9211 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9212
9213 PR target/91452
9214 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
9215 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
9216 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9217 Handle ARM_PCS_TLSDESC.
9218 (aarch64_tlsdesc_abi_id): New function.
9219 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
9220 rtx instead of a list of clobbers and clobber_highs.
9221 (tlsdesc_small_<mode>): Update accordingly.
9222
9223 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9224
9225 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
9226 extra callee_abi argument.
9227 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
9228 Insert a CALLEE_ABI unspec into the call pattern as the second
9229 element in the PARALLEL.
9230 (aarch64_simd_call_p): Delete.
9231 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
9232 the new CALLEE_ABI element of the PARALLEL.
9233 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
9234 from the function type, if given.
9235 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
9236 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
9237 when passed the function_arg_info end marker.
9238 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
9239 final argument of gen_sibcall.
9240 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
9241 (call): Make operand 2 a const_int_operand and pass it to expand_call.
9242 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
9243 pattern.
9244 (call_value): Likewise operand 3.
9245 (sibcall): Likewise operand 2. Place the unspec before rather than
9246 after the return.
9247 (sibcall_value): Likewise operand 3.
9248 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
9249 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
9250 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
9251 constraint strings.
9252 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
9253
9254 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9255
9256 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
9257 choose_hard_reg_mode.
9258 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9259
9260 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9261
9262 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
9263 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
9264 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
9265
9266 2019-09-30 David Malcolm <dmalcolm@redhat.com>
9267
9268 * diagnostic-show-locus.c (line_label::line_label): Initialize
9269 m_has_vbar.
9270 (line_label::comparator): Reverse the sort order by m_state_idx,
9271 so that when the list is walked backwards the labels appear in
9272 order of insertion into the rich_location.
9273 (line_label::m_has_vbar): New field.
9274 (layout::print_any_labels): When dealing with multiple labels at
9275 the same line and column, only print vertical bars for the one
9276 with the highest label_line.
9277 (selftest::test_one_liner_labels): Update test for multiple labels
9278 to expect the labels to be in the order of insertion into the
9279 rich_location. Add a test for many such labels, where the column
9280 numbers are out-of-order relative to the insertion order.
9281
9282 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9283
9284 * config/i386/i386.h (ix86_frame::expensive_p): New field.
9285 (ix86_frame::expensive_count): Likewise.
9286 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
9287 of use_fast_prologue_epilogue robust against incidental changes
9288 in function size.
9289
9290 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9291
9292 PR target/77918
9293 * config/s390/vector.md (vec_unordered<mode>): Call
9294 gen_vec_ordered<mode>.
9295
9296 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
9297
9298 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
9299 New pattern for ASRD.
9300 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
9301 * internal-fn.def (IFN_DIV_POW2): New internal function.
9302 * optabs.def (sdiv_pow2_optab): New optab.
9303 * tree-vect-patterns.c (vect_recog_divmod_pattern):
9304 Modify pattern to support new operation.
9305 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
9306 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
9307 Document new target selector.
9308
9309 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9310
9311 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
9312 to test whether we're compiling a vector PCS function and to test
9313 whether the function needs to save a particular register.
9314 Remove the vector PCS handling of df_set_regs_ever_live.
9315 (aarch64_components_for_bb): Use crtl->abi to test whether
9316 the function needs to save a particular register.
9317 (aarch64_process_components): Use crtl->abi to test whether
9318 we're compiling a vector PCS function.
9319 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
9320 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
9321
9322 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9323
9324 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
9325 Delete.
9326 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
9327 whether the block calls a function that clobbers more registers
9328 than the current function is allowed to.
9329 (aarch64_use_simple_return_insn_p): Delete.
9330 * config/aarch64/aarch64.md (simple_return): Remove condition.
9331
9332 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9333
9334 * function-abi.h (function_abi_aggregator): New class.
9335 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
9336 function.
9337 * ira.c (update_equiv_regs_prescan): New function. Call
9338 set_paradoxical_subreg here rather than...
9339 (update_equiv_regs): ...here.
9340 (ira): Call update_equiv_regs_prescan.
9341
9342 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9343
9344 * hard-reg-set.h (regs_invalidated_by_call): Only define if
9345 IN_TARGET_CODE.
9346 (call_used_or_fixed_regs): Likewise.
9347 (call_used_or_fixed_reg_p): Likewise.
9348 * reginfo.c (regs_invalidated_by_call): New macro.
9349
9350 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9351
9352 * shrink-wrap.c: Include function-abi.h.
9353 (requires_stack_frame_p): Use crtl->abi to test whether the
9354 current function can use a register without saving it first.
9355
9356 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9357
9358 * sel-sched-ir.h (_def::crosses_call): Replace with...
9359 (_def::crossed_call_abis): ..this new field.
9360 (def_list_add): Take a mask of ABIs instead of a crosses_call
9361 boolean.
9362 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
9363 of _def accordingly.
9364 * sel-sched.c: Include function-abi.h.
9365 (hard_regs_data::regs_for_call_clobbered): Delete.
9366 (reg_rename::crosses_call): Replace with...
9367 (reg_rename::crossed_call_abis): ...this new field.
9368 (fur_static_params::crosses_call): Replace with...
9369 (fur_static_params::crossed_call_abis): ...this new field.
9370 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
9371 (init_hard_regs_data): Use crtl->abi to test which registers the
9372 current function would need to save before it uses them.
9373 (mark_unavailable_hard_regs): Update handling of call-clobbered
9374 registers, using call_clobbers_in_region to find out which registers
9375 might be call-clobbered (but without taking -fipa-ra into account
9376 for now). Remove separate handling of partially call-clobbered
9377 registers.
9378 (verify_target_availability): Use crossed_call_abis instead of
9379 crosses_call.
9380 (get_spec_check_type_for_insn, find_used_regs): Likewise.
9381 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
9382
9383 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9384
9385 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
9386 function to test whether a register is fully or partly clobbered.
9387
9388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9389
9390 * rtlanal.c: Include function-abi.h.
9391 (reg_set_p): Use insn_callee_abi to get the ABI of the called
9392 function and clobbers_reg_p to test whether the register
9393 is call-clobbered.
9394 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
9395 to get the ABI of the called function and full_reg_clobbers to
9396 get the set of fully call-clobbered registers. Warn about the
9397 pitfalls of using this mode.
9398
9399 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9400
9401 * reload.c: Include function-abi.h.
9402 (find_equiv_reg): Use clobbers_reg_p to test whether either
9403 of the equivalent registers is clobbered by a call.
9404 * reload1.c: Include function-abi.h.
9405 (reg_reloaded_call_part_clobbered): Delete.
9406 (reload): Use crtl->abi to test which registers would need
9407 saving in the prologue before use.
9408 (find_reg): Likewise.
9409 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
9410 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
9411 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
9412
9413 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9414
9415 * regrename.h (du_head::call_clobber_mask): New field.
9416 (du_head::need_caller_save_reg): Replace with...
9417 (du_head::call_abis): ...this new field.
9418 * regrename.c: Include function-abi.h.
9419 (call_clobbered_in_chain_p): New function.
9420 (check_new_reg_p): Use crtl->abi when deciding whether a register
9421 is free for use after RA. Use call_clobbered_in_chain_p to test
9422 whether a candidate register would be clobbered by a call.
9423 (find_rename_reg): Don't add call-clobber conflicts here.
9424 (rename_chains): Check call_abis instead of need_caller_save_reg.
9425 (merge_chains): Update for changes to du_head.
9426 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
9427 target. Record the ABI identifier in call_abis and the set of
9428 fully or partially clobbered registers in call_clobber_mask.
9429 Add fully-clobbered registers to hard_conflicts here rather
9430 than in find_rename_reg.
9431 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
9432 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
9433 * config/aarch64/falkor-tag-collision-avoidance.c: Include
9434 function-abi.h.
9435 * config/c6x/c6x.c: Likewise.
9436
9437 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9438
9439 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
9440 mode of the register when deciding whether it is no longer
9441 available after a call.
9442
9443 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9444
9445 * recog.c: Include function-abi.h.
9446 (peep2_find_free_register): Use crtl->abi when deciding whether
9447 a register is free for use after RA.
9448
9449 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9450
9451 * postreload-gcse.c: Include regs.h and function-abi.h.
9452 (record_opr_changes): Use insn_callee_abi to get the ABI of the
9453 call insn target. Conservatively assume that partially-clobbered
9454 registers are altered.
9455
9456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9457
9458 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
9459 when deciding whether a register is free for use after RA.
9460 (reload_combine): Remove unnecessary use of fixed_reg_set.
9461 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
9462 call insn target. Use reg_mode when testing whether a register
9463 is no longer available.
9464
9465 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9466
9467 * target.def (return_call_with_max_clobbers): Delete.
9468 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9469 * doc/tm.texi: Regenerate.
9470 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
9471 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9472 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
9473 (lra_reg::call_insn): Delete.
9474 * lra.c: Include function-abi.h.
9475 (initialize_lra_reg_info_element): Don't initialize the fields above.
9476 (lra): Use crtl->abi to test whether the current function needs to
9477 save a register in the prologue. Remove special pre-inheritance
9478 lra_create_live_ranges pass for flag_ipa_ra.
9479 * lra-assigns.c: Include function-abi.h
9480 (find_hard_regno_for_1): Use crtl->abi to test whether the current
9481 function needs to save a register in the prologue.
9482 (lra_assign): Assert that registers aren't allocated to a
9483 conflicting register, rather than checking only for overlaps
9484 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
9485 and for registers that are not live across a call.
9486 * lra-constraints.c (last_call_for_abi): New variable.
9487 (full_and_partial_call_clobbers): Likewise.
9488 (setup_next_usage_insn): Remove the register from
9489 full_and_partial_call_clobbers.
9490 (need_for_call_save_p): Use call_clobbered_in_region_p to test
9491 whether the register needs a caller save.
9492 (need_for_split_p): Use full_and_partial_reg_clobbers instead
9493 of call_used_or_fixed_regs.
9494 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
9495 full_and_partial_call_clobbers.
9496 * lra-lives.c (check_pseudos_live_through_calls): Replace
9497 last_call_used_reg_set and call_insn arguments with an abi argument.
9498 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
9499 as the set of conflicting registers.
9500 (calls_have_same_clobbers_p): Delete.
9501 (process_bb_lives): Track the ABI of the last call instead of an
9502 insn/HARD_REG_SET pair. Update calls to
9503 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
9504 the set of registers that could be clobbered by an EH edge.
9505 Include partially-clobbered as well as fully-clobbered registers.
9506 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
9507 * lra-remat.c: Include function-abi.h.
9508 (call_used_regs_arr_len, call_used_regs_arr): Delete.
9509 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
9510 registers and bitmap_view to combine them into dead_regs.
9511 (call_used_input_regno_present_p): Take a function_abi argument
9512 and use it to test whether a register is call-clobbered.
9513 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
9514 call insn target. Update tje call to call_used_input_regno_present_p.
9515 (do_remat): Likewise.
9516 (lra_remat): Remove the initialization of call_used_regs_arr_len
9517 and call_used_regs_arr.
9518
9519 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9520
9521 * loop-iv.c: Include regs.h and function-abi.h.
9522 (simplify_using_initial_values): Use insn_callee_abi to get the
9523 ABI of the call insn target. Conservatively assume that
9524 partially-clobbered registers are altered.
9525
9526 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9527
9528 * function-abi.h (call_clobbers_in_region): Declare.
9529 (call_clobbered_in_region_p): New function.
9530 * function-abi.cc (call_clobbers_in_region): Likewise.
9531 * ira-int.h: Include function-abi.h.
9532 (ira_allocno::crossed_calls_abis): New field.
9533 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
9534 (ira_need_caller_save_regs): New function.
9535 (ira_need_caller_save_p): Likewise.
9536 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
9537 of call_used_or_fixed_regs.
9538 (do_reload): Use crtl->abi to test whether the current function
9539 needs to save a register in the prologue. Count registers that
9540 need to be saved rather than registers that don't.
9541 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
9542 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9543 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
9544 (propagate_some_info_from_allocno): Likewise.
9545 (copy_info_to_removed_store_destinations): Likewise.
9546 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
9547 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
9548 (ira_build): Use ira_need_caller_save_regs instead of
9549 call_used_or_fixed_regs.
9550 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
9551 whether the current function would need to save a register
9552 before using it.
9553 (calculate_spill_cost): Likewise.
9554 (allocno_reload_assign): Use ira_need_caller_save_regs and
9555 ira_need_caller_save_p instead of call_used_or_fixed_regs.
9556 * ira-conflicts.c (ira_build_conflicts): Use
9557 ira_need_caller_save_regs rather than call_used_or_fixed_regs
9558 as the set of call-clobbered registers. Remove the
9559 call_used_or_fixed_regs mask from the calculation of
9560 temp_hard_reg_set and mask its use instead. Remove special
9561 handling of partially-clobbered registers.
9562 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
9563 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
9564 calculate the set of conflicting registers for calls that
9565 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
9566 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
9567 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9568 Use eh_edge_abi to calculate the set of registers that could
9569 be clobbered by an EH edge. Include partially-clobbered as
9570 well as fully-clobbered registers.
9571
9572 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9573
9574 * haifa-sched.c: Include function-abi.h.
9575 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
9576 the function would need to save a register before using it.
9577
9578 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9579
9580 * gcse.c: Include function-abi.h.
9581 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
9582 the call insn target. Invalidate partially call-clobbered
9583 registers as well as fully call-clobbered ones.
9584
9585 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9586
9587 * function.c (aggregate_value_p): Work out which ABI the
9588 function is using before testing which registers are at least
9589 partly preserved by a call.
9590
9591 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9592
9593 * early-remat.c: Include regs.h and function-abi.h.
9594 (early_remat::maybe_add_candidate): Don't check for call-clobbered
9595 registers here.
9596 (early_remat::restrict_remat_for_unavail_regs): New function.
9597 (early_remat::restrict_remat_for_call): Likewise.
9598 (early_remat::process_block): Before calling emit_remat_insns
9599 for a previous call in the block, invalidate any candidates
9600 that would clobber call-preserved registers.
9601 (early_remat::emit_remat_insns_for_block): Likewise for the
9602 final call in a block. Do the same thing for live-in registers
9603 when calling emit_remat_insns at the head of a block.
9604
9605 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9606
9607 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
9608 whether the current function needs to save at least part of a
9609 register before using it.
9610 (df_get_exit_block_use_set): Likewise for epilogue restores.
9611
9612 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9613
9614 * df-problems.c: Include regs.h and function-abi.h.
9615 (df_rd_problem_data): Rename sparse_invalidated_by_call to
9616 sparse_invalidated_by_eh and dense_invalidated_by_call to
9617 dense_invalidated_by_eh.
9618 (df_print_bb_index): Update accordingly.
9619 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
9620 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
9621 that are clobbered by an EH edge. Clobber partially-clobbered
9622 registers as well as fully-clobbered ones.
9623 (df_md_confluence_n): Likewise.
9624 (df_rd_local_compute): Likewise. Update for changes to
9625 df_rd_problem_data.
9626 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
9627 of registers that are clobbered by an EH edge. Includde partially-
9628 clobbered registers as well as fully-clobbered ones.
9629
9630 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9631
9632 * cselib.c (cselib_process_insn): If we know what mode a
9633 register was set in, check whether it is clobbered in that
9634 mode by a call. Only fall back to reg_raw_mode if that fails.
9635
9636 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9637
9638 * cse.c: Include regs.h and function-abi.h.
9639 (invalidate_for_call): Take the call insn as an argument.
9640 Use insn_callee_abi to get the ABI of the call and invalidate
9641 partially clobbered registers as well as fully clobbered ones.
9642 (cse_insn): Update call accordingly.
9643
9644 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9645
9646 * combine.c: Include function-abi.h.
9647 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
9648 of the target of call insns. Invalidate partially-clobbered
9649 registers as well as fully-clobbered ones.
9650
9651 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9652
9653 * cfgloopanal.c: Include regs.h and function-abi.h.
9654 (init_set_costs): Use default_function_abi to test whether
9655 a general register is call-clobbered.
9656
9657 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9658
9659 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
9660 instead of the call-clobbered sets.
9661
9662 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9663
9664 * caller-save.c (setup_save_areas): Remove redundant |s of
9665 fixed_reg_set.
9666 (save_call_clobbered_regs): Likewise. Use the call ABI rather
9667 than call_used_or_fixed_regs to decide whether a REG_RETURNED
9668 value is useful.
9669
9670 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9671
9672 * rtl.h (predefined_function_abi): Declare.
9673 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9674 instead of a boolean call_save flag.
9675 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
9676 accordingly.
9677 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9678 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9679 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
9680 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9681 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9682 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
9683 * reginfo.c (init_reg_modes_target): Likewise.
9684 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9685 instead of a boolean call_save flag.
9686 * targhooks.c: Include function-abi.h.
9687 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
9688 using eh_edge_abi to choose the mode.
9689
9690 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9691
9692 * target.def (hard_regno_call_part_clobbered): Take an ABI
9693 identifier instead of an rtx_insn.
9694 * doc/tm.texi: Regenerate.
9695 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
9696 (hook_bool_uint_uint_mode_false): New function.
9697 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
9698 (hook_bool_uint_uint_mode_false): New function.
9699 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9700 Take an ABI identifier instead of an rtx_insn.
9701 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
9702 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
9703 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
9704 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
9705 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
9706 Likewise.
9707 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
9708 * cselib.c: Include function-abi.h.
9709 (cselib_process_insn): Update call to
9710 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9711 to get the appropriate ABI identifier.
9712 * function-abi.cc (predefined_function_abi::initialize): Update call
9713 to targetm.hard_regno_call_part_clobbered.
9714 * ira-conflicts.c (ira_build_conflicts): Likewise.
9715 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9716 * lra-constraints.c: Include function-abi.h.
9717 (need_for_call_save_p): Update call to
9718 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9719 to get the appropriate ABI identifier.
9720 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9721 * regcprop.c (copyprop_hardreg_forward_1): Update call
9722 to targetm.hard_regno_call_part_clobbered.
9723 * reginfo.c (choose_hard_reg_mode): Likewise.
9724 * regrename.c (check_new_reg_p): Likewise.
9725 * reload.c (find_equiv_reg): Likewise.
9726 * reload1.c (emit_reload_insns): Likewise.
9727 * sched-deps.c: Include function-abi.h.
9728 (deps_analyze_insn): Update call to
9729 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9730 to get the appropriate ABI identifier.
9731 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
9732 call to targetm.hard_regno_call_part_clobbered.
9733 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
9734
9735 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9736
9737 * config/i386/i386.c: Include function-abi.h.
9738 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
9739 if they preserve some 256-bit or 512-bit SSE registers.
9740
9741 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9742
9743 * target.def (insn_callee_abi): New hook.
9744 (remove_extra_call_preserved_regs): Delete.
9745 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
9746 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9747 * doc/tm.texi: Regenerate.
9748 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
9749 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
9750 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
9751 insn argument.
9752 (aarch64_remove_extra_call_preserved_regs): Delete.
9753 (aarch64_insn_callee_abi): New function.
9754 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9755 (TARGET_INSN_CALLEE_ABI): New macro.
9756 * rtl.h (get_call_fndecl): Declare.
9757 (cgraph_rtl_info): Fix formatting. Tweak comment for
9758 function_used_regs. Remove function_used_regs_valid.
9759 * rtlanal.c (get_call_fndecl): Moved from final.c
9760 * function-abi.h (insn_callee_abi): Declare.
9761 (target_function_abi_info): Mention insn_callee_abi.
9762 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
9763 way to get_call_reg_set_usage did.
9764 (insn_callee_abi): New function.
9765 * regs.h (get_call_reg_set_usage): Delete.
9766 * final.c: Include function-abi.h.
9767 (collect_fn_hard_reg_usage): Add fixed and stack registers to
9768 function_used_regs before the main loop rather than afterwards.
9769 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
9770 if function_used_regs ends up not being useful.
9771 (get_call_fndecl): Move to rtlanal.c
9772 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
9773 * caller-save.c: Include function-abi.h.
9774 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
9775 instead of get_call_reg_set_usage.
9776 * cfgcleanup.c: Include function-abi.h.
9777 (old_insns_match_p): Use insn_callee_abi instead of
9778 get_call_reg_set_usage.
9779 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
9780 a tree.
9781 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
9782 function_used_regs.
9783 * df-scan.c: Include function-abi.h.
9784 (df_get_call_refs): Use insn_callee_abi instead of
9785 get_call_reg_set_usage.
9786 * ira-lives.c: Include function-abi.h.
9787 (process_bb_node_lives): Use insn_callee_abi instead of
9788 get_call_reg_set_usage.
9789 * lra-lives.c: Include function-abi.h.
9790 (process_bb_lives): Use insn_callee_abi instead of
9791 get_call_reg_set_usage.
9792 * postreload.c: Include function-abi.h.
9793 (reload_combine): Use insn_callee_abi instead of
9794 get_call_reg_set_usage.
9795 * regcprop.c: Include function-abi.h.
9796 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
9797 get_call_reg_set_usage.
9798 * resource.c: Include function-abi.h.
9799 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
9800 instead of get_call_reg_set_usage.
9801 * var-tracking.c: Include function-abi.h.
9802 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
9803 get_call_reg_set_usage.
9804
9805 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9806
9807 * target.def (fntype_abi): New target hook.
9808 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
9809 * doc/tm.texi: Regenerate.
9810 * target.h (predefined_function_abi): Declare.
9811 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
9812 if defined.
9813 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
9814 * config/aarch64/aarch64.c: Include function-abi.h.
9815 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
9816 (TARGET_FNTYPE_ABI): Define.
9817
9818 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9819
9820 * Makefile.in (OBJS): Add function-abi.o.
9821 (GTFILES): Add function-abi.h.
9822 * function-abi.cc: New file.
9823 * function-abi.h: Likewise.
9824 * emit-rtl.h (rtl_data::abi): New field.
9825 * function.c: Include function-abi.h.
9826 (prepare_function_start): Initialize crtl->abi.
9827 * read-rtl-function.c: Include regs.h and function-abi.h.
9828 (read_rtl_function_body): Initialize crtl->abi.
9829 (read_rtl_function_body_from_file_range): Likewise.
9830 * reginfo.c: Include function-abi.h.
9831 (init_reg_sets_1): Initialize default_function_abi.
9832 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
9833 when making a register global.
9834 * target-globals.h (this_target_function_abi_info): Declare.
9835 (target_globals::function_abi_info): New field.
9836 (restore_target_globals): Copy it.
9837 * target-globals.c: Include function-abi.h.
9838 (default_target_globals): Initialize the function_abi_info field.
9839 (target_globals): Allocate it.
9840 (save_target_globals): Free it.
9841
9842 2019-09-30 Nick Clifton <nickc@redhat.com>
9843
9844 PR target/85978
9845 * config/frv/frv.c (frv_register_move_cost): Add break statements
9846 to avoid falling through to the wrong cases. Tidy code.
9847
9848 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9849
9850 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9851 For multi-registers modes, test how big each register part is.
9852
9853 2019-09-30 Nick Clifton <nickc@redhat.com>
9854
9855 PR target/59205
9856 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
9857 (TARGET_ASM_SELECT_SECTION): Remove definition.
9858 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
9859
9860 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9861
9862 * emit-rtl.c (init_raw_REG): New function.
9863 (gen_raw_REG): Use init_raw_REG.
9864 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
9865 macros.
9866 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
9867 * rtl.h (rtx_init): New function.
9868 (rtx_alloca): New function.
9869 (init_raw_REG): New function.
9870 (alloca_raw_REG): New macro.
9871
9872 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
9873
9874 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
9875 (pcrel_local_address): Replace pcrel_address predicate, use the
9876 new function address_to_insn_form.
9877 (pcrel_external_address): Replace with new implementation using
9878 address_to_insn_form..
9879 (prefixed_mem_operand): Delete predicate which is now unused.
9880 (pcrel_external_mem_operand): Delete predicate which is now
9881 unused.
9882 * config/rs6000/rs6000-protos.h (enum insn_form): New
9883 enumeration.
9884 (enum non_prefixed_form): New enumeration.
9885 (address_to_insn_form): New declaration.
9886 (prefixed_load_p): New declaration.
9887 (prefixed_store_p): New declaration.
9888 (prefixed_paddi_p): New declaration.
9889 (rs6000_asm_output_opcode): New declaration.
9890 (rs6000_final_prescan_insn): Move declaration and update calling
9891 signature.
9892 (address_is_prefixed): New helper inline function.
9893 * config/rs6000/rs6000.c(print_operand_address): Check for either
9894 PC-relative local symbols or PC-relative external symbols.
9895 (rs6000_emit_move): Support loading PC-relative addresses.
9896 (mode_supports_prefixed_address_p): Delete, no longer used.
9897 (rs6000_prefixed_address_mode_p): Delete, no longer used.
9898 (address_to_insn_form): New function to decode an address format.
9899 (reg_to_non_prefixed): New function to identify what the
9900 non-prefixed memory instruction format is for a register.
9901 (prefixed_load_p): New function to identify prefixed loads.
9902 (prefixed_store_p): New function to identify prefixed stores.
9903 (prefixed_paddi_p): New function to identify prefixed load
9904 immediates.
9905 (next_insn_prefixed_p): New static state variable.
9906 (rs6000_final_prescan_insn): New function to determine if an insn
9907 uses a prefixed instruction.
9908 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
9909 prefixed instruction.
9910 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
9911 (ASM_OUTPUT_OPCODE): New target hook.
9912 * config/rs6000/rs6000.md (prefixed): New insn attribute for
9913 prefixed instructions.
9914 (prefixed_length): New insn attribute for the size of prefixed
9915 instructions.
9916 (non_prefixed_length): New insn attribute for the size of
9917 non-prefixed instructions.
9918 (pcrel_local_addr): New insn to load up a local PC-relative
9919 address.
9920 (pcrel_extern_addr): New insn to load up an external PC-relative
9921 address.
9922 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
9923 GPR and loading a 128-bit floating point type to a GPR.
9924
9925 2019-09-30 Richard Biener <rguenther@suse.de>
9926
9927 * gimple.c (gimple_get_lhs): For PHIs return the result.
9928 * tree-vectorizer.h (vectorizable_live_operation): Also get the
9929 SLP instance as argument.
9930 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
9931 double-reduction PHIs with vectorizable_lc_phi.
9932 (vect_analyze_loop_operations): Adjust.
9933 (vect_create_epilog_for_reduction): Remove all code not dealing
9934 with reduction LC PHI or epilogue generation.
9935 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
9936 for live stmts of reductions.
9937 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
9938 do not handle defs that are not vect_internal_def.
9939 (can_vectorize_live_stmts): Adjust.
9940 (vect_analyze_stmt): When the vectorized stmt defined a value
9941 used on backedges adjust the backedge uses of vectorized PHIs.
9942
9943 2019-09-30 Martin Jambor <mjambor@suse.cz>
9944
9945 PR ipa/91853
9946 * tree-inline.c (force_value_to_type): New function.
9947 (setup_one_parameter): Use force_value_to_type to convert type.
9948 * tree-inline.c (force_value_to_type): Declare.
9949 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
9950 with register type mismatches.
9951
9952 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
9953
9954 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
9955 32-bit PowerPC.
9956 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
9957 * config/rs6000/t-freebsd64: Make use of the above define and build
9958 the 32-bit libraries with secure-plt.
9959
9960 2019-09-30 Jakub Jelinek <jakub@redhat.com>
9961
9962 PR target/91931
9963 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
9964 gen_int_mode instead of GEN_INT.
9965
9966 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
9967
9968 * config/darwin.c (gen_macho_low): Amend to include the mode
9969 argument.
9970 (machopic_indirect_data_reference): Amend gen_macho_low call
9971 to include mode argument
9972 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
9973 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
9974 the macho_high expander and two define_insn entries.
9975
9976 2019-09-29 Jakub Jelinek <jakub@redhat.com>
9977
9978 PR bootstrap/90543
9979 * optc-save-gen.awk: Fix up printing string option differences.
9980
9981 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9982
9983 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9984 vec_perm cost to 1 for non-Power7 VSX architectures.
9985
9986 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9987
9988 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
9989 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
9990 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
9991
9992 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
9993
9994 * config/darwin.c (gen_macho_high): Amend to include the mode
9995 argument.
9996 (machopic_indirect_data_reference): Amend gen_macho_high call
9997 to include mode argument.
9998 (machopic_legitimize_pic_address): Likewise.
9999 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10000 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10001 the macho_high expander and two define_insn entries.
10002
10003 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10004
10005 PR target/86805
10006 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10007
10008 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10009
10010 PR target/80672
10011 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10012 std::string::compare instead of std::string::find.
10013
10014 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10015
10016 * configure: Regenerate.
10017
10018 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10019
10020 PR middle-end/91920
10021 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10022 variables as shared.
10023
10024 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10025
10026 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10027 replaces the expander and two define_insn entries.
10028 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10029 call.
10030 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10031
10032 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10033
10034 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10035 (fibonacci_heap::nodes): Likewise.
10036 (fibonacci_heap::min_key): Likewise.
10037 (fibonacci_heap::min): Likewise.
10038
10039 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10040
10041 * cgraph.c (cgraph_node::get_fun): Make const.
10042 * cgraph.h (cgraph_node::get_fun): Likewise.
10043
10044 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10045
10046 PR target/91919
10047 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10048 of SImode MULT.
10049
10050 2019-09-27 Richard Biener <rguenther@suse.de>
10051
10052 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10053 (STMT_VINFO_REDUC_FN): Likewise.
10054 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10055 STMT_VINFO_REDUC_FN.
10056 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10057 for condition reductions.
10058 (vect_create_epilog_for_reduction): Compute all required state
10059 from the stmt to be vectorized.
10060 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10061 invocation and remove then dead code. For single def-use chains
10062 record only a single vector stmt.
10063
10064 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10065
10066 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10067 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10068 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10069 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10070 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10071 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10072 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10073 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10074 (aarch64_general_builtin_rsqrt): Declare.
10075 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10076 New function.
10077 (aarch64_mangle_builtin_type): Rename to...
10078 (aarch64_general_mangle_builtin_type): ...this.
10079 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10080 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10081 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10082 aarch64_general_add_builtin instead of add_builtin_function.
10083 (aarch64_init_builtins): Rename to...
10084 (aarch64_general_init_builtins): ...this. Use
10085 aarch64_general_add_builtin instead of add_builtin_function.
10086 (aarch64_builtin_decl): Rename to...
10087 (aarch64_general_builtin_decl): ...this and remove the unused
10088 arguments.
10089 (aarch64_expand_builtin): Rename to...
10090 (aarch64_general_expand_builtin): ...this and remove the unused
10091 arguments.
10092 (aarch64_builtin_rsqrt): Rename to...
10093 (aarch64_general_builtin_rsqrt): ...this.
10094 (aarch64_fold_builtin): Rename to...
10095 (aarch64_general_fold_builtin): ...this. Take the function subcode
10096 and return type as arguments. Remove the "ignored" argument.
10097 (aarch64_gimple_fold_builtin): Rename to...
10098 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10099 subcode and gcall as arguments, and return the new function call.
10100 * config/aarch64/aarch64.c (aarch64_init_builtins)
10101 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10102 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10103 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10104 instead of aarch64_builtin_rsqrt.
10105 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10106 instead of aarch64_mangle_builtin_type.
10107
10108 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10109
10110 * target.def (check_builtin_call): New target hook.
10111 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10112 * doc/tm.texi: Regenerate.
10113
10114 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10115
10116 PR tree-optimization/91909
10117 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10118 reduc_index parameter. When handling COND_REDUCTION, make sure
10119 that the reduction phi operand is in the correct arm of the
10120 VEC_COND_EXPR.
10121 (vectorizable_reduction): Pass reduc_index to the above.
10122
10123 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
10124
10125 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10126 New combine pattern.
10127
10128 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
10129
10130 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10131 loop instruction into new basic block before the loop when basic
10132 block that precedes the loop is empty.
10133
10134 2019-09-26 Jakub Jelinek <jakub@redhat.com>
10135
10136 * function.c (gimplify_parameters): Use build_clobber function.
10137 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10138 * tree-inline.c (expand_call_inline): Likewise.
10139 * tree-sra.c (clobber_subtree): Likewise.
10140 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
10141 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
10142 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
10143 lower_omp_target): Likewise.
10144 * omp-expand.c (expand_omp_for_generic): Likewise.
10145 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
10146
10147 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
10148
10149 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
10150 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
10151 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
10152 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
10153 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
10154 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
10155 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
10156 LD_ELEMREV_V16QI): Use the PURE attribute.
10157
10158 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
10159
10160 * config/rs6000/darwin.md: Replace the expanders for
10161 load_macho_picbase and reload_macho_picbase with use of '@'
10162 and <mode> in their respective define_insns.
10163 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
10164 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
10165 Pmode to gen_load_macho_picbase.
10166 * config/rs6000/rs6000.md: Likewise.
10167
10168 2019-09-25 Richard Biener <rguenther@suse.de>
10169
10170 PR tree-optimization/91896
10171 * tree-vect-loop.c (vectorizable_reduction): The single
10172 def-use cycle optimization cannot apply when there's more
10173 than one pattern stmt involved.
10174
10175 2019-09-26 Richard Biener <rguenther@suse.de>
10176
10177 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
10178 loop-closed PHIs that are vect_internal_def.
10179 (vect_create_epilog_for_reduction): Exit early for nested cycles.
10180 Simplify.
10181 (vectorizable_lc_phi): New.
10182 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
10183 (vect_transform_stmt): Likewise.
10184 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
10185 (vectorizable_lc_phi): Declare.
10186
10187 2019-09-26 Richard Biener <rguenther@suse.de>
10188
10189 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
10190 vectorizable_reduction for vect_double_reduction_def.
10191 (vect_transform_loop): Likewise.
10192 (vect_create_epilog_for_reduction): Move double-reduction
10193 PHI creation and preheader argument setting of PHIs ...
10194 (vectorizable_reduction): ... here. Also process
10195 vect_double_reduction_def PHIs, creating the vectorized
10196 PHI nodes, remembering the scalar adjustment computed for
10197 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
10198 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
10199 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
10200 Initialize STMT_VINFO_REDUC_CODE.
10201 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
10202 (_stmt_vec_info::reduc_code): Likewise.
10203 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
10204 (STMT_VINFO_REDUC_CODE): Likewise.
10205
10206 2019-09-26 Matt Turner <mattst88@gmail.com>
10207
10208 PR driver/69471
10209 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
10210 (mtune=): Add Negative(mtune=).
10211 (mcpu=): Add Negative(mcpu=).
10212 * config/arm/arm.opt: Likewise.
10213
10214 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10215
10216 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10217 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
10218 Define.
10219 * config/arm/arm_acle.h: Define builtins for the above.
10220 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
10221 (simd32_op): Handle the above.
10222 * config/arm/unspecs.md: Define unspecs for the above.
10223
10224 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10225
10226 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10227 (arm_<sup>xtb16): Likewise.
10228 (arm_usada8): Likewise.
10229 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
10230 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
10231 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
10232 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
10233 __sxtb16, __uxtab16, __uxtb16): Define.
10234 * config/arm/arm_acle_builtins.def: Define builtins for the above.
10235 * config/arm/unspecs.md: Define unspecs for the above.
10236 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
10237 (USXTB16): Likewise.
10238 (simd32_op): New int_attribute.
10239 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
10240 * doc/sourcebuild.exp (arm_simd32_ok): Document.
10241
10242 2019-09-26 Martin Jambor <mjambor@suse.cz>
10243
10244 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
10245 internal_error.
10246
10247 2019-09-26 Martin Jambor <mjambor@suse.cz>
10248
10249 * ipa-sra.c (process_scan_results): Fix continue condition.
10250
10251 2019-09-26 Martin Liska <mliska@suse.cz>
10252
10253 PR tree-optimization/91885
10254 * tree-vectorizer.c (try_vectorize_loop_1): Add
10255 TODO_update_ssa_only_virtuals similarly to what slp pass does.
10256
10257 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
10258
10259 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
10260 aarch64_plus_immediate rather than aarch64_uimm12_shift
10261 to test for valid PLUS immediates.
10262
10263 2019-09-25 Martin Jambor <mjambor@suse.cz>
10264
10265 * tree-sra.c (no_accesses_p): Remove.
10266 (no_accesses_representant): Likewise.
10267
10268 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10269
10270 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
10271 consistenly.
10272 (vaba_s16): Likewise.
10273 (vaba_s32): Likewise.
10274 (vaba_u8): Likewise.
10275 (vaba_u16): Likewise.
10276 (vaba_u32): Likewise.
10277 (vabal_high_s8): Likewise.
10278 (vabal_high_s16): Likewise.
10279 (vabal_high_s32): Likewise.
10280 (vabal_high_u8): Likewise.
10281 (vabal_high_u16): Likewise.
10282 (vabal_high_u32): Likewise.
10283 (vabal_s8): Likewise.
10284 (vabal_s16): Likewise.
10285 (vabal_s32): Likewise.
10286 (vabal_u8): Likewise.
10287 (vabal_u16): Likewise.
10288 (vabal_u32): Likewise.
10289 (vabaq_s8): Likewise.
10290 (vabaq_s16): Likewise.
10291 (vabaq_s32): Likewise.
10292 (vabaq_u8): Likewise.
10293 (vabaq_u16): Likewise.
10294 (vabaq_u32): Likewise.
10295 (vabd_s8): Likewise.
10296 (vabd_s16): Likewise.
10297 (vabd_s32): Likewise.
10298 (vabd_u8): Likewise.
10299 (vabd_u16): Likewise.
10300 (vabd_u32): Likewise.
10301 (vabdl_high_s8): Likewise.
10302 (vabdl_high_s16): Likewise.
10303 (vabdl_high_s32): Likewise.
10304 (vabdl_high_u8): Likewise.
10305 (vabdl_high_u16): Likewise.
10306 (vabdl_high_u32): Likewise.
10307 (vabdl_s8): Likewise.
10308 (vabdl_s16): Likewise.
10309 (vabdl_s32): Likewise.
10310 (vabdl_u8): Likewise.
10311 (vabdl_u16): Likewise.
10312 (vabdl_u32): Likewise.
10313 (vabdq_s8): Likewise.
10314 (vabdq_s16): Likewise.
10315 (vabdq_s32): Likewise.
10316 (vabdq_u8): Likewise.
10317 (vabdq_u16): Likewise.
10318 (vabdq_u32): Likewise.
10319 (vaddlv_s8): Likewise.
10320 (vaddlv_s16): Likewise.
10321 (vaddlv_u8): Likewise.
10322 (vaddlv_u16): Likewise.
10323 (vaddlvq_s8): Likewise.
10324 (vaddlvq_s16): Likewise.
10325 (vaddlvq_s32): Likewise.
10326 (vaddlvq_u8): Likewise.
10327 (vaddlvq_u16): Likewise.
10328 (vaddlvq_u32): Likewise.
10329 (vcvtx_f32_f64): Likewise.
10330 (vcvtx_high_f32_f64): Likewise.
10331 (vcvtxd_f32_f64): Likewise.
10332 (vmla_n_f32): Likewise.
10333 (vmla_n_s16): Likewise.
10334 (vmla_n_s32): Likewise.
10335 (vmla_n_u16): Likewise.
10336 (vmla_n_u32): Likewise.
10337 (vmla_s8): Likewise.
10338 (vmla_s16): Likewise.
10339 (vmla_s32): Likewise.
10340 (vmla_u8): Likewise.
10341 (vmla_u16): Likewise.
10342 (vmla_u32): Likewise.
10343 (vmlal_high_n_s16): Likewise.
10344 (vmlal_high_n_s32): Likewise.
10345 (vmlal_high_n_u16): Likewise.
10346 (vmlal_high_n_u32): Likewise.
10347 (vmlal_high_s8): Likewise.
10348 (vmlal_high_s16): Likewise.
10349 (vmlal_high_s32): Likewise.
10350 (vmlal_high_u8): Likewise.
10351 (vmlal_high_u16): Likewise.
10352 (vmlal_high_u32): Likewise.
10353 (vmlal_n_s16): Likewise.
10354 (vmlal_n_s32): Likewise.
10355 (vmlal_n_u16): Likewise.
10356 (vmlal_n_u32): Likewise.
10357 (vmlal_s8): Likewise.
10358 (vmlal_s16): Likewise.
10359 (vmlal_s32): Likewise.
10360 (vmlal_u8): Likewise.
10361 (vmlal_u16): Likewise.
10362 (vmlal_u32): Likewise.
10363 (vmlaq_n_f32): Likewise.
10364 (vmlaq_n_s16): Likewise.
10365 (vmlaq_n_s32): Likewise.
10366 (vmlaq_n_u16): Likewise.
10367 (vmlaq_n_u32): Likewise.
10368 (vmlaq_s8): Likewise.
10369 (vmlaq_s16): Likewise.
10370 (vmlaq_s32): Likewise.
10371 (vmlaq_u8): Likewise.
10372 (vmlaq_u16): Likewise.
10373 (vmlaq_u32): Likewise.
10374 (vmls_n_f32): Likewise.
10375 (vmls_n_s16): Likewise.
10376 (vmls_n_s32): Likewise.
10377 (vmls_n_u16): Likewise.
10378 (vmls_n_u32): Likewise.
10379 (vmls_s8): Likewise.
10380 (vmls_s16): Likewise.
10381 (vmls_s32): Likewise.
10382 (vmls_u8): Likewise.
10383 (vmls_u16): Likewise.
10384 (vmls_u32): Likewise.
10385 (vmlsl_high_n_s16): Likewise.
10386 (vmlsl_high_n_s32): Likewise.
10387 (vmlsl_high_n_u16): Likewise.
10388 (vmlsl_high_n_u32): Likewise.
10389 (vmlsl_high_s8): Likewise.
10390 (vmlsl_high_s16): Likewise.
10391 (vmlsl_high_s32): Likewise.
10392 (vmlsl_high_u8): Likewise.
10393 (vmlsl_high_u16): Likewise.
10394 (vmlsl_high_u32): Likewise.
10395 (vmlsl_n_s16): Likewise.
10396 (vmlsl_n_s32): Likewise.
10397 (vmlsl_n_u16): Likewise.
10398 (vmlsl_n_u32): Likewise.
10399 (vmlsl_s8): Likewise.
10400 (vmlsl_s16): Likewise.
10401 (vmlsl_s32): Likewise.
10402 (vmlsl_u8): Likewise.
10403 (vmlsl_u16): Likewise.
10404 (vmlsl_u32): Likewise.
10405 (vmlsq_n_f32): Likewise.
10406 (vmlsq_n_s16): Likewise.
10407 (vmlsq_n_s32): Likewise.
10408 (vmlsq_n_u16): Likewise.
10409 (vmlsq_n_u32): Likewise.
10410 (vmlsq_s8): Likewise.
10411 (vmlsq_s16): Likewise.
10412 (vmlsq_s32): Likewise.
10413 (vmlsq_u8): Likewise.
10414 (vmlsq_u16): Likewise.
10415 (vmlsq_u32): Likewise.
10416 (vmovl_high_s8): Likewise.
10417 (vmovl_high_s16): Likewise.
10418 (vmovl_high_s32): Likewise.
10419 (vmovl_high_u8): Likewise.
10420 (vmovl_high_u16): Likewise.
10421 (vmovl_high_u32): Likewise.
10422 (vmovl_s8): Likewise.
10423 (vmovl_s16): Likewise.
10424 (vmovl_s32): Likewise.
10425 (vmovl_u8): Likewise.
10426 (vmovl_u16): Likewise.
10427 (vmovl_u32): Likewise.
10428 (vmovn_high_s16): Likewise.
10429 (vmovn_high_s32): Likewise.
10430 (vmovn_high_s64): Likewise.
10431 (vmovn_high_u16): Likewise.
10432 (vmovn_high_u32): Likewise.
10433 (vmovn_high_u64): Likewise.
10434 (vmovn_s16): Likewise.
10435 (vmovn_s32): Likewise.
10436 (vmovn_s64): Likewise.
10437 (vmovn_u16): Likewise.
10438 (vmovn_u32): Likewise.
10439 (vmovn_u64): Likewise.
10440 (vmull_high_n_s16): Likewise.
10441 (vmull_high_n_s32): Likewise.
10442 (vmull_high_n_u16): Likewise.
10443 (vmull_high_n_u32): Likewise.
10444 (vmull_high_p8): Likewise.
10445 (vmull_high_s8): Likewise.
10446 (vmull_high_s16): Likewise.
10447 (vmull_high_s32): Likewise.
10448 (vmull_high_u8): Likewise.
10449 (vmull_high_u16): Likewise.
10450 (vmull_high_u32): Likewise.
10451 (vmull_n_s16): Likewise.
10452 (vmull_n_s32): Likewise.
10453 (vmull_n_u16): Likewise.
10454 (vmull_n_u32): Likewise.
10455 (vmull_p8): Likewise.
10456 (vmull_s8): Likewise.
10457 (vmull_s16): Likewise.
10458 (vmull_s32): Likewise.
10459 (vmull_u8): Likewise.
10460 (vmull_u16): Likewise.
10461 (vmull_u32): Likewise.
10462 (vpadal_s8): Likewise.
10463 (vpadal_s16): Likewise.
10464 (vpadal_s32): Likewise.
10465 (vpadal_u8): Likewise.
10466 (vpadal_u16): Likewise.
10467 (vpadal_u32): Likewise.
10468 (vpadalq_s8): Likewise.
10469 (vpadalq_s16): Likewise.
10470 (vpadalq_s32): Likewise.
10471 (vpadalq_u8): Likewise.
10472 (vpadalq_u16): Likewise.
10473 (vpadalq_u32): Likewise.
10474 (vpaddl_s8): Likewise.
10475 (vpaddl_s16): Likewise.
10476 (vpaddl_s32): Likewise.
10477 (vpaddl_u8): Likewise.
10478 (vpaddl_u16): Likewise.
10479 (vpaddl_u32): Likewise.
10480 (vpaddlq_s8): Likewise.
10481 (vpaddlq_s16): Likewise.
10482 (vpaddlq_s32): Likewise.
10483 (vpaddlq_u8): Likewise.
10484 (vpaddlq_u16): Likewise.
10485 (vpaddlq_u32): Likewise.
10486 (vpaddq_s8): Likewise.
10487 (vpaddq_s16): Likewise.
10488 (vpaddq_s32): Likewise.
10489 (vpaddq_s64): Likewise.
10490 (vpaddq_u8): Likewise.
10491 (vpaddq_u16): Likewise.
10492 (vpaddq_u32): Likewise.
10493 (vpaddq_u64): Likewise.
10494 (vqdmulh_n_s16): Likewise.
10495 (vqdmulh_n_s32): Likewise.
10496 (vqdmulhq_n_s16): Likewise.
10497 (vqdmulhq_n_s32): Likewise.
10498 (vqmovn_high_s16): Likewise.
10499 (vqmovn_high_s32): Likewise.
10500 (vqmovn_high_s64): Likewise.
10501 (vqmovn_high_u16): Likewise.
10502 (vqmovn_high_u32): Likewise.
10503 (vqmovn_high_u64): Likewise.
10504 (vqmovun_high_s16): Likewise.
10505 (vqmovun_high_s32): Likewise.
10506 (vqmovun_high_s64): Likewise.
10507 (vqrdmulh_n_s16): Likewise.
10508 (vqrdmulh_n_s32): Likewise.
10509 (vqrdmulhq_n_s16): Likewise.
10510 (vqrdmulhq_n_s32): Likewise.
10511 (vrsqrte_u32): Likewise.
10512 (vrsqrteq_u32): Likewise.
10513 (vtst_p8): Likewise.
10514 (vtst_p16): Likewise.
10515 (vtst_p64): Likewise.
10516 (vtstq_p8): Likewise.
10517 (vtstq_p16): Likewise.
10518 (vtstq_p64): Likewise.
10519 (vaddlv_s32): Likewise.
10520 (vaddlv_u32): Likewise.
10521 (vqtbl1_p8): Likewise.
10522 (vqtbl1_s8): Likewise.
10523 (vqtbl1_u8): Likewise.
10524 (vqtbl1q_p8): Likewise.
10525 (vqtbl1q_s8): Likewise.
10526 (vqtbl1q_u8): Likewise.
10527 (vqtbx1_s8): Likewise.
10528 (vqtbx1_u8): Likewise.
10529 (vqtbx1_p8): Likewise.
10530 (vqtbx1q_s8): Likewise.
10531 (vqtbx1q_u8): Likewise.
10532 (vqtbx1q_p8): Likewise.
10533 (vtbl1_s8): Likewise.
10534 (vtbl1_u8): Likewise.
10535 (vtbl1_p8): Likewise.
10536 (vtbl2_s8): Likewise.
10537 (vtbl2_u8): Likewise.
10538 (vtbl2_p8): Likewise.
10539 (vtbl3_s8): Likewise.
10540 (vtbl3_u8): Likewise.
10541 (vtbl3_p8): Likewise.
10542 (vtbl4_s8): Likewise.
10543 (vtbl4_u8): Likewise.
10544 (vtbl4_p8): Likewise.
10545 (vtbx2_s8): Likewise.
10546 (vtbx2_u8): Likewise.
10547 (vtbx2_p8): Likewise.
10548 (vld1_f32): Likewise.
10549 (vld1_f64): Likewise.
10550 (vld1_p8): Likewise.
10551 (vld1_p16): Likewise.
10552 (vld1_p64): Likewise.
10553 (vld1_s8): Likewise.
10554 (vld1_s16): Likewise.
10555 (vld1_s32): Likewise.
10556 (vld1_s64): Likewise.
10557 (vld1_u8): Likewise.
10558 (vld1_u16): Likewise.
10559 (vld1_u32): Likewise.
10560 (vld1_u64): Likewise.
10561 (vld1q_f32): Likewise.
10562 (vld1q_f64): Likewise.
10563 (vld1q_p8): Likewise.
10564 (vld1q_p16): Likewise.
10565 (vld1q_p64): Likewise.
10566 (vld1q_s8): Likewise.
10567 (vld1q_s16): Likewise.
10568 (vld1q_s32): Likewise.
10569 (vld1q_s64): Likewise.
10570 (vld1q_u8): Likewise.
10571 (vld1q_u16): Likewise.
10572 (vld1q_u32): Likewise.
10573 (vld1q_u64): Likewise.
10574 (vpmax_s8): Likewise.
10575 (vpmax_s16): Likewise.
10576 (vpmax_s32): Likewise.
10577 (vpmax_u8): Likewise.
10578 (vpmax_u16): Likewise.
10579 (vpmax_u32): Likewise.
10580 (vpmaxq_s8): Likewise.
10581 (vpmaxq_s16): Likewise.
10582 (vpmaxq_s32): Likewise.
10583 (vpmaxq_u8): Likewise.
10584 (vpmaxq_u16): Likewise.
10585 (vpmaxq_u32): Likewise.
10586 (vpmax_f32): Likewise.
10587 (vpmaxq_f32): Likewise.
10588 (vpmaxq_f64): Likewise.
10589 (vpmaxqd_f64): Likewise.
10590 (vpmaxs_f32): Likewise.
10591 (vpmaxnm_f32): Likewise.
10592 (vpmaxnmq_f32): Likewise.
10593 (vpmaxnmq_f64): Likewise.
10594 (vpmaxnmqd_f64): Likewise.
10595 (vpmaxnms_f32): Likewise.
10596 (vpmin_s8): Likewise.
10597 (vpmin_s16): Likewise.
10598 (vpmin_s32): Likewise.
10599 (vpmin_u8): Likewise.
10600 (vpmin_u16): Likewise.
10601 (vpmin_u32): Likewise.
10602 (vpminq_s8): Likewise.
10603 (vpminq_s16): Likewise.
10604 (vpminq_s32): Likewise.
10605 (vpminq_u8): Likewise.
10606 (vpminq_u16): Likewise.
10607 (vpminq_u32): Likewise.
10608 (vpmin_f32): Likewise.
10609 (vpminq_f32): Likewise.
10610 (vpminq_f64): Likewise.
10611 (vpminqd_f64): Likewise.
10612 (vpmins_f32): Likewise.
10613 (vpminnm_f32): Likewise.
10614 (vpminnmq_f32): Likewise.
10615 (vpminnmq_f64): Likewise.
10616 (vpminnmqd_f64): Likewise.
10617 (vpminnms_f32): Likewise.
10618 (vmla_f32): Likewise.
10619 (vmlaq_f32): Likewise.
10620 (vmlaq_f64): Likewise.
10621 (vmls_f32): Likewise.
10622 (vmlsq_f32): Likewise.
10623 (vmlsq_f64): Likewise.
10624 (vqtbl2_s8): Likewise.
10625 (vqtbl2_u8): Likewise.
10626 (vqtbl2_p8): Likewise.
10627 (vqtbl2q_s8): Likewise.
10628 (vqtbl2q_u8): Likewise.
10629 (vqtbl2q_p8): Likewise.
10630 (vqtbl3_s8): Likewise.
10631 (vqtbl3_u8): Likewise.
10632 (vqtbl3_p8): Likewise.
10633 (vqtbl3q_s8): Likewise.
10634 (vqtbl3q_u8): Likewise.
10635 (vqtbl3q_p8): Likewise.
10636 (vqtbl4_s8): Likewise.
10637 (vqtbl4_u8): Likewise.
10638 (vqtbl4_p8): Likewise.
10639 (vqtbl4q_s8): Likewise.
10640 (vqtbl4q_u8): Likewise.
10641 (vqtbl4q_p8): Likewise.
10642 (vqtbx2_s8): Likewise.
10643 (vqtbx2_u8): Likewise.
10644 (vqtbx2_p8): Likewise.
10645 (vqtbx2q_s8): Likewise.
10646 (vqtbx2q_u8): Likewise.
10647 (vqtbx2q_p8): Likewise.
10648 (vqtbx3_s8): Likewise.
10649 (vqtbx3_u8): Likewise.
10650 (vqtbx3_p8): Likewise.
10651 (vqtbx3q_s8): Likewise.
10652 (vqtbx3q_u8): Likewise.
10653 (vqtbx3q_p8): Likewise.
10654 (vqtbx4_s8): Likewise.
10655 (vqtbx4_u8): Likewise.
10656 (vqtbx4_p8): Likewise.
10657 (vqtbx4q_s8): Likewise.
10658 (vqtbx4q_u8): Likewise.
10659 (vqtbx4q_p8): Likewise.
10660 (vrev16_p8): Likewise.
10661 (vrev16_s8): Likewise.
10662 (vrev16_u8): Likewise.
10663 (vrev16q_p8): Likewise.
10664 (vrev16q_s8): Likewise.
10665 (vrev16q_u8): Likewise.
10666 (vrev32_p8): Likewise.
10667 (vrev32_p16): Likewise.
10668 (vrev32_s8): Likewise.
10669 (vrev32_s16): Likewise.
10670 (vrev32_u8): Likewise.
10671 (vrev32_u16): Likewise.
10672 (vrev32q_p8): Likewise.
10673 (vrev32q_p16): Likewise.
10674 (vrev32q_s8): Likewise.
10675 (vrev32q_s16): Likewise.
10676 (vrev32q_u8): Likewise.
10677 (vrev32q_u16): Likewise.
10678 (vrev64_f32): Likewise.
10679 (vrev64_p8): Likewise.
10680 (vrev64_p16): Likewise.
10681 (vrev64_s8): Likewise.
10682 (vrev64_s16): Likewise.
10683 (vrev64_s32): Likewise.
10684 (vrev64_u8): Likewise.
10685 (vrev64_u16): Likewise.
10686 (vrev64_u32): Likewise.
10687 (vrev64q_f32): Likewise.
10688 (vrev64q_p8): Likewise.
10689 (vrev64q_p16): Likewise.
10690 (vrev64q_s8): Likewise.
10691 (vrev64q_s16): Likewise.
10692 (vrev64q_s32): Likewise.
10693 (vrev64q_u8): Likewise.
10694 (vrev64q_u16): Likewise.
10695 (vrev64q_u32): Likewise.
10696 (vsha1cq_u32): Likewise.
10697 (vsha1mq_u32): Likewise.
10698 (vsha1pq_u32): Likewise.
10699 (vsha1h_u32): Likewise.
10700 (vsha1su0q_u32): Likewise.
10701 (vsha1su1q_u32): Likewise.
10702 (vsha256hq_u32): Likewise.
10703 (vsha256h2q_u32): Likewise.
10704 (vsha256su0q_u32): Likewise.
10705 (vsha256su1q_u32): Likewise.
10706 (vmull_p64): Likewise.
10707 (vmull_high_p64): Likewise.
10708 (vsqrt_f32): Likewise.
10709 (vsqrtq_f32): Likewise.
10710 (vsqrt_f64): Likewise.
10711 (vsqrtq_f64): Likewise.
10712 (vst1_f32): Likewise.
10713 (vst1_f64): Likewise.
10714 (vst1_p8): Likewise.
10715 (vst1_p16): Likewise.
10716 (vst1_p64): Likewise.
10717 (vst1_s8): Likewise.
10718 (vst1_s16): Likewise.
10719 (vst1_s32): Likewise.
10720 (vst1_s64): Likewise.
10721 (vst1_u8): Likewise.
10722 (vst1_u16): Likewise.
10723 (vst1_u32): Likewise.
10724 (vst1_u64): Likewise.
10725 (vst1q_f32): Likewise.
10726 (vst1q_f64): Likewise.
10727 (vst1q_p8): Likewise.
10728 (vst1q_p16): Likewise.
10729 (vst1q_p64): Likewise.
10730 (vst1q_s8): Likewise.
10731 (vst1q_s16): Likewise.
10732 (vst1q_s32): Likewise.
10733 (vst1q_s64): Likewise.
10734 (vst1q_u8): Likewise.
10735 (vst1q_u16): Likewise.
10736 (vst1q_u32): Likewise.
10737 (vst1q_u64): Likewise.
10738 (vst1_s64_x2): Likewise.
10739 (vst1_u64_x2): Likewise.
10740 (vst1_f64_x2): Likewise.
10741 (vst1_s8_x2): Likewise.
10742 (vst1_p8_x2): Likewise.
10743 (vst1_s16_x2): Likewise.
10744 (vst1_p16_x2): Likewise.
10745 (vst1_s32_x2): Likewise.
10746 (vst1_u8_x2): Likewise.
10747 (vst1_u16_x2): Likewise.
10748 (vst1_u32_x2): Likewise.
10749 (vst1_f16_x2): Likewise.
10750 (vst1_f32_x2): Likewise.
10751 (vst1_p64_x2): Likewise.
10752 (vst1q_s8_x2): Likewise.
10753 (vst1q_p8_x2): Likewise.
10754 (vst1q_s16_x2): Likewise.
10755 (vst1q_p16_x2): Likewise.
10756 (vst1q_s32_x2): Likewise.
10757 (vst1q_s64_x2): Likewise.
10758 (vst1q_u8_x2): Likewise.
10759 (vst1q_u16_x2): Likewise.
10760 (vst1q_u32_x2): Likewise.
10761 (vst1q_u64_x2): Likewise.
10762 (vst1q_f16_x2): Likewise.
10763 (vst1q_f32_x2): Likewise.
10764 (vst1q_f64_x2): Likewise.
10765 (vst1q_p64_x2): Likewise.
10766 (vst1_s64_x3): Likewise.
10767 (vst1_u64_x3): Likewise.
10768 (vst1_f64_x3): Likewise.
10769 (vst1_s8_x3): Likewise.
10770 (vst1_p8_x3): Likewise.
10771 (vst1_s16_x3): Likewise.
10772 (vst1_p16_x3): Likewise.
10773 (vst1_s32_x3): Likewise.
10774 (vst1_u8_x3): Likewise.
10775 (vst1_u16_x3): Likewise.
10776 (vst1_u32_x3): Likewise.
10777 (vst1_f16_x3): Likewise.
10778 (vst1_f32_x3): Likewise.
10779 (vst1_p64_x3): Likewise.
10780 (vst1q_s8_x3): Likewise.
10781 (vst1q_p8_x3): Likewise.
10782 (vst1q_s16_x3): Likewise.
10783 (vst1q_p16_x3): Likewise.
10784 (vst1q_s32_x3): Likewise.
10785 (vst1q_s64_x3): Likewise.
10786 (vst1q_u8_x3): Likewise.
10787 (vst1q_u16_x3): Likewise.
10788 (vst1q_u32_x3): Likewise.
10789 (vst1q_u64_x3): Likewise.
10790 (vst1q_f16_x3): Likewise.
10791 (vst1q_f32_x3): Likewise.
10792 (vst1q_f64_x3): Likewise.
10793 (vst1q_p64_x3): Likewise.
10794 (vst2_s64): Likewise.
10795 (vst2_u64): Likewise.
10796 (vst2_f64): Likewise.
10797 (vst2_s8): Likewise.
10798 (vst2_p8): Likewise.
10799 (vst2_s16): Likewise.
10800 (vst2_p16): Likewise.
10801 (vst2_s32): Likewise.
10802 (vst2_u8): Likewise.
10803 (vst2_u16): Likewise.
10804 (vst2_u32): Likewise.
10805 (vst2_f16): Likewise.
10806 (vst2_f32): Likewise.
10807 (vst2_p64): Likewise.
10808 (vst2q_s8): Likewise.
10809 (vst2q_p8): Likewise.
10810 (vst2q_s16): Likewise.
10811 (vst2q_p16): Likewise.
10812 (vst2q_s32): Likewise.
10813 (vst2q_s64): Likewise.
10814 (vst2q_u8): Likewise.
10815 (vst2q_u16): Likewise.
10816 (vst2q_u32): Likewise.
10817 (vst2q_u64): Likewise.
10818 (vst2q_f16): Likewise.
10819 (vst2q_f32): Likewise.
10820 (vst2q_f64): Likewise.
10821 (vst2q_p64): Likewise.
10822 (vst3_s64): Likewise.
10823 (vst3_u64): Likewise.
10824 (vst3_f64): Likewise.
10825 (vst3_s8): Likewise.
10826 (vst3_p8): Likewise.
10827 (vst3_s16): Likewise.
10828 (vst3_p16): Likewise.
10829 (vst3_s32): Likewise.
10830 (vst3_u8): Likewise.
10831 (vst3_u16): Likewise.
10832 (vst3_u32): Likewise.
10833 (vst3_f16): Likewise.
10834 (vst3_f32): Likewise.
10835 (vst3_p64): Likewise.
10836 (vst3q_s8): Likewise.
10837 (vst3q_p8): Likewise.
10838 (vst3q_s16): Likewise.
10839 (vst3q_p16): Likewise.
10840 (vst3q_s32): Likewise.
10841 (vst3q_s64): Likewise.
10842 (vst3q_u8): Likewise.
10843 (vst3q_u16): Likewise.
10844 (vst3q_u32): Likewise.
10845 (vst3q_u64): Likewise.
10846 (vst3q_f16): Likewise.
10847 (vst3q_f32): Likewise.
10848 (vst3q_f64): Likewise.
10849 (vst3q_p64): Likewise.
10850 (vst4_s64): Likewise.
10851 (vst4_u64): Likewise.
10852 (vst4_f64): Likewise.
10853 (vst4_s8): Likewise.
10854 (vst4_p8): Likewise.
10855 (vst4_s16): Likewise.
10856 (vst4_p16): Likewise.
10857 (vst4_s32): Likewise.
10858 (vst4_u8): Likewise.
10859 (vst4_u16): Likewise.
10860 (vst4_u32): Likewise.
10861 (vst4_f16): Likewise.
10862 (vst4_f32): Likewise.
10863 (vst4_p64): Likewise.
10864 (vst4q_s8): Likewise.
10865 (vst4q_p8): Likewise.
10866 (vst4q_s16): Likewise.
10867 (vst4q_p16): Likewise.
10868 (vst4q_s32): Likewise.
10869 (vst4q_s64): Likewise.
10870 (vst4q_u8): Likewise.
10871 (vst4q_u16): Likewise.
10872 (vst4q_u32): Likewise.
10873 (vst4q_u64): Likewise.
10874 (vst4q_f16): Likewise.
10875 (vst4q_f32): Likewise.
10876 (vst4q_f64): Likewise.
10877 (vst4q_p64): Likewise.
10878 (vtbx4_s8): Likewise.
10879 (vtbx4_u8): Likewise.
10880 (vtbx4_p8): Likewise.
10881 (vtrn_f32): Likewise.
10882 (vtrn_p8): Likewise.
10883 (vtrn_p16): Likewise.
10884 (vtrn_s8): Likewise.
10885 (vtrn_s16): Likewise.
10886 (vtrn_s32): Likewise.
10887 (vtrn_u8): Likewise.
10888 (vtrn_u16): Likewise.
10889 (vtrn_u32): Likewise.
10890 (vtrnq_f32): Likewise.
10891 (vtrnq_p8): Likewise.
10892 (vtrnq_p16): Likewise.
10893 (vtrnq_s8): Likewise.
10894 (vtrnq_s16): Likewise.
10895 (vtrnq_s32): Likewise.
10896 (vtrnq_u8): Likewise.
10897 (vtrnq_u16): Likewise.
10898 (vtrnq_u32): Likewise.
10899 (vrsqrte_f16): Likewise.
10900 (vrsqrteq_f16): Likewise.
10901 (vsqrt_f16): Likewise.
10902 (vsqrtq_f16): Likewise.
10903 (vabd_f16): Likewise.
10904 (vabdq_f16): Likewise.
10905 (vpadd_f16): Likewise.
10906 (vpaddq_f16): Likewise.
10907 (vpmax_f16): Likewise.
10908 (vpmaxq_f16): Likewise.
10909 (vpmaxnm_f16): Likewise.
10910 (vpmaxnmq_f16): Likewise.
10911 (vpmin_f16): Likewise.
10912 (vpminq_f16): Likewise.
10913 (vpminnm_f16): Likewise.
10914 (vpminnmq_f16): Likewise.
10915 (vrsqrts_f16): Likewise.
10916 (vrsqrtsq_f16): Likewise.
10917
10918 2019-09-25 Richard Biener <rguenther@suse.de>
10919
10920 PR tree-optimization/91896
10921 * tree-vect-loop.c (vectorizable_reduction): The single
10922 def-use cycle optimization cannot apply when there's more
10923 than one pattern stmt involved.
10924
10925 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10926
10927 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
10928 the 'P' mode iterator, replacing the (removed) SI and DI variants.
10929 (reload_macho_picbase_<mode>): Likewise.
10930
10931 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10932
10933 * config/rs6000/rs6000.md: Move darwin.md include until
10934 after the definition of the mode iterators.
10935
10936 2019-09-23 Martin Sebor <msebor@redhat.com>
10937
10938 PR tree-optimization/91570
10939 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
10940 non-constant minlen, maxlen and maxbound.
10941
10942 2019-09-24 Richard Biener <rguenther@suse.de>
10943
10944 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
10945 Rename to...
10946 (_stmt_vec_info::cond_reduc_code): ... this.
10947 (_stmt_vec_info::induc_cond_initial_val): Add.
10948 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
10949 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
10950 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
10951 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
10952 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
10953 the reduction code.
10954 (vect_create_epilog_for_reduction): Drop special
10955 induction condition reduction params, pass in reduction code
10956 and simplify.
10957 (vectorizable_reduction): Perform condition reduction kind
10958 selection only at analysis time. Adjust passing on state.
10959
10960 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10961
10962 * config/aarch64/aarch64.md (mov<mode>): Don't call
10963 aarch64_split_dimode_const_store on volatile MEM.
10964
10965 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
10966
10967 * config/aarch64/aarch64-option-extensions.def (fp16fml):
10968 Update hwcap string for fp16fml.
10969
10970 2019-09-24 Jakub Jelinek <jakub@redhat.com>
10971
10972 PR middle-end/91866
10973 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
10974 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
10975
10976 2019-09-24 Martin Liska <mliska@suse.cz>
10977
10978 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
10979 instead of if-elseif-elseif-...
10980 * gimple-expr.c (extract_ops_from_tree): Likewise.
10981 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10982 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
10983
10984 2019-09-24 Martin Jambor <mjambor@suse.cz>
10985
10986 PR ipa/91831
10987 * ipa-param-manipulation.c (carry_over_param): Make a method of
10988 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
10989 in case of a context mismatch.
10990 (ipa_param_body_adjustments::common_initialization): Adjust call to
10991 carry_over_param.
10992 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
10993 private method carry_over_param.
10994
10995 2019-09-24 Martin Jambor <mjambor@suse.cz>
10996
10997 PR ipa/91832
10998 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
10999
11000 2019-09-24 Richard Biener <rguenther@suse.de>
11001
11002 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11003 base.
11004
11005 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11006
11007 * config/arm/t-arm (arm-builtins.o): Add dependency on
11008 arm_acle_builtins.def.
11009
11010 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11011
11012 PR target/91823
11013 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11014 canonical CONST_INTs. Use gen_rtvec.
11015
11016 2019-09-23 Richard Biener <rguenther@suse.de>
11017
11018 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11019 avoid adjusting by + 0 or * 1.
11020 (vect_create_epilog_for_reduction): Get reduction code only
11021 when necessary. Deal with adjustment_def only when necessary.
11022
11023 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11024
11025 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11026 memmodel index.
11027
11028 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11029
11030 PR ipa/91835
11031 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11032 "ipa-sra".
11033
11034 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11035
11036 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11037 code. Merge code blocks with common conditionals. Use declared
11038 macro instead of a magic number for PIC level.
11039
11040 2019-09-21 Martin Sebor <msebor@redhat.com>
11041
11042 PR middle-end/91830
11043 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11044 Simplify computation of the offset of the referenced subobject.
11045
11046 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11047
11048 * config/darwin.c (machopic_legitimize_pic_address): Check
11049 for lra not reload.
11050
11051 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11052
11053 * ira-conflicts.c (can_use_same_reg_p): New function.
11054 (process_reg_shuffles): Take an insn parameter. Ignore cases
11055 in which input operand op_num could seemingly never be allocated
11056 to the same register as the destination.
11057 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11058
11059 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11060
11061 * simplify-rtx.c (neg_const_int): Replace with...
11062 (neg_poly_int_rtx): ...this new function.
11063 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11064 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11065 (simplify_plus_minus): Likewise for constant terms here.
11066
11067 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11068
11069 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11070 HOST_WIDE_PRINT_UNSIGNED.
11071
11072 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11073
11074 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11075 character.
11076
11077 2019-09-20 Maya Rashish <coypu@sdf.org>
11078
11079 PR target/86811
11080 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11081 Define to speculation_safe_value_not_needed.
11082
11083 2019-09-20 Richard Biener <rguenther@suse.de>
11084 Uros Bizjak <ubizjak@gmail.com>
11085
11086 PR target/91814
11087 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11088 previous change.
11089 (general_scalar_chain::convert_op): Force not suitable memory
11090 operands to a register.
11091
11092 2019-09-20 Richard Biener <rguenther@suse.de>
11093
11094 PR tree-optimization/91821
11095 * tree-vect-loop.c (check_reduction_path): Check we can compute
11096 reduc_idx.
11097 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11098 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11099 operands in canonical order.
11100 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11101 STMT_VINFO_REDUC_IDX.
11102 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11103 (STMT_VINFO_REDUC_IDX): Likewise.
11104
11105 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11106
11107 PR target/91269
11108 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11109
11110 2019-09-20 Richard Biener <rguenther@suse.de>
11111
11112 PR tree-optimization/91822
11113 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11114 parameter.
11115 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11116 for reduc_index in nested cycles, adjust vectorizable_condition
11117 calls.
11118 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11119 parameter.
11120 (vect_analyze_stmt): Adjust.
11121 (vect_transform_stmt): Likewise.
11122
11123 2019-09-20 Richard Biener <rguenther@suse.de>
11124
11125 PR target/91767
11126 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11127 Ensure there's a sequence point between allocating the new register
11128 and passing a reference to a reg via regno_reg_rtx.
11129
11130 2019-09-20 Martin Jambor <mjambor@suse.cz>
11131
11132 * coretypes.h (cgraph_edge): Declare.
11133 * ipa-param-manipulation.c: Rewrite.
11134 * ipa-param-manipulation.h: Likewise.
11135 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
11136 (OBJS): Added ipa-sra.o.
11137 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
11138 and ref_p, added fields param_adjustments and performed_splits.
11139 (struct cgraph_clone_info): Remove ags_to_skip and
11140 combined_args_to_skip, new field param_adjustments.
11141 (cgraph_node::create_clone): Changed parameters to use
11142 ipa_param_adjustments.
11143 (cgraph_node::create_virtual_clone): Likewise.
11144 (cgraph_node::create_virtual_clone_with_body): Likewise.
11145 (tree_function_versioning): Likewise.
11146 (cgraph_build_function_type_skip_args): Removed.
11147 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
11148 using ipa_param_adjustments.
11149 (clone_of_p): Likewise.
11150 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
11151 (build_function_decl_skip_args): Likewise.
11152 (duplicate_thunk_for_node): Adjust parameters using
11153 ipa_param_body_adjustments, copy param_adjustments instead of
11154 args_to_skip.
11155 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
11156 (cgraph_node::create_virtual_clone): Likewise.
11157 (cgraph_node::create_version_clone_with_body): Likewise.
11158 (cgraph_materialize_clone): Likewise.
11159 (symbol_table::materialize_all_clones): Likewise.
11160 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
11161 ipa_replace_map check.
11162 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
11163 (initialize_node_lattices): Make aware that some parameters might have
11164 already been removed.
11165 (want_remove_some_param_p): New function.
11166 (create_specialized_node): Convert to using ipa_param_adjustments and
11167 deal with possibly pre-existing adjustments.
11168 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
11169 (output_node_opt_summary): Do not stream removed fields. Stream
11170 parameter adjustments instead of argumetns to skip.
11171 (input_node_opt_summary): Likewise.
11172 (input_node_opt_summary): Likewise.
11173 * lto-section-in.c (lto_section_name): Added ipa-sra section.
11174 * lto-streamer.h (lto_section_type): Likewise.
11175 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
11176 param_body_adjs.
11177 (copy_decl_to_var): Declare.
11178 * tree-inline.c (update_clone_info): Do not remap old_tree.
11179 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
11180 statements, walk all extra generated statements and remap their
11181 operands.
11182 (redirect_all_calls): Add killed SSA names to a hash set.
11183 (remap_ssa_name): Do not remap killed SSA names.
11184 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
11185 half of functionality moved to ipa_param_body_adjustments.
11186 (copy_decl_to_var): Make exported.
11187 (copy_body): Destroy killed_new_ssa_names hash set.
11188 (expand_call_inline): Remap performed splits.
11189 (update_clone_info): Likewise.
11190 (tree_function_versioning): Simplify tree_map processing. Updated to
11191 accept ipa_param_adjustments and use ipa_param_body_adjustments.
11192 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
11193 for the new interface.
11194 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
11195 (simd_clone_compute_base_data_type): Likewise.
11196 (simd_clone_init_simd_arrays): Adjust for the new interface.
11197 (simd_clone_adjust_argument_types): Likewise.
11198 (struct modify_stmt_info): Likewise.
11199 (ipa_simd_modify_stmt_ops): Likewise.
11200 (ipa_simd_modify_function_body): Likewise.
11201 (simd_clone_adjust): Likewise.
11202 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
11203 (type_internals_preclude_sra_p): Make public.
11204 * tree-sra.h: New file.
11205 * ipa-inline-transform.c (save_inline_function_body): Update to
11206 refelct new tree_function_versioning signature.
11207 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
11208 ipa_param_adjustments to get current parameter indices.
11209 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11210 (ipcp_update_bits): Likewise.
11211 (ipcp_update_vr): Likewise.
11212 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
11213 * ipa-sra.c: New file.
11214 * multiple_target.c (create_target_clone): Update to reflet new type
11215 of create_version_clone_with_body.
11216 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
11217 tree_function_versioning.
11218 (modify_function): Update to reflect new type of
11219 tree_function_versioning.
11220 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
11221 * passes.def: Remove old IPA-SRA and add new one.
11222 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
11223 (make_pass_ipa_sra): Declare.
11224 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
11225 ipa_sra_retvalues.
11226 * doc/invoke.texi (ipa-sra-max-replacements): New.
11227
11228 2019-09-19 Martin Sebor <msebor@redhat.com>
11229
11230 PR middle-end/91631
11231 * builtins.c (component_size): Correct trailing array computation,
11232 rename to component_ref_size and move...
11233 (compute_objsize): Adjust.
11234 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
11235 (builtin_access::strict): Do not consider memmove.
11236 (builtin_access::write_off): New function.
11237 (builtin_memref::builtin_memref): Initialize refsize.
11238 (builtin_memref::set_base_and_offset): Adjust refoff and compute
11239 refsize.
11240 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
11241 Handle refsize.
11242 (builtin_access::builtin_access): Initialize dstoff to destination
11243 refeence offset here instead of in maybe_diag_overlap. Adjust
11244 referencess even to unrelated objects. Adjust sizrange of bounded
11245 string functions to reflect bound. For strcat, adjust destination
11246 sizrange by that of source.
11247 (builtin_access::strcat_overlap): Adjust offsets and sizes
11248 to reflect the increase in destination sizrange above.
11249 (builtin_access::overlap): Do not set dstoff here but instead
11250 in builtin_access::builtin_access.
11251 (check_bounds_or_overlap): Use builtin_access::write_off.
11252 (maybe_diag_access_bounds): Add argument. Add informational notes.
11253 (dump_builtin_memref, dump_builtin_access): New functions.
11254 * tree.c (component_ref_size): ...to here.
11255 * tree.h (component_ref_size): Declare.
11256 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
11257 nul in the size of the source string.
11258
11259 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
11260
11261 PR c/67224
11262 * doc/cpp.texi: Document support for extended characters in
11263 identifiers.
11264 * doc/cppopts.texi: Likewise.
11265
11266 2019-09-19 Richard Biener <rguenther@suse.de>
11267
11268 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
11269 (check_reduction_path): New overload having the path as result.
11270 (vect_is_simple_reduction): From the detected reduction
11271 path build a SLP reduction chain if possible.
11272
11273 2019-09-19 Richard Biener <rguenther@suse.de>
11274
11275 PR target/91814
11276 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
11277 Force operand to a register if it isn't nonimmediate_operand.
11278
11279 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11280
11281 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
11282 * config/arm/iterators.md (optab): Add and, ior, xor entries.
11283 (logical_op): Remove code attribute.
11284 (logical_OP): Likewise.
11285
11286 2019-09-19 Martin Liska <mliska@suse.cz>
11287
11288 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
11289 Use proper casting.
11290
11291 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
11292
11293 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
11294 registers with %R.
11295
11296 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
11297 for NE comparison of TImode values.
11298 (aarch64_emit_load_exclusive): Add support for TImode.
11299 (aarch64_emit_store_exclusive): Likewise.
11300 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
11301 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
11302 Change iterator from ALLI to ALLI_TI.
11303 (@atomic_compare_and_swap<JUST_TI>): New.
11304 (@atomic_compare_and_swap<JUST_TI>_lse): New.
11305 (aarch64_load_exclusive_pair): New.
11306 (aarch64_store_exclusive_pair): New.
11307 * config/aarch64/iterators.md (JUST_TI): New.
11308
11309 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
11310 strong_zero_p for aarch64_track_speculation; unify some code paths;
11311 use aarch64_gen_compare_reg instead of open-coding.
11312
11313 * config/aarch64/aarch64.opt (-moutline-atomics): New.
11314 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
11315 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
11316 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
11317 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
11318 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
11319 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
11320 (atomic_<atomic_op><ALLI>): Likewise.
11321 (atomic_fetch_<atomic_op><ALLI>): Likewise.
11322 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
11323 * doc/invoke.texi: Document -moutline-atomics.
11324
11325 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
11326
11327 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
11328 trivial predicate for condition branch.
11329 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
11330 for switch case.
11331 (compute_bb_predicates): Update predicate based on post-dominating
11332 relationship.
11333 (analyze_function_body): Calculate post-dominating information.
11334
11335 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11336
11337 * tree-vectorizer.h (vectorizable_condition): Take an int
11338 reduction index instead of a boolean flag.
11339 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11340 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
11341 reductions if the reduction accumulator is the "then" rather
11342 than the "else" value.
11343 (vect_analyze_stmt): Update call accordingly.
11344 (vect_transform_stmt): Likewise.
11345 * tree-vect-loop.c (vectorizable_reduction): Likewise,
11346 asserting that the index is > 0.
11347
11348 2019-09-19 Martin Liska <mliska@suse.cz>
11349
11350 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
11351 (sort_congruence_classes_by_decl_uid): Likewise.
11352 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
11353 easier sorting.
11354 (sem_item_optimizer::merge_classes): Likewise.
11355
11356 2019-09-19 Richard Biener <rguenther@suse.de>
11357
11358 PR tree-optimization/91812
11359 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
11360 volatile loads.
11361
11362 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11363
11364 * defaults.h (TARGET_UNIT): New macro.
11365 (target_unit): New type.
11366 * rtl.h (native_encode_rtx, native_decode_rtx)
11367 (native_decode_vector_rtx, subreg_size_lsb): Declare.
11368 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
11369 * rtlanal.c (subreg_lsb_1): Delete.
11370 (subreg_size_lsb): New function.
11371 * simplify-rtx.c: Include rtx-vector-builder.h
11372 (simplify_immed_subreg): Delete.
11373 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
11374 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
11375 functions.
11376 (simplify_subreg): Use them.
11377 (test_vector_subregs_modes, test_vector_subregs_repeating)
11378 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
11379 (test_vector_subregs): New functions.
11380 (test_vector_ops): Call test_vector_subregs for integer vector
11381 modes with at least 2 elements.
11382
11383 2019-09-19 Richard Biener <rguenther@suse.de>
11384
11385 * tree-parloops.c (parloops_is_slp_reduction): Do not set
11386 LOOP_VINFO_OPERANDS_SWAPPED.
11387 (parloops_is_simple_reduction): Likewise.
11388 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
11389 initialize operands_swapped.
11390 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
11391 (vect_is_slp_reduction): Do not swap operands.
11392 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
11393 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
11394
11395 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
11396
11397 PR target/87007
11398 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
11399 Add avx_partial_xmm_update.
11400
11401 2019-09-18 Jim Wilson <jimw@sifive.com>
11402
11403 PR target/91683
11404 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
11405 (riscv_move_integer): Likewise.
11406 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
11407 riscv_move_integer arg.
11408 (riscv_legitimize_move): Likewise.
11409 (riscv_force_temporary): New parameter in_splitter. Don't call
11410 force_reg if true.
11411 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
11412 arg.
11413 (riscv_add_offset): Likewise.
11414 (riscv_split_symbol): New parameter in_splitter. Pass to
11415 riscv_force_temporary.
11416 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
11417 arg.
11418 (riscv_move_integer): New parameter in_splitter. New local
11419 can_create_psuedo. Don't call riscv_split_integer or force_reg when
11420 in_splitter TRUE.
11421 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
11422 riscv_split_symbol, and riscv_force_temporary args.
11423 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
11424 riscv_move_integer arg.
11425 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
11426
11427 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11428
11429 PR target/90878
11430 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
11431 hard register store cost to 6.
11432
11433 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11434
11435 PR target/91446
11436 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
11437 pseudo register store cost from 3 to 6 to make it the same as
11438 QImode and HImode.
11439
11440 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11441
11442 PR target/91738
11443 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
11444 (one_cmpldi2): Likewise.
11445 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
11446 of the constant parts is simple.
11447 * config/arm/iterators.md (LOGICAL): Add new code iterator.
11448 (logical_op): Add new code attribute.
11449 (logical_OP): Likewise.
11450 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
11451 (arm_iordi_operand): Add predicate.
11452 (arm_xordi_operand): Add predicate.
11453
11454 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11455
11456 * config/arm/arm.md (maddsidi4): Remove expander.
11457 (mulsidi3adddi): Remove pattern.
11458 (mulsidi3adddi_v6): Likewise.
11459 (mulsidi3_nov6): Likewise.
11460 (mulsidi3_v6): Likewise.
11461 (umulsidi3): Remove expander.
11462 (umulsidi3_nov6): Remove pattern.
11463 (umulsidi3_v6): Likewise.
11464 (umulsidi3adddi): Likewise.
11465 (umulsidi3adddi_v6): Likewise.
11466 (<Us>mulsidi3): Add combined expander.
11467 (<Us>maddsidi4): Likewise.
11468 (<US>mull): Add combined umull and smull pattern.
11469 (<US>mlal): Likewise.
11470 * config/arm/iterators.md (Us): Add new iterator.
11471
11472 2019-09-18 Richard Biener <rguenther@suse.de>
11473
11474 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
11475 swapping.
11476 (vectorize_fold_left_reduction): Remove assert.
11477 (vectorizable_reduction): Also expect COND_EXPR non-reduction
11478 operand in position 2. Remove assert.
11479
11480 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11481
11482 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
11483 (smulsi3_highpart_nov6): Remove pattern.
11484 (smulsi3_highpart_v6): Likewise.
11485 (umulsi3_highpart): Likewise.
11486 (umulsi3_highpart_nov6): Likewise.
11487 (umulsi3_highpart_v6): Likewise.
11488 (<US>mull_high): Add new combined multiply pattern.
11489
11490 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11491
11492 * config/arm/arm.md (arm_mulsi3): Remove pattern.
11493 (arm_mulsi3_v6): Likewise.
11494 (mulsi3addsi_v6): Likewise.
11495 (mulsi3subsi): Likewise.
11496 (mul): Add new multiply pattern.
11497 (mla): Likewise.
11498 (mls): Likewise.
11499
11500 2019-09-18 Richard Biener <rguenther@suse.de>
11501
11502 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
11503 (parloops_valid_reduction_input_p): Copy from
11504 valid_reduction_input_p.
11505 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
11506 (parloops_needs_fold_left_reduction_p): Copy from
11507 needs_fold_left_reduction_p.
11508 (parloops_is_simple_reduction): Copy from
11509 vect_is_simple_reduction.
11510 (parloops_force_simple_reduction): Copy from
11511 vect_force_simple_reduction.
11512 (gather_scalar_reductions): Adjust.
11513 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
11514 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
11515
11516 2019-09-18 Richard Biener <rguenther@suse.de>
11517
11518 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
11519 * tree-vect-loop.c (get_initial_def_for_reduction): Make
11520 static.
11521 (vect_create_epilog_for_reduction): Remove dead code.
11522
11523 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11524
11525 * varasm.c (assemble_real): Generate canonical const_ints.
11526
11527 2019-09-18 Richard Biener <rguenther@suse.de>
11528
11529 PR lto/91763
11530 * lto-streamer-in.c (input_eh_regions): Move EH init to
11531 lto_materialize_function.
11532 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
11533 Likewise.
11534
11535 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11536
11537 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
11538 are INTEGER_CSTs.
11539
11540 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11541
11542 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
11543 of checking specifically for INTEGER_CST.
11544
11545 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11546
11547 * stor-layout.c (compute_record_mode): Operate on poly_uint64
11548 sizes instead of uhwi sizes.
11549
11550 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11551
11552 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
11553 (add_const_value_attribute): Handle CONST_POLY_INT.
11554
11555 2019-09-18 Martin Liska <mliska@suse.cz>
11556
11557 * dbgcnt.def (store_merging): New counter.
11558 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
11559 Use it in store merging.
11560
11561 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11562
11563 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
11564 function.
11565 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11566 * config/arm/arm.c (arm_sched_variable_issue): New function.
11567 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11568
11569 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11570
11571 * config/arm/types.md (no_reservation): New reservation.
11572 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
11573 no_insn here.
11574 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
11575 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
11576 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
11577 * config/arm/arm1020e.md (1020alu_op): Likewise.
11578 * config/arm/arm1026ejs.md (alu_op): Likewise.
11579 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11580 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11581 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11582 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
11583 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11584 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11585 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
11586 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
11587 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11588 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11589 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11590 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
11591 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
11592 * config/arm/fa526.md (526_alu_op): Likewise.
11593 * config/arm/fa606te.md (606te_alu_op): Likewise.
11594 * config/arm/fa626te.md (626te_alu_op): Likewise.
11595 * config/arm/fa726te.md (726te_alu_op): Likewise.
11596 * config/arm/xgene1.md (xgene1_nop): Likewise.
11597
11598 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11599
11600 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
11601 "no_insn" to "branch".
11602
11603 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11604
11605 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
11606
11607 2019-09-17 Richard Biener <rguenther@suse.de>
11608
11609 PR debug/91772
11610 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
11611 was missing generate locations only once.
11612
11613 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
11614
11615 PR ipa/91089
11616 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
11617 option.
11618 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
11619 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
11620 for switch default case using range analysis information.
11621
11622 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
11623
11624 PR target/91749
11625 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
11626 mode attributed is supported by FDPIC.
11627
11628 2019-09-17 Richard Biener <rguenther@suse.de>
11629
11630 PR tree-optimization/91790
11631 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
11632 use the correct DR for setting up realignment.
11633
11634 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
11635
11636 PR target/91719
11637 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11638 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
11639 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
11640 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11641
11642 2019-09-16 Jason Merrill <jason@redhat.com>
11643
11644 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
11645
11646 2019-09-16 Martin Liska <mliska@suse.cz>
11647
11648 * gimple-fold.c (or_comparisons_1): Remove rules moved
11649 to ...
11650 * match.pd: ... here.
11651
11652 2019-09-16 Martin Liska <mliska@suse.cz>
11653
11654 * gimple-fold.c (or_comparisons_1): Remove rules
11655 moved to ...
11656 * match.pd: ... here.
11657
11658 2019-09-16 Martin Liska <mliska@suse.cz>
11659
11660 * genmatch.c (dt_node::append_simplify): Do not print
11661 warning when we have duplicate patterns belonging
11662 to a same simplify rule.
11663 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
11664 (maybe_fold_comparisons_from_match_pd): Handle
11665 tcc_comparison as a results.
11666 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
11667
11668 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11669 Qi Feng <ffengqi@linux.ibm.com>
11670
11671 PR middle-end/88784
11672 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
11673 (x > y && x == XXX_MIN): Optimize into 'false'.
11674 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
11675 (x < y && x != XXX_MAX): Optimize into 'x < y'.
11676 (x < y && x == XXX_MAX): Optimize into 'false'.
11677 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
11678 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
11679 (x <= y || x != XXX_MIN): Optimize into 'true'.
11680 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
11681 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
11682 (x >= y || x != XXX_MAX): Optimize into 'true'.
11683 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
11684
11685 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11686 Martin Liska <mliska@suse.cz>
11687
11688 * gimple-fold.c (and_comparisons_1): Add type as first
11689 argument.
11690 (and_var_with_comparison): Likewise.
11691 (and_var_with_comparison_1): Likewise.
11692 (or_comparisons_1): Likewise.
11693 (or_var_with_comparison): Likewise.
11694 (or_var_with_comparison_1): Likewise.
11695 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
11696 (maybe_fold_or_comparisons): Likewise.
11697 (maybe_fold_comparisons_from_match_pd): New.
11698 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
11699 (maybe_fold_or_comparisons): Likewise.
11700 * gimple.c (gimple_size): Make it public and add num_ops argument.
11701 (gimple_init): New function.
11702 (gimple_alloc): Call gimple_init.
11703 * gimple.h (gimple_size): New.
11704 (gimple_init): Likewise.
11705 * tree-if-conv.c (fold_or_predicates): Pass type.
11706 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11707 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
11708 (optimize_vec_cond_expr): Likewise.
11709 (ovce_extract_ops): Return type of conditional expression.
11710 * tree-ssanames.c (init_ssa_name_imm_use): New.
11711 (make_ssa_name_fn): Use init_ssa_name_imm_use.
11712 * tree-ssanames.h (init_ssa_name_imm_use): New.
11713
11714 2019-09-16 Richard Biener <rguenther@suse.de>
11715
11716 PR tree-optimization/91756
11717 PR tree-optimization/87132
11718 * tree-ssa-alias.h (enum translate_flags): New.
11719 (get_continuation_for_phi): Use it instead of simple bool flag.
11720 (walk_non_aliased_vuses): Likewise.
11721 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11722 (get_continuation_for_phi): When looking across backedges only
11723 disallow valueization.
11724 (walk_non_aliased_vuses): Adjust.
11725 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
11726 if requested.
11727
11728 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
11729
11730 PR middle-end/80791
11731 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
11732 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11733 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11734 * target.def (have_count_reg_decr_p): New hook.
11735 (doloop_cost_for_generic): Likewise.
11736 (doloop_cost_for_address): Likewise.
11737 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
11738 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11739 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11740 * doc/tm.texi: Regenerate.
11741 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
11742 addend.
11743 (record_group): Init doloop_p.
11744 (add_candidate_1): Add optional argument doloop, change the handlings
11745 accordingly.
11746 (add_candidate): Likewise.
11747 (generic_predict_doloop_p): Update attribute.
11748 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
11749 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
11750 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
11751 MIN_EXPR.
11752 (get_computation_cost): Update for doloop IV cand extra cost.
11753 (determine_group_iv_cost_cond): Update for doloop IV cand.
11754 (determine_iv_cost): Likewise.
11755 (ivopts_estimate_reg_pressure): Likewise.
11756 (may_eliminate_iv): Update handlings for doloop IV cand.
11757 (add_iv_candidate_for_doloop): New function.
11758 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
11759 (iv_ca_set_no_cp): Update for doloop IV cand.
11760 (iv_ca_set_cp): Likewise.
11761 (iv_ca_dump): Dump register cost.
11762 (find_doloop_use): New function.
11763 (analyze_and_mark_doloop_use): Likewise.
11764 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
11765
11766 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11767
11768 PR middle-end/91708
11769 * cse.c (cse_insn): Do not replace anything with a
11770 MEM.
11771
11772 2019-09-13 Ian Lance Taylor <iant@golang.org>
11773
11774 * doc/invoke.texi (Optimize Options): Fix typo.
11775
11776 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
11777
11778 PR tree-optimization/89386
11779 * config/i386/sse.md (smulhrs<mode>3): New expander.
11780 (smulhrsv4hi3): Ditto.
11781
11782 2019-09-12 Richard Biener <rguenther@suse.de>
11783
11784 PR tree-optimization/91750
11785 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
11786 in the type of the evolution.
11787
11788 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
11789
11790 PR tree-optimization/89386
11791 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
11792 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
11793 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
11794 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
11795 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
11796 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
11797 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
11798 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
11799 (su, r): Handle the unspecs above.
11800 (bt): New int attribute.
11801 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
11802 * internal-fn.c (first_commutative_argument): Commutativity info for
11803 above.
11804 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
11805 (umulhrs_optab): New optabs.
11806 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
11807 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
11808 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
11809 function.
11810 (vect_vect_recog_func_ptrs): Add it.
11811
11812 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
11813
11814 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
11815 code.
11816
11817 2019-09-11 Nathan Sidwell <nathan@acm.org>
11818
11819 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
11820 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
11821
11822 2019-09-11 Richard Biener <rguenther@suse.de>
11823
11824 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
11825 * lto-wrapper.c (merge_and_complain): Pick up -g.
11826 (append_compiler_options): Likewise.
11827 (run_gcc): Re-instantiate handling -g0 at link-time.
11828 * doc/invoke.texi (flto): Document debug info generation.
11829
11830 2019-09-11 Richard Biener <rguenther@suse.de>
11831
11832 PR tree-optimization/90387
11833 * vr-values.c (vr_values::extract_range_basic): After inlining
11834 simplify non-constant __builtin_constant_p to false.
11835
11836 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
11837
11838 PR rtl-optimization/89795
11839 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
11840 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
11841
11842 2019-09-11 Jakub Jelinek <jakub@redhat.com>
11843
11844 PR tree-optimization/91723
11845 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
11846 instead of pointer equality when checking if argument vectypes are
11847 the same.
11848
11849 PR middle-end/91725
11850 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
11851 of get_nonzero_bits, only call it for integral types.
11852
11853 2019-09-11 Richard Biener <rguenther@suse.de>
11854
11855 Revert
11856 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11857
11858 * match.pd: Add flag_unsafe_math_optimizations check
11859 before deciding on the widest type in a binary math operation.
11860
11861 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11862
11863 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
11864 and CALL_REALLY_USED_REGISTERS must be defined, and that
11865 CALL_REALLY_USED_REGISTERS is preferred.
11866 * doc/tm.texi: Regenerate.
11867 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
11868 (call_really_used_regs): Likewise.
11869 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
11870 CALL_REALLY_USED_REGISTERS are defined.
11871 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
11872 initial value if defined.
11873 (initial_call_really_used_regs): Delete.
11874 (saved_call_really_used_regs): Likewise.
11875 (CALL_REALLY_USED_REGNO_P): Likewise.
11876 (init_reg_sets): Remove handling of call_really_used_regs.
11877 (save_register_info, restore_register_info, globalize_reg): Likewise.
11878 (init_reg_sets_1): Likewise. Use call_used_regs instead of
11879 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
11880 outside operand_reg_set.
11881 (fix_register): Don't change call_used_regs if
11882 CALL_REALLY_USED_REGISTERS is defined.
11883 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
11884 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
11885 instead of call_really_used_regs.
11886 (csky_conditional_register_usage): Remove the old handling of
11887 call_used_regs and change the handling of call_really_used_regs
11888 to use call_used_regs instead.
11889 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
11890 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
11891 making a register fixed.
11892 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
11893 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
11894 instead of call_really_used_regs.
11895 (m32r_conditional_register_usage): Don't set call_used_regs when
11896 making a register fixed.
11897 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
11898 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
11899 instead of call_really_used_regs.
11900 (mips_interrupt_extra_call_saved_reg_p): Likewise.
11901 (mips_cfun_call_saved_reg_p): Likewise.
11902 (mips_swap_registers): Remove the old handling of call_used_regs
11903 and change the handling of call_really_used_regs to use call_used_regs
11904 instead.
11905 (mips_conditional_register_usage): Likewise.
11906 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
11907 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
11908 instead of call_really_used_regs.
11909 (mn10300_get_live_callee_saved_regs): Likewise.
11910 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
11911 (mn10300_conditional_register_usage): Don't set call_used_regs when
11912 making a register fixed.
11913 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
11914 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11915 Remove the old handling of call_used_regs and change the handling
11916 of call_really_used_regs to use call_used_regs instead.
11917 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
11918 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
11919 instead of call_really_used_regs.
11920 (s390_register_info_gprtofpr, s390_register_info): Likewise.
11921 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
11922 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
11923 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
11924 (s390_conditional_register_usage): Remove the old handling of
11925 call_used_regs and change the handling of call_really_used_regs
11926 to use call_used_regs instead.
11927 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
11928 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
11929 (sh_fix_range, reg_unused_after): Likewise.
11930 (sh_conditional_register_usage): Remove the old handling of
11931 call_used_regs and change the handling of call_really_used_regs
11932 to use call_used_regs instead.
11933 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
11934 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
11935 call_used_regs when making a register fixed.
11936 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
11937 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
11938 call_used_regs when making a register fixed.
11939 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
11940 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
11941 set call_used_regs when making a register fixed.
11942 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
11943 * config/visium/visium.c (visium_conditional_register_usage): Remove
11944 the old handling of call_used_regs and change the handling of
11945 call_really_used_regs to use call_used_regs instead.
11946
11947 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11948
11949 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
11950 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
11951 * reginfo.c (call_used_regs): New macro.
11952
11953 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11954
11955 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
11956 fixed_regs test.
11957 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11958 (bpf_expand_epilogue): Likewise.
11959 * config/c6x/c6x.c (c6x_save_reg): Likewise.
11960 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11961 (ft32_expand_epilogue): Likewise.
11962 * config/i386/i386.c (ix86_save_reg): Likewise.
11963 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
11964 (moxie_expand_epilogue): Likewise.
11965 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11966 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11967 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11968
11969 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11970
11971 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
11972 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
11973 instead of testing call_used_regs directly.
11974 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
11975 (aarch64_components_for_bb): Likewise.
11976 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
11977 * config/arc/arc.c (arc_must_save_register): Likewise.
11978 (arc_epilogue_uses): Likewise.
11979 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
11980 (legitimize_pic_address, callee_saved_reg_p): Likewise.
11981 (arm_compute_save_reg0_reg12_mask): Likewise.
11982 (arm_compute_save_core_reg_mask): Likewise.
11983 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
11984 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
11985 (cmse_nonsecure_entry_clear_before_return): Likewise.
11986 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
11987 (arm_expand_epilogue): Likewise.
11988 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
11989 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
11990 (_reg_unused_after): Likewise.
11991 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
11992 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
11993 (add_to_reg, hwloop_optimize): Likewise.
11994 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11995 (bpf_expand_epilogue): Likewise.
11996 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
11997 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
11998 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
11999 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12000 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12001 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12002 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12003 * config/frv/frv.c (frv_stack_info): Likewise.
12004 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12005 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12006 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12007 (move_callee_saved_registers): Likewise.
12008 * config/h8300/h8300.c (byte_reg): Likewise.
12009 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12010 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12011 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12012 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12013 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12014 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12015 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12016 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12017 * config/m32c/m32c.c (need_to_save): Likewise.
12018 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12019 * config/mcore/mcore.c (calc_live_regs): Likewise.
12020 * config/microblaze/microblaze.c (microblaze_must_save_register):
12021 Likewise.
12022 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12023 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12024 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12025 (mmix_expand_epilogue): Likewise.
12026 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12027 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12028 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12029 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12030 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12031 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12032 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12033 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12034 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12035 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12036 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12037 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12038 * config/rl78/rl78.c (need_to_save): Likewise.
12039 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12040 (rs6000_stack_info, generate_set_vrsave): Likewise.
12041 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12042 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12043 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12044 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12045 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12046 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12047 (save_local_or_in_reg_p): Likewise.
12048 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12049 (xstormy16_epilogue_uses): Likewise.
12050 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12051 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12052 * config/v850/v850.c (compute_register_save_size): Likewise.
12053 * config/vax/vax.c (vax_expand_prologue): Likewise.
12054 * config/visium/visium.c (visium_save_reg_p): Likewise.
12055 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12056 * cselib.c (cselib_process_insn): Likewise.
12057 * df-scan.c (df_get_entry_block_def_set): Likewise.
12058 * function.c (aggregate_value_p): Likewise.
12059 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12060 * ira-lives.c (process_bb_node_lives): Likewise.
12061 * ira.c (do_reload): Likewise.
12062 * lra-lives.c (process_bb_lives): Likewise.
12063 * lra-remat.c (lra_remat): Likewise.
12064 * lra.c (lra): Likewise.
12065 * postreload.c (reload_combine_recognize_pattern): Likewise.
12066 (reload_cse_move2add): Likewise.
12067 * recog.c (peep2_find_free_register): Likewise.
12068 * regrename.c (check_new_reg_p): Likewise.
12069 * reload.c (find_equiv_reg): Likewise.
12070 * reload1.c (reload, find_reg): Likewise.
12071 * sel-sched.c (init_hard_regs_data): Likewise.
12072
12073 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12074
12075 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12076 regs_invalidated_by_call & ~fixed_reg_set instead of
12077 call_used_or_fixed_regs & ~fixed_reg_set.
12078 * config/sh/sh.c (output_stack_adjust): Likewise.
12079
12080 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12081
12082 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12083 (call_used_reg_set): Delete.
12084 (call_used_or_fixed_regs): New macro.
12085 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12086 of call_used_reg_set.
12087 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12088 instead of call_used_regs.
12089 (save_call_clobbered_regs): Likewise.
12090 * cfgcleanup.c (old_insns_match_p): Likewise.
12091 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12092 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12093 Likewise.
12094 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12095 * config/sh/sh.c (output_stack_adjust): Likewise.
12096 * final.c (collect_fn_hard_reg_usage): Likewise.
12097 * ira-build.c (ira_build): Likewise.
12098 * ira-color.c (calculate_saved_nregs): Likewise.
12099 (allocno_reload_assign, calculate_spill_cost): Likewise.
12100 * ira-conflicts.c (ira_build_conflicts): Likewise.
12101 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12102 * ira-lives.c (process_bb_node_lives): Likewise.
12103 * ira.c (setup_reg_renumber): Likewise.
12104 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12105 * lra-constraints.c (need_for_call_save_p): Likewise.
12106 (need_for_split_p, inherit_in_ebb): Likewise.
12107 * lra-lives.c (process_bb_lives): Likewise.
12108 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12109 * postreload.c (reload_combine): Likewise.
12110 * regrename.c (find_rename_reg): Likewise.
12111 * reload1.c (reload_as_needed): Likewise.
12112 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12113 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12114 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12115
12116 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12117
12118 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12119 (no_caller_save_reg_set): Delete.
12120 * caller-save.c (init_caller_save): Don't initialize it.
12121 * ira-conflicts.c (ira_build_conflicts): Calculate
12122 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12123
12124 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12125
12126 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12127 (target_hard_regs::x_savable_regs): New field.
12128 (call_fixed_reg_set): Delete.
12129 (savable_regs): New macro,
12130 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12131 (init_reg_sets_1): Likewise. Initialize savable_regs.
12132 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12133 for all registers. Set savable_regs instead of call_fixed_reg_set.
12134 (setup_save_areas, save_call_clobbered_regs): Replace uses of
12135 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
12136 * config/sh/sh.c (output_stack_adjust): Likewise.
12137
12138 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12139
12140 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
12141 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
12142 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
12143
12144 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12145
12146 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
12147 * rtlanal.c (get_call_rtx_from): Likewise.
12148 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
12149 than the pattern to get_call_rtx_from.
12150 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
12151 an rtx_insn * instead of an rtx.
12152 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
12153
12154 2019-09-10 Martin Liska <mliska@suse.cz>
12155
12156 * common.opt: Use newly added WarnRemoved.
12157 * config/aarch64/aarch64.opt: Likewise.
12158 * config/arm/arm.opt: Likewise.
12159 * config/i386/i386.opt: Likewise.
12160 * config/ia64/ia64.opt: Likewise.
12161 * config/rs6000/rs6000.opt: Likewise.
12162 * doc/options.texi: Document WarnRemoved properly.
12163 * dwarf2out.c (gen_producer_string): Handle renamed
12164 OPT_SPECIAL_warn_removed.
12165 * lto-opts.c (lto_write_options): Likewise.
12166 * lto-wrapper.c (merge_and_complain): Likewise.
12167 * opts-common.c (decode_cmdline_option): Likewise.
12168 (prune_options): Likewise.
12169 (read_cmdline_option): Likewise.
12170 (control_warning_option): Likewise.
12171 * opts.c (print_filtered_help): Likewise.
12172 * optc-gen.awk: Parse for WarnRemoved and make usage
12173 of Deprecated an error.
12174 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
12175
12176 2019-09-10 Arnaud Charlet <charlet@adacore.com>
12177
12178 * doc/install.texi: Fix syntax for html generation.
12179
12180 2019-09-10 Jakub Jelinek <jakub@redhat.com>
12181
12182 PR middle-end/91680
12183 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
12184 the shift type to type.
12185
12186 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12187
12188 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
12189 FDPIC mode.
12190 (stack_protect_combined_test_insn): Likewise.
12191
12192 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12193 Mickaël Guêné <mickael.guene@st.com>
12194
12195 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
12196 * config/arm/arm.md (FDPIC_REGNUM): New constant.
12197 (load_tp_soft_fdpic): New pattern.
12198 (load_tp_soft): Disable in FDPIC mode.
12199
12200 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12201 Mickaël Guêné <mickael.guene@st.com>
12202
12203 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
12204 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
12205 (arm_call_tls_get_addr): Add FDPIC support.
12206 (legitimize_tls_address): Likewise.
12207 (arm_emit_tls_decoration): Likewise.
12208
12209 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12210 Mickaël Guêné <mickael.guene@st.com>
12211
12212 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
12213 support.
12214 (arm_trampoline_init): Likewise.
12215 (arm_trampoline_adjust_address): Likewise.
12216 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
12217
12218 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12219 Mickaël Guêné <mickael.guene@st.com>
12220
12221 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
12222 (legitimize_pic_address): Enforce binding rules on function
12223 pointers in FDPIC mode.
12224 (arm_assemble_integer): Likewise.
12225
12226 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12227 Mickaël Guêné <mickael.guene@st.com>
12228
12229 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
12230 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
12231 FDPIC.
12232
12233 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12234 Mickaël Guêné <mickael.guene@st.com>
12235
12236 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
12237 field.
12238
12239 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12240 Mickaël Guêné <mickael.guene@st.com>
12241
12242 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
12243 in FDPIC mode.
12244 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
12245 new function.
12246 * config/arm/arm.c (arm_option_override): Define pic register to
12247 FDPIC_REGNUM.
12248 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
12249 have no decl or go through PLT.
12250 (calculate_pic_address_constant): New function.
12251 (legitimize_pic_address): Call calculate_pic_address_constant.
12252 (arm_load_pic_register): Handle TARGET_FDPIC.
12253 (arm_is_segment_info_known): New function.
12254 (arm_pic_static_addr): Add support for FDPIC.
12255 (arm_load_function_descriptor): New function.
12256 (arm_emit_call_insn): Add support for FDPIC.
12257 (arm_assemble_integer): Add support for FDPIC.
12258 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
12259 Define. (FDPIC_REGNUM): New define.
12260 * config/arm/arm.md (call): Add support for FDPIC.
12261 (call_value): Likewise.
12262 (restore_pic_register_after_call): New pattern.
12263 (untyped_call): Disable if FDPIC.
12264 (untyped_return): Likewise.
12265 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
12266
12267 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12268 Mickaël Guêné <mickael.guene@st.com>
12269
12270 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
12271 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
12272 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
12273 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
12274 (CC1_SPEC): Use FDPIC_CC1_SPEC.
12275 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
12276 * config/arm/uclinuxfdpiceabi.h: New file.
12277
12278 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12279
12280 * config.gcc: Handle *-*-uclinuxfdpiceabi.
12281
12282 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12283 Mickaël Guêné <mickael.guene@st.com>
12284
12285 * config/arm/arm.opt: Add -mfdpic option.
12286 * doc/invoke.texi: Add documentation for -mfdpic.
12287
12288 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12289
12290 * expmed.c (extract_bit_field): Update function comment
12291 regarding alt_rtl.
12292 * expr.c (expand_expr_real): Update function comment
12293 regarding alt_rtl.
12294 (expand_misaligned_mem_ref): New helper function.
12295 (expand_expr_real_2): Use expand_misaligned_mem_ref.
12296 Remove duplicate assignment to "base" at case MEM_REF.
12297 Remove a shadowed variable "unsignedp" at case VCE.
12298
12299 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12300
12301 * regset.h (regs_invalidated_by_call_regset): Delete.
12302 (fixed_reg_set_regset): Likewise.
12303 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
12304 (fixed_reg_set_regset, persistent_obstack): Likewise.
12305 (init_reg_sets_1, globalize_reg): Update accordingly.
12306 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
12307 instead of a bitmap.
12308 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
12309 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
12310 instead of regs_invalidated_by_call_regset.
12311 (df_lr_confluence_n, df_md_confluence_n): Likewise.
12312 * df-scan.c (df_scan_start_dump): Likewise.
12313 * dse.c (copy_fixed_regs): Likewise.
12314 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
12315
12316 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12317
12318 * array-traits.h: New file.
12319 * coretypes.h (array_traits, bitmap_view): New types.
12320 * bitmap.h: Include "array-traits.h"
12321 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12322 (base_bitmap_view, bitmap_view): New classes.
12323 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12324 * hard-reg-set.h: Include array-traits.h.
12325 (array_traits<HARD_REG_SET>): New struct.
12326 * regset.h (IOR_REG_SET_HRS): New macro.
12327 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
12328 rather than iterating over each hard register.
12329 * sched-deps.c (sched_analyze_insn): Likewise.
12330 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
12331
12332 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12333
12334 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
12335 instead of a HARD_REG_SET *.
12336 * ira-build.c (ior_hard_reg_conflicts): Likewise.
12337 (ira_build): Update call accordingly.
12338 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12339
12340 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12341
12342 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
12343 (HARD_REG_SET::operator!=): Likewise.
12344 (hard_reg_set_equal_p): Delete.
12345 * cfgcleanup.c (old_insns_match_p): Use == instead of
12346 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
12347 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
12348 (add_allocno_hard_regs_to_forest): Likewise.
12349 (setup_allocno_available_regs_num): Likewise.
12350 * ira.c (setup_pressure_classes): Likewise.
12351 (setup_allocno_and_important_classes): Likewise.
12352 (setup_reg_class_relations): Likewise.
12353 * lra-lives.c (process_bb_lives): Likewise.
12354 * reg-stack.c (change_stack, convert_regs_1): Likewise.
12355
12356 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12357
12358 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
12359 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
12360 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
12361 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
12362 Likewise.
12363 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
12364 * ira.c (setup_reg_renumber): Likewise.
12365 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12366 * regrename.c (regrename_find_superclass): Likewise.
12367 * reload1.c (find_reg): Likewise.
12368
12369 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12370
12371 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
12372 * caller-save.c (setup_save_areas): Use "&~" instead of
12373 AND_COMPL_HARD_REG_SET.
12374 (save_call_clobbered_regs): Likewise.
12375 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12376 Likewise.
12377 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12378 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12379 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
12380 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12381 (mips_conditional_register_usage): Likewise.
12382 * config/sh/sh.c (output_stack_adjust): Likewise.
12383 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
12384 (setup_profitable_hard_regs): Likewise.
12385 (get_conflict_and_start_profitable_regs): Likewise.
12386 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12387 (ira_build_conflicts): Likewise.
12388 * ira-costs.c (restrict_cost_classes): Likewise.
12389 (setup_regno_cost_classes_by_aclass): Likewise.
12390 * ira-lives.c (process_bb_node_lives): Likewise.
12391 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
12392 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
12393 (setup_allocno_and_important_classes, setup_class_translate_array)
12394 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
12395 Likewise.
12396 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12397 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12398 (process_alt_operands, inherit_in_ebb): Likewise.
12399 * lra-eliminations.c (update_reg_eliminate): Likewise.
12400 * lra-lives.c (process_bb_lives): Likewise.
12401 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
12402 * resource.c (find_dead_or_set_registers): Likewise.
12403 (mark_target_live_regs): Likewise.
12404 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
12405 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12406 (implicit_clobber_conflict_p): Likewise.
12407 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12408 (try_shrink_wrapping): Likewise.
12409
12410 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12411
12412 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
12413 (HARD_REG_SET::operator|=): Likewise.
12414 (IOR_HARD_REG_SET): Delete.
12415 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
12416 IOR_HARD_REG_SET.
12417 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12418 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
12419 * final.c (collect_fn_hard_reg_usage): Likewise.
12420 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
12421 * ira-build.c (merge_hard_reg_conflicts): Likewise.
12422 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
12423 (propagate_some_info_from_allocno): Likewise.
12424 (copy_info_to_removed_store_destinations): Likewise.
12425 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
12426 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
12427 (fast_allocation): Likewise.
12428 * ira-conflicts.c (ira_build_conflicts): Likewise.
12429 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
12430 (process_bb_node_lives): Likewise.
12431 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
12432 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12433 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12434 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
12435 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
12436 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
12437 (process_bb_lives): Likewise.
12438 * lra-spills.c (assign_spill_hard_regs): Likewise.
12439 * postreload.c (reload_combine): Likewise.
12440 * reginfo.c (init_reg_sets_1): Likewise.
12441 * regrename.c (merge_overlapping_regs, find_rename_reg)
12442 (merge_chains): Likewise.
12443 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
12444 (find_reload_regs, finish_spills, choose_reload_regs_init)
12445 (emit_reload_insns): Likewise.
12446 * reorg.c (redundant_insn): Likewise.
12447 * resource.c (find_dead_or_set_registers, mark_set_resources)
12448 (mark_target_live_regs): Likewise.
12449 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12450 * sched-deps.c (sched_analyze_insn): Likewise.
12451 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12452 (find_best_reg_for_expr): Likewise.
12453 * shrink-wrap.c (try_shrink_wrapping): Likewise.
12454
12455 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12456
12457 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
12458 (HARD_REG_SET::operator&): Likewise.
12459 (AND_HARD_REG_SET): Delete.
12460 * caller-save.c (setup_save_areas): Use "&" instead of
12461 AND_HARD_REG_SET.
12462 (save_call_clobbered_regs): Likewise.
12463 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12464 * config/m32c/m32c.c (reduce_class): Likewise.
12465 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12466 * final.c (get_call_reg_set_usage): Likewise.
12467 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
12468 (setup_left_conflict_sizes_p): Likewise.
12469 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12470 (ira_build_conflicts): Likewise.
12471 * ira-costs.c (restrict_cost_classes): Likewise.
12472 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
12473 (setup_reg_class_relations): Likewise.
12474 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
12475 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
12476 * resource.c (find_dead_or_set_registers): Likewise.
12477 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12478
12479 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12480
12481 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
12482 (COMPL_HARD_REG_SET): Delete.
12483 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
12484 of COMPL_HARD_REG_SET.
12485 (try_rename_operands): Likewise.
12486 * config/sh/sh.c (push_regs): Likewise.
12487 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12488 * lra-constraints.c (contains_reg_p): Likewise.
12489 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
12490
12491 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12492
12493 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
12494 * caller-save.c (save_call_clobbered_regs): Use assignment instead
12495 of COPY_HARD_REG_SET.
12496 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
12497 (epiphany_conditional_register_usage): Likewise.
12498 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12499 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12500 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12501 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12502 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
12503 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12504 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
12505 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12506 * config/sh/sh.c (output_stack_adjust): Likewise.
12507 * final.c (collect_fn_hard_reg_usage): Likewise.
12508 (get_call_reg_set_usage): Likewise.
12509 * ira-build.c (ira_create_object, remove_low_level_allocnos)
12510 (ira_flattening): Likewise.
12511 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
12512 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
12513 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
12514 (ira_reassign_pseudos): Likewise.
12515 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12516 (ira_build_conflicts): Likewise.
12517 * ira-costs.c (restrict_cost_classes): Likewise.
12518 (setup_regno_cost_classes_by_aclass): Likewise.
12519 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
12520 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
12521 (setup_stack_reg_pressure_class, setup_pressure_classes)
12522 (setup_allocno_and_important_classes, setup_class_translate_array)
12523 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
12524 (ira_setup_eliminable_regset): Likewise.
12525 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12526 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12527 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12528 (process_alt_operands, inherit_in_ebb): Likewise.
12529 * lra-lives.c (process_bb_lives): Likewise.
12530 * lra-spills.c (assign_spill_hard_regs): Likewise.
12531 * lra.c (lra): Likewise.
12532 * mode-switching.c (new_seginfo): Likewise.
12533 * postreload.c (reload_combine): Likewise.
12534 * reg-stack.c (straighten_stack): Likewise.
12535 * reginfo.c (save_register_info, restore_register_info): Likewise.
12536 (init_reg_sets_1, record_subregs_of_mode): Likewise
12537 * regrename.c (create_new_chain, rename_chains): Likewise.
12538 * reload1.c (order_regs_for_reload, find_reg): Likewise.
12539 (find_reload_regs): Likewise.
12540 * resource.c (find_dead_or_set_registers): Likewise.
12541 (mark_target_live_regs): Likewise.
12542 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12543
12544 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12545
12546 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
12547 (note_pattern_stores): Declare.
12548 (note_stores): Take an rtx_insn *.
12549 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
12550 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
12551 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
12552 (note_stores): Take an rtx_insn * as argument and process
12553 CALL_INSN_FUNCTION_USAGE. Rename old function to...
12554 (note_pattern_stores): ...this.
12555 (find_first_parameter_load): Pass the insn rather than
12556 its pattern to note_stores.
12557 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
12558 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
12559 (insert_one_insn): Likewise.
12560 * combine.c (combine_instructions): Likewise.
12561 (likely_spilled_retval_p): Likewise.
12562 (try_combine): Use note_pattern_stores instead of note_stores.
12563 (record_dead_and_set_regs): Pass the insn rather than its pattern
12564 to note_stores.
12565 (reg_dead_at_p): Likewise.
12566 * config/bfin/bfin.c (workaround_speculation): Likewise.
12567 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
12568 rather than an rtx.
12569 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
12570 instead of note_stores.
12571 (frv_optimize_membar_local): Pass the insn rather than its pattern
12572 to note_stores.
12573 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12574 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
12575 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
12576 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
12577 (mips_reorg_process_insns): Likewise.
12578 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
12579 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
12580 rather than rtxes.
12581 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
12582 its pattern to note_stores.
12583 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
12584 of note_stores.
12585 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
12586 the insn to note_stores.
12587 (prescan_insns_for_dce): Update call accordingly.
12588 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
12589 to note_stores.
12590 * df-problems.c (can_move_insns_across): Likewise.
12591 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
12592 * function.c (assign_parm_setup_reg): Likewise.
12593 * gcse-common.c (record_last_mem_set_info_common): Likewise.
12594 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
12595 (single_set_gcse): Likewise.
12596 * ira.c (validate_equiv_mem): Likewise.
12597 (update_equiv_regs): Use note_pattern_stores rather than note_stores
12598 for no_equiv.
12599 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
12600 pattern to note_stores.
12601 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12602 * loop-iv.c (simplify_using_initial_values): Likewise.
12603 * mode-switching.c (optimize_mode_switching): Likewise.
12604 * optabs.c (emit_libcall_block_1): Likewise.
12605 (expand_atomic_compare_and_swap): Likewise.
12606 * postreload-gcse.c (load_killed_in_block_p): Likewise.
12607 (record_opr_changes): Likewise. Remove explicit handling of
12608 CALL_INSN_FUNCTION_USAGE.
12609 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
12610 * regcprop.c (kill_clobbered_values): Likewise.
12611 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
12612 to note_stores.
12613 * regrename.c (build_def_use): Likewise.
12614 * reload1.c (reload): Use note_pattern_stores instead of note_stores
12615 for mark_not_eliminable.
12616 (reload_as_needed): Pass the insn rather than its pattern
12617 to note_stores.
12618 (emit_output_reload_insns): Likewise.
12619 * resource.c (mark_target_live_regs): Likewise.
12620 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12621 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
12622 instead of note_stores.
12623 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
12624 its pattern to note_stores.
12625 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
12626 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
12627
12628 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12629
12630 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
12631 than a #define. Use a structure rather than an array as the
12632 fallback definition. Remove special cases for low array sizes.
12633 (const_hard_reg_set): New typedef.
12634 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
12635 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
12636 (hard_reg_set_empty_p): Likewise.
12637 (SET_HARD_REG_BIT): Use a function rather than a macro to
12638 handle the case in which HARD_REG_SET is a structure.
12639 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
12640 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12641 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12642 (IOR_COMPL_HARD_REG_SET): Likewise.
12643 (hard_reg_set_iterator::pset): Constify the pointer target.
12644 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
12645 of a "const HARD_REG_SET". Update the handling of non-integer
12646 HARD_REG_SETs.
12647 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
12648 * reload.h: Likewise.
12649 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
12650 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
12651 of a "const HARD_REG_SET".
12652 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
12653 (range_in_hard_reg_set_p): Likewise.
12654 * ira-costs.c (restrict_cost_classes): Likewise.
12655 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
12656 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12657 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
12658 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
12659 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
12660 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
12661 take an unsigned int and open-code the HARD_REG_SET operations.
12662
12663 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12664
12665 * Makefile.in (OBJS): Remove bt-load.o.
12666 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
12667 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12668 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
12669 document that the option no longer does anything.
12670 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12671 * target.def (branch_target_register_class): Delete.
12672 (branch_target_register_callee_saved): Likewise.
12673 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12674 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
12675 * doc/tm.texi: Regenerate.
12676 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
12677 (make_pass_branch_target_load_optimize2): Likewise.
12678 * passes.def (pass_branch_target_load_optimize1): Likewise.
12679 (pass_branch_target_load_optimize2): Likewise.
12680 * targhooks.h (default_branch_target_register_class): Likewise.
12681 * targhooks.c (default_branch_target_register_class): Likewise.
12682 * opt-suggestions.c (test_completion_valid_options): Remove
12683 -fbtr-bb-exclusive from the list of test options.
12684 * bt-load.c: Remove.
12685
12686 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12687
12688 * match.pd: Add flag_unsafe_math_optimizations check
12689 before deciding on the widest type in a binary math operation.
12690
12691 2019-09-09 Martin Liska <mliska@suse.cz>
12692
12693 * config/i386/i386.opt: Update comment of removed
12694 options that are preserved only for backward
12695 compatibility.
12696
12697 2019-09-09 Jakub Jelinek <jakub@redhat.com>
12698
12699 PR target/87853
12700 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
12701 instead of __v16qs.
12702
12703 PR target/91704
12704 * config/i386/avxintrin.h (__v32qs): New typedef.
12705 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
12706 instead of __v32qi.
12707
12708 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12709
12710 * doc/invoke.texi (Option Summary): Cover eBPF.
12711 (eBPF Options): New section.
12712 * doc/extend.texi (BPF Built-in Functions): Likewise.
12713 (BPF Kernel Helpers): Likewise.
12714
12715 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12716
12717 * config.gcc: Support for bpf-*-* targets.
12718 * common/config/bpf/bpf-common.c: New file.
12719 * config/bpf/t-bpf: Likewise.
12720 * config/bpf/predicates.md: Likewise.
12721 * config/bpf/constraints.md: Likewise.
12722 * config/bpf/bpf.opt: Likewise.
12723 * config/bpf/bpf.md: Likewise.
12724 * config/bpf/bpf.h: Likewise.
12725 * config/bpf/bpf.c: Likewise.
12726 * config/bpf/bpf-protos.h: Likewise.
12727 * config/bpf/bpf-opts.h: Likewise.
12728 * config/bpf/bpf-helpers.h: Likewise.
12729 * config/bpf/bpf-helpers.def: Likewise.
12730
12731 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12732
12733 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12734 indirect_calls.
12735
12736 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12737
12738 * opt-functions.awk (integer_range_info): Make sure values are in
12739 numeric context before operating with them.
12740
12741 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
12742
12743 * genemit.c (gen_split): Print the filename and line number where the
12744 splitter (or peephole2) was defined, to the dump file.
12745
12746 2019-09-07 Jakub Jelinek <jakub@redhat.com>
12747
12748 PR tree-optimization/91665
12749 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
12750 incompatible with the type of PHI result.
12751
12752 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
12753
12754 PR target/91684
12755 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
12756 gen_unaligned_storedi for 4-byte aligned addresses.
12757
12758 2019-09-06 Jim Wilson <jimw@sifive.com>
12759
12760 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
12761 change.
12762
12763 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12764
12765 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
12766
12767 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12768
12769 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
12770 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
12771
12772 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
12773
12774 PR target/91654
12775 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
12776 cost of SSE->integer and integer->SSE moves from 2 to 6.
12777 (core_cost): Ditto.
12778
12779 2019-09-06 Jakub Jelinek <jakub@redhat.com>
12780
12781 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
12782 before testing TYPE_TRANSPARENT_AGGR.
12783 * calls.c (initialize_argument_information, load_register_parameters):
12784 Likewise.
12785
12786 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
12787
12788 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
12789 high regs.
12790 (cmp_ior): Likewise.
12791
12792 2019-09-06 Martin Liska <mliska@suse.cz>
12793
12794 * doc/match-and-simplify.texi: Separate tuples with ;.
12795
12796 2019-09-06 Martin Liska <mliska@suse.cz>
12797
12798 PR c++/91125
12799 * Makefile.in: Remove tlink.o.
12800 * collect2.c (do_link): New function isolated
12801 from do_tlink.
12802 (main): Use.
12803 * collect2.h (do_tlink): Remove declaration of do_tlink.
12804 * doc/extend.texi: Remove documentation of -frepo.
12805 * doc/invoke.texi: Likewise.
12806 * doc/sourcebuild.texi: Remove cleanup-repo-files.
12807 * tlink.c: Remove.
12808
12809 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12810 Jim Wilson <jimw@sifive.com>
12811
12812 PR target/91635
12813 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
12814 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
12815 paradoxical_subreg_p (operands[0]).
12816 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
12817 use as intermediate value.
12818
12819 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
12820
12821 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
12822 (sync_compare_and_swap<mode>_insn): Likewise.
12823
12824 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12825
12826 PR middle-end/91615
12827 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
12828 without movmisalign optab.
12829
12830 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12831
12832 PR middle-end/91001
12833 PR middle-end/91105
12834 PR middle-end/91106
12835 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
12836 types, use type of their first field instead of type of
12837 args[i].tree_value.
12838
12839 2019-09-05 Richard Biener <rguenther@suse.de>
12840
12841 PR rtl-optimization/91656
12842 * postreload-gcse.c (record_last_mem_set_info): Revert addition
12843 of early out.
12844
12845 2019-09-05 Richard Biener <rguenther@suse.de>
12846
12847 PR middle-end/90501
12848 * tree-inline.c (declare_return_variable): Mark the return
12849 slot as addressable after building an address of it.
12850
12851 2019-09-05 Arnaud Charlet <charlet@adacore.com>
12852
12853 * doc/install.texi: Update and clarify requirements to build GNAT.
12854
12855 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
12856
12857 PR middle-end/91577
12858 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
12859 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
12860 call to be in memory.
12861 (pass_expand::execute): Call discover_nonconstant_array_refs before
12862 setting currently_expanding_to_rtl.
12863
12864 2019-09-04 Caroline Tice <cmtice@google.com>
12865
12866 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
12867 specified together.
12868
12869 2019-09-04 Marek Polacek <polacek@redhat.com>
12870
12871 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
12872
12873 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
12874
12875 PR target/32413
12876 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12877 for QI and HImode moves between SSE and general registers.
12878
12879 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12880
12881 PR c/78736
12882 * doc/invoke.texi: Document -Wenum-conversion.
12883
12884 2019-09-04 Richard Biener <rguenther@suse.de>
12885
12886 PR rtl-optimization/36262
12887 * postreload-gcse.c: Include intl.h and gcse.h.
12888 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
12889 to avoid linear list walk.
12890 (record_last_mem_set_info): Gate off if not computing transparentness.
12891 (get_bb_avail_insn): If transparentness isn't computed give up
12892 early.
12893 (gcse_after_reload_main): Skip compute_transp and extended PRE
12894 if gcse_or_cprop_is_too_expensive says so.
12895
12896 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12897
12898 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
12899 noinit section.
12900 (msp430_select_section): Handle decls with the "noinit" attribute with
12901 default_elf_select_section.
12902 Handle SECCAT_RODATA_MERGE_* section types with
12903 default_elf_select_section.
12904 Add comments about handling of unsupported section types.
12905 (msp430_section_type_flags): Remove handling of the noinit section.
12906
12907 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12908
12909 * config/msp430/msp430.c (msp430_attr): Remove warnings about
12910 conflicting msp430-specific attributes.
12911 (msp430_section_attr): Likewise.
12912 Add warnings about conflicts with generic "noinit" and "section"
12913 attributes.
12914 Fix grammar in -mlarge error message.
12915 (msp430_data_attr): Rename to msp430_persist_attr.
12916 Add warnings about conflicts with generic "noinit" and "section"
12917 attributes.
12918 Add warning for when variable is not initialized.
12919 Chain conditionals which prevent the attribute being added.
12920 (ATTR_EXCL): New helper.
12921 (attr_reent_exclusions): New exclusion table.
12922 (attr_naked_exclusions): Likewise.
12923 (attr_crit_exclusions): Likewise.
12924 (attr_lower_exclusions): Likewise.
12925 (attr_upper_exclusions): Likewise.
12926 (attr_either_exclusions): Likewise.
12927 (attr_persist_exclusions): Likewise.
12928 (msp430_attribute_table): Update with exclusion rules.
12929 (msp430_output_aligned_decl_common): Don't output common symbol if decl
12930 has a section.
12931
12932 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12933
12934 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
12935 (msp430_handle_generic_attribute): New function.
12936 * doc/tm.texi: Regenerate.
12937 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
12938 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12939 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12940 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
12941
12942 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
12943
12944 PR tree-optimization/91504
12945 * match.pd: Add ((~a & b) ^a) --> (a | b).
12946
12947 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12948
12949 PR target/91604
12950 * config/i386/i386-expand.c (split_double_mode): If there is more than
12951 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
12952 already split matching MEM operand instead of calling adjust_address
12953 again.
12954
12955 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
12956
12957 * config.gcc: Obsolete spu target. Remove references to spu.
12958 * configure.ac: Remove references to spu.
12959 * configure: Regenerate.
12960 * config/spu/: Remove directory.
12961 * common/config/spu/: Remove directory.
12962
12963 * doc/extend.texi: Remove references to spu.
12964 * doc/invoke.texi: Likewise.
12965 * doc/md.texi: Likewise.
12966 * doc/sourcebuild.texi: Likewise.
12967
12968 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12969
12970 PR middle-end/91603
12971 PR middle-end/91612
12972 PR middle-end/91613
12973 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
12974 and SSA_NAME referring to CONSTANT_P correctly.
12975
12976 2019-09-03 Richard Biener <rguenther@suse.de>
12977
12978 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
12979 (vn_nary_op_insert): Likewise.
12980 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
12981 (vn_nary_op_lookup): Likewise.
12982 (vn_nary_op_insert): Likewise.
12983
12984 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
12985
12986 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
12987 (*op0, 1) instead of XEXP (*op1, 0).
12988
12989 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12990
12991 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
12992 (aarch64_fjcvtzs): New define_insn.
12993 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
12994 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
12995 Add AARCH64_JSCVT.
12996 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
12997 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
12998 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
12999 __ARM_FEATURE_JCVT where appropriate.
13000 * config/aarch64/arm_acle.h (__jcvt): Define.
13001
13002 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13003
13004 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13005 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13006 (aarch64_<frintnzs_op><mode>): New define_insn.
13007 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13008 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13009 __ARM_FEATURE_FRINT when appropriate.
13010 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13011 frint32x, frint64z, frint64x.
13012 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13013 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13014 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13015 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13016 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13017 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13018 * config/aarch64/iterators.md (VSFDF): Define.
13019 (FRINTNZX): Likewise.
13020 (frintnzs_op): Likewise.
13021
13022 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13023
13024 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13025 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13026 Cortex-A34.
13027 * config/aarch64/aarch64-tune.md: Regenerated.
13028 * doc/invoke.texi: Document the new processors.
13029
13030 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13031
13032 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13033 string.
13034 (ssbs): Likewise.
13035 (sve2): Likewise.
13036 (sve2-sm4): Likewise.
13037 (sveaes): Likewise.
13038 (svesha3): Likewise.
13039 (svebitperm): Likewise.
13040
13041 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13042 Richard Biener <rguenther@suse.de>
13043
13044 PR tree-optimization/91597
13045 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13046 BIT_AND_EXPR optimization for pointers, even if both operand
13047 ranges don't include NULL, the result can be NULL.
13048
13049 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13050
13051 PR middle-end/91605
13052 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13053 (non_mem_decl_p): ...this.
13054 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13055 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13056 unconditionally as before.
13057
13058 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13059
13060 PR target/91323
13061 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13062 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13063 * tree.def (LTGT_EXPR): Likewise.
13064 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13065
13066 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13067
13068 PR go/91617
13069 * fold-const.c (range_check_type): For enumeral and boolean
13070 type, pass 1 to type_for_size langhook instead of
13071 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13072 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13073 (build_range_check): Don't call unsigned_type_for for pointer types.
13074 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13075 range_check_type result.
13076
13077 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13078
13079 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13080 (replace_ref): Do not replace a chain of only two candidates which are
13081 valid memory references.
13082
13083 2019-09-02 Martin Liska <mliska@suse.cz>
13084
13085 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13086 Bail out when we'll end up with the same number of clusters as
13087 at the beginning.
13088 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13089 (jump_table_cluster::can_be_handled): Remove the guard
13090 as it's already handled in ::is_enabled. Allocate output
13091 after early bail out.
13092
13093 2019-09-02 Martin Liska <mliska@suse.cz>
13094
13095 PR gcov-profile/91601
13096 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13097 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13098 also negative edges.
13099 (circuit): Handle also negative edges as they can happen
13100 in some situations.
13101
13102 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13103
13104 PR target/91472
13105 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13106 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13107 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13108
13109 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13110
13111 PR middle-end/91623
13112 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13113 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13114 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13115 zero vector.
13116
13117 PR lto/91572
13118 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13119 GIMPLE_ASM TREE_LIST operands.
13120
13121 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13122
13123 * doc/generic.texi (Unary and Binary Expressions): Mark up
13124 an instance of TYPE_MIN.
13125
13126 2019-08-31 Stafford Horne <shorne@gmail.com>
13127
13128 * config/or1k/constraints.md (t): New constraint.
13129 * config/or1k/or1k.h (GOT_REGS): New register class.
13130 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13131
13132 2019-08-30 Jim Wilson <jimw@sifive.com>
13133
13134 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
13135 and -fpic and -mplt then disable -msave-restore and warn.
13136
13137 2019-08-30 Martin Sebor <msebor@redhat.com>
13138
13139 PR middle-end/91599
13140 * tree-ssa-strlen.c (handle_store): Use a fallback location if
13141 the statement doesn't have one.
13142 * gimple-pretty-print.c (percent_G_format): Same.
13143
13144 PR middle-end/91584
13145 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
13146 before using them to validate MEM_REF offset.
13147
13148 2019-08-30 Marek Polacek <polacek@redhat.com>
13149
13150 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
13151
13152 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13153
13154 * config/arm/arm.md (unaligned_loaddi,
13155 unaligned_storedi): New unspec insn patterns.
13156 * config/arm/neon.md (unaligned_storev8qi): Likewise.
13157 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
13158 and unaligned_storedi for 4-byte aligned memory.
13159 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
13160 4-byte aligned memory.
13161
13162 2019-08-30 Martin Jambor <mjambor@suse.cz>
13163
13164 tree-optimization/91579
13165 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
13166 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
13167 appropriate.
13168 (arg_needs_copy_p): Removed.
13169 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
13170 arg_needs_copy_p.
13171 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
13172
13173 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13174
13175 * config/i386/i386-features.c
13176 (general_scalar_chain::compute_convert_gain):
13177 Correct cost for double-word shifts.
13178 (general_scalar_to_vector_candidate_p): Reject count operands
13179 greater or equal to mode bitsize.
13180
13181 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13182
13183 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13184 for moves between SSE and non-general registers and between
13185 mask and non-general registers.
13186 (ix86_register_move_cost): Remove stalled comment.
13187
13188 2019-08-29 Richard Biener <rguenther@suse.de>
13189
13190 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13191 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
13192
13193 2019-08-29 Richard Biener <rguenther@suse.de>
13194
13195 PR bootstrap/91580
13196 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13197 Do not emit scalar copies for debug-insns, instead replace
13198 their uses with the reg copy used in the chain or reset them
13199 if there is a reaching definition outside of the chain as well.
13200
13201 2019-08-29 Jakub Jelinek <jakub@redhat.com>
13202
13203 PR target/91560
13204 * config/i386/i386-expand.c (expand_vec_perm_movs,
13205 expand_vec_perm_blend, expand_vec_perm_vpermil,
13206 expand_vec_perm_pshufb, expand_vec_perm_1,
13207 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
13208 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
13209 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
13210 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
13211 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
13212 comments - replace ix86_expand_vec_perm_builtin_1 with
13213 ix86_expand_vec_perm_const_1.
13214 (expand_vec_perm2_vperm2f128_vblend): New function.
13215 (ix86_expand_vec_perm_const_1): New forward declaration. Call
13216 expand_vec_perm2_vperm2f128_vblend as last resort.
13217 (canonicalize_perm): Formatting fix.
13218
13219 PR tree-optimization/91351
13220 * tree-cfg.c (generate_range_test): Use range_check_type instead of
13221 unsigned_type_for.
13222 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
13223 range_check_type returns NULL.
13224 * tree-switch-conversion.c (switch_conversion::build_one_array):
13225 Use range_check_type instead of unsigned_type_for, don't perform
13226 linear opt if it returns NULL.
13227 (bit_test_cluster::find_bit_tests): Formatting fix.
13228 (bit_test_cluster::emit): Use range_check_type instead of
13229 unsigned_type_for.
13230 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
13231 returns NULL.
13232
13233 2019-08-29 Richard Biener <rguenther@suse.de>
13234
13235 PR tree-optimization/91568
13236 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
13237 (vect_update_max_nunits): Add overload for poly_uint64.
13238 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
13239 (vect_build_slp_tree): Record max_nunits into the subtree
13240 and merge it upwards.
13241 (vect_print_slp_tree): Print max_nunits.
13242
13243 2019-08-28 Marek Polacek <polacek@redhat.com>
13244
13245 Implement P1152R4: Deprecating some uses of volatile.
13246 PR c++/91361
13247 * doc/invoke.texi: Document -Wvolatile.
13248
13249 2019-08-28 Marek Polacek <polacek@redhat.com>
13250
13251 PR c++/91360 - Implement C++20 P1143R2: constinit.
13252 * doc/invoke.texi: Document -Wc++20-compat.
13253
13254 2019-08-28 Martin Sebor <msebor@redhat.com>
13255
13256 PR tree-optimization/91457
13257 * builtins.c (component_size): New function.
13258 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
13259 * builtins.h (compute_objsize): Add argument.
13260 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
13261 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
13262 (vrp_prop::check_mem_ref): Same.
13263 (vrp_prop::search_for_addr_array): Set no-warning bit.
13264 (check_array_bounds): Same.
13265
13266 2019-08-28 Martin Sebor <msebor@redhat.com>
13267
13268 PR driver/80545
13269 * opts-common.c (option_enabled): Correct checking for language
13270 options.
13271
13272 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
13273
13274 * config/i386/i386.c (ix86_register_move_cost): Do not
13275 limit the cost of moves to/from XMM register to minimum 8.
13276
13277 2019-08-28 Martin Jambor <mjambor@suse.cz>
13278
13279 PR ipa/91468
13280 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
13281 checking assert a normal assert to test it really is redundant.
13282 * ipa-prop.c (compute_complex_assign_jump_func): Removed
13283 redundant test.
13284 (update_jump_functions_after_inlining): Removed combining unary
13285 arithmetic operations with an ancestor jump function.
13286 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13287 instead of t.
13288
13289 2019-08-28 Richard Biener <rguenther@suse.de>
13290
13291 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
13292 add the MD problem.
13293
13294 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13295 Richard Biener <rguenther@suse.de>
13296
13297 * expr.c (expand_assignment): Handle misaligned DECLs.
13298 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
13299 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
13300 too.
13301 (assign_parm_setup_stack): Allocate properly aligned stack slots.
13302 * varasm.c (build_constant_desc): Align constants of misaligned types.
13303 * config/arm/predicates.md (aligned_operand): New predicate.
13304 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
13305 aligned_operand to check restrictions on memory addresses.
13306 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
13307 * config/arm/vec-common.md (mov<VALL>): Likewise.
13308
13309 2019-08-28 Jakub Jelinek <jakub@redhat.com>
13310
13311 PR libgomp/91530
13312 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
13313 V_128 iterator instead of VI_128.
13314
13315 2019-08-28 Martin Liska <mliska@suse.cz>
13316
13317 PR tree-optimization/90970
13318 * builtins.c (check_access): Remove assignment to maxread
13319 as it hasn't been used since when it was introduced in r255755.
13320
13321 2019-08-27 Martin Sebor <msebor@redhat.com>
13322
13323 PR tree-optimization/91567
13324 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
13325 of unknown strings.
13326 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
13327 to PTRDIFF_MAX - 2.
13328
13329 2019-08-27 Jeff Law <law@redhat.com>
13330
13331 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
13332 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13333
13334 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
13335
13336 PR target/91528
13337 * config/i386/i386-features.c (convert_scalars_to_vector):
13338 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
13339 crtl->stack_realign_processed. Update crtl->drap_reg by calling
13340 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
13341 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
13342
13343 2019-08-27 Richard Biener <rguenther@suse.de>
13344
13345 * config/i386/i386-features.h
13346 (general_scalar_chain::~general_scalar_chain): Add.
13347 (general_scalar_chain::insns_conv): New bitmap.
13348 (general_scalar_chain::n_sse_to_integer): New.
13349 (general_scalar_chain::n_integer_to_sse): Likewise.
13350 (general_scalar_chain::make_vector_copies): Adjust signature.
13351 * config/i386/i386-features.c
13352 (general_scalar_chain::general_scalar_chain): Outline,
13353 initialize new members.
13354 (general_scalar_chain::~general_scalar_chain): New.
13355 (general_scalar_chain::mark_dual_mode_def): Record insns
13356 we need to insert conversions at and count them.
13357 (general_scalar_chain::compute_convert_gain): Account
13358 for conversion instructions at chain boundary.
13359 (general_scalar_chain::make_vector_copies): Generate a single
13360 copy for a def by a specific insn.
13361 (general_scalar_chain::convert_registers): First populate
13362 defs_map, then make copies at out-of chain insns.
13363
13364 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
13365
13366 * config/arm/arm.md (stack_protect_set_insn): Add security-related
13367 comment.
13368 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
13369
13370 2019-08-27 Martin Liska <mliska@suse.cz>
13371
13372 * cgraph.c (cgraph_node::remove): Remove dead assignment before
13373 loop.
13374 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
13375 Enclose in anonymous namespace.
13376 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
13377 hard_register initialization in braces.
13378 * tree-vrp.h (value_range_base::supports_type_p): Return false
13379 for function with boolean return type.
13380
13381 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
13382
13383 * config/i386/i386.c (emit_i387_cw_initialization)
13384 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
13385
13386 2019-08-26 Martin Sebor <msebor@redhat.com>
13387
13388 PR c++/83431
13389 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
13390 (sprintf_dom_walker): Remove class.
13391 (get_int_range): Make argument const.
13392 (directive::fmtfunc, directive::set_precision): Same.
13393 (format_none): Same.
13394 (build_intmax_type_nodes): Same.
13395 (adjust_range_for_overflow): Same.
13396 (format_floating): Same.
13397 (format_character): Same.
13398 (format_string): Same.
13399 (format_plain): Same.
13400 (get_int_range): Cast away constness.
13401 (format_integer): Same.
13402 (get_string_length): Call get_range_strlen_dynamic. Handle
13403 null lendata.maxbound.
13404 (should_warn_p): Adjust argument scope qualifier.
13405 (maybe_warn): Same.
13406 (format_directive): Same.
13407 (parse_directive): Same.
13408 (is_call_safe): Same.
13409 (try_substitute_return_value): Same.
13410 (sprintf_dom_walker::handle_printf_call): Rename...
13411 (handle_printf_call): ...to this. Initialize target to host charmap
13412 here instead of in pass_sprintf_length::execute.
13413 (struct call_info): Make global.
13414 (sprintf_dom_walker::compute_format_length): Make global.
13415 (sprintf_dom_walker::handle_gimple_call): Same.
13416 * passes.def (pass_sprintf_length): Replace with pass_strlen.
13417 * print-rtl.c (print_pattern): Reduce the number of spaces to
13418 avoid -Wformat-truncation.
13419 * tree-pass.h (make_pass_warn_printf): New function.
13420 * tree-ssa-strlen.c (strlen_optimize): New variable.
13421 (get_string_length): Add comments.
13422 (get_range_strlen_dynamic): New function.
13423 (check_and_optimize_call): New function.
13424 (handle_integral_assign): New function.
13425 (strlen_check_and_optimize_stmt): Factor code out into
13426 strlen_check_and_optimize_call and handle_integral_assign.
13427 (strlen_dom_walker::evrp): New member.
13428 (strlen_dom_walker::before_dom_children): Use evrp member.
13429 (strlen_dom_walker::after_dom_children): Use evrp member.
13430 (printf_strlen_execute): New function.
13431 (pass_strlen::gate): Update to handle printf calls.
13432 (dump_strlen_info): New function.
13433 (pass_data_warn_printf): New variable.
13434 (pass_warn_printf): New class.
13435 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
13436 (handle_printf_call): Same.
13437 * tree-vrp.c (value_range_base::type): Adjust assertion.
13438 * vr-values.c (vr_values::update_value_range): Use type of the first
13439 argument rather than the second.
13440
13441 2019-08-26 Richard Biener <rguenther@suse.de>
13442
13443 * config/i386/i386-features.c (general_remove_non_convertible_regs):
13444 Remove.
13445 (convert_scalars_to_vector): Do not call it.
13446
13447 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13448 Uros Bizjak <ubizjak@gmail.com>
13449
13450 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
13451 CASE_MATHFN_FLOATN for roundeven.
13452 * config/i386/i386.c (ix86_i387_mode_needed): Add case
13453 I387_ROUNDEVEN.
13454 (ix86_mode_needed): Likewise.
13455 (ix86_mode_after): Likewise.
13456 (ix86_mode_entry): Likewise.
13457 (ix86_mode_exit): Likewise.
13458 (ix86_emit_mode_set): Likewise.
13459 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
13460 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
13461 (ix86_entity): Add I387_ROUNDEVEN.
13462 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
13463 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
13464 (define_int_iterator): Likewise.
13465 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
13466 (define_constant): Define ROUND_ROUNDEVEN mode.
13467 (define_attr): Add roundeven mode for i387_cw.
13468 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
13469 * internal-fn.def (ROUNDEVEN): New builtin function.
13470 * optabs.def (roundeven_optab): New optab.
13471
13472 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13473
13474 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
13475 for ROUNDEVEN.
13476 * builtins.def: Added function definitions for roundeven function
13477 variants.
13478 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
13479 function call. Adjust condition for floor, ceil, trunc and round.
13480 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
13481 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
13482 (integer_valued_real_call_p): Added case for roundeven function.
13483 * real.c (is_even): New function. Returns true if real number is even,
13484 otherwise returns false.
13485 (is_halfway_below): New function. Returns true if real number is
13486 halfway between two integers, else return false.
13487 (real_roundeven): New function. Round real number to nearest integer,
13488 rounding halfway cases towards even.
13489 * real.h (real_value): Added descriptive comments. Added function
13490 declaration for roundeven function.
13491 * doc/extend.texi (Other Builtins): List roundeven variants among
13492 functions which can be handled as builtins.
13493
13494 2019-08-26 Richard Biener <rguenther@suse.de>
13495
13496 PR target/91522
13497 PR target/91527
13498 * config/i386/i386-features.h (general_scalar_chain::defs_map):
13499 New member.
13500 (general_scalar_chain::replace_with_subreg): Remove.
13501 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13502 (general_scalar_chain::convert_reg): Adjust signature.
13503 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
13504 iterate over all defs of a reg.
13505 (general_scalar_chain::replace_with_subreg): Remove.
13506 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13507 (general_scalar_chain::make_vector_copies): Populate defs_map,
13508 place copy only after defs that are used as vectors in the chain.
13509 (general_scalar_chain::convert_reg): Emit a copy for a specific
13510 def in a specific instruction.
13511 (general_scalar_chain::convert_op): All reg uses are converted here.
13512 (general_scalar_chain::convert_insn): Emit copies for scalar
13513 uses of defs here. Replace uses with the copies we created.
13514 Replace and convert the def. Adjust REG_DEAD notes, remove
13515 REG_EQUIV/EQUAL notes.
13516 (general_scalar_chain::convert_registers): Only handle copies
13517 into the chain here.
13518
13519 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13520
13521 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
13522
13523 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13524
13525 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
13526 Add nop_convert case.
13527 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
13528 Fold all statements if requested.
13529 * tree-ssa-propagate.h (class substitute_and_fold_engine):
13530 Allow to fold all statements.
13531 * tree-vrp.c (class vrp_folder):
13532 Let substitute_and_fold_engine fold all statements.
13533
13534 2019-08-26 Richard Biener <rguenther@suse.de>
13535
13536 PR tree-optimization/91526
13537 * passes.def: Note that after late FRE we do TODO_update_address_taken.
13538 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
13539 TODO_update_address_taken.
13540
13541 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
13542
13543 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
13544 __STDC_HOSTED__.
13545
13546 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13547
13548 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
13549 machine mode for unspec_volatile operand.
13550
13551 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13552
13553 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
13554 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
13555 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
13556 (prefer_neon_for_64bits): Remove.
13557 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
13558 (tune_params): Remove PREF_NEON_64_FALSE uses.
13559 (arm_option_override): Remove prefer_neon selection code.
13560 (arm_print_tune_info): Remove prefer_neon_for_64bits.
13561 * config/arm/arm-protos.h (tune_params): Remove
13562 prefer_neon_for_64bits.
13563 (prefer_neon_for_64bits): Remove.
13564
13565 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
13566
13567 PR pch/61250
13568 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
13569 and issue any diagnostics needed before collecting the pre-PCH
13570 state.
13571
13572 2019-08-23 Jakub Jelinek <jakub@redhat.com>
13573
13574 PR middle-end/91283
13575 * common.opt (fexcess-precision=): Add Optimization flag. Use
13576 flag_excess_precision variable instead of
13577 flag_excess_precision_cmdline.
13578 * flags.h (class target_flag_state): Remove x_flag_excess_precision
13579 member.
13580 (flag_excess_precision): Don't define.
13581 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
13582 flag_excess_precision_cmdline. Remove comment.
13583 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
13584 and x_flag_excess_precision instead of
13585 frontend_set_flag_excess_precision_cmdline and
13586 x_flag_excess_precision_cmdline.
13587 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
13588 x_flag_excess_precision_cmdline.
13589 * toplev.c (init_excess_precision): Remove.
13590 (lang_dependent_init_target): Don't call it.
13591
13592 2019-08-23 Martin Liska <mliska@suse.cz>
13593
13594 * lto-wrapper.c (run_gcc): When setting jobserver
13595 set also parallel to 1. This was done so before r273908.
13596
13597 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
13598
13599 * config/arm/arm-cpus.in (cortex-m35p): New entry.
13600 (cortex-a76ae): Likewise.
13601 (cortex-a77): Likewise
13602 * config/arm/arm-tables.opt: Regenerate.
13603 * config/arm/arm-tune.md: Likewise.
13604 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
13605 cortex-a77 CPU options.
13606
13607 2019-08-23 Martin Liska <mliska@suse.cz>
13608
13609 * profile.c (instrument_values): Do not set
13610 0 as last argument.
13611 * tree-profile.c (gimple_gen_interval_profiler): Remove
13612 last argument.
13613 (gimple_gen_pow2_profiler): Likewise.
13614 (gimple_gen_topn_values_profiler): Likewise.
13615 (gimple_gen_ic_profiler): Likewise.
13616 (gimple_gen_time_profiler): Likewise.
13617 (gimple_gen_average_profiler): Likewise.
13618 (gimple_gen_ior_profiler): Likewise.
13619 * value-prof.c (dump_histogram_value): Use default
13620 in switch statement instead of HIST_TYPE_MAX.
13621 (stream_in_histogram_value): Likewise.
13622 (gimple_duplicate_stmt_histograms): Do not
13623 use NULL for implicitly set arguments.
13624 (gimple_divmod_values_to_profile): Do not use
13625 reserve+quick_push.
13626 (gimple_indirect_call_to_profile): Likewise.
13627 (gimple_find_values_to_profile): Use implicit
13628 function call arguments.
13629 * value-prof.h (gimple_alloc_histogram_value):
13630 Set default values.
13631 (gimple_gen_interval_profiler): Remove last argument.
13632 (gimple_gen_pow2_profiler): Likewise.
13633 (gimple_gen_topn_values_profiler): Likewise.
13634 (gimple_gen_ic_profiler): Likewise.
13635 (gimple_gen_time_profiler): Likewise.
13636 (gimple_gen_average_profiler): Likewise.
13637 (gimple_gen_ior_profiler): Likewise.
13638
13639 2019-08-22 Martin Sebor <msebor@redhat.com>
13640
13641 PR middle-end/91490
13642 * builtins.c (c_strlen): Rename argument and introduce new local.
13643 Set no-warning bit on original argument.
13644 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
13645 Fold empty and zero constructors into empty strings.
13646 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
13647 for missing initializers.
13648 * tree.c (build_string_literal): Handle optional argument.
13649 * tree.h (build_string_literal): Add defaulted argument.
13650 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
13651 no-warning bit on original expression.
13652
13653 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13654
13655 PR target/91481
13656 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13657 and UNSPEC_DARN_RAW.
13658 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
13659 UNSPECV_DARN_RAW.
13660 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
13661 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
13662 (darn): Use an unspec_volatile, and UNSPECV_DARN.
13663
13664 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13665
13666 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13667 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
13668 * config/rs6000/rs6000.md (unspec): ... here.
13669 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
13670 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13671 cmpeqb, *cmpeqb_internal): Delete, move to...
13672 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
13673 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13674 cmpeqb, *cmpeqb_internal): ... here.
13675
13676 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13677
13678 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
13679 intrinsics if __ARM_FP.
13680 Use __ARM_FEATURE_CRC32 ifdef guard.
13681
13682 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13683
13684 * config/arm/arm.md (neon_for_64bits): Remove.
13685 (avoid_neon_for_64bits): Remove.
13686 (arm_adddi3): Always split early.
13687 (arm_subdi3): Always split early.
13688 (negdi2): Remove Neon expansion.
13689 (split zero_extend): Split before reload.
13690 (split sign_extend): Split before reload.
13691
13692 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13693
13694 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
13695 (qhs_extenddi_cstr): Likewise.
13696 * config/arm/arm.md (ashldi3): Always expand early.
13697 (ashlsi3): Likewise.
13698 (ashrsi3): Likewise.
13699 (zero_extend<mode>di2): Remove Neon variants.
13700 (extend<mode>di2): Likewise.
13701 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
13702 (signed_shift_di3_neon): Likewise.
13703 (unsigned_shift_di3_neon): Likewise.
13704 (ashrdi3_neon_imm_noclobber): Likewise.
13705 (lshrdi3_neon_imm_noclobber): Likewise.
13706 (<shift>di3_neon): Likewise.
13707 (split extend): Remove DI extend split patterns.
13708
13709 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13710
13711 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
13712 (split not): Add DImode not splitter.
13713 (anddi3): Remove pattern.
13714 (anddi3_insn): Likewise.
13715 (anddi_zesidi_di): Likewise.
13716 (anddi_sesdi_di): Likewise.
13717 (anddi_notdi_di): Likewise.
13718 (anddi_notzesidi_di): Likewise.
13719 (anddi_notsesidi_di): Likewise.
13720 (iordi3): Likewise.
13721 (iordi3_insn): Likewise.
13722 (iordi_zesidi_di): Likewise.
13723 (iordi_sesidi_di): Likewise.
13724 (xordi3): Likewise.
13725 (xordi3_insn): Likewise.
13726 (xordi_sesidi_di): Likewise.
13727 (xordi_zesidi_di): Likewise.
13728 (one_cmpldi2): Likewise.
13729 (one_cmpldi2_insn): Likewise.
13730 * config/arm/constraints.md: Remove De, Df, Dg constraints.
13731 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
13732 alternative.
13733 (iwmmxt_xordi3): Likewise.
13734 (iwmmxt_anddi3): Likewise.
13735 * config/arm/neon.md (orndi3_neon): Remove pattern.
13736 (anddi_notdi_di): Likewise.
13737 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
13738 (arm_iordi_operand_neon): Likewise.
13739 (arm_xordi_operand_neon): Likewise.
13740 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
13741 (iordi_notzesidi_di): Likewise.
13742 (iordi_notdi_zesidi): Likewise.
13743 (iordi_notsesidi_di): Likewise.
13744
13745 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
13746
13747 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
13748 insn.
13749 (iorsi3_compare0_scratch): Likewise.
13750
13751 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
13752
13753 * config/aarch64/aarch64-simd-builtins.def:
13754 (ld1x4): New.
13755 (st1x4): Likewise.
13756 * config/aarch64/aarch64-simd.md:
13757 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
13758 (aarch64_st1x4<VALLDIF:mode>): Likewise.
13759 (aarch64_ld1_x4_<mode>): Likewise.
13760 (aarch64_st1_x4_<mode>): Likewise.
13761 * config/aarch64/arm_neon.h:
13762 (vld1_s8_x4): New function.
13763 (vld1q_s8_x4): Likewise.
13764 (vld1_s16_x4): Likewise.
13765 (vld1q_s16_x4): Likewise.
13766 (vld1_s32_x4): Likewise.
13767 (vld1q_s32_x4): Likewise.
13768 (vld1_u8_x4): Likewise.
13769 (vld1q_u8_x4): Likewise.
13770 (vld1_u16_x4): Likewise.
13771 (vld1q_u16_x4): Likewise.
13772 (vld1_u32_x4): Likewise.
13773 (vld1q_u32_x4): Likewise.
13774 (vld1_f16_x4): Likewise.
13775 (vld1q_f16_x4): Likewise.
13776 (vld1_f32_x4): Likewise.
13777 (vld1q_f32_x4): Likewise.
13778 (vld1_p8_x4): Likewise.
13779 (vld1q_p8_x4): Likewise.
13780 (vld1_p16_x4): Likewise.
13781 (vld1q_p16_x4): Likewise.
13782 (vld1_s64_x4): Likewise.
13783 (vld1_u64_x4): Likewise.
13784 (vld1_p64_x4): Likewise.
13785 (vld1q_s64_x4): Likewise.
13786 (vld1q_u64_x4): Likewise.
13787 (vld1q_p64_x4): Likewise.
13788 (vld1_f64_x4): Likewise.
13789 (vld1q_f64_x4): Likewise.
13790 (vst1_s8_x4): Likewise.
13791 (vst1q_s8_x4): Likewise.
13792 (vst1_s16_x4): Likewise.
13793 (vst1q_s16_x4): Likewise.
13794 (vst1_s32_x4): Likewise.
13795 (vst1q_s32_x4): Likewise.
13796 (vst1_u8_x4): Likewise.
13797 (vst1q_u8_x4): Likewise.
13798 (vst1_u16_x4): Likewise.
13799 (vst1q_u16_x4): Likewise.
13800 (vst1_u32_x4): Likewise.
13801 (vst1q_u32_x4): Likewise.
13802 (vst1_f16_x4): Likewise.
13803 (vst1q_f16_x4): Likewise.
13804 (vst1_f32_x4): Likewise.
13805 (vst1q_f32_x4): Likewise.
13806 (vst1_p8_x4): Likewise.
13807 (vst1q_p8_x4): Likewise.
13808 (vst1_p16_x4): Likewise.
13809 (vst1q_p16_x4): Likewise.
13810 (vst1_s64_x4): Likewise.
13811 (vst1_u64_x4): Likewise.
13812 (vst1_p64_x4): Likewise.
13813 (vst1q_s64_x4): Likewise.
13814 (vst1q_u64_x4): Likewise.
13815 (vst1q_p64_x4): Likewise.
13816 (vst1_f64_x4): Likewise.
13817 (vst1q_f64_x4): Likewise.
13818
13819 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13820
13821 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
13822
13823 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13824 Richard Sandiford <richard.sandiford@arm.com>
13825
13826 PR target/88839
13827 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
13828 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
13829
13830 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13831
13832 PR target/90724
13833 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
13834 in reg if it fails aarch64_plus_operand predicate.
13835
13836 2019-08-21 Richard Biener <rguenther@suse.de>
13837
13838 PR tree-optimization/91482
13839 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
13840 BUILT_IN_ASSUME_ALIGNED calls.
13841
13842 2019-08-21 Richard Biener <rguenther@suse.de>
13843
13844 PR target/91498
13845 PR target/91503
13846 * config/i386/i386-features.c
13847 (general_scalar_chain::make_vector_copies): Copy stack temporary
13848 rtx when using it multiple times.
13849 (general_scalar_chain::convert_reg): Likewise.
13850
13851 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13852
13853 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
13854
13855 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
13856
13857 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
13858 catch more redundant zero initialization cases.
13859 (dse_dom_walker::dse_optimize_stmt): Likewise.
13860
13861 2019-08-20 Richard Biener <rguenther@suse.de>
13862
13863 PR lto/91307
13864 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
13865 by collect2 when targetm.have_ctors_dtors which avoids dragging
13866 in temporary filenames from LTO input objects.
13867
13868 2019-08-20 Richard Biener <rguenther@suse.de>
13869
13870 PR tree-optimization/37242
13871 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
13872 to (T)a + (T)b if we know that a + b does not overflow.
13873
13874 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
13875
13876 PR rtl-optimization/91347
13877 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
13878 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
13879
13880 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13881
13882 * calls.h (function_arg_info): Add a pass_by_reference field,
13883 defaulting to false.
13884 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
13885 when applying pass-by-reference semantics.
13886 (initialize_argument_information): Likewise.
13887 (emit_library_call_value_1): Likewise.
13888 * function.c (assign_parm_data_one): Remove passed_pointer field.
13889 (assign_parm_find_data_types): Don't set it.
13890 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
13891 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
13892 arg.pass_by_reference instead of passed_pointer.
13893
13894 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13895
13896 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
13897 into a single function_arg_info, updating its fields when we
13898 apply pass-by-reference and promotion semantics. Use the
13899 function_arg_info to track the mode rather than keeping it in
13900 a separate local variable.
13901 (initialize_argument_information): Likewise. Base the final
13902 arg_to_skip on this new function_arg_info rather than creating
13903 a new one from scratch.
13904
13905 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13906
13907 * function.c (assign_parm_data_one): Replace passed_type,
13908 promoted_mode and named_arg with a function_arg_info field.
13909 (assign_parm_find_data_types): Remove local variables and
13910 assign directly to "data". Make data->passed_mode shadow
13911 data->arg.mode until promotion, then assign the promoted
13912 mode to data->arg.mode.
13913 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
13914 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
13915 (assign_parm_remove_parallels, assign_parm_setup_block_p)
13916 (assign_parm_setup_block, assign_parm_setup_reg)
13917 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
13918 arg.mode instead of promoted_mode, arg.type instead of passed_type
13919 and arg.named instead of named_arg. Use data->arg for
13920 function_arg_info structures that had the field values passed_type,
13921 promoted_mode and named_arg. Base other function_arg_infos on
13922 data->arg, changing the necessary properties.
13923
13924 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13925
13926 * calls.h (apply_pass_by_reference_rules): Declare.
13927 * calls.c (apply_pass_by_reference_rules): New function.
13928 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
13929 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
13930 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13931 * function.c (assign_parm_find_data_types): Likewise.
13932 * var-tracking.c (prepare_call_arguments): Likewise.
13933
13934 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13935
13936 * target.def (must_pass_in_stack): Take a function_arg_info instead
13937 of a mode and a type.
13938 * doc/tm.texi: Regenerate.
13939 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
13940 instead of a mode and a type.
13941 (must_pass_in_stack_var_size_or_pad): Likewise.
13942 * calls.c (must_pass_in_stack_var_size): Likewise.
13943 (must_pass_in_stack_var_size_or_pad): Likewise.
13944 (initialize_argument_information): Update call to
13945 targetm.calls.must_pass_in_stack.
13946 (must_pass_va_arg_on_stack): Likewise.
13947 * function.c (assign_parm_find_entry_rtl): Likewise.
13948 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
13949 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13950 (alpha_function_arg_advance): Likewise.
13951 * config/cr16/cr16.c (cr16_function_arg): Likewise.
13952 (cr16_function_arg_advance): Likewise.
13953 * config/cris/cris.c (cris_pass_by_reference): Likewise.
13954 (cris_arg_partial_bytes): Likewise.
13955 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13956 * config/lm32/lm32.c (lm32_function_arg): Likewise.
13957 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
13958 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
13959 * config/mips/mips.c (mips_pass_by_reference): Likewise.
13960 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
13961 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
13962 * config/sh/sh.c (sh_pass_by_reference): Likewise.
13963 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13964 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13965 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
13966 instead of a mode and a type.
13967 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
13968 (fr30_num_arg_regs): Likewise.
13969 (fr30_setup_incoming_varargs): Update calls accordingly.
13970 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13971 (fr30_function_arg_advance): Likewise.
13972 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
13973 instead of a mode and a type.
13974 * config/gcn/gcn.c (num_arg_regs): Likewise.
13975 (gcn_function_arg, gcn_function_arg_advance): Update calls to
13976 num_arg_regs and targetm.calls.must_pass_in_stack.
13977 (gcn_arg_partial_bytes): Likewise.
13978 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
13979 function_arg_info instead of a mode and a type.
13980 (classify_argument): Update call accordingly.
13981 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
13982 function_arg_info instead of a mode and a type.
13983 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
13984 Likewise.
13985 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
13986 (rs6000_parm_needs_stack): Update call accordingly.
13987 (setup_incoming_varargs): Likewise.
13988
13989 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13990
13991 * target.def (callee_copies): Take a function_arg_info instead
13992 of a mode, type and named flag.
13993 * doc/tm.texi: Regenerate.
13994 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
13995 instead of a mode, type and named flag.
13996 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
13997 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13998 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
13999 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14000 instead of a mode, type and named flag.
14001 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14002 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14003 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14004 * calls.h (reference_callee_copied): Take a function_arg_info
14005 instead of a mode, type and named flag.
14006 * calls.c (reference_callee_copied): Likewise.
14007 (initialize_argument_information): Update call accordingly.
14008 (emit_library_call_value_1): Likewise.
14009 * function.c (gimplify_parameters): Likewise.
14010 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14011 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14012 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14013 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14014 (TARGET_CALLEE_COPIES): Define to
14015 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14016 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14017 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14018 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14019 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14020 instead of a mode, type and named flag.
14021 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14022 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14023 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14024 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14025 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14026 (TARGET_CALLEE_COPIES): Define to
14027 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14028 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14029 instead of a mode, type and named flag.
14030 * config/sh/sh.c (sh_callee_copies): Likewise.
14031 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14032 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14033 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14034
14035 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14036
14037 * target.def (function_arg_advance): Take a function_arg_info instead
14038 of a mode, type and named flag.
14039 * doc/tm.texi: Regenerate.
14040 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14041 instead of a mode, type and named flag.
14042 * targhooks.c (default_function_arg_advance): Likewise.
14043 * calls.c (initialize_argument_information): Update call to
14044 targetm.calls.function_arg_advance.
14045 (emit_library_call_value_1): Likewise.
14046 * dse.c (get_call_args): Likewise.
14047 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14048 * function.c (assign_parms, gimplify_parameters): Likewise.
14049 * var-tracking.c (prepare_call_arguments): Likewise.
14050 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14051 function_arg_info instead of a mode, type and named flag.
14052 (aarch64_setup_incoming_varargs): Update call accordingly.
14053 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14054 function_arg_info instead of a mode, type and named flag.
14055 (alpha_setup_incoming_varargs): Update call accordingly.
14056 * config/arc/arc.c (arc_function_arg_advance): Take a
14057 function_arg_info instead of a mode, type and named flag.
14058 (arc_setup_incoming_varargs): Update call accordingly.
14059 * config/arm/arm.c (arm_function_arg_advance): Take a
14060 function_arg_info instead of a mode, type and named flag.
14061 (cmse_func_args_or_return_in_stack): Update call accordingly.
14062 (arm_function_ok_for_sibcall): Likewise.
14063 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14064 * config/avr/avr.c (avr_function_arg_advance): Take a
14065 function_arg_info instead of a mode, type and named flag.
14066 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14067 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14068 (c6x_call_saved_register_used): Update call accordingly.
14069 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14070 function_arg_info instead of a mode, type and named flag.
14071 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14072 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14073 (csky_setup_incoming_varargs): Update call accordingly.
14074 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14075 function_arg_info instead of a mode, type and named flag.
14076 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14077 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14078 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14079 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14080 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14081 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14082 (ix86_setup_incoming_varargs): Update call accordingly.
14083 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14084 function_arg_info instead of a mode, type and named flag.
14085 (ia64_setup_incoming_varargs): Update call accordingly.
14086 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14087 function_arg_info instead of a mode, type and named flag.
14088 (iq2000_expand_prologue): Update call accordingly.
14089 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14090 function_arg_info instead of a mode, type and named flag.
14091 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14092 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14093 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14094 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14095 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14096 Likewise.
14097 (microblaze_expand_prologue): Update call accordingly.
14098 * config/mips/mips.c (mips_function_arg_advance): Take a
14099 function_arg_info instead of a mode, type and named flag.
14100 (mips_setup_incoming_varargs): Update call accordingly.
14101 (mips_output_args_xfer): Likewise.
14102 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14103 function_arg_info instead of a mode, type and named flag.
14104 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14105 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14106 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14107 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14108 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14109 (nios2_setup_incoming_varargs): Update call accordingly.
14110 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14111 function_arg_info instead of a mode, type and named flag.
14112 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14113 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14114 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14115 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14116 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14117 (riscv_setup_incoming_varargs): Update call accordingly.
14118 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14119 function_arg_info instead of a mode, type and named flag.
14120 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14121 Likewise.
14122 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14123 (rs6000_parm_needs_stack): Update call accordingly.
14124 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14125 instead of a mode, type and named flag.
14126 * config/s390/s390.c (s390_function_arg_advance): Likewise.
14127 (s390_call_saved_register_used): Update call accordingly.
14128 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14129 instead of a mode, type and named flag.
14130 (sh_output_mi_thunk): Update call accordingly.
14131 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14132 function_arg_info instead of a mode, type and named flag.
14133 * config/spu/spu.c (spu_function_arg_advance): Likewise.
14134 (spu_setup_incoming_varargs): Update call accordingly.
14135 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
14136 function_arg_info instead of a mode, type and named flag.
14137 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
14138 (tilegx_setup_incoming_varargs): Update call accordingly.
14139 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
14140 function_arg_info instead of a mode, type and named flag.
14141 (tilegx_setup_incoming_varargs): Update call accordingly.
14142 * config/v850/v850.c (v850_function_arg_advance): Take a
14143 function_arg_info instead of a mode, type and named flag.
14144 * config/vax/vax.c (vax_function_arg_advance): Likewise.
14145 * config/visium/visium.c (visium_function_arg_advance): Likewise.
14146 (visium_setup_incoming_varargs): Update call accordingly.
14147 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
14148 function_arg_info instead of a mode, type and named flag.
14149
14150 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14151
14152 * target.def (function_arg, function_incoming_arg): Take a
14153 function_arg_info instead of a mode, tree and named flag.
14154 * doc/tm.texi: Regenerate.
14155 * targhooks.h (default_function_arg): Take a function_arg_info
14156 instead of a mode, tree and named flag.
14157 (default_function_incoming_arg): Likewise.
14158 * targhooks.c (default_function_arg): Likewise.
14159 (default_function_incoming_arg): Likewise.
14160 * calls.h (function_arg_info::end_marker_p): New function.
14161 (function_arg_info::end_marker): Likewise.
14162 * calls.c (prepare_call_address, initialize_argument_information)
14163 (expand_call, emit_library_call_value_1): Update calls to
14164 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
14165 * dse.c: Include calls.h.
14166 (get_call_args): Update call to targetm.calls.function_arg.
14167 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14168 * var-tracking.c (prepare_call_arguments): Likewise.
14169 * function.c (assign_parm_find_entry_rtl): Update call to
14170 targetm.calls.function_incoming_arg.
14171 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
14172 function_arg_info instead of a mode, tree and named flag.
14173 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14174 * config/arc/arc.c (arc_function_arg): Likewise.
14175 * config/arm/arm.c (arm_function_arg): Likewise.
14176 (cmse_func_args_or_return_in_stack): Update call accordingly.
14177 (arm_function_ok_for_sibcall): Likewise.
14178 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14179 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
14180 instead of a mode, tree and named flag.
14181 * config/bfin/bfin.c (bfin_function_arg): Likewise.
14182 * config/c6x/c6x.c (c6x_function_arg): Likewise.
14183 (c6x_call_saved_register_used): Update call accordingly.
14184 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
14185 instead of a mode, tree and named flag.
14186 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
14187 (cris_function_arg_1): Likewise.
14188 * config/csky/csky.c (csky_function_arg): Likewise.
14189 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
14190 * config/fr30/fr30.c (fr30_function_arg): Likewise.
14191 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
14192 (frv_function_arg_1): Likewise.
14193 * config/ft32/ft32.c (ft32_function_arg): Likewise.
14194 * config/gcn/gcn.c (gcn_function_arg): Likewise.
14195 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14196 * config/i386/i386.c (ix86_function_arg): Likewise.
14197 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
14198 (ia64_function_arg_1): Likewise.
14199 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
14200 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
14201 accordingly.
14202 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
14203 instead of a mode, tree and named flag.
14204 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14205 * config/m32r/m32r.c (m32r_function_arg): Likewise.
14206 * config/m68k/m68k.c (m68k_function_arg): Likewise.
14207 * config/mcore/mcore.c (mcore_function_arg): Likewise.
14208 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
14209 (microblaze_expand_prologue): Update call accordingly.
14210 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
14211 instead of a mode, tree and named flag.
14212 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
14213 (mmix_function_arg_1): Likewise.
14214 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
14215 * config/moxie/moxie.c (moxie_function_arg): Likewise.
14216 * config/msp430/msp430.c (msp430_function_arg): Likewise.
14217 * config/nds32/nds32.c (nds32_function_arg): Likewise.
14218 * config/nios2/nios2.c (nios2_function_arg): Likewise.
14219 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
14220 (nvptx_function_incoming_arg): Likewise.
14221 * config/or1k/or1k.c (or1k_function_arg): Likewise.
14222 * config/pa/pa.c (pa_function_arg): Likewise.
14223 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14224 * config/pru/pru.c (pru_function_arg): Likewise.
14225 * config/riscv/riscv.c (riscv_function_arg): Likewise.
14226 * config/rl78/rl78.c (rl78_function_arg): Likewise.
14227 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
14228 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
14229 (rs6000_parm_needs_stack): Update call accordingly.
14230 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
14231 instead of a mode, tree and named flag.
14232 * config/s390/s390.c (s390_function_arg): Likewise.
14233 (s390_call_saved_register_used): Update call accordingly.
14234 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
14235 instead of a mode, tree and named flag.
14236 (sh_output_mi_thunk): Update call accordingly.
14237 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
14238 (sparc_function_incoming_arg): Take a function_arg_info instead of
14239 a mode, tree and named flag.
14240 * config/spu/spu.c (spu_function_arg): Likewise.
14241 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14242 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
14243 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
14244 * config/v850/v850.c (v850_function_arg): Likewise.
14245 * config/vax/vax.c (vax_function_arg): Likewise.
14246 * config/visium/visium.c (visium_function_arg): Likewise.
14247 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
14248 (xtensa_function_incoming_arg): Likewise.
14249
14250 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14251
14252 * target.def (setup_incoming_varargs): Take a function_arg_info
14253 instead of a mode and tree.
14254 * doc/tm.texi: Regenerate.
14255 * targhooks.h (default_setup_incoming_varargs): Take a
14256 function_arg_info instead of a mode and tree.
14257 * targhooks.c (default_setup_incoming_varargs): Likewise.
14258 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
14259 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
14260 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14261 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
14262 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
14263 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14264 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
14265 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
14266 Likewise.
14267 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14268 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14269 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
14270 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
14271 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14272 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14273 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14274 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14275 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14276 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
14277 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14278 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14279 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
14280 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
14281 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
14282 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
14283 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
14284 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14285 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
14286 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
14287 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
14288 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
14289 * function.c (assign_parms_setup_varargs): Update call to
14290 targetm.calls.setup_incoming_varargs.
14291
14292 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14293
14294 * target.def (pass_by_reference): Take a function_arg_info instead
14295 of a mode, type and named flag.
14296 * doc/tm.texi: Regenerate.
14297 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
14298 accordingly.
14299 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
14300 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
14301 function_arg_info instead of a mode, type and named flag.
14302 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
14303 * calls.h (pass_by_reference): Take a function_arg_info instead of a
14304 mode, type and named flag.
14305 * calls.c (pass_by_reference): Likewise.
14306 (pass_va_arg_by_reference): Update call accordingly.
14307 (initialize_argument_information): Likewise.
14308 (emit_library_call_value_1): Likewise.
14309 * function.c (assign_parm_find_data_types): Likewise.
14310 * var-tracking.c (prepare_call_arguments): Likewise.
14311 * stor-layout.c: Include calls.h.
14312 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
14313 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
14314 function_arg_info instead of a mode, type and named flag.
14315 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
14316 * config/arc/arc.c (arc_pass_by_reference): Likewise.
14317 * config/arm/arm.c (arm_pass_by_reference): Likewise.
14318 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
14319 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
14320 (c6x_call_saved_register_used): Update call to pass_by_reference.
14321 * config/cris/cris.c (cris_pass_by_reference): Take a
14322 function_arg_info instead of a mode, type and named flag.
14323 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
14324 function_arg_info instead of a mode, type and named flag.
14325 (epiphany_arg_partial_bytes): Update call accordingly.
14326 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
14327 function_arg_info instead of a mode, type and named flag.
14328 (ft32_arg_partial_bytes): Update call accordingly.
14329 * config/i386/i386.c (ix86_pass_by_reference): Take a
14330 function_arg_info instead of a mode, type and named flag.
14331 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14332 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
14333 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
14334 (m32r_return_in_memory): Update call accordingly.
14335 * config/mips/mips.c (mips_pass_by_reference): Take a
14336 function_arg_info instead of a mode, type and named flag.
14337 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
14338 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
14339 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
14340 (moxie_arg_partial_bytes): Update call accordingly.
14341 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
14342 function_arg_info instead of a mode, type and named flag.
14343 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
14344 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
14345 * config/pa/pa.c (pa_pass_by_reference): Likewise.
14346 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
14347 (riscv_return_in_memory): Update call accordingly.
14348 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
14349 function_arg_info instead of a mode, type and named flag.
14350 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
14351 (rs6000_parm_needs_stack): Update call to pass_by_reference.
14352 * config/s390/s390.c (s390_pass_by_reference): Take a
14353 function_arg_info instead of a mode, type and named flag.
14354 (s390_call_saved_register_used): Update call accordingly.
14355 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
14356 instead of a mode, type and named flag.
14357 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
14358 * config/spu/spu.c (spu_pass_by_reference): Likewise.
14359 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
14360 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
14361 * config/v850/v850.c (v850_pass_by_reference): Likewise.
14362 * config/visium/visium.c (visium_pass_by_reference): Likewise.
14363
14364 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14365
14366 * target.def (arg_partial_bytes): Take a function_arg_info instead
14367 of a mode, type and named flag.
14368 * doc/tm.texi: Regenerate.
14369 * target.h (function_arg_info): Declare.
14370 * calls.h (function_arg_info): New class.
14371 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14372 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
14373 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14374 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
14375 * calls.c (initialize_argument_information): Update call to
14376 targetm.calls.partial_bytes.
14377 (emit_library_call_value_1): Likewise.
14378 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14379 * function.c (assign_parm_find_entry_rtl): Likewise.
14380 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
14381 function_arg_info instead of a mode, type and named flag.
14382 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
14383 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
14384 (cmse_func_args_or_return_in_stack): Update accordingly.
14385 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
14386 function_arg_info instead of a mode, type and named flag.
14387 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
14388 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
14389 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
14390 * config/fr30/fr30.c: Include calls.h.
14391 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
14392 type and named flag.
14393 * config/frv/frv.c: Include calls.h.
14394 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
14395 type and named flag.
14396 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
14397 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
14398 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
14399 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
14400 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
14401 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
14402 * config/microblaze/microblaze.c (function_arg_partial_bytes):
14403 Likewise.
14404 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
14405 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
14406 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
14407 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
14408 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
14409 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
14410 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
14411 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
14412 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
14413 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
14414 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
14415 (rs6000_parm_needs_stack): Update call accordingly.
14416 * config/sh/sh.c (sh_arg_partial_bytes): Take a
14417 function_arg_info instead of a mode, type and named flag.
14418 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
14419 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
14420
14421 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14422
14423 * calls.h (must_pass_va_arg_in_stack): Declare.
14424 * calls.c (must_pass_va_arg_in_stack): New function.
14425 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
14426 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14427 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
14428 Likewise.
14429 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14430
14431 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14432
14433 * calls.h (pass_va_arg_by_reference): Declare.
14434 * calls.c (pass_va_arg_by_reference): New function.
14435 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
14436 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
14437 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
14438 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14439 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14440 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
14441 (mips_gimplify_va_arg_expr): Likewise.
14442 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
14443 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14444 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
14445 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14446 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14447 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14448 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
14449 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
14450 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
14451 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14452 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14453
14454 2019-08-20 Richard Biener <rguenther@suse.de>
14455
14456 PR target/91498
14457 * config/i386/i386-features.c (general_scalar_chain::convert_op):
14458 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
14459 (convert_scalars_to_vector): Add timode_p parameter and use it
14460 to guard TImode-only operation.
14461 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
14462 (pass_stv::execute): Pass down timode_p.
14463
14464 2019-08-20 Lili Cui <lili.cui@intel.com>
14465
14466 * common/config/i386/i386-common.c
14467 (processor_names): Add tigerlake and cooperlake.
14468 (processor_alias_table): Add tigerlake and cooperlake.
14469 * config.gcc: Add -march=tigerlake and cooperlake.
14470 * config/i386/driver-i386.c
14471 (host_detect_local_cpu): Detect tigerlake and cooperlake.
14472 Add "has_avx" to classify processor.
14473 * config/i386/i386-builtins.c (processor_model) :
14474 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
14475 (arch_names_table): Add tigerlake and cooperlake.
14476 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
14477 and PROCESSOR_COOPERLAKE.
14478 * config/i386/i386-c.c
14479 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
14480 * config/i386/i386-options.c
14481 (m_TIGERLAKE): Define.
14482 (m_COOPERLAKE): Ditto.
14483 (m_CORE_AVX512): Ditto.
14484 (processor_cost_table): Add cascadelake.
14485 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
14486 * config/i386/i386.h
14487 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
14488 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14489 (PTA_MOVDIRI): Ditto.
14490 (PTA_MOVDIR64B): Ditto.
14491 (PTA_COOPERLAKE): Ditto.
14492 (PTA_TIGERLAKE): Ditto.
14493 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14494 * doc/extend.texi: Add tigerlake and cooperlake.
14495 * doc/invoke.texi: Add tigerlake and cooperlake.
14496
14497 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
14498
14499 * doc/install.texi (Specific, alpha): Remove note to use
14500 binutils 2.11.2 or later.
14501
14502 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14503
14504 PR middle-end/89544
14505 * function.c (assign_parm_find_stack_rtl): Use larger alignment
14506 when possible.
14507
14508 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
14509
14510 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
14511 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
14512 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
14513 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
14514 * config/aarch64/constraints.md (Dt): New constraint
14515 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
14516
14517 2019-08-19 Richard Biener <rguenther@suse.de>
14518
14519 PR tree-optimization/91403
14520 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
14521 cases we can handle with tail-recursion...
14522 (follow_ssa_edge_expr): ... here. Do so.
14523
14524 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
14525
14526 PR target/91441
14527 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
14528 implemented for -fsanitize=kernel-address, and merge check logic
14529 with -fsanitize=address.
14530
14531 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
14532
14533 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
14534 for cpu and machine. Factor 64/32b builtins.
14535
14536 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
14537
14538 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
14539 gone, point to sourceforge.net.
14540
14541 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14542
14543 * doc/ux.texi (User Experience Guidelines): Update reference.
14544
14545 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14546
14547 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
14548 not LGPL".
14549
14550 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
14551
14552 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
14553 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
14554
14555 2019-08-16 Martin Sebor <msebor@redhat.com>
14556
14557 * tree.def (TYPE_SIZE): Clarify.
14558 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
14559
14560 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
14561
14562 PR tree-optimization/91109
14563 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
14564 * lra.c (lra): Use lra_need_for_scratch_reg_p.
14565 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
14566
14567 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
14568
14569 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
14570 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
14571 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
14572 (uavg<mode>3_ceil): New expander.
14573 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
14574 mode iterator when creating CONST1_RTX.
14575 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
14576 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
14577 mode iterator for const1_operand predicate.
14578
14579 2019-08-16 Richard Biener <rguenther@suse.de>
14580
14581 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
14582 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
14583 follow_ssa_edge.
14584 (follow_ssa_edge_in_condition_phi_branch): Likewise.
14585 (analyze_evolution_in_loop): Likewise.
14586 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
14587 (follow_ssa_edge_expr): ... here. Refactor code.
14588
14589 2019-08-16 Richard Biener <rguenther@suse.de>
14590
14591 PR target/91469
14592 * config/i386/i386-features.c
14593 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
14594
14595 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14596
14597 PR other/91255
14598 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
14599 only if subst_name matches curr_attr string.
14600
14601 2019-08-16 Richard Biener <rguenther@suse.de>
14602
14603 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
14604 stmt at gsi_p, instead replace it with a NOP removed later.
14605 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
14606 that became dead because of that.
14607
14608 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
14609
14610 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
14611 for which we can't represent a range.
14612 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
14613 set_varying.
14614 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14615 Set VR_UNDEFINED if type is not supported.
14616 * tree-ssanames.c (get_range_info): Pass type to set_varying.
14617 * tree-vrp.c (value_range_base::check): Assert that a varying has
14618 min/max set.
14619 (value_range_base::equal_p): Early bail for undefines.
14620 (value_range_base::set_varying): Accept a type.
14621 (value_range::set_varying): Same.
14622 (value_range_base::type): VARYING can have a type, while UNDEFINE
14623 is typeless.
14624 (value_range_base::dump): Print type for VARYING nodes.
14625 (value_range_base::set): Add type to VARYING.
14626 (extract_range_from_multiplicative_op): Pass type to set_varying.
14627 (extract_range_from_binary_expr): Same.
14628 (value_range_base::intersect_helper): Same.
14629 (value_range_base::union_helper): Same.
14630 (value_range_base::normalize_symbolics): Same.
14631 (determine_value_range_1): Same.
14632 * tree-vrp.h (class value_range_base): Add type to set_varying.
14633 Add prototype for dump(void).
14634 Add prototype for supports_type_p.
14635 (class value_range): Add type to set_varying.
14636 Add prototype for dump(void).
14637 * vr-values.c (set_value_range_to_truthvalue): Pass type to
14638 set_varying.
14639 (vr_values::get_lattice_entry): Set varying even if propagation
14640 finished.
14641 Pass type to set_varying.
14642 (vr_values::get_value_range): Remove vr_const_varying.
14643 Reallocate the lattice if needed.
14644 (vr_values::update_value_range): Pass type to set_varying.
14645 (vr_values::extract_range_for_var_from_comparison_expr): Same.
14646 (vr_values::extract_range_from_binary_expr): Same.
14647 (vr_values::extract_range_from_unary_expr): Same.
14648 (vr_values::extract_range_from_cond_expr): Same.
14649 (vr_values::check_for_binary_op_overflow): Same.
14650 (vr_values::extract_range_basic): Same.
14651 (vr_values::extract_range_from_assignment): Same.
14652 (vr_values::vr_values): Increase size of num_vr_values.
14653 (vr_values::extract_range_from_phi_node): Pass type to
14654 set_varying.
14655
14656 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
14657
14658 PR target/90878
14659 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
14660 for costs of hard register moves.
14661 (ix86_register_move_cost): Likewise.
14662 * config/i386/i386.h (processor_costs): Move costs of hard
14663 register moves to hard_register. Add int_load, int_store,
14664 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14665 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
14666 for costs of RTL expressions.
14667 * config/i386/x86-tune-costs.h: Move costs of hard register
14668 moves to hard_register. Duplicate int_load, int_store,
14669 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14670 sse_load, sse_store for costs of RTL expressions.
14671
14672 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14673
14674 * target.def (setup_incoming_vararg_bounds): Remove.
14675 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
14676 * doc/tm.texi: Regenerate.
14677 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
14678 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
14679 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14680 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
14681
14682 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14683
14684 MSP430: Fix lines over 80 characters long in
14685 config/msp430/*.{c,h} files
14686
14687 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
14688 specifier in string.
14689 (msp430_select_hwmult_lib): Split line more than 80 characters long.
14690 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
14691 redundant old comment.
14692 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
14693 Split line more than 80 characters long.
14694 * config/msp430/msp430.c (msp430_option_override): Likewise.
14695 (msp430_return_in_memory): Likewise.
14696 (msp430_gimplify_va_arg_expr): Likewise.
14697 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
14698 (msp430_legitimate_constant): Likewise.
14699 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
14700 (msp430_attr): Likewise.
14701 (msp430_data_attr): Likewise.
14702 (msp430_start_function): Likewise.
14703 (gen_prefix): Likewise.
14704 (msp430_init_sections): Likewise.
14705 (msp430_select_section): Likewise.
14706 (msp430_function_section): Likewise.
14707 (msp430_unique_section): Likewise.
14708 (msp430_output_aligned_decl_common): Likewise.
14709 (msp430_do_not_relax_short_jumps): Likewise.
14710 (msp430_init_builtins): Likewise.
14711 (msp430_expand_delay_cycles): Likewise.
14712 (msp430_expand_prologue): Likewise.
14713 (msp430_expand_epilogue): Likewise.
14714 (msp430_expand_helper): Likewise.
14715 (msp430_split_movsi): Likewise.
14716 (msp430_print_operand): Likewise.
14717 (msp430_return_addr_rtx): Likewise.
14718 (msp430x_extendhisi): Likewise.
14719 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
14720 (ASM_SPEC): Likewise.
14721 Remove very obvious comments.
14722 (LIB_SPEC): Split line more than 80 characters long.
14723 (EH_RETURN_HANDLER_RTX): Likewise.
14724 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14725
14726 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14727
14728 MSP430: Fix whitespace errors and incorrect indentation in
14729 config/msp430/*.{c,h} files
14730
14731 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
14732 (msp430_select_hwmult_lib): Likewise.
14733 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
14734 (msp430_extract_mcu_data): Likewise.
14735 (struct t_msp430_mcu_data): Likewise.
14736 * config/msp430/msp430.c (struct machine_function): Remove whitespace
14737 before left square bracket.
14738 (msp430_option_override): Fix indentation.
14739 (msp430_hard_regno_nregs_with_padding): Likewise.
14740 (msp430_initial_elimination_offset): Likewise.
14741 (msp430_special_register_convention_p): Remove whitespace before left
14742 square bracket and after exclamation mark.
14743 (msp430_evaluate_arg): Likewise.
14744 (msp430_callee_copies): Fix indentation.
14745 (msp430_gimplify_va_arg_expr): Likewise.
14746 (msp430_function_arg_advance): Remove whitespace before left square
14747 bracket.
14748 (reg_ok_for_addr): Likewise.
14749 (msp430_preserve_reg_p): Likewise.
14750 (msp430_compute_frame_info): Likewise.
14751 (msp430_asm_output_addr_const_extra): Add space between function name
14752 and open parenthesis.
14753 (has_section_name): Fix indentation.
14754 (msp430_attr): Remove trailing whitespace.
14755 (msp430_section_attr): Likewise.
14756 (msp430_data_attr): Likewise.
14757 (struct msp430_attribute_table): Fix comment and whitespace.
14758 (msp430_start_function): Remove whitespace before left square bracket.
14759 Add space between function name and open parenthesis.
14760 (msp430_select_section): Remove trailing whitespace.
14761 (msp430_section_type_flags): Remove trailing whitespace.
14762 (msp430_unique_section): Remove space before closing parenthesis.
14763 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
14764 (msp430_builtins): Remove whitespace before left square bracket.
14765 (msp430_init_builtins): Fix indentation.
14766 (msp430_expand_prologue): Remove whitespace before left square bracket.
14767 Remove space before closing parenthesis.
14768 (msp430_expand_epilogue): Remove whitespace before left square bracket.
14769 (msp430_split_movsi): Remove space before closing parenthesis.
14770 (helper_function_name_mappings): Fix indentation.
14771 (msp430_use_f5_series_hwmult): Fix whitespace.
14772 (use_32bit_hwmult): Likewise.
14773 (msp430_no_hwmult): Likewise.
14774 (msp430_output_labelref): Remove whitespace before left square bracket.
14775 (msp430_print_operand_raw): Likewise.
14776 (msp430_print_operand_addr): Likewise.
14777 (msp430_print_operand): Add two spaces after '.' in comment.
14778 Fix trailing whitespace.
14779 (msp430x_extendhisi): Fix indentation.
14780 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
14781 tab.
14782 (PC_REGNUM): Likewise.
14783 (STACK_POINTER_REGNUM): Likewise.
14784 (CC_REGNUM): Likewise.
14785
14786 2019-08-15 Richard Biener <rguenther@suse.de>
14787
14788 PR target/91454
14789 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
14790 helper.
14791 (general_scalar_chain::make_vector_copies): Use it.
14792
14793 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
14794
14795 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
14796
14797 2019-08-15 Martin Liska <mliska@suse.cz>
14798
14799 * tree-ssa-dce.c (propagate_necessity): We can't reach now
14800 operators with no arguments.
14801 (eliminate_unnecessary_stmts): Likewise here.
14802
14803 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
14804
14805 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
14806 <case COMPARE>: Revert 2019-08-14 change.
14807 (convertible_comparison_p): Revert 2019-08-14 change. Return false
14808 for (TARGET_64BIT || mode != DImode).
14809
14810 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
14811
14812 * tree-vrp.c (value_range_base::set): Merge in code from
14813 value_range_base::set_and_canonicalize.
14814 Enforce canonicalization at set time.
14815 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
14816 (value_range_base::set_undefined): Inline call to set().
14817 (value_range_base::set_varying): Same.
14818 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
14819 (vrp_val_max): New argument handle_pointers.
14820 (vrp_val_min): Same.
14821 (ranges_from_anti_range): Same.
14822 (extract_range_into_wide_ints): Use tree argument instead of sign
14823 and precision.
14824 (extract_range_from_multiplicative_op): Take in tree type instead
14825 of precision and sign. Adapt function for canonicalized ranges.
14826 (extract_range_from_binary_expr): Pass type to
14827 extract_range_from_multiplicative_op.
14828 Adapt for canonicalized ranges.
14829 (extract_range_from_unary_expr): Same.
14830 (value_range_base::intersect_helper): Adjust for canonicalized
14831 ranges.
14832 (value_range_base::union_helper): Same.
14833 (value_range_base::normalize_symbolics): New.
14834 * tree-vrp.h (class value_range_base): Remove
14835 set_and_canonicalize.
14836 New prototype for normalize_symbolics.
14837 (class value_range): Remove set_and_canonicalize.
14838 (vrp_val_min): Adjust prototype.
14839 (vrp_val_max): Same.
14840 * vr-values.c
14841 (vr_values::extract_range_for_var_from_comparison_expr): Call set
14842 instead of set_and_canonicalize.
14843
14844 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14845
14846 PR middle-end/91444
14847 * tree-vect-stmts.c (vectorizable_call): Check that the function
14848 is a BUILT_IN_MD function before passing it to
14849 targetm.vectorize.builtin_md_vectorized_function.
14850
14851 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14852
14853 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
14854 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
14855 (aarch64_select_early_remat_modes): Use it.
14856
14857 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14858
14859 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
14860 16 for SVE predicates even if they are fixed-length.
14861
14862 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14863
14864 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
14865 operand order match the MOV /Z alias.
14866
14867 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14868
14869 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
14870 the vector pattern as an aarch64_svpattern argument. Update the
14871 overloaded caller accordingly.
14872 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
14873 (aarch64_output_sve_vector_inc_dec): Likewise.
14874
14875 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14876
14877 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
14878 multiplication case, try to compute VG * (lowest set bit) directly
14879 rather than always basing the multiplication on VG. Use
14880 expand_mult for the multiplication if we can.
14881
14882 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14883
14884 * config/aarch64/aarch64-protos.h
14885 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
14886 (aarch64_sve_inc_dec_immediate_p): Rename to...
14887 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14888 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
14889 (aarch64_output_sve_scalar_inc_dec): Declare.
14890 (aarch64_output_sve_inc_dec_immediate): Rename to...
14891 (aarch64_output_sve_vector_inc_dec): ...this.
14892 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
14893 (aarch64_output_sve_scalar_inc_dec): New functions.
14894 (aarch64_output_sve_addvl_addpl): Remove the base and offset
14895 arguments. Only handle true ADDVL and ADDPL instructions;
14896 don't emit an INC or DEC.
14897 (aarch64_sve_inc_dec_immediate_p): Rename to...
14898 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14899 (aarch64_output_sve_inc_dec_immediate): Rename to...
14900 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
14901 aarch64_sve_vector_inc_dec_immediate_p.
14902 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
14903 (aarch64_sve_plus_immediate): New predicates.
14904 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
14905 rather than aarch64_sve_addvl_addpl_immediate.
14906 (aarch64_sve_inc_dec_immediate): Rename to...
14907 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
14908 aarch64_sve_vector_inc_dec_immediate_p.
14909 (aarch64_sve_add_operand): Update accordingly.
14910 * config/aarch64/constraints.md (Uai): New constraint.
14911 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
14912 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
14913 operand into a register if it satisfies aarch64_sve_plus_immediate.
14914 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
14915 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
14916 * config/aarch64/aarch64-sve.md (add<mode>3): Call
14917 aarch64_output_sve_vector_inc_dec instead of
14918 aarch64_output_sve_inc_dec_immediate.
14919
14920 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14921
14922 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
14923 (UNSPEC_REVW): New constants.
14924 (elem_bits): New mode attribute.
14925 (SVE_INT_UNARY): New int iterator.
14926 (optab): Handle UNSPEC_REV[BHW].
14927 (sve_int_op): New int attribute.
14928 (min_elem_bits): Handle VNx16QI and the predicate modes.
14929 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
14930 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
14931 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
14932 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
14933 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
14934 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
14935 unspecs based on the total width of the reversed data.
14936 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
14937 reinterpret followed by a subreg on big-endian targets.
14938
14939 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14940 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14941
14942 * config/aarch64/aarch64-sve.md
14943 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
14944 alternatives in which one of the inputs is in the same register
14945 as the output.
14946
14947 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14948
14949 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
14950 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
14951
14952 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14953
14954 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
14955 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
14956
14957 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14958 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14959
14960 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
14961 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
14962 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
14963
14964 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14965 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14966
14967 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
14968 Add an alternative that uses reversed shifts.
14969
14970 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14971
14972 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
14973 struct.
14974
14975 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14976
14977 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
14978 a commutativity marker.
14979
14980 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14981 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14982
14983 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
14984 (aarch64_prepare_sve_cond_int_fma): Declare.
14985 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
14986 (aarch64_prepare_sve_int_fma): New functions.
14987 (aarch64_prepare_sve_cond_int_fma): Likewise.
14988 * config/aarch64/aarch64-sve.md
14989 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
14990 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
14991 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
14992 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
14993 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
14994 (*madd<mode>): Rename to...
14995 (*fma<mode>4): ...this.
14996 (*msub<mode>): Rename to...
14997 (*fnma<mode>4): ...this.
14998
14999 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15000 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15001
15002 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15003 Print 2.0 naturally.
15004 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15005 * config/aarch64/predicates.md
15006 (aarch64_sve_float_negated_arith_immediate): New predicate,
15007 renamed from aarch64_sve_float_arith_with_sub_immediate.
15008 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15009 positive and negative constants.
15010 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15011 or an aarch64_sve_float_arith_with_sub_immediate.
15012 * config/aarch64/constraints.md (vsN): Use
15013 aarch64_sve_float_negated_arith_immediate.
15014 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15015 iterator.
15016 (sve_pred_fp_rhs2_immediate): New int attribute.
15017 * config/aarch64/aarch64-sve.md
15018 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15019 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15020 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15021 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15022 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15023 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15024
15025 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15026 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15027
15028 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15029 (*aarch64_cond_abd<SVE_F:mode>_3)
15030 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15031
15032 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15033 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15034
15035 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15036 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15037
15038 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15039 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15040
15041 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15042 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15043 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15044 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15045 optabs.
15046 * optabs.h (create_convert_operand_from): Expand comment.
15047 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15048 when mapping scalar rtxes to vector operands.
15049 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15050 ashiftrt and lshiftrt.
15051 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15052 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15053 (*cond_<optab><mode>_any_const): New patterns.
15054
15055 2019-08-15 Martin Liska <mliska@suse.cz>
15056
15057 PR ipa/91438
15058 * cgraph.c (cgraph_node::remove): When setting
15059 n->origin = NULL for all nested functions, reset
15060 also next_nested.
15061
15062 2019-08-15 Martin Liska <mliska@suse.cz>
15063
15064 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15065 and next_nested.
15066
15067 2019-08-15 Martin Liska <mliska@suse.cz>
15068
15069 PR ipa/91404
15070 * passes.c (order): Remove.
15071 (uid_hash_t): Likewise).
15072 (remove_cgraph_node_from_order): Remove from set
15073 of pointers (cgraph_node *).
15074 (insert_cgraph_node_to_order): New.
15075 (duplicate_cgraph_node_to_order): New.
15076 (do_per_function_toporder): Register all 3 cgraph hooks.
15077 Skip removed_nodes now as we know about all of them.
15078
15079 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15080
15081 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15082 <case E_V8QImode>: Use vector_set path for
15083 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15084 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15085 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15086
15087 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15088
15089 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15090
15091 2019-08-14 Martin Sebor <msebor@redhat.com>
15092
15093 PR tree-optimization/91294
15094 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15095 source length as exact.
15096
15097 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15098
15099 * doc/extend.texi: Add "noinit" attribute documentation.
15100 * doc/sourcebuild.texi: Add noinit effective target documentation.
15101 * varasm.c (default_section_type_flags): Add support for "noinit"
15102 section.
15103 (default_elf_select_section): Add support for "noinit" attribute.
15104 * config/msp430/msp430.c (msp430_attribute_table): Remove
15105 "noinit" entry.
15106
15107 2019-08-14 Richard Biener <rguenther@suse.de>
15108 Uroš Bizjak <ubizjak@gmail.com>
15109
15110 PR target/91154
15111 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15112 mode arguments.
15113 (scalar_chain::smode): New member.
15114 (scalar_chain::vmode): Likewise.
15115 (dimode_scalar_chain): Rename to...
15116 (general_scalar_chain): ... this.
15117 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15118 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15119 base with TImode and V1TImode.
15120 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15121 (general_scalar_chain::vector_const_cost): Adjust for SImode
15122 chains.
15123 (general_scalar_chain::compute_convert_gain): Likewise. Add
15124 {S,U}{MIN,MAX} support.
15125 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15126 (general_scalar_chain::make_vector_copies): Likewise. Handle
15127 non-DImode chains appropriately.
15128 (general_scalar_chain::convert_reg): Likewise.
15129 (general_scalar_chain::convert_op): Likewise.
15130 (general_scalar_chain::convert_insn): Likewise. Add
15131 fatal_insn_not_found if the result is not recognized.
15132 (convertible_comparison_p): Pass in the scalar mode and use that.
15133 (general_scalar_to_vector_candidate_p): Likewise. Rename from
15134 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
15135 (scalar_to_vector_candidate_p): Remove by inlining into single
15136 caller.
15137 (general_remove_non_convertible_regs): Rename from
15138 dimode_remove_non_convertible_regs.
15139 (remove_non_convertible_regs): Remove by inlining into single caller.
15140 (convert_scalars_to_vector): Handle SImode and DImode chains
15141 in addition to TImode chains.
15142 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
15143 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
15144 (*<maxmin>di3_doubleword): Likewise.
15145
15146 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15147 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15148
15149 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
15150 (*cond_bic<mode>_any): New patterns.
15151
15152 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15153
15154 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
15155 take the equivalent mask, as well as a bit count.
15156 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
15157 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
15158 (aarch64_sve_pred_and_operand): New predicates.
15159 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
15160 code attribute.
15161 * config/aarch64/aarch64-sve.md
15162 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
15163 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
15164
15165 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15166
15167 * config/aarch64/aarch64-sve.md
15168 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15169 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
15170 New patterns.
15171
15172 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15173 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15174
15175 * config/aarch64/aarch64-sve.md
15176 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
15177 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
15178
15179 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15180 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15181
15182 * config/aarch64/aarch64-sve.md
15183 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
15184 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
15185
15186 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15187
15188 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
15189 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
15190 New pattern.
15191
15192 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15193 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15194
15195 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
15196
15197 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15198 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15199
15200 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
15201 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
15202 (aarch64_print_operand): Add support for %I.
15203 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
15204 Bitcast floating-point constants to the corresponding integer constant.
15205 (aarch64_float_const_representable_p): Handle vectors as well
15206 as scalars.
15207 (aarch64_expand_sve_vcond): Make sure that the operands are valid
15208 for the new vcond_mask_<mode><vpred> expander.
15209 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
15210 test aarch64_float_const_representable_p.
15211 (aarch64_sve_reg_or_dup_imm): New predicate.
15212 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
15213 gen_vcond_mask_<mode><vpred> instead of
15214 gen_aarch64_sve_dup<mode>_const.
15215 (vcond_mask_<mode><vpred>): Turn into a define_expand that
15216 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
15217 for operands 1 and 2 respectively. Force operand 2 into a
15218 register if operand 1 is a register. Fold old define_insn...
15219 (aarch64_sve_dup<mode>_const): ...and this define_insn...
15220 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
15221 floating-point constants that can be moved as integers. Add
15222 alternatives for MOV /M and FMOV /M.
15223 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
15224 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
15225 1 and 2 respectively.
15226 * config/aarch64/constraints.md (Ufc): Handle vectors as well
15227 as scalars.
15228 (vss): New constraint.
15229
15230 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15231
15232 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
15233 (aarch64_sve_float_maxmin_operand): New predicates.
15234 * config/aarch64/constraints.md (vsB): New constraint.
15235 (vsM): Fix typo.
15236 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
15237 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
15238 UNSPEC_COND_FMINNM.
15239 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
15240 Use aarch64_sve_float_maxmin_operand for operand 2.
15241 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
15242 Add alternatives for the constant forms.
15243
15244 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15245
15246 * config/aarch64/constraints.md (vsb): New constraint.
15247 (vsm): Generalize description.
15248 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
15249 iterator.
15250 (sve_imm_con): Handle smax, smin, umax and umin.
15251 (sve_imm_prefix): New code attribute.
15252 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
15253 (aarch64_sve_vsb_operand): New predicates.
15254 (aarch64_sve_mul_immediate): Rename to...
15255 (aarch64_sve_vsm_immediate): ...this.
15256 (aarch64_sve_mul_operand): Rename to...
15257 (aarch64_sve_vsm_operand): ...this.
15258 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
15259 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
15260 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
15261 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
15262 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
15263 add movprfx support for the immediate alternatives.
15264 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
15265 of the above.
15266 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
15267 for operand 3.
15268
15269 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15270
15271 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
15272 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
15273 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15274
15275 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15276
15277 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
15278 (optab, sve_int_op): Handle them.
15279 * config/aarch64/aarch64-sve.md: Expand comment.
15280
15281 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15282
15283 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
15284 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
15285 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
15286
15287 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15288
15289 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
15290 (aarch64_expand_sve_const_pred_trn): New functions.
15291 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
15292 use the above functions when the parameter is true.
15293 (aarch64_expand_sve_const_pred): Update call accordingly.
15294 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
15295 Rename to...
15296 (@aarch64_sve_<perm_insn><mode>): ...this.
15297
15298 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15299
15300 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
15301 Declare.
15302 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
15303 (aarch64_sve_emit_int_cmp): New functions.
15304 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
15305 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
15306 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
15307 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
15308 (UNSPEC_PRED_Z): New unspec.
15309 (set_clobber_cc_nzc): Delete.
15310 * config/aarch64/aarch64-sve.md: Add a block comment about
15311 UNSPEC_PRED_Z.
15312 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
15313 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
15314 the old pattern with that name. Use UNSPEC_PRED_Z instead of
15315 UNSPEC_MERGE_PTRUE.
15316 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
15317 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
15318 check for compatible predicates.
15319 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
15320 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
15321 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
15322 comparisons above.
15323
15324 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15325
15326 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
15327 * config/aarch64/aarch64-sve.md: Add a section describing it.
15328 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
15329 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
15330 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
15331 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
15332 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
15333 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
15334 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
15335 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
15336 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
15337 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15338 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
15339 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
15340 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
15341 (aarch64_evpc_rev_local): Update accordingly.
15342
15343 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15344
15345 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
15346 iterators.
15347 (SVE_BHSI, SVE_SDI): Tweak comment.
15348 (SVE_HSDI): Likewise. Fix definition.
15349 (SVE_SDF): New mode iterator.
15350 (elem_bits): New mode attribute.
15351 (SVE_COND_FCVT): New int iterator.
15352 * config/aarch64/aarch64-sve.md
15353 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
15354 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
15355 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
15356 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15357 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
15358 ...these new patterns.
15359 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
15360 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
15361 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
15362 Merge into...
15363 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
15364 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
15365 ...these new patterns.
15366 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
15367 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
15368 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
15369 ...this new pattern.
15370 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
15371 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
15372 ...this new pattern.
15373 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
15374
15375 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15376
15377 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
15378 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
15379 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
15380 unspecs.
15381 (optab, su): Handle them.
15382 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
15383 * config/aarch64/aarch64-sve.md
15384 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
15385 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
15386 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
15387 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
15388 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
15389 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
15390 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
15391 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
15392 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
15393 FIXUORS.
15394 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
15395 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
15396 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
15397 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
15398 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
15399 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
15400 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
15401 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
15402 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
15403 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
15404 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
15405 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
15406 of UNSPEC_FLOAT_CONVERT.
15407 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
15408 aarch64_sve_extend<mode><Vwide>2.
15409
15410 2019-08-14 Richard Biener <rguenther@suse.de>
15411
15412 PR target/91154
15413 * config/i386/i386-features.c
15414 (dimode_scalar_chain::compute_convert_gain): Compute and dump
15415 individual instruction gain. Fix reg-reg copy GRP cost. Use
15416 ix86_cost->sse_op for vector instruction costs.
15417
15418 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15419
15420 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
15421 (cmp_op): Handle it.
15422 (SVE_COND_FP_CMP): Rename to...
15423 (SVE_COND_FP_CMP_I0): ...this.
15424 (SVE_FP_CMP): Remove.
15425 * config/aarch64/aarch64-sve.md
15426 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
15427 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
15428 using unspecs to represent the comparison.
15429 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
15430 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
15431 accordingly.
15432 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
15433 (aarch64_unspec_cond_code): Move after integer code. Handle
15434 UNORDERED.
15435 (aarch64_emit_sve_predicated_cond): Replace with...
15436 (aarch64_emit_sve_fp_cond): ...this new function.
15437 (aarch64_emit_sve_or_conds): Replace with...
15438 (aarch64_emit_sve_or_fp_conds): ...this new function.
15439 (aarch64_emit_sve_inverted_cond): Replace with...
15440 (aarch64_emit_sve_invert_fp_cond): ...this new function.
15441 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
15442
15443 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15444
15445 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
15446 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
15447 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
15448 SVE_HSD instead of SVE_SD.
15449
15450 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15451 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15452
15453 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
15454 iterator.
15455 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
15456 attributes.
15457 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
15458 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
15459 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
15460 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
15461 (*div<SVE_F:mode>3): Generalize to...
15462 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
15463
15464 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15465 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15466
15467 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
15468 constants.
15469 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
15470 predicate.
15471 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
15472 Declare.
15473 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
15474 function.
15475 * config/aarch64/aarch64-sve.md: Add a block comment about the
15476 handling of predicated FP operations.
15477 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
15478 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
15479 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15480 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
15481 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
15482 operand.
15483 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
15484 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
15485 operand.
15486 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
15487 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
15488 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
15489 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
15490 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
15491 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15492 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15493 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
15494 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
15495 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
15496 strictness operands. Use aarch64_sve_pred_dominates_p to check
15497 whether the predicate on the conditional operation is suitable
15498 for merging. Split patterns into the canonical equal-predicate form.
15499 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
15500 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
15501
15502 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15503 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15504
15505 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
15506 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
15507 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
15508 rtx codes.
15509 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
15510 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
15511 unspecs.
15512
15513 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15514 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15515
15516 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
15517 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
15518 actually has, rather than relying on REG_EQUAL notes.
15519 Make the insn operand order match the SVE operand order.
15520 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
15521 the SVE operand order.
15522
15523 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15524
15525 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
15526 (aarch64_emit_set_immediate): Likewise.
15527 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
15528 (aarch64_pfalse_reg): Likewise.
15529 (aarch64_convert_sve_data_to_pred): New function.
15530 (aarch64_sve_move_pred_via_while): Take an optional target register
15531 and the required register mode.
15532 (aarch64_expand_sve_const_pred_1): New function.
15533 (aarch64_expand_sve_const_pred): Likewise.
15534 (aarch64_expand_mov_immediate): Build an all-true predicate
15535 if the significant bits of the immediate are all true. Use
15536 aarch64_expand_sve_const_pred for all compile-time predicate constants.
15537 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
15538 before register allocation.
15539 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
15540 a VNx16BI PTRUE when splitting the memory alternative.
15541 (vec_duplicate<mode>): Update accordingly.
15542 (*pred_cmp<cmp_op><mode>): Rename to...
15543 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
15544
15545 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15546
15547 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
15548 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
15549 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
15550 (UNSPEC_PTEST): New unspec.
15551 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
15552 * config/aarch64/iterators.md (data_bytes): New mode attribute.
15553 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
15554 * config/aarch64/aarch64-sve.md: Add a new section describing the
15555 handling of UNSPEC_PTEST.
15556 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
15557 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
15558 (ptest_ptrue<mode>): Replace with...
15559 (aarch64_ptest<mode>): ...this new pattern.
15560 (cbranch<mode>4): Update after above changes.
15561 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
15562 UNSPEC_PTEST_PTRUE.
15563 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
15564 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
15565 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
15566
15567 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
15568
15569 PR lto/91287
15570 * builtins.c (builtin_with_linkage_p): New function.
15571 * builtins.h (builtin_with_linkage_p): New function.
15572 * symtab.c (write_symbol): Remove redundant assert.
15573 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
15574 Remove FIXME and use builtin_with_linkage_p.
15575
15576 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15577
15578 PR middle-end/91421
15579 * tree-core.h (function_decl::function_code): Change type to
15580 unsigned int.
15581 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
15582 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
15583 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
15584 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
15585 is BUILT_IN_NORMAL.
15586 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
15587 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
15588 (fndecl_built_in_p): Change the type of the "name" argument to
15589 unsigned int.
15590 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
15591 after check for DECL_BUILT_IN_CLASS.
15592 * cgraphclones.c (build_function_decl_skip_args): Use
15593 set_decl_built_in_function.
15594 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
15595 * ipa-split.c (split_function): Likewise.
15596 * langhooks.c (add_builtin_function_common): Likewise.
15597 * omp-simd-clone.c (simd_clone_create): Likewise.
15598 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15599 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
15600 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
15601 DECL_FUNCTION_CODE.
15602 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
15603 instead of DECL_FUNCTION_CODE.
15604 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
15605 instead of DECL_FUNCTION_CODE.
15606 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15607 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
15608 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
15609 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
15610 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
15611 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
15612 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
15613 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
15614 (alpha_gimple_fold_builtin): Likewise.
15615 * config/arc/arc.c (arc_expand_builtin): Likewise.
15616 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
15617 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
15618 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
15619 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
15620 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
15621 * config/frv/frv.c (frv_expand_builtin): Likewise.
15622 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
15623 (gcn_expand_builtin): Likewise.
15624 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
15625 (fold_builtin_cpu): Likewise.
15626 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
15627 * config/i386/i386.c (ix86_fold_builtin): Likewise.
15628 (ix86_gimple_fold_builtin): Likewise.
15629 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
15630 (ia64_expand_builtin): Likewise.
15631 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
15632 * config/mips/mips.c (mips_expand_builtin): Likewise.
15633 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
15634 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15635 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
15636 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
15637 * config/pa/pa.c (pa_expand_builtin): Likewise.
15638 * config/pru/pru.c (pru_expand_builtin): Likewise.
15639 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
15640 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15641 Likewise.
15642 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
15643 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
15644 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
15645 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
15646 (rs6000_builtin_reciprocal): Likewise.
15647 * config/rx/rx.c (rx_expand_builtin): Likewise.
15648 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15649 * config/s390/s390.c (s390_expand_builtin): Likewise.
15650 * config/sh/sh.c (sh_expand_builtin): Likewise.
15651 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
15652 (sparc_fold_builtin): Likewise.
15653 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15654 * config/spu/spu.c (spu_expand_builtin): Likewise.
15655 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
15656 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
15657 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
15658 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15659 (xtensa_expand_builtin): Likewise.
15660
15661 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15662
15663 PR middle-end/91421
15664 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
15665 before the DECL_FUNCTION_CODE.
15666 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
15667 to check for a BUILT_IN_ALLOCA call.
15668 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
15669 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
15670 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
15671 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15672 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
15673 for BUILT_IN_NORMAL functions.
15674 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
15675 test for BUILT_IN_TM_ABORT.
15676 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
15677 to check for a BUILT_IN_STACK_RESTORE call.
15678 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
15679 * tree-ssa-threadedge.c
15680 (record_temporary_equivalences_from_stmts_at_dest): Check for a
15681 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
15682 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
15683 test for a BUILT_IN_NORMAL call instead of a negative test for
15684 an internal function call.
15685
15686 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15687
15688 * tree.h (build_vector_a_then_b): Declare.
15689 * tree.c (build_vector_a_then_b): New function.
15690 * fold-const-call.c (fold_while_ult): Likewise.
15691 (fold_const_call): Use it to handle IFN_WHILE_ULT.
15692 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
15693 (aarch64_svpattern): New enum.
15694 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
15695 constants through aarch64_expand_mov_immediate.
15696 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
15697 than general_operand as the predicate for operand 1.
15698 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
15699 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
15700 insn_type.
15701 (simd_immediate_info::simd_immediate_info): New overload that
15702 takes a scalar_int_mode and an svpattern.
15703 (simd_immediate_info::u): Add a "pattern" field.
15704 (svpattern_token): New function.
15705 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
15706 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
15707 (aarch64_sve_move_pred_via_while): New functions.
15708 (aarch64_expand_mov_immediate): Try using
15709 aarch64_sve_move_pred_via_while for predicates that contain N ones
15710 followed by M zeros but that do not correspond to a VLnnn pattern.
15711 (aarch64_sve_pred_valid_immediate): New function.
15712 (aarch64_simd_valid_immediate): Use it instead of dealing directly
15713 with PTRUE and PFALSE.
15714 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
15715 forms.
15716
15717 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
15718
15719 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
15720 flag.
15721 (darwin_override_options): Likewise.
15722 * config/darwin.h: Likewise.
15723 * config/darwin.opt: Likewise.
15724 * config/i386/i386.c (output_pic_addr_const): Likewise.
15725 * config/rs6000/darwin.h: Likewise.
15726 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
15727 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
15728 ... this TARGET_MACHO_SYMBOL_STUBS.
15729 (FUNCTION_PROFILER):Likewise.
15730 * config/i386/i386.h: Likewise.
15731
15732 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15733
15734 * config/i386/i386-expand.c (ix86_expand_vector_extract)
15735 <case E_V2SImode>: Use vec_extr path for
15736 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15737 <case E_V8QImode>: Ditto.
15738 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
15739 Use SWI48 mode iterator. Use %k to output operand 0.
15740 (*mmx_pextrw): New insn pattern.
15741 (*mmx_pextrb): Ditto.
15742 (*mmx_pextrb_zext): Ditto.
15743
15744 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
15745
15746 * target.def (libc_has_function, libc_has_fast_function): Improve
15747 documentation strings.
15748 * doc/tm.texi: Regenerate.
15749
15750 2019-08-13 Caroline Tice <cmtice@google.com>
15751
15752 PR other/91396
15753 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
15754 vtv_end.o or vtv_end_preinit.o files if !static.
15755
15756 2019-08-13 Olivier Hainque <hainque@adacore.com>
15757
15758 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
15759
15760 2019-08-13 Olivier Hainque <hainque@adacore.com>
15761
15762 * rtlanal.c (tablejump_casesi_pattern): New function, to
15763 determine if a tablejump insn is a casesi dispatcher. Extracted
15764 from patch_jump_insn.
15765 * rtl.h (tablejump_casesi_pattern): Declare.
15766 * cfgrtl.c (patch_jump_insn): Use it.
15767 * dwarf2cfi.c (create_trace_edges): Use it.
15768
15769 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15770
15771 PR target/81800
15772 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
15773 operand is larger than a long int.
15774
15775 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15776
15777 * machmode.h (opt_mode::else_mode): New function.
15778 (opt_mode::else_blk): Use it.
15779 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
15780 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
15781 (aarch64_gen_stepped_int_parallel): Likewise.
15782 (aarch64_stepped_int_parallel_p): Likewise.
15783 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15784 argument.
15785 * config/aarch64/aarch64.c
15786 (aarch64_expand_sve_widened_duplicate): Delete.
15787 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
15788 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
15789 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15790 argument. Use early returns in the !CONST_INT_P handling.
15791 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
15792 than handling some inline.
15793 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
15794 from...
15795 (aarch64_simd_container_mode): ...here.
15796 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
15797 (aarch64_sve_ld1rq_operand_p): New functions.
15798 * config/aarch64/predicates.md (descending_int_parallel)
15799 (aarch64_sve_ld1rq_operand): New predicates.
15800 * config/aarch64/constraints.md (UtQ): New constraint.
15801 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
15802 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
15803 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
15804 (@aarch64_sve_reinterpret<mode>): New expander.
15805 (*aarch64_sve_reinterpret<mode>): New pattern.
15806 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
15807 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
15808 (*sve_ld1rq<Vesize>): Replace with...
15809 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
15810
15811 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15812
15813 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
15814 16:12.
15815
15816 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15817
15818 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
15819 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
15820 (msp430_check_path_for_devices): New.
15821 (parse_devices_csv_1): New.
15822 (parse_devices_csv): New.
15823 (msp430_extract_mcu_data): Try to find devices.csv and search for the
15824 MCU data in devices.csv before using the hard-coded data.
15825 Warn if devices.csv isn't found and the MCU wasn't found in the
15826 hard-coded data either.
15827 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
15828 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
15829 Search for devices.csv on -I and -L paths.
15830 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
15831 msp430_set_driver_var.
15832 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
15833 -mdevices-csv-loc=.
15834 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
15835 searched for devices.csv.
15836 (mwarn-devices-csv): Document option.
15837
15838 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15839
15840 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
15841 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
15842 Use a single Dn alternative instead of separate Dz and Dm
15843 alternatives. Use aarch64_output_sve_move_immediate.
15844 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
15845 function.
15846 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
15847 for predicates too.
15848 (aarch64_output_sve_mov_immediate): Handle predicate modes.
15849 (aarch64_output_ptrue): Delete.
15850
15851 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15852
15853 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
15854 INDEX.
15855 (simd_immediate_info::value, simd_immediate_info::step)
15856 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
15857 with...
15858 (simd_immediate_info::u): ...this new union.
15859 (simd_immediate_info::simd_immediate_info): Update accordingly.
15860 (aarch64_output_simd_mov_immediate): Likewise.
15861 (aarch64_output_sve_mov_immediate): Likewise.
15862
15863 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15864
15865 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
15866 extra_gcc_objs.
15867 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
15868 (msp430_select_cpu): New spec function.
15869 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
15870 MCU data.
15871 * config/msp430/msp430-devices.c: New file.
15872 * config/msp430/msp430-devices.h: New file.
15873 * config/msp430/msp430.c: Remove msp430_mcu_data.
15874 (msp430_option_override): Use msp430_extract_mcu_data to extract
15875 MCU data.
15876 (msp430_use_f5_series_hwmult): Likewise.
15877 (use_32bit_hwmult): Likewise.
15878 (msp430_no_hwmult): Likewise.
15879 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
15880 assembler.
15881 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
15882 and -mcpu option.
15883 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
15884 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
15885 Remove hard-coded MCU multilib data.
15886
15887 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15888
15889 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
15890 based on the mode instead of testing properties of it.
15891
15892 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15893
15894 * doc/md.texi: Document the x and y constraints for AArch64.
15895 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
15896 (FP_LO8_REGS): New reg_class.
15897 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
15898 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
15899 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
15900 * config/aarch64/predicates.md (aarch64_simd_register): Use
15901 FP_REGNUM_P instead of checking the classes manually.
15902 * config/aarch64/constraints.md (y): New constraint.
15903
15904 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15905
15906 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
15907 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
15908 * config/aarch64/aarch64-simd.md
15909 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
15910 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
15911 from the asm template.
15912 * config/aarch64/aarch64-sve.md
15913 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
15914 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
15915 from the asm template.
15916 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
15917 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
15918 from the asm template.
15919 * config/aarch64/aarch64-simd-builtins.def: Update comment.
15920
15921 2019-08-13 Martin Liska <mliska@suse.cz>
15922
15923 * value-prof.c (gimple_ic_transform): Add new line.
15924 Print details with MSG_NOTE.
15925
15926 2019-08-13 Martin Liska <mliska@suse.cz>
15927
15928 * doc/invoke.texi: Document automatic detection of jobserver.
15929 * lto-wrapper.c (run_gcc): Detect jobserver always.
15930
15931 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15932
15933 * config/i386/i386-expand.c (ix86_expand_vector_set)
15934 <case E_V2SImode>: Use vec_merge path for
15935 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15936 <case E_V8QImode>: Ditto.
15937 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
15938 (*mmx_pinsrb): Ditto.
15939
15940 2019-08-12 Jakub Jelinek <jakub@redhat.com>
15941
15942 PR target/83250
15943 PR target/91340
15944 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
15945 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
15946 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
15947 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
15948 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
15949
15950 2019-08-12 Richard Biener <rguenther@suse.de>
15951
15952 PR lto/91375
15953 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
15954 flag_devirtualize.
15955
15956 2019-08-12 Richard Biener <rguenther@suse.de>
15957
15958 PR driver/91130
15959 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
15960 lang_mask option, always use CL_DRIVER.
15961 (get_options_from_collect_gcc_options): Adjust.
15962 (find_and_merge_options): Likewise.
15963 (run_gcc): Likewise.
15964
15965 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15966
15967 * ipa-predicate.c (add_condition): Restore inverted test.
15968
15969 2019-08-10 Jakub Jelinek <jakub@redhat.com>
15970
15971 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
15972 (enum omp_clause_device_type_kind): New enum.
15973 (struct tree_omp_clause): Add subcode.device_type_kind.
15974 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
15975 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
15976 for device_type clause.
15977 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
15978 * tree-pretty-print.c (dump_omp_clause): Likewise.
15979
15980 PR target/91408
15981 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
15982 vector_operand.
15983
15984 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
15985
15986 * reload1.c (finish_spills): Do not check ira_conflicts_p when
15987 handling spilled pseudos.
15988
15989 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15990
15991 PR target/91386
15992 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
15993 to preserve the contents of the original insns.
15994
15995 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15996
15997 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
15998 (addsi3_compare_op2): Likewise.
15999
16000 2019-08-09 Martin Liska <mliska@suse.cz>
16001
16002 * alias.c (alias_ptr_types_compatible_p): Strengten
16003 type comparison in LTO mode.
16004
16005 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16006
16007 PR middle-end/90313
16008 * tree-tailcall.c (find_tail_calls): Reject calls that might
16009 read from an escaped RESULT_DECL.
16010
16011 2019-08-09 Martin Liska <mliska@suse.cz>
16012
16013 * doc/invoke.texi: Document the option value.
16014 * lto-wrapper.c (run_gcc): Set auto_parallel
16015 only with -flto=auto.
16016
16017 2019-08-09 Martin Liska <mliska@suse.cz>
16018
16019 * opts.c (common_handle_option): Error for an invalid argument
16020 to -flto=.
16021
16022 2019-08-09 Martin Liska <mliska@suse.cz>
16023
16024 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16025 use dump_printf to report optimization.
16026 (sem_variable::merge): Likwise.
16027 (sem_item_optimizer::merge_classes): Use dump_printf to report
16028 ICF hits.
16029
16030 2019-08-09 Martin Liska <mliska@suse.cz>
16031
16032 * value-prof.c (gimple_divmod_fixed_value_transform):
16033 Use dump_printf_loc.
16034 (gimple_mod_pow2_value_transform): Likewise.
16035 (gimple_mod_subtract_transform): Likewise.
16036 (init_node_map): Likewise.
16037 (gimple_ic_transform): Likewise.
16038 (gimple_stringops_transform): Likewise.
16039
16040 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16041
16042 * doc/extend.texi: Add const qualifier to ld intrinsics.
16043
16044 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16045
16046 * config/rs6000/dfp.md (D64_D128): Rename to ...
16047 (DDTD): ... this, throughout.
16048 (dfp_suffix): Rename to ...
16049 (q): ... this, throughout.
16050
16051 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16052
16053 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16054 (dfp_suffix): Ditto.
16055 (adddd3, addtd3): Merge to ...
16056 (add<mode>3 for D64_D128): ... this.
16057 (subdd3, subtd3): Merge to ...
16058 (sub<mode>3 for D64_D128): ... this.
16059 (muldd3, multd3): Merge to ...
16060 (mul<mode>3 for D64_D128): ... this.
16061 (divdd3, divtd3): Merge to ...
16062 (div<mode>3 for D64_D128): ... this.
16063 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16064 (*cmp<mode>_internal1 for D64_D128): ... this.
16065 (ftruncdd2, ftrunctd2): Merge to ...
16066 (ftrunc<mode>2 for D64_D128): ... this.
16067 (fixdddi2, fixtddi2): Merge to ...
16068 (fix<mode>di2 for D64_D128): ... this.
16069
16070 2019-08-08 Jim Wilson <jimw@sifive.com>
16071
16072 PR target/91229
16073 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16074 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16075 Pass into recursive call.
16076 (riscv_flatten_aggregate_argument): New arg. Pass to
16077 riscv_flatten_aggregate_field.
16078 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16079 riscv_flatten_aggregate_argument twice, with false and true as last
16080 arg. Process result twice. Compare results and warn if different.
16081 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16082
16083 2019-08-08 Martin Liska <mliska@suse.cz>
16084
16085 PR bootstrap/91352
16086 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16087 * lto-wrapper.c (jobserver_active_p): Likewise.
16088
16089 2019-08-08 Martin Liska <mliska@suse.cz>
16090
16091 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16092 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16093 (create_version_clone_with_body): Likewise.
16094
16095 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16096
16097 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16098 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16099 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16100 GOVD_EXPLICIT flags.
16101 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16102 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16103 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16104 call install_var_field with mask 11 instead of 3.
16105 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16106 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16107
16108 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16109
16110 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16111 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16112
16113 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16114
16115 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16116 MOVPRFX alternatives. Make the GPR alternatives more expensive
16117 than the FPR ones.
16118
16119 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16120
16121 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16122 Disparage the GPR alternative relative to the FPR one.
16123 Fix handling of 8-bit and 16-bit FPR values.
16124
16125 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16126
16127 * config/aarch64/iterators.md (BITWISEV): Delete.
16128 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16129 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16130 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16131 UNSPEC_FMINNMV, UNSPEC_FMINV.
16132 (bit_reduc_op): Delete.
16133 (sve_int_op): New int attribute.
16134 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16135 UNSPEC_FMINNMV, UNSPEC_FMINV.
16136 * config/aarch64/aarch64-sve.md
16137 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16138 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16139 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
16140 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
16141 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
16142 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
16143 new patterns.
16144 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
16145 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
16146 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
16147 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
16148 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
16149 new patterns.
16150
16151 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16152
16153 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
16154 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
16155 (fms<mode>4, *fms<mode>4): Replace with...
16156 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16157 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
16158 Use unspecs instead of rtx codes.
16159 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
16160 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
16161
16162 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16163
16164 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
16165 int iterator.
16166 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
16167 * config/aarch64/aarch64-sve.md
16168 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
16169 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
16170 use a single unspec for the rhs.
16171 (*<su><maxmin><mode>3): Delete.
16172 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
16173
16174 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16175
16176 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
16177 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
16178 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
16179 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
16180 (optab, sve_fp_op): Handle them.
16181 (SVE_FP_UNARY): Delete.
16182 (optab): Remove sqrt entry.
16183 (sve_fp_op): Remove neg, abs and sqrt entries.
16184 (SVE_COND_FP_UNARY): New int iterator.
16185 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
16186 (*<frint_pattern><mode>2): Delete.
16187 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16188 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16189 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16190 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16191
16192 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16193
16194 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
16195
16196 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16197
16198 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
16199 (UNSPEC_COND_FADD): ...this.
16200 (UNSPEC_COND_SUB): Rename to...
16201 (UNSPEC_COND_FSUB): ...this.
16202 (UNSPEC_COND_MUL): Rename to...
16203 (UNSPEC_COND_FMUL): ...this.
16204 (UNSPEC_COND_DIV): Rename to...
16205 (UNSPEC_COND_FDIV): ...this.
16206 (UNSPEC_COND_MAX): Rename to...
16207 (UNSPEC_COND_FMAXNM): ...this.
16208 (UNSPEC_COND_MIN): Rename to...
16209 (UNSPEC_COND_FMINNM): ...this.
16210 (UNSPEC_COND_LT): Rename to...
16211 (UNSPEC_COND_FCMLT): ...this.
16212 (UNSPEC_COND_LE): Rename to...
16213 (UNSPEC_COND_FCMLE): ...this.
16214 (UNSPEC_COND_EQ): Rename to...
16215 (UNSPEC_COND_FCMEQ): ...this.
16216 (UNSPEC_COND_NE): Rename to...
16217 (UNSPEC_COND_FCMNE): ...this.
16218 (UNSPEC_COND_GE): Rename to...
16219 (UNSPEC_COND_FCMGE): ...this.
16220 (UNSPEC_COND_GT): Rename to...
16221 (UNSPEC_COND_FCMGT): ...this.
16222 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
16223 (sve_fp_op_rev): Update accordingly.
16224 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
16225
16226 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16227
16228 * config/aarch64/aarch64-sve.md: Reorganize contents and add
16229 banner comments.
16230 * config/aarch64/check-sve-md.awk: New file.
16231 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
16232 (insn-conditions.md): Depend on it.
16233
16234 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
16235
16236 PR target/91385
16237 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
16238 (*negsi2_cmpz_zext): Ditto.
16239
16240 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16241
16242 * config/aarch64/iterators.md (commutative): Remove.
16243
16244 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
16245
16246 PR driver/91130
16247 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
16248 processing COLLECT_GCC_OPTIONS.
16249 (run_gcc): Likewise.
16250
16251 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
16252
16253 PR tree-optimization/91109
16254 * lra-remat.c (update_scratch_ops): Remove assignment of the
16255 hard register.
16256
16257 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16258
16259 * data-streamer.h (streamer_write_poly_uint64): Declare.
16260 (streamer_read_poly_uint64): Likewise.
16261 * data-streamer-in.c (streamer_read_poly_uint64): New function.
16262 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
16263 * ipa-predicate.h (condition::size): Turn into a poly_int64.
16264 (add_condition): Take a poly_int64 size.
16265 * ipa-predicate.c (add_condition): Likewise.
16266 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
16267 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
16268 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
16269 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
16270 condition::size as a poly_int64.
16271 (unmodified_parm_1): Take a poly_int64 size pointer.
16272 (unmodified_parm): Likewise.
16273 (unmodified_parm_or_parm_agg_item): Likewise.
16274 (set_cond_stmt_execution_predicate): Update accordingly.
16275 (set_switch_stmt_execution_predicate): Likewise.
16276 (will_be_nonconstant_expr_predicate): Likewise.
16277 (will_be_nonconstant_predicate): Likewise.
16278 (inline_read_section): Stream condition::size as a poly_int.
16279 (ipa_fn_summary_write): Likewise.
16280
16281 2019-08-07 Martin Liska <mliska@suse.cz>
16282
16283 * fold-const.c (twoval_comparison_p): Replace int
16284 with bool as a return type.
16285 (simple_operand_p): Likewise.
16286 (operand_equal_p): Replace int with bool as a return type.
16287 * fold-const.h (operand_equal_p): Likewise.
16288
16289 2019-08-07 Jakub Jelinek <jakub@redhat.com>
16290
16291 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
16292 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
16293 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16294 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
16295 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
16296 * tree-pretty-print.c (dump_omp_clause): Likewise.
16297 * tree-nested.c (convert_nonlocal_omp_clauses,
16298 convert_local_omp_clauses): Likewise.
16299 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16300 Likewise.
16301 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
16302 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
16303 clause with array or reference to array types, no matter what type
16304 except for reference it has.
16305
16306 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
16307
16308 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
16309
16310 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
16311
16312 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
16313 (arch_canonicalize): Support rv32g and rv64g and fix error
16314 handling.
16315
16316 2019-08-06 Martin Liska <mliska@suse.cz>
16317
16318 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
16319 and DECL_IS_OPERATOR_DELETE_P.
16320
16321 2019-08-06 Jakub Jelinek <jakub@redhat.com>
16322
16323 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
16324 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
16325 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
16326 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
16327 (gimplify_omp_for): Don't do C++ random access iterator clause
16328 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
16329 don't predetermine the artificial iterator in case of C++ random
16330 access iterators as lastprivate, but private. For OMP_LOOP, force
16331 bind expr around simd body and force for_pre_body before the
16332 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
16333 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
16334 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
16335 diff var of C++ random access iterators. Handle
16336 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
16337 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
16338 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
16339 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
16340 * omp-low.c (lower_rec_input_clauses): For
16341 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
16342 variables instead of default constructing them.
16343 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
16344 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
16345 is_taskloop_ctx check from the assert to the guarding condition.
16346
16347 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
16348
16349 * config/riscv/multilib-generator: (canonical_order): New.
16350 (arch_canonicalize): Dito.
16351 Apply arch_canonicalize for alts.
16352
16353 2019-08-05 Martin Sebor <msebor@redhat.com>
16354
16355 * doc/extend.texi (Common Variable Attributes): Document alias
16356 attribute.
16357
16358 2019-08-05 Marek Polacek <polacek@redhat.com>
16359
16360 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
16361 * doc/invoke.texi: Document -Wcomma-subscript.
16362
16363 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16364
16365 * tree-core.h (tree_function_decl): Make function_code an
16366 independent field. Group the remaining bitfields into bytes
16367 and move decl_type so that it contines to be at a byte boundary.
16368 Leave 12 bits for future expansion.
16369
16370 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16371
16372 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
16373 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
16374 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
16375 IFN_MASK_STORE.
16376
16377 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16378
16379 * gimple.h (gimple_move_vops): Declare.
16380 * gimple.c (gimple_move_vops): New function
16381 * gimple-fold.c (replace_call_with_call_and_fold)
16382 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
16383 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
16384 (gimple_fold_call): Use it.
16385 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
16386 * tree-call-cdce.c (use_internal_fn): Likewise.
16387 * tree-if-conv.c (predicate_load_or_store): Likewise.
16388 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
16389 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16390 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
16391 (update_call_from_tree): Likewise.
16392 * tree-vect-stmts.c (vectorizable_load): Likewise.
16393 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
16394
16395 2019-08-05 Martin Liska <mliska@suse.cz>
16396
16397 PR c++/91334
16398 * tree-ssa-dce.c (propagate_necessity): Handle new operators
16399 with not arguments.
16400 (eliminate_unnecessary_stmts): Likewise.
16401
16402 2019-08-05 Richard Biener <rguenther@suse.de>
16403
16404 PR middle-end/91169
16405 * fold-const.c (get_array_ctor_element_at_index): Create
16406 offset_ints according to the sign of the index type and treat
16407 that as signed if it is obviously so.
16408
16409 2019-08-05 Jakub Jelinek <jakub@redhat.com>
16410
16411 PR target/91341
16412 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
16413 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
16414 _mm256_storeu2_m128i): New function.
16415
16416 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
16417
16418 * config/riscv/riscv.c (riscv_promote_function_mode): New.
16419 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
16420
16421 2019-08-05 Alan Modra <amodra@gmail.com>
16422
16423 PR target/91349
16424 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
16425 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
16426
16427 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
16428
16429 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
16430 bug that was fixed in Tcl 8.6.1.
16431
16432 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
16433
16434 * config/rs6000/future.md: New file.
16435 * config/rs6000/rs6000.md: Include future.md.
16436 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
16437
16438 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16439
16440 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
16441 check to use targetm.slow_unaligned_access instead.
16442
16443 * function.c (assign_param_data_one): Remove unused data members.
16444
16445 2019-08-02 Steve Ellcey <sellcey@marvell.com>
16446
16447 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
16448 build_distinct_type_copy.
16449 (simd_clone_adjust_argument_types): Ditto.
16450 (simd_clone_adjust): Call build_distinct_type_copy here.
16451 (expand_simd_clones): Ditto.
16452
16453 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16454
16455 PR target/91201
16456 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
16457
16458 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
16459
16460 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
16461 from 'const void *'.
16462 (sort_locs_in_loop_postorder_cmp): Likewise.
16463
16464 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
16465
16466 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
16467 (hot-bb-count-ws-permille): Likewise.
16468 (hot-bb-frequency-fraction): Likewise.
16469 (unlikely-bb-count-fraction): Likewise.
16470 * params.def (hot-bb-count-fraction): Rework description.
16471 (hot-bb-count-ws-permille): Likewise.
16472 (hot-bb-frequency-fraction): Likewise.
16473 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
16474 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
16475
16476 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16477
16478 PR target/91323
16479 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
16480 Return false.
16481
16482 2019-08-02 Richard Biener <rguenther@suse.de>
16483
16484 * vec.h (vec::sort): Add gcc_qsort_r support.
16485 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
16486 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
16487 to gcc_qsort_r style callback.
16488 (sort_locs_in_loop_postorder_cmp): Likewise.
16489 (analyze_memory_references): Use gcc_sort_r interfaces.
16490 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
16491
16492 2019-08-02 Martin Liska <mliska@suse.cz>
16493
16494 PR lto/91313
16495 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
16496 to detect working job server.
16497 (driver::detect_jobserver): Test whether jobserver
16498 is active from GCC driver. That will prevent situation where
16499 GCC is invoked from a LD plugin and the linker already uses
16500 file descriptors suggested by make. That leads to a wrong
16501 detection.
16502 * gcc.h (driver): Add detect_jobserver.
16503 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
16504 not scanning for --jobserver-auth prefix.
16505
16506 2019-08-02 Jakub Jelinek <jakub@redhat.com>
16507
16508 PR tree-optimization/91201
16509 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
16510 V16QImode extraction without sse4.1 try to use V4SImode lowpart
16511 extraction.
16512
16513 2019-08-01 Martin Sebor <msebor@redhat.com>
16514
16515 PR c++/90947
16516 * tree.c (type_initializer_zero_p): Define.
16517 * tree.h (type_initializer_zero_p): New function.
16518
16519 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16520
16521 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
16522
16523 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16524
16525 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
16526 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
16527 * predict.c (maybe_hot_count_p): Likewise.
16528 (maybe_hot_bb_p): Tweak comment.
16529 (maybe_hot_edge_p): Likewise.
16530 (probably_never_executed): Likewise. Minor tweak.
16531 (probably_never_executed_bb_p): Likewise.
16532 (unlikely_executed_edge_p): Likewise.
16533 (probably_never_executed_edge_p): Likewise.
16534 (optimize_function_for_size_p): Likewise.
16535 (optimize_function_for_speed_p): Likewise.
16536 (function_optimization_type): Likewise.
16537 (optimize_bb_for_size_p): Likewise.
16538 (optimize_bb_for_speed_p): Likewise.
16539 (bb_optimization_type): Likewise.
16540 (optimize_edge_for_size_p): Likewise.
16541 (optimize_edge_for_speed_p): Likewise.
16542 (optimize_insn_for_size_p): Likewise.
16543 (optimize_insn_for_speed_p): Likewise.
16544 (optimize_loop_for_size_p): Likewise.
16545 (optimize_loop_for_speed_p): Likewise.
16546 (optimize_loop_nest_for_speed_p): Likewise.
16547 (optimize_loop_nest_for_size_p): Likewise.
16548 (predictable_edge_p): Likewise.
16549 (handle_missing_profiles): Minor tweak.
16550
16551 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
16552
16553 * config/rs6000/predicates.md (pcrel_external_address): Update
16554 comment.
16555
16556 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16557
16558 PR target/85693
16559 * config/i386/mmx.md (usadv8qi): New expander.
16560
16561 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
16562
16563 PR c++/90590
16564 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
16565 with reserved names that are in a system header.
16566
16567 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16568
16569 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
16570 (*vec_extractv2si_0_zext_sse4): New insn pattern.
16571 (*vec_extractv2si_0_zext): Ditto.
16572 (*vec_extractv2si_1): Add (rm,x) alternative.
16573 (*vec_extractv2si_1_zext): New insn pattern.
16574 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
16575 insn constraint.
16576
16577 2019-08-01 Richard Biener <rguenther@suse.de>
16578
16579 * domwalk.c (bb_postorder): Remove static variable.
16580 (cmp_bb_postorder): Adjust.
16581 (sort_bbs_postorder): Adjust and use gcc_sort_r.
16582 (dom_walker::walk): Adjust.
16583
16584 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
16585
16586 * sort.cc (sort_r_ctx): New struct.
16587 (reorder23): Make templated on context type.
16588 (reorder45): Ditto.
16589 (cmp1): Ditto. Adjust signature.
16590 (netsort): Ditto.
16591 (mergesort): Ditto.
16592 [CHECKING_P] (cmp2to3): New static function. Use it...
16593 (gcc_qsort) [CHECKING_P]: ...here.
16594 (gcc_sort_r): New function.
16595 * system.h (sort_r_cmp_fn): New function typedef.
16596 (qsort_chk): Adjust signature.
16597 (gcc_sort_r): Declare.
16598 * vec.c (qsort_chk_error): Adjust.
16599 (qsort_chk): Adjust.
16600
16601 2019-08-01 Richard Biener <rguenther@suse.de>
16602
16603 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
16604 (compute_antic): Localize it here.
16605
16606 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
16607
16608 * common/config/riscv/riscv-common.c: Check -march string ends
16609 with null.
16610
16611 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
16612
16613 * ipa-devirt.c (type_warning_cmp): Make static.
16614 (decl_warning_cmp): Ditto.
16615
16616 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
16617
16618 PR target/91050
16619 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
16620 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
16621 use of deleted rs6000_dejagnu_cpu_index variable.
16622 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
16623 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16624 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
16625 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
16626 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
16627 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16628
16629 2019-07-31 Richard Biener <rguenther@suse.de>
16630
16631 PR tree-optimization/91280
16632 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16633 Decompose MEM_REF manually for offset handling.
16634
16635 2019-07-31 Richard Biener <rguenther@suse.de>
16636
16637 PR tree-optimization/91293
16638 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
16639 of reduction stmts.
16640
16641 2019-07-31 Matt Thomas <matt@3am-software.com>
16642 Nick Hudson <nick@nthcliff.demon.co.uk>
16643 Matthew Green <mrg@eterna.com.au>
16644 Maya Rashish <coypu@sdf.org>
16645
16646 * config.gcc (hppa*-*-netbsd*): New target.
16647 * config/pa/pa-netbsd.h: New file.
16648 * config/pa/pa32-netbsd.h: New file.
16649
16650 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16651
16652 PR tree-optimization/91201
16653 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
16654
16655 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
16656
16657 * config/gcn/gcn-valu.md
16658 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
16659 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
16660 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
16661 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
16662 struct ilist. Add nops for delayeduse insns.
16663 * config/gcn/gcn.md (delayeduse): New attribute.
16664 (*movbi): Remove s_waitcnt from stores.
16665 (*mov<mode>_insn): Likewise.
16666 (*movti_insn): Likewise. Add delayeduse attribute.
16667 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
16668 (atomic_store<mode>): Remove or adjust s_waitcnt.
16669
16670 2019-07-31 Richard Biener <rguenther@suse.de>
16671
16672 * vr-values.h (vr_values::swap_vr_value): New.
16673 (vr_values::free_value_range): likewise.
16674 * vr-values.c (vr_values::swap_vr_value): Implement.
16675 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
16676 Do not return a range or take a var.
16677 (evrp_range_analyzer::stack): Change back to recording a non-const
16678 value_range *.
16679 * gimple-ssa-evrp-analyze.c
16680 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
16681 value-range.
16682 (evrp_range_analyzer::pop_to_marker): Adjust.
16683 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
16684 (evrp_range_analyzer::pop_value_range): Likewise. Free the
16685 no longer needed value-range.
16686
16687 2019-07-31 Martin Liska <mliska@suse.cz>
16688
16689 * tree-ssa-dce.c (propagate_necessity): Delete operator can
16690 have size and (or) alignment as 2nd and later arguments.
16691 Mark all of them as necessary.
16692
16693 2019-07-31 Richard Biener <rguenther@suse.de>
16694
16695 PR tree-optimization/91178
16696 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16697 Use tail-recursion.
16698
16699 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16700
16701 PR tree-optimization/91201
16702 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
16703 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
16704 TARGET_AVX512F.
16705 (reduc_plus_scal_<mode>): Improve formatting by introducing
16706 a temporary.
16707
16708 2019-07-31 Sudakshina Das <sudi.das@arm.com>
16709
16710 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
16711 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
16712 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
16713 (aarch64_init_tme_builtins): New.
16714 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
16715 (aarch64_expand_builtin_tme): New.
16716 (aarch64_expand_builtin): Handle TME builtins.
16717 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
16718 __ARM_FEATURE_TME when enabled.
16719 * config/aarch64/aarch64-option-extensions.def: Add "tme".
16720 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
16721 (TARGET_TME): New.
16722 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
16723 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
16724 UNSPECV_TCANCEL.
16725 (tstart, ttest, tcommit, tcancel): New instructions.
16726 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
16727 (__tcancel, __ttest): New.
16728 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
16729 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
16730 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
16731 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
16732 * config/arm/types.md: Add new tme type attr.
16733 * doc/invoke.texi: Document "tme".
16734
16735 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
16736
16737 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
16738 warn_unused_result attribute.
16739 (cmse_check_address_range): Add warn_unused_result attribute.
16740
16741 2019-07-31 Richard Biener <rguenther@suse.de>
16742
16743 PR tree-optimization/91257
16744 * tree-vrp.c (union_ranges): Unify equality and less tests
16745 by using compare_values. Re-order cheap tests first.
16746
16747 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16748
16749 PR middle-end/91301
16750 * gimplify.c (gimplify_omp_for): If for class iterator on
16751 distribute parallel for there is no data sharing clause
16752 on inner_for_stmt, look for private clause on combined
16753 parallel too and if found, move it to inner_for_stmt.
16754
16755 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
16756
16757 * lra-int.h (lra_operand_data): Remove early_clobber field.
16758 (lra_insn_reg): Likewise.
16759 * lra.c (debug_operand_data): Update accordingly.
16760 (setup_operand_alternative): Likewise.
16761 (new_insn_reg): Likewise. Remove early_clobber parameter.
16762 (collect_non_operand_hard_regs): Update call accordingly.
16763 Don't assign to lra_insn_reg::early_clobber.
16764 (add_regs_to_insn_regno_info): Remove early_clobber parameter
16765 and update calls to new_insn_reg.
16766 (lra_update_insn_regno_info): Update calls accordingly.
16767 * lra-constraints.c (update_and_check_small_class_inputs): Take the
16768 alternative number as a parameter and test whether the operand
16769 is earlyclobbered in that particular alternative.
16770 (process_alt_operands): Update call accordingly. Use per-alternative
16771 checks for earyclobber here too.
16772 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
16773 against zero for IRA_UNKNOWN_ALT.
16774
16775 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16776
16777 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
16778
16779 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
16780
16781 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
16782 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16783
16784 2019-07-30 Martin Liska <mliska@suse.cz>
16785
16786 PR ipa/89330
16787 * cgraph.c (cgraph_edge::make_direct): Use
16788 edge->indirect_unknown_callee as edge->resolve_speculation can
16789 deallocate edge which is this pointer.
16790
16791 2019-07-30 Richard Biener <rguenther@suse.de>
16792
16793 PR tree-optimization/91257
16794 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
16795
16796 2019-07-30 Martin Liska <mliska@suse.cz>
16797
16798 * doc/invoke.texi: Document new behavior.
16799 * lto-wrapper.c (cpuset_popcount): New function
16800 is a copy of libgomp/config/linux/proc.c.
16801 (init_num_threads): Likewise.
16802 (run_gcc): Automatically detect core count for -flto.
16803 (jobserver_active_p): New function.
16804
16805 2019-07-30 Richard Biener <rguenther@suse.de>
16806
16807 PR tree-optimization/91257
16808 * bitmap.h (bitmap_ior_into_and_free): Declare.
16809 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
16810 whether to add the unliked element to the freelist.
16811 (bitmap_list_insert_element_after): Add defaulted param for
16812 an already allocated element.
16813 (bitmap_ior_into_and_free): New function.
16814 * tree-ssa-structalias.c (condense_visit): Reduce the
16815 ponts-to and edge bitmaps of the SCC members in a
16816 logarithmic fashion rather than all to one.
16817
16818 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
16819
16820 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
16821 parameter. When nonnull, make sure that the addition or subtraction
16822 has the same condition.
16823 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
16824 for CFN_COND_MUL too.
16825
16826 2019-07-30 Richard Biener <rguenther@suse.de>
16827
16828 PR tree-optimization/91291
16829 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
16830 constant values.
16831
16832 2019-07-30 Jakub Jelinek <jakub@redhat.com>
16833
16834 PR middle-end/91216
16835 * omp-low.c (global_nonaddressable_vars): New variable.
16836 (use_pointer_for_field): For global decls, if they are non-addressable,
16837 remember it in the global_nonaddressable_vars bitmap, if they are
16838 addressable and in the global_nonaddressable_vars bitmap, ignore their
16839 TREE_ADDRESSABLE bit.
16840 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
16841 vars in global_nonaddressable_vars bitmap.
16842 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
16843
16844 PR target/91150
16845 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
16846 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
16847 comparison to unsigned HOST_WIDE_INT before shifting it left.
16848
16849 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16850
16851 * config/i386/i386.md (movstrict<mode>): Use register_operand
16852 predicate for operand 0. Add expander condition. Assert that
16853 operand 0 is a SUBREG RTX.
16854 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
16855 Update operand constraints and insn condition.
16856 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
16857 (zero_extendqihi2_and): Do not call gen_movstrictqi.
16858 (*setcc_qi_slp): Use register_operand predicate for operand 0.
16859 Update operand 0 constraints.
16860 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
16861
16862 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16863
16864 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
16865 when -m{code,data}-region are used without -mlarge.
16866 * config/msp430/msp430.c (msp430_option_override): Error when a
16867 non-default code or data region is used without -mlarge.
16868 (msp430_section_attr): Emit a warning and do not add upper/lower/either
16869 attributes when they are used without -mlarge.
16870
16871 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16872
16873 PR target/70320
16874 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
16875
16876 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16877
16878 PR middle-end/91242
16879 * wide-int.h (generic_wide_int::sext_elt): New function.
16880 * inchash.h (hash::add_wide_int): Use it instead of elt.
16881
16882 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16883
16884 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
16885 CODE_FOR_arm_##.
16886 * config/arm/arm.md (<crc_variant>): Rename to...
16887 (arm_<crc_variant>): ... This.
16888 (<cdp>): Rename to...
16889 (arm_<cdp>): ... This.
16890 (<ldc>): Rename to...
16891 (arm_<ldc>): ... This.
16892 (<stc>): Rename to...
16893 (arm_<stc>): ... This.
16894 (<mcr>): Rename to...
16895 (arm_<mcr>): ... This.
16896 (<mrc>): Rename to...
16897 (arm_<mrc>): ... This.
16898 (<mcrr>): Rename to...
16899 (arm_<mcrr>): ... This.
16900 (<mrrc>): Rename to...
16901 (arm_<mrrc>): ... This.
16902
16903 2019-07-29 Richard Biener <rguenther@suse.de>
16904
16905 PR tree-optimization/91257
16906 * tree-ssa-sccvn.h (struct vn_avail): New.
16907 (struct vn_ssa_aux): Add avail member.
16908 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
16909 member, add m_avail_freelist one.
16910 (rpo_elim::~rpo_elim): Remove.
16911 (rpo_elim::eliminate_avail): Adjust to new avail tracking
16912 data structure.
16913 (rpo_elim::eliminate_push_avail): Likewise.
16914 (do_unwind): Likewise.
16915 (do_rpo_vn): Likewise.
16916
16917 2019-07-29 Richard Biener <rguenther@suse.de>
16918
16919 PR tree-optimization/91257
16920 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
16921 most cases, instead call compare_values which handles the
16922 symbolic ranges we handle specially.
16923 (compare_values_warnv): Do not call operand_less_p but open-code
16924 the effective fold calls. Avoid converting so much.
16925
16926 2019-07-29 Martin Liska <mliska@suse.cz>
16927
16928 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
16929 remove LHS of operator new call. It's handled latter.
16930
16931 2019-07-29 Richard Biener <rguenther@suse.de>
16932
16933 PR tree-optimization/91267
16934 * vr-values.c (vr_values::update_value_range): Add early return
16935 for effectively VARYING lattice entry.
16936
16937 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16938
16939 PR debug/86638
16940 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
16941 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
16942 necessary if keep_all_vdefs_p is true.
16943 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
16944 that keep_all_vdefs_p is false.
16945 (mark_all_reaching_defs_necessary): Likewise.
16946 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
16947
16948 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16949
16950 * common.opt (Og): Change the initial value of flag_dse to 0.
16951 * opts.c (default_options_table): Move OPT_ftree_dse from
16952 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
16953 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
16954 entry before the OPT_ftree_sra entry.
16955 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
16956 of flags disabled by Og.
16957
16958 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16959
16960 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
16961 variables for -Og.
16962
16963 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16964
16965 * doc/sourcebuild.texi (check-function-bodies): Document.
16966
16967 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16968
16969 * simplify-rtx.c (simplify_const_unary_operation): Fold a
16970 VEC_DUPLICATE of a fixed-length vector even if the result
16971 is variable-length. Likewise fold a duplicate of a
16972 variable-length vector if the variable-length vector is
16973 itself a duplicate of a fixed-length sequence.
16974 (test_vector_ops_duplicate): Test more cases.
16975
16976 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16977
16978 * vector-builder.h (vector_builder): Add a shape template parameter.
16979 (vector_builder::new_unary_operation): New function, generalizing
16980 the old tree_vector_builder function.
16981 (vector_builder::new_binary_operation): Likewise.
16982 (vector_builder::binary_encoded_nelts): Likewise.
16983 * int-vector-builder.h (int_vector_builder): Update template
16984 parameters to vector_builder.
16985 (int_vector_builder::shape_nelts): New function.
16986 * rtx-vector-builder.h (rtx_vector_builder): Update template
16987 parameters to vector_builder.
16988 (rtx_vector_builder::shape_nelts): New function.
16989 (rtx_vector_builder::nelts_of): Likewise.
16990 (rtx_vector_builder::npatterns_of): Likewise.
16991 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
16992 * tree-vector-builder.h (tree_vector_builder): Update template
16993 parameters to vector_builder.
16994 (tree_vector_builder::shape_nelts): New function.
16995 (tree_vector_builder::nelts_of): Likewise.
16996 (tree_vector_builder::npatterns_of): Likewise.
16997 (tree_vector_builder::nelts_per_pattern_of): Likewise.
16998 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
16999 (tree_vector_builder::new_binary_operation): Delete.
17000 (tree_vector_builder::binary_encoded_nelts): Likewise.
17001 * simplify-rtx.c: Include rtx-vector-builder.h.
17002 (distributes_over_addition_p): New function.
17003 (simplify_const_unary_operation)
17004 (simplify_const_binary_operation): Generalize handling of vector
17005 constants to include variable-length vectors.
17006 (test_vector_ops_series): Add more tests.
17007
17008 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17009
17010 PR lto/91222
17011 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17012 than INDENTIFIER_POINTER.
17013
17014 2019-07-28 Martin Liska <mliska@suse.cz>
17015
17016 PR ipa/89330
17017 * cgraph.c (symbol_table::create_edge): Always allocate
17018 a cgraph_edge.
17019 (symbol_table::free_edge): Store summary_id to
17020 edge_released_summary_ids if != -1;
17021 * cgraph.h (NEXT_FREE_NODE): Remove.
17022 (SET_NEXT_FREE_NODE): Likewise.
17023 (NEXT_FREE_EDGE): Likewise.
17024 (symbol_table::release_symbol): Store summary_id to
17025 cgraph_released_summary_ids if != -1;
17026 (symbol_table::allocate_cgraph_symbol): Always allocate
17027 a cgraph_node.
17028
17029 2019-07-28 Alan Modra <amodra@gmail.com>
17030
17031 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17032 gen_sibcall.
17033
17034 2019-07-28 Alan Modra <amodra@gmail.com>
17035
17036 PR target/91135
17037 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17038 define.
17039 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17040 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17041 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17042
17043 2019-07-28 Alan Modra <amodra@gmail.com>
17044
17045 PR target/91050
17046 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17047 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17048 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17049 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17050 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17051 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17052 in asm_default spec.
17053 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17054 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17055
17056 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17057
17058 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17059
17060 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17061
17062 PR target/89517
17063 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17064 * config/aarch64/aarch64-option-extensions.def: Add new comments
17065 and restore easier to read options.
17066
17067 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17068
17069 * convert.c (convert_to_real_1): Move part of conversion code...
17070 * match.pd: ...To here.
17071
17072 2019-07-26 Martin Jambor <mjambor@suse.cz>
17073
17074 PR ipa/89330
17075 * ipa-inline-transform.c (check_speculations_1): New function.
17076 (push_all_edges_in_set_to_vec): Likewise.
17077 (check_speculations): Use check_speculations_1, new parameter
17078 new_edges.
17079 (inline_call): Pass new_edges to check_speculations.
17080 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17081 NULL.
17082 (speculation_useful_p): Early return true if edge is inlined, remove
17083 later checks for inline_failed.
17084
17085 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17086
17087 PR rtl-optimization/91223
17088 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17089 matching with INOUT operand.
17090
17091 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17092
17093 * stmt.c (expand_case): Try to narrow the index type if it's larger
17094 than a word. Tidy up.
17095
17096 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17097
17098 * cif-code.def (NEVER_CALL): New code.
17099 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17100 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17101
17102 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17103
17104 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17105 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17106
17107 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17108
17109 * ipa-devirt.c (add_type_duplicate): Fix return value.
17110
17111 2019-07-25 Richard Biener <rguenther@suse.de>
17112
17113 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17114 type parameter and use it instead of guessing expression
17115 type from the first operand.
17116 (extract_range_from_binary_expr): Pass expr_type down.
17117
17118 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17119
17120 * config/arm/arm.md (SATrev): Change to code attribute.
17121 (*satsi_<SAT:code>): Adjust for the above.
17122 (*satsi_<SAT:code>_shift): Likewise.
17123
17124 2019-07-25 Richard Biener <rguenther@suse.de>
17125
17126 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17127 Make value_range * temporary const.
17128 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17129 Likewise.
17130 (evrp_range_analyzer::record_ranges_from_): Likewise.
17131 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17132 deal with having recorded a const one.
17133 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
17134 Return a const value_range *.
17135 (evrp_range_analyzer::pop_value_range): Likewise.
17136 (evrp_range_analyzer::stack): Record const value_range *s.
17137 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17138 Adjust.
17139 * gimple-ssa-sprintf.c (get_int_range): Likewise.
17140 (format_integer): Likewise.
17141 (sprintf_dom_walker::handle_gimple_call): Likewise.
17142 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
17143 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
17144 (vrp_prop::get_value_range): Adjust.
17145 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
17146 modifying the lattice in-place.
17147 (vrp_prop::visit_stmt): Likewise.
17148 * vr-values.c (vr_values::get_lattice_entry): New private method.
17149 (vr_values::get_value_range): Wrap it and return a const
17150 value_range *.
17151 (vr_values::set_def_to_varying): New.
17152 (vr_values::set_defs_to_varying): Use it.
17153 (vr_values::update_value_range): Likewise.
17154 (vr_values::vrp_stmt_computes_nonzero): Adjust.
17155 (values::op_with_constant_singleton_va): Likewise.
17156 (vr_values::extract_range_for_var_from_co): Likewise.
17157 (vr_values::extract_range_from_ssa_name): Likewise.
17158 (vr_values::extract_range_from_cond_expr): Likewise.
17159 (vr_values::extract_range_basic): Likewise.
17160 (compare_ranges): Take const value_range *, adjust.
17161 (compare_range_with_value): Likewise.
17162 (vrp_valueize): Adjust.
17163 (vrp_valueize_1): Likewise.
17164 (vr_values::get_vr_for_comparison): Return a const value_range *.
17165 (vr_values::compare_name_with_value): Adjust.
17166 (vr_values::compare_names): Likewise.
17167 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17168 Likewise.
17169 (vr_values::vrp_evaluate_conditional): Likewise.
17170 (find_case_label_ranges): Take a const value_range *.
17171 (vr_values::vrp_visit_switch_stmt): Adjust.
17172 (vr_values::extract_range_from_phi_node): Likewise.
17173 (vr_values::simplify_div_or_mod_using_ran): Likewise.
17174 (vr_values::simplify_abs_using_ranges): Likewise.
17175 (test_for_singularity): Take a const value_range *.
17176 (range_fits_type_p): Likewise.
17177 (vr_values::simplify_cond_using_ranges_1): Adjust.
17178 (vr_values::simplify_cond_using_ranges_2): Likewise.
17179 (vr_values::simplify_switch_using_ranges): Likewise.
17180 (vr_values::simplify_float_conversion_usi): Likewise.
17181 (vr_values::two_valued_val_range_p): Likewise.
17182 * vr-values.h (vr_values::get_value_range): Return a const
17183 value_range *.
17184 (vr_values::set_def_to_varying): New.
17185 (vr_values::get_lattice_entry): New private method.
17186 (vr_values::get_vr_for_comparison): Return a const value_range *.
17187
17188 2019-07-25 Martin Liska <mliska@suse.cz>
17189 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
17190
17191 PR c++/23383
17192 * common.opt: Add -fallocation-dce
17193 * gimple.c (gimple_call_operator_delete_p): New.
17194 * gimple.h (gimple_call_operator_delete_p): Likewise.
17195 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
17196 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
17197 DECL_IS_OPERATOR_DELETE_P.
17198 (mark_all_reaching_defs_necessary_1): Likewise.
17199 (propagate_necessity): Likewise.
17200 (eliminate_unnecessary_stmts): Handle
17201 gimple_call_operator_delete_p.
17202 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
17203 Add packing of OPERATOR_DELETE.
17204 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
17205 Similarly here.
17206 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
17207 (DECL_SET_IS_OPERATOR_DELETE): New.
17208 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
17209
17210 2019-07-25 Martin Liska <mliska@suse.cz>
17211
17212 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
17213 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
17214 * coverage.c (coverage_begin_function): Likewise.
17215 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
17216 * gimple.c (gimple_call_nonnull_result_p): Likewise.
17217 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
17218 (sem_item::hash_referenced_symbol_properties): Likewise.
17219 * lto-streamer-out.c (hash_tree): Likewise.
17220 * predict.c (expr_expected_value_1): Likewise.
17221 * tree-inline.c (expand_call_inline): Likewise.
17222 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17223 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17224 * tree-core.h (enum function_decl_type): New enum.
17225 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
17226 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
17227 (set_function_decl_type): Likewise.
17228 (DECL_IS_OPERATOR_NEW_P): New.
17229 (DECL_SET_IS_OPERATOR_NEW): Likewise.
17230 (DECL_LAMBDA_FUNCTION): Likewise.
17231 (DECL_LAMBDA_FUNCTION_P): Likewise.
17232 (DECL_IS_OPERATOR_NEW): Remove.
17233 (DECL_SET_LAMBDA_FUNCTION): Likewise.
17234
17235 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
17236
17237 * ipa-profile.c (get_most_common_single_value): Use
17238 get_nth_most_common_value.
17239 * profile.c (sort_hist_value): New function.
17240 (compute_value_histograms): Call sort_hist_value to sort the
17241 values after loading from disk.
17242 * value-prof.c (get_most_common_single_value): Rename to ...
17243 get_nth_most_common_value. Add input params n, return
17244 the n_th value and count.
17245 (gimple_divmod_fixed_value_transform): Use
17246 get_nth_most_common_value.
17247 (gimple_ic_transform): Likewise.
17248 (gimple_stringops_transform): Likewise.
17249 * value-prof.h (get_most_common_single_value): Add input params
17250 n, default to 0.
17251
17252 2019-07-25 Richard Biener <rguenther@suse.de>
17253
17254 PR tree-optimization/91236
17255 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17256 size of CONSTRUCTOR write. Fix buffer size we pass to
17257 native_encode_expr.
17258
17259 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17260
17261 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
17262 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
17263 r273773.
17264
17265 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17266
17267 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
17268 explicitly disabled with --disable-initfini-array.
17269
17270 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17271
17272 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
17273 if-exists.
17274
17275 2019-07-24 Martin Sebor <msebor@redhat.com>
17276
17277 PR tree-optimization/91183
17278 PR tree-optimization/86688
17279 * builtins.c (compute_objsize): Handle MEM_REF.
17280 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
17281 (get_min_string_length): Remove.
17282 (count_nonzero_bytes): New function.
17283 (handle_char_store): Rename...
17284 (handle_store): to this. Handle multibyte stores via integer types.
17285 (strlen_check_and_optimize_stmt): Adjust conditional and the called
17286 function name.
17287
17288 2019-07-24 Martin Sebor <msebor@redhat.com>
17289
17290 PR driver/80545
17291 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
17292 (diagnostic_report_diagnostic): Same.
17293 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
17294 (diagnostic_context::lang_mask): New data member.
17295 * ipa-pure-const.c (suggest_attribute): Use
17296 lang_hooks.option_lang_mask ().
17297 * opts-common.c (option_enabled): Handle new argument.
17298 (get_option_state): Pass an additional argument.
17299 * opts.c (print_filtered_help): Print supported languages for
17300 unsupported options. Adjust printing of current state.
17301 * opts.h (option_enabled): Add argument.
17302 * toplev.c (print_switch_values): Use lang_mask.
17303 (general_init): Set global_dc->lang_mask.
17304
17305 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17306
17307 PR bootstrap/87030
17308 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
17309
17310 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
17311
17312 * cgraphunit.c (symbol_table::compile): Start and stop
17313 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
17314 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
17315
17316 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
17317
17318 * gimplify.c (flag_instrument_functions_exclude_p): Include
17319 namespace/class information in the printable name.
17320 * opts.c (add_comma_separated_to_vector): Add NUL terminator
17321 to tokens entered into the vector.
17322
17323 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
17324
17325 * tree-nested.c (build_simple_mem_ref_notrap): New function.
17326 (get_static_chain): Call it instead of build_simple_mem_ref.
17327 (get_frame_field): Likewise.
17328 (get_nonlocal_debug_decl): Likewise.
17329 (convert_nonlocal_reference_op): Likewise.
17330
17331 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17332
17333 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
17334 declaration.
17335 (arc_compute_frame_size): Millicode is disabled when compiling
17336 ISR.
17337 (arc_return_address_register): Likewise.
17338 (arc_compute_function_type): Likewise.
17339 (arc_compute_frame_size): Likewise.
17340 (secondary_reload_info): Likewise.
17341 (arc_get_unalign): Likewise.
17342 (arc_can_use_return_insn): Declare.
17343 * config/arc/arc.c (AUX_LP_START): Define
17344 (AUX_LP_END): Likewise.
17345 (arc_frame_info): Update gmask member to 64-bit datum.
17346 (GMASK_LEN): Update.
17347 (arc_compute_function_type): Make it static, move it forward.
17348 (arc_must_save_register): Update, consider the extra regs.
17349 (arc_compute_millicode_save_restore_regs): Update to use the 64
17350 bit gmask.
17351 (arc_compute_frame_size): Likewise.
17352 (arc_enter_leave_p): Likewise.
17353 (arc_save_callee_saves): Likewise.
17354 (arc_restore_callee_saves): Likewise.
17355 (arc_save_callee_enter): Likewise.
17356 (arc_restore_callee_leave): Likewise.
17357 (arc_save_callee_milli): Likewise.
17358 (arc_restore_callee_milli): Likewise.
17359 (arc_expand_prologue): Add new interrupt handling.
17360 (arc_return_address_register): Make it static, move it forward.
17361 (arc_expand_epilogue): Add new interrupt handling.
17362 (arc_get_unalign): Delete.
17363 (arc_epilogue_uses): Make sure we do not remove the extra
17364 saved/restored registers when interrupt.
17365 (arc_can_use_return_insn): New function.
17366 (push_reg): Likewise.
17367 (pop_reg): Likewise.
17368 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
17369 procedures.
17370 (arc_restore_callee_saves): Likewise, but restoring.
17371 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
17372 (R33_REG): Likewise.
17373 (R34_REG): Likewise.
17374 (R35_REG): Likewise.
17375 (R36_REG): Likewise.
17376 (R37_REG): Likewise.
17377 (R38_REG): Likewise.
17378 (R39_REG): Likewise.
17379 (R45_REG): Likewise.
17380 (R46_REG): Likewise.
17381 (R47_REG): Likewise.
17382 (R48_REG): Likewise.
17383 (R49_REG): Likewise.
17384 (R50_REG): Likewise.
17385 (R51_REG): Likewise.
17386 (R52_REG): Likewise.
17387 (R53_REG): Likewise.
17388 (R54_REG): Likewise.
17389 (R55_REG): Likewise.
17390 (R56_REG): Likewise.
17391 (R58_REG): Likewise.
17392 (type): Add rtie attribute.
17393 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
17394 (movsi_insn): Accept moves to lp_count.
17395 (rtie): Update pattern.
17396 (simple_return): Simplify it, don't use this pattern as a return
17397 from an interrupt.
17398 (arc600_rtie): New pattern.
17399 (p_return_i): Clean up.
17400 (return): Likewise.
17401 * config/arc/builtins.def (rtie): Only available for non ARC6xx
17402 family CPUs.
17403 * config/arc/predicates.md (move_src_operand): Consider lp_count
17404 as a register.
17405
17406 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
17407
17408 * config/s390/predicates.md (addv_const_operand): New predicate.
17409 * config/s390/s390-modes.def (CCO): New condition code mode.
17410 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
17411 (s390_branch_condition_mask): Likewise.
17412 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
17413 ("mulv<mode>4"): New expanders.
17414 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
17415 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
17416 pattern definitions.
17417
17418 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17419
17420 PR middle-end/91166
17421 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
17422 (define_predicates): Add entry for uniform_vector_p.
17423 (vec_same_elem_p): New match pattern.
17424
17425 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17426
17427 PR bootstrap/87030
17428 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
17429 * config/i386/darwin32-biarch.h .. to here.
17430 * config/i386/darwin64-biarch.h: Adjust comments.
17431 * config/rs6000/darwin32-biarch.h: Likewise.
17432 * config/rs6000/darwin64-biarch.h: Likewise.
17433 * config.gcc: Missed commit from r273746
17434 (*-*-darwin*): Don't include CPU t-darwin here.
17435 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17436 an error message if i686-darwin configuration is attempted for
17437 Darwin >= 18.
17438
17439 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
17440
17441 PR bootstrap/87030
17442 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
17443 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17444 an error message if i686-darwin configuration is attempted for
17445 Darwin >= 18.
17446 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
17447 (powerpc-*-darwin*): Use biarch files where needed.
17448 (powerpc64-*-darwin*): Likewise.
17449 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
17450 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17451 arch case.
17452 * config/i386/darwin32-biarch.h: New.
17453 * config/i386/darwin64.h: Rename.
17454 * config/i386/darwin64-biarch.h: To this.
17455 * config/i386/t-darwin: Rename.
17456 * config/i386/t-darwin32-biarch: To this.
17457 * config/i386/t-darwin64: Rename.
17458 * config/i386/t-darwin64-biarch: To this.
17459 * config/rs6000/darwin32-biarch.h: New.
17460 * config/rs6000/darwin64.h: Rename.
17461 * config/rs6000/darwin64-biarch.h: To this.
17462 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17463 arch case.
17464 * config/rs6000/t-darwin8: Rename.
17465 * config/rs6000/t-darwin32-biarch: To this.
17466 * config/rs6000/t-darwin64 Rename.
17467 * config/rs6000/t-darwin64-biarch: To this.
17468
17469 2019-07-23 Martin Sebor <msebor@redhat.com>
17470
17471 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
17472
17473 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17474
17475 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
17476 (rh): New alias for it.
17477
17478 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17479
17480 * gdbhooks.py: Pass replace=True to
17481 gdb.printing.register_pretty_printer.
17482
17483 2019-07-23 Richard Biener <rguenther@suse.de>
17484
17485 PR debug/91231
17486 * lto-streamer-in.c (input_function): Drop inline-entry markers
17487 that ended up with an unknown location block.
17488
17489 2019-07-23 Richard Biener <rguenther@suse.de>
17490
17491 PR tree-optimization/83518
17492 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
17493 init from a constant even when partial defs are already recorded.
17494
17495 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17496
17497 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
17498 * config/i386/znver1.md: Enable patterns for znver2 and add store
17499 variants which use extra AGU unit.
17500
17501 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17502
17503 * config/i386/i386-options.c (ix86_option_override_internal): Default
17504 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
17505 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
17506 for ZNVER2.
17507
17508 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17509
17510 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
17511 (znver2_costs): Update 256 bit SSE costs and multiplication.
17512
17513 2019-07-23 Jan Beulich <jbeulich@suse.com>
17514
17515 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
17516 Require only AVX512F.
17517 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
17518 alternative expanding to vpternlog.
17519
17520 2019-07-23 Martin Liska <mliska@suse.cz>
17521
17522 * dwarf2out.c (gen_producer_string): Canonize -flto=N
17523 to -flto in dwarf producer string.
17524
17525 2019-07-23 Richard Biener <rguenther@suse.de>
17526
17527 * tree-cfg.c (label_for_bb): Remove global var.
17528 (main_block_label): Take label_for_bb as argument.
17529 (cleanup_dead_labels_eh): Likewise, adjust.
17530 (cleanup_dead_labels): Adjust.
17531
17532 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17533
17534 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
17535 Configurations): Add documentation for __builtin_mtfsf.
17536
17537 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
17538
17539 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
17540 * config/riscv/riscv.c (riscv_constant_alignment): Use
17541 riscv_align_data_type.
17542 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
17543 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17544 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17545 * config/riscv/riscv.opt (malign-data): New.
17546 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
17547
17548 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
17549
17550 * cgraph.c (dump_graphviz): New function.
17551 * cgraph.h (dump_graphviz): New function.
17552 * symtab.c (dump_graphviz): New function.
17553
17554 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
17555
17556 * config/aarch64/aarch64-simd.md
17557 (*aarch64_simd_sra<mode>): New.
17558 * config/aarch64/iterators.md
17559 (SHIFTRT): New iterator.
17560 (sra_op): New attribute.
17561
17562 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17563
17564 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
17565 callee-saved regs R4->R10 in an interrupt function that calls another
17566 function.
17567
17568 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17569
17570 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
17571 (_mm_blendv_epi8): New.
17572
17573 2019-07-22 Richard Biener <rguenther@suse.de>
17574
17575 PR tree-optimization/91221
17576 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
17577 restrict partial-def handling of empty constructors and
17578 memset to refs with known offset.
17579
17580 2019-07-22 Jan Beulich <jbeulich@suse.com>
17581
17582 * config/i386/sse.md (ternlogsuffix): New.
17583 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
17584 AVX512F is in use.
17585 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
17586
17587 2019-07-22 Martin Liska <mliska@suse.cz>
17588
17589 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
17590 comment.
17591 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
17592
17593 2019-07-22 Martin Liska <mliska@suse.cz>
17594
17595 * lto-section-in.c (lto_get_section_data):
17596 Use new function get_compression.
17597 * lto-streamer-out.c (produce_lto_section): Use
17598 set_compression to encode compression algorithm.
17599 * lto-streamer.h (struct lto_section): Do not
17600 use bitfields in the format.
17601
17602 2019-07-22 Martin Liska <mliska@suse.cz>
17603
17604 PR driver/91172
17605 * opts-common.c (decode_cmdline_option): Decode
17606 argument of -Werror and check it for a wrong language.
17607 * opts-global.c (complain_wrong_lang): Remove such case.
17608
17609 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
17610
17611 * config/arc/arc.c (prepare_move_operands): Always use an
17612 intermediate register when storing a TLS symbols.
17613
17614 2019-07-22 Stafford Horne <shorne@gmail.com>
17615
17616 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
17617 force_reg.
17618
17619 2019-07-22 Stafford Horne <shorne@gmail.com>
17620
17621 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
17622 and munordered-float validations.
17623 * config/or1k/constraints.md (d): New register constraint.
17624 * config/or1k/predicates.md (fp_comparison_operator): New.
17625 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
17626 operands.
17627 (or1k_expand_compare): Normalize unordered comparisons.
17628 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
17629 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
17630 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
17631 * config/or1k/or1k.md (type): Add fpu.
17632 (fpu): New instruction reservation.
17633 (F, f, fr, fi, FI, FOP, fop): New.
17634 (<fop><F:mode>3): New ALU instruction definition.
17635 (float<fi><F:mode>2): New conversion instruction definition.
17636 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
17637 (fpcmpcc): New code iterator.
17638 (*sf_fp_insn): New instruction definition.
17639 (cstore<F:mode>4): New expand definition.
17640 (cbranch<F:mode>4): New expand definition.
17641 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
17642 munordered-float): New options.
17643 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
17644 munordered-float.
17645
17646 2019-07-22 Stafford Horne <shorne@gmail.com>
17647
17648 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
17649 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
17650 documenation to be more clear.
17651 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
17652 more clear.
17653 * config/or1k/or1k.opt (mrori): New option.
17654 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
17655 msfimm, mshftimm): Rewrite documentation to be more clear.
17656 * config/or1k/or1k.md (insn_support): Add ror and rori.
17657 (enabled): Add conditions for ror and rori.
17658 (rotrsi3): Replace condition for shftimm with ror and rori.
17659
17660 2019-07-22 Stafford Horne <shorne@gmail.com>
17661
17662 PR target/90363
17663 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
17664 (extend<mode>si2): Update predicate.
17665 * config/or1k/predicates.md (volatile_mem_operand): New.
17666 (reg_or_mem_operand): New.
17667
17668 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
17669
17670 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
17671 * config/rs6000/rs6000-call.c: ... to here.
17672
17673 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17674
17675 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
17676 memory.
17677
17678 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17679
17680 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
17681
17682 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17683
17684 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
17685
17686 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17687
17688 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
17689 (any_memory_operand): New predicate.
17690 (reg_or_mem_operand): Use it.
17691
17692 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17693
17694 PR target/91204
17695 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
17696
17697 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
17698
17699 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
17700 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
17701
17702 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17703
17704 * tree.def (OMP_LOOP): New tree code.
17705 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
17706 (enum omp_clause_bind_kind): New enum.
17707 (struct tree_omp_clause): Add subcode.bind_kind.
17708 * tree.h (OMP_LOOP_CHECK): Rename to ...
17709 (OMP_LOOPING_CHECK): ... this.
17710 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
17711 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
17712 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
17713 (OMP_CLAUSE_BIND_KIND): Define.
17714 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17715 bind clause entries.
17716 (walk_tree_1): Handle OMP_CLAUSE_BIND.
17717 * tree-pretty-print.c (dump_omp_clause): Likewise.
17718 (dump_generic_node): Handle OMP_LOOP.
17719 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
17720 (in_omp_construct): New variable.
17721 (is_gimple_stmt): Handle OMP_LOOP.
17722 (gimplify_scan_omp_clauses): For lastprivate don't set
17723 check_non_private if code == OMP_LOOP. For reduction clause
17724 on OMP_LOOP combined with parallel or teams propagate as shared
17725 on the combined construct. Handle OMP_CLAUSE_BIND.
17726 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
17727 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
17728 for constructs from a loop construct to gimplify_scan_omp_clauses.
17729 Don't predetermine iterator linear on OMP_SIMD from loop construct.
17730 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
17731 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
17732 to match the implicit ORT_TARGET construct around whole body.
17733 Temporarily clear in_omp_construct when processing body.
17734 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
17735 etc. temporarily set in_omp_construct when processing body.
17736 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
17737 * omp-low.c (struct omp_context): Add loop_p.
17738 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
17739 in that the original var might be private.
17740 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
17741 (check_omp_nesting_restrictions): Adjust nesting restrictions for
17742 addition of loop construct.
17743 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
17744
17745 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
17746 lastprivate non-addressable iterator of a collapse(1) simd.
17747
17748 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
17749
17750 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
17751 as in rs6000.c.
17752
17753 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
17754
17755 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
17756 refer to default conditions. Warn for the 'y' spec which is ignored
17757 by current linkers.
17758
17759 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
17760
17761 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
17762 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17763 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17764 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17765 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17766 init_cumulative_args, rs6000_promote_function_mode,
17767 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17768 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17769 rs6000_function_arg_boundary, rs6000_parm_offset,
17770 rs6000_parm_start, rs6000_arg_size,
17771 rs6000_darwin64_record_arg_advance_flush,
17772 rs6000_darwin64_record_arg_advance_recurse,
17773 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17774 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17775 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17776 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17777 rs6000_finish_function_arg, rs6000_function_arg,
17778 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17779 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17780 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17781 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17782 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17783 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17784 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17785 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17786 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17787 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17788 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17789 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17790 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17791 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17792 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17793 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17794 get_element_number, altivec_expand_vec_set_builtin,
17795 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17796 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17797 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17798 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17799 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17800 rs6000_expand_builtin, rs6000_vector_type,
17801 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17802 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17803 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
17804 to rs6000-call.c.
17805 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
17806 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17807 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17808 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17809 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17810 init_cumulative_args, rs6000_promote_function_mode,
17811 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17812 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17813 rs6000_function_arg_boundary, rs6000_parm_offset,
17814 rs6000_parm_start, rs6000_arg_size,
17815 rs6000_darwin64_record_arg_advance_flush,
17816 rs6000_darwin64_record_arg_advance_recurse,
17817 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17818 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17819 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17820 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17821 rs6000_finish_function_arg, rs6000_function_arg,
17822 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17823 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17824 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17825 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17826 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17827 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17828 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17829 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17830 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17831 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17832 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17833 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17834 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17835 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17836 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17837 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17838 get_element_number, altivec_expand_vec_set_builtin,
17839 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17840 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17841 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17842 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17843 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17844 rs6000_expand_builtin, rs6000_vector_type,
17845 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17846 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17847 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
17848 to here from rs6000.c.
17849 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
17850 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
17851 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
17852 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
17853 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
17854 rs6000_return_in_memory, rs6000_return_in_msb,
17855 rs6000_pass_by_reference, setup_incoming_varargs,
17856 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
17857 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
17858 rs6000_function_arg_padding, rs6000_function_arg,
17859 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
17860 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
17861 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
17862 rs6000_passes_long_double, rs6000_passes_vector,
17863 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
17864 altivec_builtin_mask_for_load) Add declarations.
17865 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
17866 * config/config.gcc: Add new source file rs6000-call.c to garbage
17867 collector and extra_objs.
17868
17869 2019-07-19 Jeff Law <law@redhat.com>
17870
17871 PR tree-optimization/86061
17872 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
17873 strncpy. Drop some trivial dead code.
17874 (maybe_trim_memstar_call): Handle strncpy.
17875
17876 2019-07-19 Richard Biener <rguenther@suse.de>
17877
17878 PR tree-optimization/91211
17879 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17880 memset encoding size.
17881
17882 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
17883
17884 PR target/91204
17885 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
17886
17887 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
17888
17889 PR ipa/91194
17890 * ipa-inline.c (recursive_inlining): Fix limits check.
17891
17892 2019-07-19 Richard Biener <rguenther@suse.de>
17893
17894 PR tree-optimization/91200
17895 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
17896 no PHI nodes in middle-bb.
17897
17898 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
17899
17900 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
17901 to +sve-bitperm.
17902 * config/aarch64/aarch64-option-extensions.def: Likewise.
17903
17904 2019-07-19 Jakub Jelinek <jakub@redhat.com>
17905
17906 PR middle-end/91190
17907 * function.c (insert_temp_slot_address): Store into the hash table
17908 a copy of address to avoid RTL sharing issues.
17909
17910 2019-07-19 Richard Biener <rguenther@suse.de>
17911
17912 PR tree-optimization/91207
17913 Revert
17914 2019-07-17 Richard Biener <rguenther@suse.de>
17915
17916 PR tree-optimization/91178
17917 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17918 loads with a gap larger than the vector size always use
17919 VMAT_STRIDED_SLP.
17920 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17921 avoid loading vectors that are only contained in the gap
17922 and thus are not needed.
17923
17924 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17925
17926 * config/i386/i386.md (*addqi_2_slp): Remove.
17927 (*<code>qi_2_slp): Ditto.
17928
17929 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
17930
17931 * config/rs6000/predicates.md (prefixed_mem_operand): Call
17932 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
17933 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
17934 Rename function from rs6000_prefixed_address.
17935 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17936 TARGET_HAS_TOC.
17937 (TARGET_TOC): Likewise.
17938 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17939 rs6000.h.
17940 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17941 TARGET_HAS_TOC.
17942 (TARGET_TOC): Likewise.
17943 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17944 rs6000.h.
17945 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17946 TARGET_HAS_TOC.
17947 (TARGET_TOC): Likewise.
17948 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17949 check to require -mcmodel=medium for pc-relative addressing.
17950 (create_TOC_reference): Add assertion for TARGET_TOC.
17951 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
17952 TARGET_NO_TOC.
17953 (rs6000_emit_move): Likewise.
17954 (TOC_alias_set): Rename TOC alias set static variable from 'set'
17955 to 'TOC_alias_set'.
17956 (get_TOC_alias_set): Likewise.
17957 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
17958 TARGET_NO_TOC.
17959 (rs6000_can_eliminate): Likewise.
17960 (rs6000_prefixed_address_mode_p): Rename function from
17961 rs6000_prefixed_address.
17962 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
17963 TARGET_HAS_TOC and not pc-relative.
17964 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
17965 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17966 TARGET_HAS_TOC.
17967 (TARGET_TOC): Likewise.
17968 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17969 rs6000.h.
17970
17971 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17972
17973 PR target/91188
17974 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
17975 for operand 0. Do not use (match_dup) to match operand 1 with
17976 operand 0. Add check in insn constraint that either input operand
17977 matches operand 0. Use SWI12 mode iterator to also handle
17978 HImode operands.
17979 (*and<mode>_1_slp): Ditto.
17980 (*<code>qi_1_slp): Ditto.
17981 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
17982 Do not use (match_dup) to match operand 1 with operand 0. Add
17983 check in insn constraint that operand 1 matches operand 0.
17984 Use SWI12 mode iterator to also handle HImode operands.
17985 (*ashl<mode>3_1_slp): Ditto.
17986 (*<shift_insn><mode>3_1_slp): Ditto.
17987 (*<rotate_insn><mode>3_1_slp): Ditto.
17988
17989 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
17990
17991 * config/arm/arm-builtins.c
17992 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
17993 (arm_expand_unop_builtin): Likewise.
17994 * config/arm/crypto.md
17995 (crypto_sha1h): Convert from define_insn to define_expand.
17996 (crypto_<crypto_pattern>): Likewise.
17997 (crypto_sha1h_lb): New define_insn.
17998 (crypto_<crypto_pattern>_lb): Likewise.
17999
18000 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18001
18002 PR target/90317
18003 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18004 (vsha1cq_u32): Likewise.
18005 (vsha1pq_u32): Likewise.
18006 (vsha1mq_u32): Likewise.
18007 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18008 vec select.
18009 (crypto_sha1c): Correct vec select.
18010 (crypto_sha1m): Likewise.
18011 (crypto_sha1p): Likewise.
18012
18013 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18014
18015 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18016 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18017 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18018 (subdi_zesidi_zesidi): Likewise.
18019 (negdi2_compare, negdi2_insn): Likewise.
18020 (negdi_extensidi): Likewise.
18021 (negdi_zero_extendsidi): Likewise.
18022 (arm_cmpdi_insn): Likewise.
18023 (subsi3_carryin): Use arm_borrow_operation.
18024 (subsi3_carryin_const): Likewise.
18025 (subsi3_carryin_const0): Likewise.
18026 (subsi3_carryin_compare): Likewise.
18027 (subsi3_carryin_compare_const): Likewise.
18028 (subsi3_carryin_compare_const0): Likewise.
18029 (subsi3_carryin_shift): Likewise.
18030 (rsbsi3_carryin_shift): Likewise.
18031 (negsi2_carryin_compare): Likewise.
18032
18033 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18034
18035 PR tree-optimization/91137
18036 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18037 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18038 Init, use and fini the above new field.
18039 (determine_base_object_1): New function.
18040 (determine_base_object): Reimplement using walk_tree.
18041
18042 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18043
18044 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18045 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18046 CLEANUP_FORCE_FAST_DCE is set.
18047 * ifcvt.c (rest_of_handle_if_conversion): Pass
18048 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18049 if-conversion succeeded.
18050
18051 2019-07-18 Richard Biener <rguenther@suse.de>
18052
18053 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18054 branches to make code less indented.
18055
18056 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18057
18058 PR middle-end/81824
18059 * attribs.c (decls_mismatched_attributes): Simplify the logic
18060 that avoids duplicates and false positives.
18061
18062 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18063
18064 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18065 data into data section when generating PIC code.
18066 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18067 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18068 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18069 return 2 for SOM and 0 for other targets.
18070
18071 2019-07-17 Jeff Law <law@redhat.com>
18072
18073 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18074 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18075 avoid unexpected switch statement fallthru.
18076
18077 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18078
18079 * config/i386/i386.md (*add<dwi>3_doubleword):
18080 Remove redundant constraints.
18081 (*add<mode>_1): Ditto.
18082 (*addhi_1): Ditto.
18083 (*addqi_1): Ditto.
18084 (*addqi_1_slp): Ditto.
18085 (*add<mode>_2): Ditto.
18086 (*addv<mode>4): Ditto.
18087 (*sub<dwi>3_doubleword): Ditto.
18088 (*sub<mode>_1): Ditto.
18089 (*subqi_1_slp): Ditto.
18090 (*sub<mode>_2): Ditto.
18091 (*subv<mode>4): Ditto.
18092 (*sub<mode>_3): Ditto.
18093 (@add<mode>3_carry): Ditto.
18094 (@sub<mode>3_carry): Ditto.
18095 (*add<mode>3_cc_overflow_1): Ditto.
18096 (*add<mode>3_zext_cc_overflow_2): Ditto.
18097 (*anddi_1): Ditto.
18098 (*and<mode>_1): Ditto.
18099 (*andqi_1): Ditto.
18100 (*andqi_1_slp): Ditto.
18101 (*anddi_2): Ditto.
18102 (*andqi_2_maybe_si): Ditto.
18103 (*and<mode>_2): Ditto.
18104 (*andqi_2_slp): Ditto.
18105 (*<code><mode>_1): Ditto.
18106 (*<code>qi_1): Ditto.
18107 (*<code>qi_1_slp): Ditto.
18108 (*<code><mode>_2): Ditto.
18109 (*<code>qi_2_slp): Ditto.
18110
18111 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18112
18113 * alias.c (record_component_aliases): Do not simplify pointed-to
18114 types of ODR types.
18115
18116 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18117
18118 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18119 partial reg stall on alternative 2.
18120
18121 2019-07-17 Richard Biener <rguenther@suse.de>
18122
18123 PR tree-optimization/91178
18124 * tree-ssa.c (release_defs_bitset): Iterate from higher to
18125 lower SSA names to avoid quadratic behavior in the common case.
18126 * tree-data-ref.c (split_constant_offset): Add limit argument
18127 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18128 (split_constant_offset_1): Add limit argument and use it to
18129 limit SSA def walking. Optimize the common plus/minus case.
18130
18131 2019-07-17 Richard Biener <rguenther@suse.de>
18132
18133 PR tree-optimization/91178
18134 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18135 loads with a gap larger than the vector size always use
18136 VMAT_STRIDED_SLP.
18137 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18138 avoid loading vectors that are only contained in the gap
18139 and thus are not needed.
18140
18141 2019-07-17 Richard Biener <rguenther@suse.de>
18142
18143 PR tree-optimization/91180
18144 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
18145 computation for memset partial defs.
18146
18147 2019-07-17 Jakub Jelinek <jakub@redhat.com>
18148
18149 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
18150 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
18151 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
18152 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
18153 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
18154 * omp-grid.c (grid_process_grid_body,
18155 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
18156 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
18157 == GF_OMP_FOR_KIND_SIMD.
18158 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
18159 check_omp_nesting_restrictions, scan_omp_1_stmt,
18160 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
18161 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
18162 omp_find_scan): Likewise.
18163 * omp-expand.c (expand_omp_for): Likewise.
18164 * omp-general.c (omp_extract_for_data): Likewise.
18165
18166 PR tree-optimization/91157
18167 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
18168 a vector boolean with scalar mode.
18169 (expand_vector_condition): Handle first operand being a vector boolean
18170 with scalar mode.
18171 (expand_vector_operations_1): For comparisons, don't bail out early
18172 if the return type is vector boolean with scalar mode, but comparison
18173 operand type is not.
18174
18175 2019-07-17 Richard Biener <rguenther@suse.de>
18176
18177 PR tree-optimization/91181
18178 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
18179 IFN_LOADs as calls.
18180
18181 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
18182
18183 * config/i386/i386.md (*testdi_1): Match CCZmode for
18184 constants that might have the SImode sign bit set.
18185 (*testqi_1_maybe_si): Remove "!" constraint modifier.
18186 Use correct constraints for pentium pairing.
18187 (*test<mode>_1): Ditto.
18188
18189 2019-07-16 Jeff Law <law@redhat.com>
18190
18191 PR rtl-optimization/91173
18192 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
18193 SSA_NAME with a constant value, fold its value into the offset
18194 and clear the base before calling gen_addr_rtx.
18195
18196 2019-07-16 Jakub Jelinek <jakub@redhat.com>
18197
18198 PR rtl-optimization/91164
18199 * dse.c (rest_of_handle_dse): If dead edges have been purged,
18200 invalidate dominance info.
18201
18202 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18203
18204 * read-md.h (md_reader::record_potential_iterator_use): Add a
18205 file_location parameter.
18206 * read-rtl.c (attribute_use::loc): New field.
18207 (map_attr_string): Take a file_location parameter. Report cases
18208 in which attributes map to multiple distinct values.
18209 (apply_attribute_uses): Update call accordingly.
18210 (md_reader::handle_overloaded_name): Likewise.
18211 (md_reader::apply_iterator_to_string): Likewise. Skip empty
18212 nonnull strings.
18213 (record_attribute_use): Take a file_location parameter.
18214 Initialize attribute_use::loc.
18215 (md_reader::record_potential_iterator_use): Take a file_location
18216 parameter. Update call to record_attribute_use.
18217 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
18218 (rtx_reader::read_rtx_code): Likewise.
18219 (rtx_reader::read_rtx_operand): Likewise. Record a location
18220 for implicitly-expanded empty strings.
18221
18222 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18223
18224 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
18225 Use file_location instead of separate fields.
18226 (md_reader::set_md_ptr_loc): Take a file_location instead of a
18227 separate filename and line number.
18228 * read-md.c (ptr_loc): As above.
18229 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
18230 (md_reader::fprint_md_ptr_loc): Likewise.
18231 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
18232 instead of a separate filename and line number.
18233 (md_reader::read_string): Update call accordingly.
18234
18235 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18236
18237 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
18238 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
18239 leaving the choice between SFDF and P implicit.
18240 (*mov<mode>_update2): Likewise.
18241 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
18242 rather than leaving the choice betweem IBM128 and GPR implicit.
18243 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
18244 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
18245 QHSI implicit.
18246 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
18247 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
18248 * config/rs6000/vsx.md
18249 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
18250 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
18251 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18252 and VSX_EXTRACT_I implicit.
18253
18254 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18255
18256 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
18257 Explicitly use <MOVEP1:MODE> for the mode attribute.
18258
18259 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
18260
18261 PR bootstrap/91176
18262 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
18263
18264 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
18265
18266 PR target/91050
18267 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
18268 .machine directive.
18269
18270 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
18271
18272 * config/i386/i386.md (@test<mode>_ccno_1):
18273 Rename from test<mode>_ccno_1.
18274 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
18275 (*testqi_1_maybe_si): Remove modrm attribute.
18276 (*test<mode>_1): Ditto.
18277 * config/i386/i386-expand.c (ix86_split_idivmod): Use
18278 gen_test_ccno_1 and gen_extend_insn.
18279
18280 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
18281
18282 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
18283 to 0.
18284
18285 2019-07-15 Richard Biener <rguenther@suse.de>
18286
18287 PR middle-end/91162
18288 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
18289 node make sure to replace all uses with something valid.
18290
18291 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
18292
18293 PR tree-optimization/88497
18294 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
18295 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
18296 function undistribute_bitref_for_vector.
18297 (undistribute_bitref_for_vector): New function.
18298 (cleanup_vinfo_map): Likewise.
18299 (sort_by_mach_mode): Likewise.
18300
18301 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
18302
18303 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
18304 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
18305 and testdi_ccno_1 using SWI48 mode attribute.
18306 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
18307 x86_64_szext_general_operand.
18308 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
18309 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
18310 instead of genera_operand mode attribute.
18311
18312 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
18313
18314 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
18315 fopen and fclose to their respective types.
18316 (DotFn.invoke): Ditto.
18317
18318 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
18319
18320 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
18321 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
18322 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
18323 (array_index_predicate): Remove.
18324 (analyze_function_body): Account cost for variable ofsetted array
18325 indexing.
18326 (estimate_node_size_and_time): Do not compute array index hint.
18327 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
18328 (inline_read_section): Do not read array index hint.
18329 (ipa_fn_summary_write): Do not write array index hint.
18330 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
18331 * ipa-cp.c (hint_time_bonus): Remove.
18332 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
18333 (ipa_fnsummary): Remove array_index.
18334 * ipa-inline.c (want_inline_small_function_p): Do not use
18335 array_index.
18336 (edge_badness): Likewise.
18337 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
18338
18339 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
18340
18341 PR target/91148
18342 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
18343 superfluous "builtin function" phrasing.
18344
18345 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
18346
18347 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
18348 Break out from ...
18349 (aliasing_component_refs_walk): Break out from ...
18350 (aliasing_component_refs_p): ... here.
18351
18352 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
18353
18354 PR target/91148
18355 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
18356 "builtin function" phrasing.
18357
18358 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18359
18360 PR target/90723
18361 * recog.h (temporary_volatile_ok): New class.
18362 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
18363 volatile_ok temporarily to true using temporary_volatile_ok.
18364 * expr.c (emit_block_move_via_cpymem): Likewise.
18365 * optabs.c (maybe_legitimize_operand): Likewise.
18366
18367 2019-07-13 Jakub Jelinek <jakub@redhat.com>
18368
18369 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
18370 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
18371 uses inside of order(concurrent) constructs.
18372 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
18373 OMP_CLAUSE_ORDER is seen.
18374 * omp-low.c (struct omp_context): Add order_concurrent member.
18375 (scan_sharing_clauses): Set ctx->order_concurrent if
18376 OMP_CLAUSE_ORDER is seen.
18377 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
18378 of simd order(concurrent). Diagnose constructs not allowed inside of
18379 for order(concurrent).
18380 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
18381 complaining about static double setjmp (double); or class static
18382 methods or non-global namespace setjmps.
18383 (omp_runtime_api_call): New function.
18384 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
18385 order(concurrent) loops.
18386
18387 2019-07-12 Martin Sebor <msebor@redhat.com>
18388
18389 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
18390 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
18391 * tree-vrp.c (vrp_prop::check_mem_ref): Use
18392 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18393
18394 2019-07-12 Jan Hubicka <jh@suse.cz>
18395
18396 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
18397 (indirect_refs_may_alias_p): ... here.
18398 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
18399 mem refs in the access paths.
18400
18401 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
18402
18403 PR tree-optimization/89430
18404 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
18405 store elimination for local variable without address escape.
18406
18407 2019-07-12 Jeff Law <law@redhat.com>
18408
18409 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
18410 for the ".far" section.
18411
18412 2019-07-12 Richard Biener <rguenther@suse.de>
18413
18414 PR tree-optimization/91145
18415 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
18416 chain check.
18417
18418 2019-07-12 Alexandre Oliva <oliva@adacore.com>
18419
18420 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
18421 rather than this_state as the lowering context for the ELSE
18422 seq in a GIMPLE_EH_ELSE.
18423
18424 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18425
18426 * vector-builder.h (vector_builder::elt): Allow already-supplied
18427 elements to be read back before building is complete.
18428
18429 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18430
18431 PR rtl-optimization/91136
18432 * df-core.c (ACCESSING REFS): Fix typos in comment.
18433 * resource.c (mark_target_live_reg): Add artificial defs that occur at
18434 the beginning of the block to the initial set of live registers.
18435
18436 2019-07-12 Richard Biener <rguenther@suse.de>
18437
18438 * fold-const.h (get_array_ctor_element_at_index): Adjust.
18439 * fold-const.c (get_array_ctor_element_at_index): Add
18440 ctor_idx output parameter informing the caller where in
18441 the constructor the element was (not) found. Add early exit
18442 for when the ctor is sorted.
18443 * gimple-fold.c (fold_array_ctor_reference): Support constant
18444 folding across multiple array elements.
18445
18446 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18447
18448 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
18449 doesn't have location, set the current location to the function's end.
18450
18451 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18452
18453 * config/aarch64/aarch64.md (*compare_condjump<mode>)
18454 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
18455 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
18456 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
18457 * config/aarch64/aarch64-simd.md
18458 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
18459 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
18460 * config/aarch64/aarch64-sve.md
18461 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
18462 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
18463
18464 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18465
18466 * doc/md.texi: Document that @ patterns can have different
18467 numbers of operands.
18468 * genemit.c (handle_overloaded_gen): Handle this case.
18469 * genopinit.c (handle_overloaded_gen): Likewise.
18470 * gensupport.c (replace_operands_with_dups): Iterate over
18471 the new rtx's format rather than the old one's.
18472
18473 2019-07-12 Jakub Jelinek <jakub@redhat.com>
18474
18475 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
18476 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18477 order clause entries.
18478 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
18479 * tree-pretty-print.c (dump_omp_clause): Likewise.
18480 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18481 Likewise.
18482 * omp-low.c (scan_sharing_clauses): Likewise.
18483 * tree-nested.c (convert_nonlocal_omp_clauses,
18484 convert_local_omp_clauses): Likewise.
18485
18486 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
18487
18488 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
18489 fallthrough target of current basic block isn't the placed
18490 right next.
18491
18492 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
18493
18494 PR target/90980
18495 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
18496 (_mm512_storeu_epi64): Likewise.
18497 (_mm512_loadu_epi32): Likewise.
18498 (_mm512_storeu_epi32): Likewise.
18499 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
18500 (_mm_storeu_epi64): Likewise.
18501 (_mm256_storeu_epi32): Likewise.
18502 (_mm_storeu_epi32): Likewise.
18503
18504 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18505
18506 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
18507
18508 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18509
18510 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
18511 Handle Modula-2.
18512
18513 2019-07-11 Jakub Jelinek <jakub@redhat.com>
18514
18515 PR target/91124
18516 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
18517 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18518 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
18519 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
18520 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
18521 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
18522 define_insns.
18523 (ufix_truncv2dfv2si2<mask_name>): Change into ...
18524 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
18525 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
18526 define_insns.
18527 (sse2_cvttpd2dq<mask_name>): Change into ...
18528 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
18529 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
18530 (*sse2_cvtpd2dq<mask_name>): Change into ...
18531 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18532 Add "C" constraint to const0_operand.
18533 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
18534 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
18535 changes.
18536
18537 PR target/91124
18538 * config/i386/i386-builtin-types.def
18539 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
18540 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
18541 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
18542 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
18543 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
18544 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
18545 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
18546 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
18547 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
18548 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
18549 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
18550 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
18551 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
18552 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
18553 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
18554 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
18555 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
18556 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
18557 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
18558 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
18559 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
18560 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
18561 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
18562 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
18563 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
18564 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
18565 __builtin_ia32_vpdpbusd_v4si_maskz,
18566 __builtin_ia32_vpdpbusds_v16si_mask,
18567 __builtin_ia32_vpdpbusds_v16si_maskz,
18568 __builtin_ia32_vpdpbusds_v8si_mask,
18569 __builtin_ia32_vpdpbusds_v8si_maskz,
18570 __builtin_ia32_vpdpbusds_v4si_mask,
18571 __builtin_ia32_vpdpbusds_v4si_maskz,
18572 __builtin_ia32_vpdpwssd_v16si_mask,
18573 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
18574 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
18575 __builtin_ia32_vpdpwssd_v4si_maskz,
18576 __builtin_ia32_vpdpwssds_v16si_mask,
18577 __builtin_ia32_vpdpwssds_v16si_maskz,
18578 __builtin_ia32_vpdpwssds_v8si_mask,
18579 __builtin_ia32_vpdpwssds_v8si_maskz,
18580 __builtin_ia32_vpdpwssds_v4si_mask,
18581 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
18582 suffixed types rather than *_INT.
18583 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
18584 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
18585 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
18586 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
18587 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
18588 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
18589
18590 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
18591
18592 * tree-vrp.c (intersect_ranges): If we know the intersection is
18593 empty, there is no need to conservatively add anything else to
18594 the set.
18595
18596 2019-07-11 Richard Biener <rguenther@suse.de>
18597
18598 PR middle-end/91131
18599 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
18600 when the object is volatile and we have not cleared it even though
18601 there are no nonzero elements.
18602
18603 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
18604
18605 * config/rs6000/predicates.md (cint34_operand): Update
18606 SIGNED_34BIT_OFFSET_P call.
18607 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
18608 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
18609 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
18610 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
18611 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
18612 argument.
18613 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
18614 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
18615 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
18616 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
18617 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
18618
18619 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
18620
18621 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
18622 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
18623 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
18624 (DEF_MIN_OSX_VERSION): New.
18625
18626 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18627
18628 * fold-const.c (fold_relational_const): Fix folding of
18629 vector-to-scalar NE_EXPRs.
18630 (test_vector_folding): Add more tests.
18631
18632 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18633
18634 PR target/91060
18635 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
18636 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
18637 (vec_setv2di_internal): Reexpress as...
18638 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
18639 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
18640 rather than gen_neon_vset_lane<mode>.
18641
18642 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
18643
18644 PR target/91102
18645 * lra-constraints.c (process_alt_operands): Don't match user
18646 defined regs only if they are early clobbers.
18647
18648 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
18649
18650 * wide-int.h (wi::lshift): Reject negative values for the fast path.
18651
18652 2019-07-10 Richard Biener <rguenther@suse.de>
18653
18654 PR tree-optimization/91126
18655 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
18656 native encoding offset for BYTES_BIG_ENDIAN.
18657 (vn_reference_lookup_3): Likewise.
18658
18659 2019-07-10 Richard Biener <rguenther@suse.de>
18660
18661 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
18662 LHS whenever possible.
18663
18664 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
18665
18666 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
18667 from ...; work also on duplicated types.
18668 (nonoverlapping_component_refs_since_match): ... here
18669 (ncr_type_uid): Break out from ...
18670 (ncr_compar): ... here; look for TYPE_UID of canonical type if
18671 available.
18672 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
18673 the types and nonoverlapping_component_refs_p_1 to disambiguate.
18674
18675 2019-07-09 Martin Sebor <msebor@redhat.com>
18676
18677 PR tree-optimization/90989
18678 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
18679 optimization to just single character stores.
18680
18681 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
18682
18683 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
18684 Swap operands only once.
18685
18686 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18687
18688 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
18689 for both call instructions.
18690
18691 2019-07-09 John Darrington <john@darrington.wattle.id.au>
18692
18693 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
18694 rather than GET_MODE_BITSIZE to better handle partial integer modes.
18695
18696 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
18697
18698 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
18699 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
18700 function from rs6000-logue.c back to rs6000.c.
18701 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
18702
18703 2019-07-09 Martin Sebor <msebor@redhat.com>
18704
18705 PR c++/61339
18706 * auto-profile.c: Change class-key of PODs to struct and others
18707 to class.
18708 * basic-block.h: Same.
18709 * bitmap.c (bitmap_alloc): Same.
18710 * bitmap.h: Same.
18711 * builtins.c (expand_builtin_prefetch): Same.
18712 (expand_builtin_interclass_mathfn): Same.
18713 (expand_builtin_strlen): Same.
18714 (expand_builtin_mempcpy_args): Same.
18715 (expand_cmpstr): Same.
18716 (expand_builtin___clear_cache): Same.
18717 (expand_ifn_atomic_bit_test_and): Same.
18718 (expand_builtin_thread_pointer): Same.
18719 (expand_builtin_set_thread_pointer): Same.
18720 * caller-save.c (setup_save_areas): Same.
18721 (replace_reg_with_saved_mem): Same.
18722 (insert_restore): Same.
18723 (insert_save): Same.
18724 (add_used_regs): Same.
18725 * cfg.c (get_bb_copy): Same.
18726 (set_loop_copy): Same.
18727 * cfg.h: Same.
18728 * cfganal.h: Same.
18729 * cfgexpand.c (alloc_stack_frame_space): Same.
18730 (add_stack_var): Same.
18731 (add_stack_var_conflict): Same.
18732 (add_scope_conflicts_1): Same.
18733 (update_alias_info_with_stack_vars): Same.
18734 (expand_used_vars): Same.
18735 * cfghooks.c (redirect_edge_and_branch_force): Same.
18736 (delete_basic_block): Same.
18737 (split_edge): Same.
18738 (make_forwarder_block): Same.
18739 (force_nonfallthru): Same.
18740 (duplicate_block): Same.
18741 (lv_flush_pending_stmts): Same.
18742 * cfghooks.h: Same.
18743 * cfgloop.c (flow_loops_cfg_dump): Same.
18744 (flow_loop_nested_p): Same.
18745 (superloop_at_depth): Same.
18746 (get_loop_latch_edges): Same.
18747 (flow_loop_dump): Same.
18748 (flow_loops_dump): Same.
18749 (flow_loops_free): Same.
18750 (flow_loop_nodes_find): Same.
18751 (establish_preds): Same.
18752 (flow_loop_tree_node_add): Same.
18753 (flow_loop_tree_node_remove): Same.
18754 (flow_loops_find): Same.
18755 (find_subloop_latch_edge_by_profile): Same.
18756 (find_subloop_latch_edge_by_ivs): Same.
18757 (mfb_redirect_edges_in_set): Same.
18758 (form_subloop): Same.
18759 (merge_latch_edges): Same.
18760 (disambiguate_multiple_latches): Same.
18761 (disambiguate_loops_with_multiple_latches): Same.
18762 (flow_bb_inside_loop_p): Same.
18763 (glb_enum_p): Same.
18764 (get_loop_body_with_size): Same.
18765 (get_loop_body): Same.
18766 (fill_sons_in_loop): Same.
18767 (get_loop_body_in_dom_order): Same.
18768 (get_loop_body_in_custom_order): Same.
18769 (release_recorded_exits): Same.
18770 (get_loop_exit_edges): Same.
18771 (num_loop_branches): Same.
18772 (remove_bb_from_loops): Same.
18773 (find_common_loop): Same.
18774 (delete_loop): Same.
18775 (cancel_loop): Same.
18776 (verify_loop_structure): Same.
18777 (loop_preheader_edge): Same.
18778 (loop_exit_edge_p): Same.
18779 (single_exit): Same.
18780 (loop_exits_to_bb_p): Same.
18781 (loop_exits_from_bb_p): Same.
18782 (get_loop_location): Same.
18783 (record_niter_bound): Same.
18784 (get_estimated_loop_iterations_int): Same.
18785 (max_stmt_executions_int): Same.
18786 (likely_max_stmt_executions_int): Same.
18787 (get_estimated_loop_iterations): Same.
18788 (get_max_loop_iterations): Same.
18789 (get_max_loop_iterations_int): Same.
18790 (get_likely_max_loop_iterations): Same.
18791 * cfgloop.h (simple_loop_desc): Same.
18792 (get_loop): Same.
18793 (loop_depth): Same.
18794 (loop_outer): Same.
18795 (loop_iterator::next): Same.
18796 (loop_outermost): Same.
18797 * cfgloopanal.c (mark_irreducible_loops): Same.
18798 (num_loop_insns): Same.
18799 (average_num_loop_insns): Same.
18800 (expected_loop_iterations_unbounded): Same.
18801 (expected_loop_iterations): Same.
18802 (mark_loop_exit_edges): Same.
18803 (single_likely_exit): Same.
18804 * cfgloopmanip.c (fix_bb_placement): Same.
18805 (fix_bb_placements): Same.
18806 (remove_path): Same.
18807 (place_new_loop): Same.
18808 (add_loop): Same.
18809 (scale_loop_frequencies): Same.
18810 (scale_loop_profile): Same.
18811 (create_empty_if_region_on_edge): Same.
18812 (create_empty_loop_on_edge): Same.
18813 (loopify): Same.
18814 (unloop): Same.
18815 (fix_loop_placements): Same.
18816 (copy_loop_info): Same.
18817 (duplicate_loop): Same.
18818 (duplicate_subloops): Same.
18819 (loop_redirect_edge): Same.
18820 (can_duplicate_loop_p): Same.
18821 (duplicate_loop_to_header_edge): Same.
18822 (mfb_keep_just): Same.
18823 (has_preds_from_loop): Same.
18824 (create_preheader): Same.
18825 (create_preheaders): Same.
18826 (lv_adjust_loop_entry_edge): Same.
18827 (loop_version): Same.
18828 * cfgloopmanip.h: Same.
18829 * cgraph.h: Same.
18830 * cgraphbuild.c: Same.
18831 * combine.c (make_extraction): Same.
18832 * config/i386/i386-features.c: Same.
18833 * config/i386/i386-features.h: Same.
18834 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
18835 (ix86_emit_outlined_ms2sysv_restore): Same.
18836 (ix86_noce_conversion_profitable_p): Same.
18837 (ix86_init_cost): Same.
18838 (ix86_simd_clone_usable): Same.
18839 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
18840 Wstruct-not-pod.
18841 * coretypes.h: Same.
18842 * data-streamer-in.c (string_for_index): Change class-key of PODs
18843 to struct and others to class.
18844 (streamer_read_indexed_string): Same.
18845 (streamer_read_string): Same.
18846 (bp_unpack_indexed_string): Same.
18847 (bp_unpack_string): Same.
18848 (streamer_read_uhwi): Same.
18849 (streamer_read_hwi): Same.
18850 (streamer_read_gcov_count): Same.
18851 (streamer_read_wide_int): Same.
18852 * data-streamer.h (streamer_write_bitpack): Same.
18853 (bp_unpack_value): Same.
18854 (streamer_write_char_stream): Same.
18855 (streamer_write_hwi_in_range): Same.
18856 (streamer_write_record_start): Same.
18857 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
18858 (add_cross_iteration_register_deps): Same.
18859 (build_intra_loop_deps): Same.
18860 * df-core.c (df_analyze): Same.
18861 (loop_post_order_compute): Same.
18862 (loop_inverted_post_order_compute): Same.
18863 * df-problems.c (df_rd_alloc): Same.
18864 (df_rd_simulate_one_insn): Same.
18865 (df_rd_local_compute): Same.
18866 (df_rd_init_solution): Same.
18867 (df_rd_confluence_n): Same.
18868 (df_rd_transfer_function): Same.
18869 (df_rd_free): Same.
18870 (df_rd_dump_defs_set): Same.
18871 (df_rd_top_dump): Same.
18872 (df_lr_alloc): Same.
18873 (df_lr_reset): Same.
18874 (df_lr_local_compute): Same.
18875 (df_lr_init): Same.
18876 (df_lr_confluence_n): Same.
18877 (df_lr_free): Same.
18878 (df_lr_top_dump): Same.
18879 (df_lr_verify_transfer_functions): Same.
18880 (df_live_alloc): Same.
18881 (df_live_reset): Same.
18882 (df_live_init): Same.
18883 (df_live_confluence_n): Same.
18884 (df_live_finalize): Same.
18885 (df_live_free): Same.
18886 (df_live_top_dump): Same.
18887 (df_live_verify_transfer_functions): Same.
18888 (df_mir_alloc): Same.
18889 (df_mir_reset): Same.
18890 (df_mir_init): Same.
18891 (df_mir_confluence_n): Same.
18892 (df_mir_free): Same.
18893 (df_mir_top_dump): Same.
18894 (df_word_lr_alloc): Same.
18895 (df_word_lr_reset): Same.
18896 (df_word_lr_init): Same.
18897 (df_word_lr_confluence_n): Same.
18898 (df_word_lr_free): Same.
18899 (df_word_lr_top_dump): Same.
18900 (df_md_alloc): Same.
18901 (df_md_simulate_one_insn): Same.
18902 (df_md_reset): Same.
18903 (df_md_init): Same.
18904 (df_md_free): Same.
18905 (df_md_top_dump): Same.
18906 * df-scan.c (df_insn_delete): Same.
18907 (df_insn_rescan): Same.
18908 (df_notes_rescan): Same.
18909 (df_sort_and_compress_mws): Same.
18910 (df_install_mws): Same.
18911 (df_refs_add_to_chains): Same.
18912 (df_ref_create_structure): Same.
18913 (df_ref_record): Same.
18914 (df_def_record_1): Same.
18915 (df_find_hard_reg_defs): Same.
18916 (df_uses_record): Same.
18917 (df_get_conditional_uses): Same.
18918 (df_get_call_refs): Same.
18919 (df_recompute_luids): Same.
18920 (df_get_entry_block_def_set): Same.
18921 (df_entry_block_defs_collect): Same.
18922 (df_get_exit_block_use_set): Same.
18923 (df_exit_block_uses_collect): Same.
18924 (df_mws_verify): Same.
18925 (df_bb_verify): Same.
18926 * df.h (df_scan_get_bb_info): Same.
18927 * doc/tm.texi: Same.
18928 * dse.c (record_store): Same.
18929 * dumpfile.h: Same.
18930 * emit-rtl.c (const_fixed_hasher::equal): Same.
18931 (set_mem_attributes_minus_bitpos): Same.
18932 (change_address): Same.
18933 (adjust_address_1): Same.
18934 (offset_address): Same.
18935 * emit-rtl.h: Same.
18936 * except.c (dw2_build_landing_pads): Same.
18937 (sjlj_emit_dispatch_table): Same.
18938 * explow.c (allocate_dynamic_stack_space): Same.
18939 (emit_stack_probe): Same.
18940 (probe_stack_range): Same.
18941 * expmed.c (store_bit_field_using_insv): Same.
18942 (store_bit_field_1): Same.
18943 (store_integral_bit_field): Same.
18944 (extract_bit_field_using_extv): Same.
18945 (extract_bit_field_1): Same.
18946 (emit_cstore): Same.
18947 * expr.c (emit_block_move_via_cpymem): Same.
18948 (expand_cmpstrn_or_cmpmem): Same.
18949 (set_storage_via_setmem): Same.
18950 (emit_single_push_insn_1): Same.
18951 (expand_assignment): Same.
18952 (store_constructor): Same.
18953 (expand_expr_real_2): Same.
18954 (expand_expr_real_1): Same.
18955 (try_casesi): Same.
18956 * flags.h: Same.
18957 * function.c (try_fit_stack_local): Same.
18958 (assign_stack_local_1): Same.
18959 (assign_stack_local): Same.
18960 (cut_slot_from_list): Same.
18961 (insert_slot_to_list): Same.
18962 (max_slot_level): Same.
18963 (move_slot_to_level): Same.
18964 (temp_address_hasher::equal): Same.
18965 (remove_unused_temp_slot_addresses): Same.
18966 (assign_temp): Same.
18967 (combine_temp_slots): Same.
18968 (update_temp_slot_address): Same.
18969 (preserve_temp_slots): Same.
18970 * function.h: Same.
18971 * fwprop.c: Same.
18972 * gcc-rich-location.h: Same.
18973 * gcov.c: Same.
18974 * genattrtab.c (check_attr_test): Same.
18975 (check_attr_value): Same.
18976 (convert_set_attr_alternative): Same.
18977 (convert_set_attr): Same.
18978 (check_defs): Same.
18979 (copy_boolean): Same.
18980 (get_attr_value): Same.
18981 (expand_delays): Same.
18982 (make_length_attrs): Same.
18983 (min_fn): Same.
18984 (make_alternative_compare): Same.
18985 (simplify_test_exp): Same.
18986 (tests_attr_p): Same.
18987 (get_attr_order): Same.
18988 (clear_struct_flag): Same.
18989 (gen_attr): Same.
18990 (compares_alternatives_p): Same.
18991 (gen_insn): Same.
18992 (gen_delay): Same.
18993 (find_attrs_to_cache): Same.
18994 (write_test_expr): Same.
18995 (walk_attr_value): Same.
18996 (write_attr_get): Same.
18997 (eliminate_known_true): Same.
18998 (write_insn_cases): Same.
18999 (write_attr_case): Same.
19000 (write_attr_valueq): Same.
19001 (write_attr_value): Same.
19002 (write_dummy_eligible_delay): Same.
19003 (next_comma_elt): Same.
19004 (find_attr): Same.
19005 (make_internal_attr): Same.
19006 (copy_rtx_unchanging): Same.
19007 (gen_insn_reserv): Same.
19008 (check_tune_attr): Same.
19009 (make_automaton_attrs): Same.
19010 (handle_arg): Same.
19011 * genextract.c (gen_insn): Same.
19012 (VEC_char_to_string): Same.
19013 * genmatch.c (print_operand): Same.
19014 (lower): Same.
19015 (parser::parse_operation): Same.
19016 (parser::parse_capture): Same.
19017 (parser::parse_c_expr): Same.
19018 (parser::parse_simplify): Same.
19019 (main): Same.
19020 * genoutput.c (output_operand_data): Same.
19021 (output_get_insn_name): Same.
19022 (compare_operands): Same.
19023 (place_operands): Same.
19024 (process_template): Same.
19025 (validate_insn_alternatives): Same.
19026 (validate_insn_operands): Same.
19027 (gen_expand): Same.
19028 (note_constraint): Same.
19029 * genpreds.c (write_one_predicate_function): Same.
19030 (add_constraint): Same.
19031 (process_define_register_constraint): Same.
19032 (write_lookup_constraint_1): Same.
19033 (write_lookup_constraint_array): Same.
19034 (write_insn_constraint_len): Same.
19035 (write_reg_class_for_constraint_1): Same.
19036 (write_constraint_satisfied_p_array): Same.
19037 * genrecog.c (optimize_subroutine_group): Same.
19038 * gensupport.c (process_define_predicate): Same.
19039 (queue_pattern): Same.
19040 (remove_from_queue): Same.
19041 (process_rtx): Same.
19042 (is_predicable): Same.
19043 (change_subst_attribute): Same.
19044 (subst_pattern_match): Same.
19045 (alter_constraints): Same.
19046 (alter_attrs_for_insn): Same.
19047 (shift_output_template): Same.
19048 (alter_output_for_subst_insn): Same.
19049 (process_one_cond_exec): Same.
19050 (subst_dup): Same.
19051 (process_define_cond_exec): Same.
19052 (mnemonic_htab_callback): Same.
19053 (gen_mnemonic_attr): Same.
19054 (read_md_rtx): Same.
19055 * ggc-page.c: Same.
19056 * gimple-loop-interchange.cc (dump_reduction): Same.
19057 (dump_induction): Same.
19058 (loop_cand::~loop_cand): Same.
19059 (free_data_refs_with_aux): Same.
19060 (tree_loop_interchange::interchange_loops): Same.
19061 (tree_loop_interchange::map_inductions_to_loop): Same.
19062 (tree_loop_interchange::move_code_to_inner_loop): Same.
19063 (compute_access_stride): Same.
19064 (compute_access_strides): Same.
19065 (proper_loop_form_for_interchange): Same.
19066 (tree_loop_interchange_compute_ddrs): Same.
19067 (prune_datarefs_not_in_loop): Same.
19068 (prepare_data_references): Same.
19069 (pass_linterchange::execute): Same.
19070 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19071 (unroll_jam_possible_p): Same.
19072 (fuse_loops): Same.
19073 (adjust_unroll_factor): Same.
19074 (tree_loop_unroll_and_jam): Same.
19075 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19076 (loop_versioning::expensive_stmt_p): Same.
19077 (loop_versioning::version_for_unity): Same.
19078 (loop_versioning::dump_inner_likelihood): Same.
19079 (loop_versioning::find_per_loop_multiplication): Same.
19080 (loop_versioning::analyze_term_using_scevs): Same.
19081 (loop_versioning::record_address_fragment): Same.
19082 (loop_versioning::analyze_expr): Same.
19083 (loop_versioning::analyze_blocks): Same.
19084 (loop_versioning::prune_conditions): Same.
19085 (loop_versioning::merge_loop_info): Same.
19086 (loop_versioning::add_loop_to_queue): Same.
19087 (loop_versioning::decide_whether_loop_is_versionable): Same.
19088 (loop_versioning::make_versioning_decisions): Same.
19089 (loop_versioning::implement_versioning_decisions): Same.
19090 * gimple-ssa-evrp-analyze.c
19091 (evrp_range_analyzer::record_ranges_from_phis): Same.
19092 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19093 (count_multiple_uses): Same.
19094 (split_group): Same.
19095 (imm_store_chain_info::output_merged_store): Same.
19096 (pass_store_merging::process_store): Same.
19097 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19098 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19099 (is_max): Same.
19100 (alloca_call_type): Same.
19101 (pass_walloca::execute): Same.
19102 * gimple-streamer-in.c (input_phi): Same.
19103 (input_gimple_stmt): Same.
19104 * gimple-streamer.h: Same.
19105 * godump.c (go_force_record_alignment): Same.
19106 (go_format_type): Same.
19107 (go_output_type): Same.
19108 (go_output_fndecl): Same.
19109 (go_output_typedef): Same.
19110 (keyword_hash_init): Same.
19111 (find_dummy_types): Same.
19112 * graph.c (draw_cfg_nodes_no_loops): Same.
19113 (draw_cfg_nodes_for_loop): Same.
19114 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19115 * hsa-brig.c: Same.
19116 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19117 * hsa-dump.c (dump_hsa_cfun): Same.
19118 * hsa-gen.c (gen_function_def_parameters): Same.
19119 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19120 * input.c (dump_line_table_statistics): Same.
19121 (test_lexer): Same.
19122 * input.h: Same.
19123 * internal-fn.c (get_multi_vector_move): Same.
19124 (expand_load_lanes_optab_fn): Same.
19125 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19126 (expand_GOMP_SIMT_EXIT): Same.
19127 (expand_GOMP_SIMT_LAST_LANE): Same.
19128 (expand_GOMP_SIMT_ORDERED_PRED): Same.
19129 (expand_GOMP_SIMT_VOTE_ANY): Same.
19130 (expand_GOMP_SIMT_XCHG_BFLY): Same.
19131 (expand_GOMP_SIMT_XCHG_IDX): Same.
19132 (expand_addsub_overflow): Same.
19133 (expand_neg_overflow): Same.
19134 (expand_mul_overflow): Same.
19135 (expand_call_mem_ref): Same.
19136 (expand_mask_load_optab_fn): Same.
19137 (expand_scatter_store_optab_fn): Same.
19138 (expand_gather_load_optab_fn): Same.
19139 * ipa-cp.c (ipa_get_parm_lattices): Same.
19140 (print_all_lattices): Same.
19141 (ignore_edge_p): Same.
19142 (build_toporder_info): Same.
19143 (free_toporder_info): Same.
19144 (push_node_to_stack): Same.
19145 (ipcp_lattice<valtype>::set_contains_variable): Same.
19146 (set_agg_lats_to_bottom): Same.
19147 (ipcp_bits_lattice::meet_with): Same.
19148 (set_single_call_flag): Same.
19149 (initialize_node_lattices): Same.
19150 (ipa_get_jf_ancestor_result): Same.
19151 (ipcp_verify_propagated_values): Same.
19152 (propagate_scalar_across_jump_function): Same.
19153 (propagate_context_across_jump_function): Same.
19154 (propagate_bits_across_jump_function): Same.
19155 (ipa_vr_operation_and_type_effects): Same.
19156 (propagate_vr_across_jump_function): Same.
19157 (set_check_aggs_by_ref): Same.
19158 (set_chain_of_aglats_contains_variable): Same.
19159 (merge_aggregate_lattices): Same.
19160 (agg_pass_through_permissible_p): Same.
19161 (propagate_aggs_across_jump_function): Same.
19162 (call_passes_through_thunk_p): Same.
19163 (propagate_constants_across_call): Same.
19164 (devirtualization_time_bonus): Same.
19165 (good_cloning_opportunity_p): Same.
19166 (context_independent_aggregate_values): Same.
19167 (gather_context_independent_values): Same.
19168 (perform_estimation_of_a_value): Same.
19169 (estimate_local_effects): Same.
19170 (value_topo_info<valtype>::add_val): Same.
19171 (add_all_node_vals_to_toposort): Same.
19172 (value_topo_info<valtype>::propagate_effects): Same.
19173 (ipcp_propagate_stage): Same.
19174 (ipcp_discover_new_direct_edges): Same.
19175 (same_node_or_its_all_contexts_clone_p): Same.
19176 (cgraph_edge_brings_value_p): Same.
19177 (gather_edges_for_value): Same.
19178 (create_specialized_node): Same.
19179 (find_more_scalar_values_for_callers_subset): Same.
19180 (find_more_contexts_for_caller_subset): Same.
19181 (copy_plats_to_inter): Same.
19182 (intersect_aggregates_with_edge): Same.
19183 (find_aggregate_values_for_callers_subset): Same.
19184 (cgraph_edge_brings_all_agg_vals_for_node): Same.
19185 (decide_about_value): Same.
19186 (decide_whether_version_node): Same.
19187 (spread_undeadness): Same.
19188 (identify_dead_nodes): Same.
19189 (ipcp_store_vr_results): Same.
19190 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
19191 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
19192 (redirect_to_unreachable): Same.
19193 (edge_set_predicate): Same.
19194 (evaluate_conditions_for_known_args): Same.
19195 (evaluate_properties_for_edge): Same.
19196 (ipa_fn_summary_t::duplicate): Same.
19197 (ipa_call_summary_t::duplicate): Same.
19198 (dump_ipa_call_summary): Same.
19199 (ipa_dump_fn_summary): Same.
19200 (eliminated_by_inlining_prob): Same.
19201 (set_cond_stmt_execution_predicate): Same.
19202 (set_switch_stmt_execution_predicate): Same.
19203 (compute_bb_predicates): Same.
19204 (will_be_nonconstant_expr_predicate): Same.
19205 (phi_result_unknown_predicate): Same.
19206 (analyze_function_body): Same.
19207 (compute_fn_summary): Same.
19208 (estimate_edge_devirt_benefit): Same.
19209 (estimate_edge_size_and_time): Same.
19210 (estimate_calls_size_and_time): Same.
19211 (estimate_node_size_and_time): Same.
19212 (remap_edge_change_prob): Same.
19213 (remap_edge_summaries): Same.
19214 (ipa_merge_fn_summary_after_inlining): Same.
19215 (ipa_fn_summary_generate): Same.
19216 (inline_read_section): Same.
19217 (ipa_fn_summary_read): Same.
19218 (ipa_fn_summary_write): Same.
19219 * ipa-fnsummary.h: Same.
19220 * ipa-hsa.c (ipa_hsa_read_section): Same.
19221 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
19222 * ipa-icf.c (sem_function::param_used_p): Same.
19223 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
19224 * ipa-inline.c (edge_badness): Same.
19225 (inline_small_functions): Same.
19226 * ipa-polymorphic-call.c
19227 (ipa_polymorphic_call_context::stream_out): Same.
19228 * ipa-predicate.c (predicate::remap_after_duplication): Same.
19229 (predicate::remap_after_inlining): Same.
19230 (predicate::stream_out): Same.
19231 * ipa-predicate.h: Same.
19232 * ipa-profile.c (ipa_profile_read_summary): Same.
19233 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
19234 (count_formal_params): Same.
19235 (ipa_dump_param): Same.
19236 (ipa_alloc_node_params): Same.
19237 (ipa_print_node_jump_functions_for_edge): Same.
19238 (ipa_print_node_jump_functions): Same.
19239 (ipa_load_from_parm_agg): Same.
19240 (get_ancestor_addr_info): Same.
19241 (ipa_compute_jump_functions_for_edge): Same.
19242 (ipa_analyze_virtual_call_uses): Same.
19243 (ipa_analyze_stmt_uses): Same.
19244 (ipa_analyze_params_uses_in_bb): Same.
19245 (update_jump_functions_after_inlining): Same.
19246 (try_decrement_rdesc_refcount): Same.
19247 (ipa_impossible_devirt_target): Same.
19248 (update_indirect_edges_after_inlining): Same.
19249 (combine_controlled_uses_counters): Same.
19250 (ipa_edge_args_sum_t::duplicate): Same.
19251 (ipa_write_jump_function): Same.
19252 (ipa_write_indirect_edge_info): Same.
19253 (ipa_write_node_info): Same.
19254 (ipa_read_edge_info): Same.
19255 (ipa_prop_read_section): Same.
19256 (read_replacements_section): Same.
19257 * ipa-prop.h (ipa_get_param_count): Same.
19258 (ipa_get_param): Same.
19259 (ipa_get_type): Same.
19260 (ipa_get_param_move_cost): Same.
19261 (ipa_set_param_used): Same.
19262 (ipa_get_controlled_uses): Same.
19263 (ipa_set_controlled_uses): Same.
19264 (ipa_get_cs_argument_count): Same.
19265 * ipa-pure-const.c (analyze_function): Same.
19266 (pure_const_read_summary): Same.
19267 * ipa-ref.h: Same.
19268 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
19269 * ipa-split.c (test_nonssa_use): Same.
19270 (dump_split_point): Same.
19271 (dominated_by_forbidden): Same.
19272 (split_part_set_ssa_name_p): Same.
19273 (find_split_points): Same.
19274 * ira-build.c (finish_loop_tree_nodes): Same.
19275 (low_pressure_loop_node_p): Same.
19276 * ira-color.c (ira_reuse_stack_slot): Same.
19277 * ira-int.h: Same.
19278 * ira.c (setup_reg_equiv): Same.
19279 (print_insn_chain): Same.
19280 (ira): Same.
19281 * loop-doloop.c (doloop_condition_get): Same.
19282 (add_test): Same.
19283 (record_reg_sets): Same.
19284 (doloop_optimize): Same.
19285 * loop-init.c (loop_optimizer_init): Same.
19286 (fix_loop_structure): Same.
19287 * loop-invariant.c (merge_identical_invariants): Same.
19288 (compute_always_reached): Same.
19289 (find_exits): Same.
19290 (may_assign_reg_p): Same.
19291 (find_invariants_bb): Same.
19292 (find_invariants_body): Same.
19293 (replace_uses): Same.
19294 (can_move_invariant_reg): Same.
19295 (free_inv_motion_data): Same.
19296 (move_single_loop_invariants): Same.
19297 (change_pressure): Same.
19298 (mark_ref_regs): Same.
19299 (calculate_loop_reg_pressure): Same.
19300 * loop-iv.c (biv_entry_hasher::equal): Same.
19301 (iv_extend_to_rtx_code): Same.
19302 (check_iv_ref_table_size): Same.
19303 (clear_iv_info): Same.
19304 (latch_dominating_def): Same.
19305 (iv_get_reaching_def): Same.
19306 (iv_constant): Same.
19307 (iv_subreg): Same.
19308 (iv_extend): Same.
19309 (iv_neg): Same.
19310 (iv_add): Same.
19311 (iv_mult): Same.
19312 (get_biv_step): Same.
19313 (record_iv): Same.
19314 (analyzed_for_bivness_p): Same.
19315 (record_biv): Same.
19316 (iv_analyze_biv): Same.
19317 (iv_analyze_expr): Same.
19318 (iv_analyze_def): Same.
19319 (iv_analyze_op): Same.
19320 (iv_analyze): Same.
19321 (iv_analyze_result): Same.
19322 (biv_p): Same.
19323 (eliminate_implied_conditions): Same.
19324 (simplify_using_initial_values): Same.
19325 (shorten_into_mode): Same.
19326 (canonicalize_iv_subregs): Same.
19327 (determine_max_iter): Same.
19328 (check_simple_exit): Same.
19329 (find_simple_exit): Same.
19330 (get_simple_loop_desc): Same.
19331 * loop-unroll.c (report_unroll): Same.
19332 (decide_unrolling): Same.
19333 (unroll_loops): Same.
19334 (loop_exit_at_end_p): Same.
19335 (decide_unroll_constant_iterations): Same.
19336 (unroll_loop_constant_iterations): Same.
19337 (compare_and_jump_seq): Same.
19338 (unroll_loop_runtime_iterations): Same.
19339 (decide_unroll_stupid): Same.
19340 (unroll_loop_stupid): Same.
19341 (referenced_in_one_insn_in_loop_p): Same.
19342 (reset_debug_uses_in_loop): Same.
19343 (analyze_iv_to_split_insn): Same.
19344 * lra-eliminations.c (lra_debug_elim_table): Same.
19345 (setup_can_eliminate): Same.
19346 (form_sum): Same.
19347 (lra_get_elimination_hard_regno): Same.
19348 (lra_eliminate_regs_1): Same.
19349 (eliminate_regs_in_insn): Same.
19350 (update_reg_eliminate): Same.
19351 (init_elimination): Same.
19352 (lra_eliminate): Same.
19353 * lra-int.h: Same.
19354 * lra-lives.c (initiate_live_solver): Same.
19355 * lra-remat.c (create_remat_bb_data): Same.
19356 * lra-spills.c (lra_spill): Same.
19357 * lra.c (lra_set_insn_recog_data): Same.
19358 (lra_set_used_insn_alternative_by_uid): Same.
19359 (init_reg_info): Same.
19360 (expand_reg_info): Same.
19361 * lto-cgraph.c (output_symtab): Same.
19362 (read_identifier): Same.
19363 (get_alias_symbol): Same.
19364 (input_node): Same.
19365 (input_varpool_node): Same.
19366 (input_ref): Same.
19367 (input_edge): Same.
19368 (input_cgraph_1): Same.
19369 (input_refs): Same.
19370 (input_symtab): Same.
19371 (input_offload_tables): Same.
19372 (output_cgraph_opt_summary): Same.
19373 (input_edge_opt_summary): Same.
19374 (input_cgraph_opt_section): Same.
19375 * lto-section-in.c (lto_free_raw_section_data): Same.
19376 (lto_create_simple_input_block): Same.
19377 (lto_free_function_in_decl_state_for_node): Same.
19378 * lto-streamer-in.c (lto_tag_check_set): Same.
19379 (lto_location_cache::revert_location_cache): Same.
19380 (lto_location_cache::input_location): Same.
19381 (lto_input_location): Same.
19382 (stream_input_location_now): Same.
19383 (lto_input_tree_ref): Same.
19384 (lto_input_eh_catch_list): Same.
19385 (input_eh_region): Same.
19386 (lto_init_eh): Same.
19387 (make_new_block): Same.
19388 (input_cfg): Same.
19389 (fixup_call_stmt_edges): Same.
19390 (input_struct_function_base): Same.
19391 (input_function): Same.
19392 (lto_read_body_or_constructor): Same.
19393 (lto_read_tree_1): Same.
19394 (lto_read_tree): Same.
19395 (lto_input_scc): Same.
19396 (lto_input_tree_1): Same.
19397 (lto_input_toplevel_asms): Same.
19398 (lto_input_mode_table): Same.
19399 (lto_reader_init): Same.
19400 (lto_data_in_create): Same.
19401 * lto-streamer-out.c (output_cfg): Same.
19402 * lto-streamer.h: Same.
19403 * modulo-sched.c (duplicate_insns_of_cycles): Same.
19404 (generate_prolog_epilog): Same.
19405 (mark_loop_unsched): Same.
19406 (dump_insn_location): Same.
19407 (loop_canon_p): Same.
19408 (sms_schedule): Same.
19409 * omp-expand.c (expand_omp_for_ordered_loops): Same.
19410 (expand_omp_for_generic): Same.
19411 (expand_omp_for_static_nochunk): Same.
19412 (expand_omp_for_static_chunk): Same.
19413 (expand_omp_simd): Same.
19414 (expand_omp_taskloop_for_inner): Same.
19415 (expand_oacc_for): Same.
19416 (expand_omp_atomic_pipeline): Same.
19417 (mark_loops_in_oacc_kernels_region): Same.
19418 * omp-offload.c (oacc_xform_loop): Same.
19419 * omp-simd-clone.c (simd_clone_adjust): Same.
19420 * optabs-query.c (get_traditional_extraction_insn): Same.
19421 * optabs.c (expand_vector_broadcast): Same.
19422 (expand_binop_directly): Same.
19423 (expand_twoval_unop): Same.
19424 (expand_twoval_binop): Same.
19425 (expand_unop_direct): Same.
19426 (emit_indirect_jump): Same.
19427 (emit_conditional_move): Same.
19428 (emit_conditional_neg_or_complement): Same.
19429 (emit_conditional_add): Same.
19430 (vector_compare_rtx): Same.
19431 (expand_vec_perm_1): Same.
19432 (expand_vec_perm_const): Same.
19433 (expand_vec_cond_expr): Same.
19434 (expand_vec_series_expr): Same.
19435 (maybe_emit_atomic_exchange): Same.
19436 (maybe_emit_sync_lock_test_and_set): Same.
19437 (expand_atomic_compare_and_swap): Same.
19438 (expand_atomic_load): Same.
19439 (expand_atomic_store): Same.
19440 (maybe_emit_op): Same.
19441 (valid_multiword_target_p): Same.
19442 (create_integer_operand): Same.
19443 (maybe_legitimize_operand_same_code): Same.
19444 (maybe_legitimize_operand): Same.
19445 (create_convert_operand_from_type): Same.
19446 (can_reuse_operands_p): Same.
19447 (maybe_legitimize_operands): Same.
19448 (maybe_gen_insn): Same.
19449 (maybe_expand_insn): Same.
19450 (maybe_expand_jump_insn): Same.
19451 (expand_insn): Same.
19452 * optabs.h (create_expand_operand): Same.
19453 (create_fixed_operand): Same.
19454 (create_output_operand): Same.
19455 (create_input_operand): Same.
19456 (create_convert_operand_to): Same.
19457 (create_convert_operand_from): Same.
19458 * optinfo.h: Same.
19459 * poly-int.h: Same.
19460 * predict.c (optimize_insn_for_speed_p): Same.
19461 (optimize_loop_for_size_p): Same.
19462 (optimize_loop_for_speed_p): Same.
19463 (optimize_loop_nest_for_speed_p): Same.
19464 (get_base_value): Same.
19465 (predicted_by_loop_heuristics_p): Same.
19466 (predict_extra_loop_exits): Same.
19467 (predict_loops): Same.
19468 (predict_paths_for_bb): Same.
19469 (predict_paths_leading_to): Same.
19470 (propagate_freq): Same.
19471 (pass_profile::execute): Same.
19472 * predict.h: Same.
19473 * profile-count.c (profile_count::differs_from_p): Same.
19474 (profile_probability::differs_lot_from_p): Same.
19475 * profile-count.h: Same.
19476 * profile.c (branch_prob): Same.
19477 * regrename.c (free_chain_data): Same.
19478 (mark_conflict): Same.
19479 (create_new_chain): Same.
19480 (merge_overlapping_regs): Same.
19481 (init_rename_info): Same.
19482 (merge_chains): Same.
19483 (regrename_analyze): Same.
19484 (regrename_do_replace): Same.
19485 (scan_rtx_reg): Same.
19486 (record_out_operands): Same.
19487 (build_def_use): Same.
19488 * regrename.h: Same.
19489 * reload.h: Same.
19490 * reload1.c (init_reload): Same.
19491 (maybe_fix_stack_asms): Same.
19492 (copy_reloads): Same.
19493 (count_pseudo): Same.
19494 (count_spilled_pseudo): Same.
19495 (find_reg): Same.
19496 (find_reload_regs): Same.
19497 (select_reload_regs): Same.
19498 (spill_hard_reg): Same.
19499 (fixup_eh_region_note): Same.
19500 (set_reload_reg): Same.
19501 (allocate_reload_reg): Same.
19502 (compute_reload_subreg_offset): Same.
19503 (reload_adjust_reg_for_icode): Same.
19504 (emit_input_reload_insns): Same.
19505 (emit_output_reload_insns): Same.
19506 (do_input_reload): Same.
19507 (inherit_piecemeal_p): Same.
19508 * rtl.h: Same.
19509 * sanopt.c (maybe_get_dominating_check): Same.
19510 (maybe_optimize_ubsan_ptr_ifn): Same.
19511 (can_remove_asan_check): Same.
19512 (maybe_optimize_asan_check_ifn): Same.
19513 (sanopt_optimize_walker): Same.
19514 * sched-deps.c (add_dependence_list): Same.
19515 (chain_to_prev_insn): Same.
19516 (add_insn_mem_dependence): Same.
19517 (create_insn_reg_set): Same.
19518 (maybe_extend_reg_info_p): Same.
19519 (sched_analyze_reg): Same.
19520 (sched_analyze_1): Same.
19521 (get_implicit_reg_pending_clobbers): Same.
19522 (chain_to_prev_insn_p): Same.
19523 (deps_analyze_insn): Same.
19524 (deps_start_bb): Same.
19525 (sched_free_deps): Same.
19526 (init_deps): Same.
19527 (init_deps_reg_last): Same.
19528 (free_deps): Same.
19529 * sched-ebb.c: Same.
19530 * sched-int.h: Same.
19531 * sched-rgn.c (add_branch_dependences): Same.
19532 (concat_insn_mem_list): Same.
19533 (deps_join): Same.
19534 (sched_rgn_compute_dependencies): Same.
19535 * sel-sched-ir.c (reset_target_context): Same.
19536 (copy_deps_context): Same.
19537 (init_id_from_df): Same.
19538 (has_dependence_p): Same.
19539 (change_loops_latches): Same.
19540 (bb_top_order_comparator): Same.
19541 (make_region_from_loop_preheader): Same.
19542 (sel_init_pipelining): Same.
19543 (get_loop_nest_for_rgn): Same.
19544 (make_regions_from_the_rest): Same.
19545 (sel_is_loop_preheader_p): Same.
19546 * sel-sched-ir.h (inner_loop_header_p): Same.
19547 (get_all_loop_exits): Same.
19548 * selftest.h: Same.
19549 * sese.c (sese_build_liveouts): Same.
19550 (sese_insert_phis_for_liveouts): Same.
19551 * sese.h (defined_in_sese_p): Same.
19552 * sreal.c (sreal::stream_out): Same.
19553 * sreal.h: Same.
19554 * streamer-hooks.h: Same.
19555 * target-globals.c (save_target_globals): Same.
19556 * target-globals.h: Same.
19557 * target.def: Same.
19558 * target.h: Same.
19559 * targhooks.c (default_has_ifunc_p): Same.
19560 (default_empty_mask_is_expensive): Same.
19561 (default_init_cost): Same.
19562 * targhooks.h: Same.
19563 * toplev.c: Same.
19564 * tree-affine.c (aff_combination_mult): Same.
19565 (aff_combination_expand): Same.
19566 (aff_combination_constant_multiple_p): Same.
19567 * tree-affine.h: Same.
19568 * tree-cfg.c (build_gimple_cfg): Same.
19569 (replace_loop_annotate_in_block): Same.
19570 (replace_uses_by): Same.
19571 (remove_bb): Same.
19572 (dump_cfg_stats): Same.
19573 (gimple_duplicate_sese_region): Same.
19574 (gimple_duplicate_sese_tail): Same.
19575 (move_block_to_fn): Same.
19576 (replace_block_vars_by_duplicates): Same.
19577 (move_sese_region_to_fn): Same.
19578 (print_loops_bb): Same.
19579 (print_loop): Same.
19580 (print_loops): Same.
19581 (debug): Same.
19582 (debug_loops): Same.
19583 * tree-cfg.h: Same.
19584 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
19585 (chrec_fold_multiply_poly_poly): Same.
19586 (chrec_evaluate): Same.
19587 (chrec_component_in_loop_num): Same.
19588 (reset_evolution_in_loop): Same.
19589 (is_multivariate_chrec): Same.
19590 (chrec_contains_symbols): Same.
19591 (nb_vars_in_chrec): Same.
19592 (chrec_convert_1): Same.
19593 (chrec_convert_aggressive): Same.
19594 * tree-chrec.h: Same.
19595 * tree-core.h: Same.
19596 * tree-data-ref.c (dump_data_dependence_relation): Same.
19597 (canonicalize_base_object_address): Same.
19598 (data_ref_compare_tree): Same.
19599 (prune_runtime_alias_test_list): Same.
19600 (get_segment_min_max): Same.
19601 (create_intersect_range_checks): Same.
19602 (conflict_fn_no_dependence): Same.
19603 (object_address_invariant_in_loop_p): Same.
19604 (analyze_ziv_subscript): Same.
19605 (analyze_siv_subscript_cst_affine): Same.
19606 (analyze_miv_subscript): Same.
19607 (analyze_overlapping_iterations): Same.
19608 (build_classic_dist_vector_1): Same.
19609 (add_other_self_distances): Same.
19610 (same_access_functions): Same.
19611 (build_classic_dir_vector): Same.
19612 (subscript_dependence_tester_1): Same.
19613 (subscript_dependence_tester): Same.
19614 (access_functions_are_affine_or_constant_p): Same.
19615 (get_references_in_stmt): Same.
19616 (loop_nest_has_data_refs): Same.
19617 (graphite_find_data_references_in_stmt): Same.
19618 (find_data_references_in_bb): Same.
19619 (get_base_for_alignment): Same.
19620 (find_loop_nest_1): Same.
19621 (find_loop_nest): Same.
19622 * tree-data-ref.h (dr_alignment): Same.
19623 (ddr_dependence_level): Same.
19624 * tree-if-conv.c (fold_build_cond_expr): Same.
19625 (add_to_predicate_list): Same.
19626 (add_to_dst_predicate_list): Same.
19627 (phi_convertible_by_degenerating_args): Same.
19628 (idx_within_array_bound): Same.
19629 (all_preds_critical_p): Same.
19630 (pred_blocks_visited_p): Same.
19631 (predicate_bbs): Same.
19632 (build_region): Same.
19633 (if_convertible_loop_p_1): Same.
19634 (is_cond_scalar_reduction): Same.
19635 (predicate_scalar_phi): Same.
19636 (remove_conditions_and_labels): Same.
19637 (combine_blocks): Same.
19638 (version_loop_for_if_conversion): Same.
19639 (versionable_outer_loop_p): Same.
19640 (ifcvt_local_dce): Same.
19641 (tree_if_conversion): Same.
19642 (pass_if_conversion::gate): Same.
19643 * tree-if-conv.h: Same.
19644 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
19645 * tree-loop-distribution.c (bb_top_order_cmp): Same.
19646 (free_rdg): Same.
19647 (stmt_has_scalar_dependences_outside_loop): Same.
19648 (copy_loop_before): Same.
19649 (create_bb_after_loop): Same.
19650 (const_with_all_bytes_same): Same.
19651 (generate_memset_builtin): Same.
19652 (generate_memcpy_builtin): Same.
19653 (destroy_loop): Same.
19654 (build_rdg_partition_for_vertex): Same.
19655 (compute_access_range): Same.
19656 (data_ref_segment_size): Same.
19657 (latch_dominated_by_data_ref): Same.
19658 (compute_alias_check_pairs): Same.
19659 (fuse_memset_builtins): Same.
19660 (finalize_partitions): Same.
19661 (find_seed_stmts_for_distribution): Same.
19662 (prepare_perfect_loop_nest): Same.
19663 * tree-parloops.c (lambda_transform_legal_p): Same.
19664 (loop_parallel_p): Same.
19665 (reduc_stmt_res): Same.
19666 (add_field_for_name): Same.
19667 (create_call_for_reduction_1): Same.
19668 (replace_uses_in_bb_by): Same.
19669 (transform_to_exit_first_loop_alt): Same.
19670 (try_transform_to_exit_first_loop_alt): Same.
19671 (transform_to_exit_first_loop): Same.
19672 (num_phis): Same.
19673 (gen_parallel_loop): Same.
19674 (gather_scalar_reductions): Same.
19675 (get_omp_data_i_param): Same.
19676 (try_create_reduction_list): Same.
19677 (oacc_entry_exit_single_gang): Same.
19678 (parallelize_loops): Same.
19679 * tree-pass.h: Same.
19680 * tree-predcom.c (determine_offset): Same.
19681 (last_always_executed_block): Same.
19682 (split_data_refs_to_components): Same.
19683 (suitable_component_p): Same.
19684 (valid_initializer_p): Same.
19685 (find_looparound_phi): Same.
19686 (insert_looparound_copy): Same.
19687 (add_looparound_copies): Same.
19688 (determine_roots_comp): Same.
19689 (predcom_tmp_var): Same.
19690 (initialize_root_vars): Same.
19691 (initialize_root_vars_store_elim_1): Same.
19692 (initialize_root_vars_store_elim_2): Same.
19693 (finalize_eliminated_stores): Same.
19694 (initialize_root_vars_lm): Same.
19695 (remove_stmt): Same.
19696 (determine_unroll_factor): Same.
19697 (execute_pred_commoning_cbck): Same.
19698 (base_names_in_chain_on): Same.
19699 (combine_chains): Same.
19700 (pcom_stmt_dominates_stmt_p): Same.
19701 (try_combine_chains): Same.
19702 (prepare_initializers_chain_store_elim): Same.
19703 (prepare_initializers_chain): Same.
19704 (prepare_initializers): Same.
19705 (prepare_finalizers_chain): Same.
19706 (prepare_finalizers): Same.
19707 (insert_init_seqs): Same.
19708 * tree-scalar-evolution.c (loop_phi_node_p): Same.
19709 (compute_overall_effect_of_inner_loop): Same.
19710 (add_to_evolution_1): Same.
19711 (add_to_evolution): Same.
19712 (follow_ssa_edge_binary): Same.
19713 (follow_ssa_edge_expr): Same.
19714 (backedge_phi_arg_p): Same.
19715 (follow_ssa_edge_in_condition_phi_branch): Same.
19716 (follow_ssa_edge_in_condition_phi): Same.
19717 (follow_ssa_edge_inner_loop_phi): Same.
19718 (follow_ssa_edge): Same.
19719 (analyze_evolution_in_loop): Same.
19720 (analyze_initial_condition): Same.
19721 (interpret_loop_phi): Same.
19722 (interpret_condition_phi): Same.
19723 (interpret_rhs_expr): Same.
19724 (interpret_expr): Same.
19725 (interpret_gimple_assign): Same.
19726 (analyze_scalar_evolution_1): Same.
19727 (analyze_scalar_evolution): Same.
19728 (analyze_scalar_evolution_for_address_of): Same.
19729 (get_instantiated_value_entry): Same.
19730 (loop_closed_phi_def): Same.
19731 (instantiate_scev_name): Same.
19732 (instantiate_scev_poly): Same.
19733 (instantiate_scev_binary): Same.
19734 (instantiate_scev_convert): Same.
19735 (instantiate_scev_not): Same.
19736 (instantiate_scev_r): Same.
19737 (instantiate_scev): Same.
19738 (resolve_mixers): Same.
19739 (initialize_scalar_evolutions_analyzer): Same.
19740 (scev_reset_htab): Same.
19741 (scev_reset): Same.
19742 (derive_simple_iv_with_niters): Same.
19743 (simple_iv_with_niters): Same.
19744 (expression_expensive_p): Same.
19745 (final_value_replacement_loop): Same.
19746 * tree-scalar-evolution.h (block_before_loop): Same.
19747 * tree-ssa-address.h: Same.
19748 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
19749 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
19750 (record_edge_info): Same.
19751 * tree-ssa-live.c (var_map_base_fini): Same.
19752 (remove_unused_locals): Same.
19753 * tree-ssa-live.h: Same.
19754 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
19755 (pass_ch_vect::execute): Same.
19756 (pass_ch::process_loop_p): Same.
19757 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
19758 (movement_possibility): Same.
19759 (outermost_invariant_loop): Same.
19760 (stmt_cost): Same.
19761 (determine_max_movement): Same.
19762 (invariantness_dom_walker::before_dom_children): Same.
19763 (move_computations): Same.
19764 (may_move_till): Same.
19765 (force_move_till_op): Same.
19766 (force_move_till): Same.
19767 (memref_free): Same.
19768 (record_mem_ref_loc): Same.
19769 (set_ref_stored_in_loop): Same.
19770 (mark_ref_stored): Same.
19771 (sort_bbs_in_loop_postorder_cmp): Same.
19772 (sort_locs_in_loop_postorder_cmp): Same.
19773 (analyze_memory_references): Same.
19774 (mem_refs_may_alias_p): Same.
19775 (find_ref_loc_in_loop_cmp): Same.
19776 (rewrite_mem_ref_loc::operator): Same.
19777 (first_mem_ref_loc_1::operator): Same.
19778 (sm_set_flag_if_changed::operator): Same.
19779 (execute_sm_if_changed_flag_set): Same.
19780 (execute_sm): Same.
19781 (hoist_memory_references): Same.
19782 (ref_always_accessed::operator): Same.
19783 (refs_independent_p): Same.
19784 (record_dep_loop): Same.
19785 (ref_indep_loop_p_1): Same.
19786 (ref_indep_loop_p): Same.
19787 (can_sm_ref_p): Same.
19788 (find_refs_for_sm): Same.
19789 (loop_suitable_for_sm): Same.
19790 (store_motion_loop): Same.
19791 (store_motion): Same.
19792 (fill_always_executed_in): Same.
19793 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
19794 (estimated_unrolled_size): Same.
19795 (loop_edge_to_cancel): Same.
19796 (remove_exits_and_undefined_stmts): Same.
19797 (remove_redundant_iv_tests): Same.
19798 (unloop_loops): Same.
19799 (estimated_peeled_sequence_size): Same.
19800 (try_peel_loop): Same.
19801 (canonicalize_loop_induction_variables): Same.
19802 (canonicalize_induction_variables): Same.
19803 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
19804 (name_info): Same.
19805 (stmt_after_inc_pos): Same.
19806 (contains_abnormal_ssa_name_p): Same.
19807 (niter_for_exit): Same.
19808 (find_bivs): Same.
19809 (mark_bivs): Same.
19810 (find_givs_in_bb): Same.
19811 (find_induction_variables): Same.
19812 (find_interesting_uses_cond): Same.
19813 (outermost_invariant_loop_for_expr): Same.
19814 (idx_find_step): Same.
19815 (add_candidate_1): Same.
19816 (add_iv_candidate_derived_from_uses): Same.
19817 (alloc_use_cost_map): Same.
19818 (prepare_decl_rtl): Same.
19819 (generic_predict_doloop_p): Same.
19820 (computation_cost): Same.
19821 (determine_common_wider_type): Same.
19822 (get_computation_aff_1): Same.
19823 (get_use_type): Same.
19824 (determine_group_iv_cost_address): Same.
19825 (iv_period): Same.
19826 (difference_cannot_overflow_p): Same.
19827 (may_eliminate_iv): Same.
19828 (determine_set_costs): Same.
19829 (cheaper_cost_pair): Same.
19830 (compare_cost_pair): Same.
19831 (iv_ca_cand_for_group): Same.
19832 (iv_ca_recount_cost): Same.
19833 (iv_ca_set_remove_invs): Same.
19834 (iv_ca_set_no_cp): Same.
19835 (iv_ca_set_add_invs): Same.
19836 (iv_ca_set_cp): Same.
19837 (iv_ca_add_group): Same.
19838 (iv_ca_cost): Same.
19839 (iv_ca_compare_deps): Same.
19840 (iv_ca_delta_reverse): Same.
19841 (iv_ca_delta_commit): Same.
19842 (iv_ca_cand_used_p): Same.
19843 (iv_ca_delta_free): Same.
19844 (iv_ca_new): Same.
19845 (iv_ca_free): Same.
19846 (iv_ca_dump): Same.
19847 (iv_ca_extend): Same.
19848 (iv_ca_narrow): Same.
19849 (iv_ca_prune): Same.
19850 (cheaper_cost_with_cand): Same.
19851 (iv_ca_replace): Same.
19852 (try_add_cand_for): Same.
19853 (get_initial_solution): Same.
19854 (try_improve_iv_set): Same.
19855 (find_optimal_iv_set_1): Same.
19856 (create_new_iv): Same.
19857 (rewrite_use_compare): Same.
19858 (remove_unused_ivs): Same.
19859 (determine_scaling_factor): Same.
19860 * tree-ssa-loop-ivopts.h: Same.
19861 * tree-ssa-loop-manip.c (create_iv): Same.
19862 (compute_live_loop_exits): Same.
19863 (add_exit_phi): Same.
19864 (add_exit_phis): Same.
19865 (find_uses_to_rename_use): Same.
19866 (find_uses_to_rename_def): Same.
19867 (find_uses_to_rename_in_loop): Same.
19868 (rewrite_into_loop_closed_ssa): Same.
19869 (check_loop_closed_ssa_bb): Same.
19870 (split_loop_exit_edge): Same.
19871 (ip_end_pos): Same.
19872 (ip_normal_pos): Same.
19873 (copy_phi_node_args): Same.
19874 (gimple_duplicate_loop_to_header_edge): Same.
19875 (can_unroll_loop_p): Same.
19876 (determine_exit_conditions): Same.
19877 (scale_dominated_blocks_in_loop): Same.
19878 (niter_for_unrolled_loop): Same.
19879 (tree_transform_and_unroll_loop): Same.
19880 (rewrite_all_phi_nodes_with_iv): Same.
19881 * tree-ssa-loop-manip.h: Same.
19882 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
19883 (number_of_iterations_ne): Same.
19884 (assert_no_overflow_lt): Same.
19885 (assert_loop_rolls_lt): Same.
19886 (number_of_iterations_lt): Same.
19887 (adjust_cond_for_loop_until_wrap): Same.
19888 (tree_simplify_using_condition): Same.
19889 (simplify_using_initial_conditions): Same.
19890 (simplify_using_outer_evolutions): Same.
19891 (loop_only_exit_p): Same.
19892 (ssa_defined_by_minus_one_stmt_p): Same.
19893 (number_of_iterations_popcount): Same.
19894 (number_of_iterations_exit): Same.
19895 (find_loop_niter): Same.
19896 (finite_loop_p): Same.
19897 (chain_of_csts_start): Same.
19898 (get_val_for): Same.
19899 (loop_niter_by_eval): Same.
19900 (derive_constant_upper_bound_ops): Same.
19901 (do_warn_aggressive_loop_optimizations): Same.
19902 (record_estimate): Same.
19903 (get_cst_init_from_scev): Same.
19904 (record_nonwrapping_iv): Same.
19905 (idx_infer_loop_bounds): Same.
19906 (infer_loop_bounds_from_ref): Same.
19907 (infer_loop_bounds_from_array): Same.
19908 (infer_loop_bounds_from_pointer_arith): Same.
19909 (infer_loop_bounds_from_signedness): Same.
19910 (bound_index): Same.
19911 (discover_iteration_bound_by_body_walk): Same.
19912 (maybe_lower_iteration_bound): Same.
19913 (estimate_numbers_of_iterations): Same.
19914 (estimated_loop_iterations): Same.
19915 (estimated_loop_iterations_int): Same.
19916 (max_loop_iterations): Same.
19917 (max_loop_iterations_int): Same.
19918 (likely_max_loop_iterations): Same.
19919 (likely_max_loop_iterations_int): Same.
19920 (estimated_stmt_executions_int): Same.
19921 (max_stmt_executions): Same.
19922 (likely_max_stmt_executions): Same.
19923 (estimated_stmt_executions): Same.
19924 (stmt_dominates_stmt_p): Same.
19925 (nowrap_type_p): Same.
19926 (loop_exits_before_overflow): Same.
19927 (scev_var_range_cant_overflow): Same.
19928 (scev_probably_wraps_p): Same.
19929 (free_numbers_of_iterations_estimates): Same.
19930 * tree-ssa-loop-niter.h: Same.
19931 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
19932 (idx_analyze_ref): Same.
19933 (analyze_ref): Same.
19934 (gather_memory_references_ref): Same.
19935 (mark_nontemporal_store): Same.
19936 (emit_mfence_after_loop): Same.
19937 (may_use_storent_in_loop_p): Same.
19938 (mark_nontemporal_stores): Same.
19939 (should_unroll_loop_p): Same.
19940 (volume_of_dist_vector): Same.
19941 (add_subscript_strides): Same.
19942 (self_reuse_distance): Same.
19943 (insn_to_prefetch_ratio_too_small_p): Same.
19944 * tree-ssa-loop-split.c (split_at_bb_p): Same.
19945 (patch_loop_exit): Same.
19946 (find_or_create_guard_phi): Same.
19947 (easy_exit_values): Same.
19948 (connect_loop_phis): Same.
19949 (connect_loops): Same.
19950 (compute_new_first_bound): Same.
19951 (split_loop): Same.
19952 (tree_ssa_split_loops): Same.
19953 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
19954 (is_maybe_undefined): Same.
19955 (tree_may_unswitch_on): Same.
19956 (simplify_using_entry_checks): Same.
19957 (tree_unswitch_single_loop): Same.
19958 (tree_unswitch_loop): Same.
19959 (tree_unswitch_outer_loop): Same.
19960 (empty_bb_without_guard_p): Same.
19961 (used_outside_loop_p): Same.
19962 (get_vop_from_header): Same.
19963 (hoist_guard): Same.
19964 * tree-ssa-loop.c (gate_oacc_kernels): Same.
19965 (get_lsm_tmp_name): Same.
19966 * tree-ssa-loop.h: Same.
19967 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
19968 (build_and_add_sum): Same.
19969 (no_side_effect_bb): Same.
19970 (get_ops): Same.
19971 (linearize_expr): Same.
19972 (should_break_up_subtract): Same.
19973 (linearize_expr_tree): Same.
19974 * tree-ssa-scopedtables.c: Same.
19975 * tree-ssa-scopedtables.h: Same.
19976 * tree-ssa-structalias.c (condense_visit): Same.
19977 (label_visit): Same.
19978 (dump_pred_graph): Same.
19979 (perform_var_substitution): Same.
19980 (move_complex_constraints): Same.
19981 (remove_preds_and_fake_succs): Same.
19982 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
19983 (determine_bb_domination_status): Same.
19984 (duplicate_thread_path): Same.
19985 (thread_through_all_blocks): Same.
19986 * tree-ssa-threadupdate.h: Same.
19987 * tree-streamer-in.c (streamer_read_string_cst): Same.
19988 (input_identifier): Same.
19989 (unpack_ts_type_common_value_fields): Same.
19990 (unpack_ts_block_value_fields): Same.
19991 (unpack_ts_translation_unit_decl_value_fields): Same.
19992 (unpack_ts_omp_clause_value_fields): Same.
19993 (streamer_read_tree_bitfields): Same.
19994 (streamer_alloc_tree): Same.
19995 (lto_input_ts_common_tree_pointers): Same.
19996 (lto_input_ts_vector_tree_pointers): Same.
19997 (lto_input_ts_poly_tree_pointers): Same.
19998 (lto_input_ts_complex_tree_pointers): Same.
19999 (lto_input_ts_decl_minimal_tree_pointers): Same.
20000 (lto_input_ts_decl_common_tree_pointers): Same.
20001 (lto_input_ts_decl_non_common_tree_pointers): Same.
20002 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20003 (lto_input_ts_field_decl_tree_pointers): Same.
20004 (lto_input_ts_function_decl_tree_pointers): Same.
20005 (lto_input_ts_type_common_tree_pointers): Same.
20006 (lto_input_ts_type_non_common_tree_pointers): Same.
20007 (lto_input_ts_list_tree_pointers): Same.
20008 (lto_input_ts_vec_tree_pointers): Same.
20009 (lto_input_ts_exp_tree_pointers): Same.
20010 (lto_input_ts_block_tree_pointers): Same.
20011 (lto_input_ts_binfo_tree_pointers): Same.
20012 (lto_input_ts_constructor_tree_pointers): Same.
20013 (lto_input_ts_omp_clause_tree_pointers): Same.
20014 (streamer_read_tree_body): Same.
20015 * tree-streamer.h: Same.
20016 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20017 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20018 (vect_analyze_possibly_independent_ddr): Same.
20019 (vect_analyze_data_ref_dependence): Same.
20020 (vect_compute_data_ref_alignment): Same.
20021 (vect_enhance_data_refs_alignment): Same.
20022 (vect_analyze_data_ref_access): Same.
20023 (vect_check_gather_scatter): Same.
20024 (vect_find_stmt_data_reference): Same.
20025 (vect_create_addr_base_for_vector_ref): Same.
20026 (vect_setup_realignment): Same.
20027 (vect_supportable_dr_alignment): Same.
20028 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20029 (adjust_phi_and_debug_stmts): Same.
20030 (vect_set_loop_mask): Same.
20031 (add_preheader_seq): Same.
20032 (vect_maybe_permute_loop_masks): Same.
20033 (vect_set_loop_masks_directly): Same.
20034 (vect_set_loop_condition_masked): Same.
20035 (vect_set_loop_condition_unmasked): Same.
20036 (slpeel_duplicate_current_defs_from_edges): Same.
20037 (slpeel_add_loop_guard): Same.
20038 (slpeel_can_duplicate_loop_p): Same.
20039 (create_lcssa_for_virtual_phi): Same.
20040 (iv_phi_p): Same.
20041 (vect_update_ivs_after_vectorizer): Same.
20042 (vect_gen_vector_loop_niters_mult_vf): Same.
20043 (slpeel_update_phi_nodes_for_loops): Same.
20044 (slpeel_update_phi_nodes_for_guard1): Same.
20045 (find_guard_arg): Same.
20046 (slpeel_update_phi_nodes_for_guard2): Same.
20047 (slpeel_update_phi_nodes_for_lcssa): Same.
20048 (vect_do_peeling): Same.
20049 (vect_create_cond_for_alias_checks): Same.
20050 (vect_loop_versioning): Same.
20051 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20052 (vect_inner_phi_in_double_reduction_p): Same.
20053 (vect_analyze_scalar_cycles_1): Same.
20054 (vect_fixup_scalar_cycles_with_patterns): Same.
20055 (vect_get_loop_niters): Same.
20056 (bb_in_loop_p): Same.
20057 (vect_get_max_nscalars_per_iter): Same.
20058 (vect_verify_full_masking): Same.
20059 (vect_compute_single_scalar_iteration_cost): Same.
20060 (vect_analyze_loop_form_1): Same.
20061 (vect_analyze_loop_form): Same.
20062 (vect_active_double_reduction_p): Same.
20063 (vect_analyze_loop_operations): Same.
20064 (neutral_op_for_slp_reduction): Same.
20065 (vect_is_simple_reduction): Same.
20066 (vect_model_reduction_cost): Same.
20067 (get_initial_def_for_reduction): Same.
20068 (get_initial_defs_for_reduction): Same.
20069 (vect_create_epilog_for_reduction): Same.
20070 (vectorize_fold_left_reduction): Same.
20071 (vectorizable_reduction): Same.
20072 (vectorizable_induction): Same.
20073 (vectorizable_live_operation): Same.
20074 (loop_niters_no_overflow): Same.
20075 (vect_get_loop_mask): Same.
20076 (vect_transform_loop_stmt): Same.
20077 (vect_transform_loop): Same.
20078 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20079 (vect_determine_precisions): Same.
20080 (vect_pattern_recog_1): Same.
20081 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20082 * tree-vect-stmts.c (stmt_vectype): Same.
20083 (process_use): Same.
20084 (vect_init_vector_1): Same.
20085 (vect_truncate_gather_scatter_offset): Same.
20086 (get_group_load_store_type): Same.
20087 (vect_build_gather_load_calls): Same.
20088 (vect_get_strided_load_store_ops): Same.
20089 (vectorizable_simd_clone_call): Same.
20090 (vectorizable_store): Same.
20091 (permute_vec_elements): Same.
20092 (vectorizable_load): Same.
20093 (vect_transform_stmt): Same.
20094 (supportable_widening_operation): Same.
20095 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20096 (vec_info::free_stmt_vec_info): Same.
20097 (vect_free_loop_info_assumptions): Same.
20098 (vect_loop_vectorized_call): Same.
20099 (set_uid_loop_bbs): Same.
20100 (vectorize_loops): Same.
20101 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20102 * tree.c (add_tree_to_fld_list): Same.
20103 (fld_type_variant_equal_p): Same.
20104 (fld_decl_context): Same.
20105 (fld_incomplete_type_of): Same.
20106 (free_lang_data_in_binfo): Same.
20107 (need_assembler_name_p): Same.
20108 (find_decls_types_r): Same.
20109 (get_eh_types_for_runtime): Same.
20110 (find_decls_types_in_eh_region): Same.
20111 (find_decls_types_in_node): Same.
20112 (assign_assembler_name_if_needed): Same.
20113 * value-prof.c (stream_out_histogram_value): Same.
20114 * value-prof.h: Same.
20115 * var-tracking.c (use_narrower_mode): Same.
20116 (prepare_call_arguments): Same.
20117 (vt_expand_loc_callback): Same.
20118 (resolve_expansions_pending_recursion): Same.
20119 (vt_expand_loc): Same.
20120 * varasm.c (const_hash_1): Same.
20121 (compare_constant): Same.
20122 (tree_output_constant_def): Same.
20123 (simplify_subtraction): Same.
20124 (get_pool_constant): Same.
20125 (output_constant_pool_2): Same.
20126 (output_constant_pool_1): Same.
20127 (mark_constants_in_pattern): Same.
20128 (mark_constant_pool): Same.
20129 (get_section_anchor): Same.
20130 * vr-values.c (compare_range_with_value): Same.
20131 (vr_values::extract_range_from_phi_node): Same.
20132 * vr-values.h: Same.
20133 * web.c (unionfind_union): Same.
20134 * wide-int.h: Same.
20135
20136 2019-07-09 Martin Sebor <msebor@redhat.com>
20137
20138 PR c++/61339
20139 * align.h: Change class-key from class to struct and vice versa
20140 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
20141 * alloc-pool.h: Same.
20142 * asan.c (shadow_mem_size): Same.
20143 * auto-profile.c: Same.
20144 * basic-block.h: Same.
20145 * bitmap.h: Same.
20146 * cfgexpand.c (set_rtl): Same.
20147 (expand_one_stack_var_at): Same.
20148 * cfghooks.h: Same.
20149 * cfgloop.h: Same.
20150 * cgraph.h: Same.
20151 * config/i386/i386.h: Same.
20152 * df-problems.c (df_print_bb_index): Same.
20153 * df-scan.c: Same.
20154 * df.h (df_single_use): Same.
20155 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
20156 (layout::annotation_line_showed_range_p): Same.
20157 (get_printed_columns): Same.
20158 (correction::ensure_terminated): Same.
20159 (line_corrections::~line_corrections): Same.
20160 * dojump.h: Same.
20161 * dse.c: Same.
20162 * dump-context.h: Same.
20163 * dumpfile.h: Same.
20164 * dwarf2out.c: Same.
20165 * edit-context.c: Same.
20166 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
20167 * flags.h: Same.
20168 * function.c (assign_stack_local): Same.
20169 * function.h: Same.
20170 * gcc.c: Same.
20171 * gcov.c (block_info::block_info): Same.
20172 * genattrtab.c: Same.
20173 * genextract.c: Same.
20174 * genmatch.c (comparison_code_p): Same.
20175 (id_base::id_base): Same.
20176 (decision_tree::print): Same.
20177 * genoutput.c: Same.
20178 * genpreds.c (write_one_predicate_function): Same.
20179 * genrecog.c (validate_pattern): Same.
20180 (find_operand_positions): Same.
20181 (optimize_subroutine_group): Same.
20182 (merge_pattern_transition::merge_pattern_transition): Same.
20183 (merge_pattern_info::merge_pattern_info): Same.
20184 (merge_state_result::merge_state_result): Same.
20185 (merge_into_state): Same.
20186 * gensupport.c: Same.
20187 * gensupport.h: Same.
20188 * ggc-common.c (init_ggc_heuristics): Same.
20189 * ggc-tests.c (test_union): Same.
20190 * gimple-loop-interchange.cc (dump_induction): Same.
20191 * gimple-loop-versioning.cc: Same.
20192 * gimple-match.h (gimple_match_cond::any_else): Same.
20193 * gimple-ssa-backprop.c: Same.
20194 * gimple-ssa-sprintf.c: Same.
20195 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
20196 Same.
20197 (store_immediate_info::store_immediate_info): Same.
20198 (merged_store_group::apply_stores): Same.
20199 (get_location_for_stmts): Same.
20200 * gimple-ssa-strength-reduction.c: Same.
20201 * gimple-ssa-warn-alloca.c: Same.
20202 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
20203 * godump.c (go_type_decl): Same.
20204 * hash-map-tests.c (test_map_of_strings_to_int): Same.
20205 * hash-map.h: Same.
20206 * hash-set-tests.c (test_set_of_strings): Same.
20207 * hsa-brig.c: Same.
20208 * hsa-common.h: Same.
20209 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
20210 * input.c (assert_loceq): Same.
20211 * input.h: Same.
20212 * ipa-cp.c: Same.
20213 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
20214 * ipa-fnsummary.h: Same.
20215 * ipa-inline.h: Same.
20216 * ipa-prop.h: Same.
20217 * ipa-split.c (visit_bb): Same.
20218 * ira-int.h (minmax_set_iter_next): Same.
20219 * loop-invariant.c: Same.
20220 * loop-iv.c: Same.
20221 * lra-eliminations.c: Same.
20222 * lra-int.h: Same.
20223 * lra-lives.c (mark_regno_dead): Same.
20224 * lra-remat.c: Same.
20225 * lra-spills.c: Same.
20226 * lto-streamer.h: Same.
20227 * mem-stats.h: Same.
20228 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
20229 * omp-low.c (omp_clause_aligned_alignment): Same.
20230 * optabs-query.h (get_vcond_eq_icode): Same.
20231 * optabs.h: Same.
20232 * opts.c (wrap_help): Same.
20233 * poly-int.h: Same.
20234 * predict.c (predict_paths_leading_to_edge): Same.
20235 * pretty-print.h: Same.
20236 * profile-count.h: Same.
20237 * read-md.h: Same.
20238 * read-rtl-function.c: Same.
20239 * ree.c: Same.
20240 * reginfo.c: Same.
20241 * regrename.c: Same.
20242 * regrename.h: Same.
20243 * reload.h: Same.
20244 * rtl-iter.h: Same.
20245 * rtl.h (costs_add_n_insns): Same.
20246 * sanopt.c: Same.
20247 * sched-int.h: Same.
20248 * sel-sched-ir.h: Same.
20249 * selftest.h: Same.
20250 * sese.h (vec_find): Same.
20251 * stmt.c: Same.
20252 * target-globals.h: Same.
20253 * tree-affine.c (aff_combination_find_elt): Same.
20254 * tree-affine.h: Same.
20255 * tree-data-ref.h: Same.
20256 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
20257 * tree-predcom.c: Same.
20258 * tree-scalar-evolution.c (find_var_scev_info): Same.
20259 * tree-ssa-alias.h: Same.
20260 * tree-ssa-ccp.c: Same.
20261 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
20262 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
20263 (rewrite_mem_refs): Same.
20264 (execute_sm_if_changed): Same.
20265 (hoist_memory_references): Same.
20266 * tree-ssa-loop-ivopts.c (operator<=): Same.
20267 * tree-ssa-loop.h: Same.
20268 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
20269 * tree-ssa-structalias.c: Same.
20270 * tree-switch-conversion.h (cluster::cluster): Same.
20271 (simple_cluster::simple_cluster): Same.
20272 * tree-vect-patterns.c (type_conversion_p): Same.
20273 * tree-vectorizer.c (dump_stmt_cost): Same.
20274 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
20275 * tree.c (protected_set_expr_location): Same.
20276 * tree.h (desired_pro_or_demotion_p): Same.
20277 (fndecl_built_in_p): Same.
20278 * unique-ptr-tests.cc: Same.
20279 * var-tracking.c (delete_variable_part): Same.
20280 * varasm.c (assemble_real): Same.
20281 (tree_output_constant_def): Same.
20282 * vec.c: Same.
20283 * wide-int-bitmask.h: Same.
20284 * wide-int.h (decompose): Same.
20285
20286 2019-07-09 Richard Biener <rguenther@suse.de>
20287
20288 PR tree-optimization/91114
20289 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
20290 find a vector type isn't fatal.
20291
20292 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20293
20294 * config/aarch64/aarch64-simd.md
20295 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
20296 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
20297 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
20298 (*aarch64_crypto_aese_fused,
20299 *aarch64_crypto_aesd_fused): Update to new definition.
20300 * config/aarch64/aarch64.c
20301 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
20302
20303 2019-07-09 Richard Biener <rguenther@suse.de>
20304
20305 * gimple-match.h (gimple_match_op::resimplify): New.
20306 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
20307 gimple_resimplify4, gimple_resimplify5): Remove.
20308 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
20309 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
20310 Make static.
20311 (gimple_match_op::resimplify): New.
20312 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
20313 according to availability. Use gimple_match_op::resimplify.
20314
20315 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
20316
20317 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
20318
20319 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20320
20321 * config/arm/crypto.md:
20322 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
20323 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
20324 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
20325 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
20326 * config/arm/arm.c
20327 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
20328 * config/arm/aarch-common-protos.h
20329 (aarch_crypto_can_dual_issue): Remove.
20330 * config/arm/aarch-common.c
20331 (aarch_crypto_can_dual_issue): Likewise.
20332 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
20333 * config/arm/cortex-a53.md: Likewise.
20334 * config/arm/cortex-a57.md: Likewise.
20335 * config/arm/iterators.md:
20336 (CRYPTO_BINARY): Redefine.
20337 (CRYPTO_UNARY): Removed.
20338 (CRYPTO_AES, CRYPTO_AESMC): New.
20339
20340 2019-07-09 Richard Biener <rguenther@suse.de>
20341
20342 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
20343 (vn_reference_lookup_3): If the main ref has no access path recorded
20344 but orig_ref has use it to do access-path based disambiguation.
20345 (vn_reference_lookup_pieces): Adjust.
20346 (vn_reference_lookup): Pass down original ref if we valueized.
20347
20348 2019-07-09 Martin Liska <mliska@suse.cz>
20349
20350 * doc/extend.texi: Document influence on loop
20351 optimizers.
20352
20353 2019-07-09 Martin Liska <mliska@suse.cz>
20354
20355 * lto-compress.c (lto_normalized_zstd_level): Do not use
20356 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
20357 of libzstd. One can use 0 as a default compression level.
20358
20359 2019-07-09 Martin Liska <mliska@suse.cz>
20360
20361 * doc/invoke.texi: Add link from -fprofile-dir option.
20362 Use better wording for 'gcno filename'.
20363
20364 2019-07-08 Martin Sebor <msebor@redhat.com>
20365
20366 PR middle-end/71924
20367 PR middle-end/90549
20368 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
20369 comment.
20370 (args_loc_t): New type.
20371 (args_loc_t, locmap_t): same.
20372 (diag_returned_locals): New function.
20373 (is_addr_local): Same.
20374 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
20375 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
20376 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
20377
20378 2019-07-08 Jakub Jelinek <jakub@redhat.com>
20379
20380 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
20381 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
20382 and casts in offset when different, both through gimple stmts
20383 and through trees. Rewritten using loops to minimize code duplication
20384 for each operand.
20385
20386 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
20387
20388 * emit-rtl.c (set_insn_locations): New function moved from...
20389 * function.c (set_insn_locations): ...here.
20390 * ira-emit.c (emit_moves): Propagate location of the first instruction
20391 to the inserted move instructions.
20392 * reg-stack.c (compensate_edge): Set the location if the sequence is
20393 inserted on the edge.
20394 * rtl.h (set_insn_locations): Declare.
20395
20396 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20397
20398 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
20399 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
20400 .machine string.
20401
20402 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20403
20404 PR rtl-optimization/88233
20405 * common.opt (fsplit-wide-types-early): New option.
20406 * common/config/rs6000/rs6000-common.c
20407 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
20408 OPT_LEVELS_ALL.
20409 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
20410 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
20411 flag_split_wide_types_early.
20412 (pass_data_lower_subreg3): New.
20413 (pass_lower_subreg3): New.
20414 (make_pass_lower_subreg3): New.
20415 * passes.def (pass_lower_subreg2): Move after the loop passes.
20416 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
20417 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
20418 the pass pipeline; its previous place is taken by ...
20419 (make_pass_lower_subreg3): ... this.
20420
20421 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20422
20423 * config/s390/s390.c (s390_shift_truncation_mask): Define.
20424 (TARGET_SHIFT_TRUNCATION_MASK): Define.
20425
20426 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20427
20428 * config/s390/constraints.md: Add new jsc constraint.
20429 * config/s390/predicates.md: New predicates.
20430 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
20431 * config/s390/s390.c (s390_valid_shift_count): New function.
20432 (print_shift_count_operand): Use s390_valid_shift_count.
20433 (print_operand): Likewise.
20434 * config/s390/s390.md: Use new predicate.
20435 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
20436 * config/s390/vector.md: Use new predicate.
20437
20438 2019-07-08 Andrew Waterman <andrew@sifive.com>
20439 Jim Wilson <jimw@sifive.com>
20440
20441 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
20442 bitsize instead of BITS_PER_WORD.
20443
20444 2019-07-08 Martin Liska <mliska@suse.cz>
20445
20446 * collect2.c (defined): Revert to before r254460.
20447 (scan_prog_file): Revert to before r254460.
20448
20449 2019-07-08 Richard Biener <rguenther@suse.de>
20450
20451 PR tree-optimization/83518
20452 * tree-ssa-sccvn.c: Include splay-tree.h.
20453 (struct pd_range, struct pd_data): New.
20454 (struct vn_walk_cb_data): Add data to track partial definitions.
20455 (vn_walk_cb_data::~vn_walk_cb_data): New.
20456 (vn_walk_cb_data::push_partial_def): New.
20457 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
20458 (vn_reference_lookup_2): When partial defs are registered give up.
20459 (vn_reference_lookup_3): Track partial defs for memset and
20460 constructor zeroing and for defs from constants.
20461
20462 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20463
20464 * doc/install.texi (bootstrap-Og): Document.
20465
20466 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20467
20468 * config/riscv/pic.md (*local_pic_load_s<mode>)
20469 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
20470 referenced by <mode>, giving...
20471 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
20472 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
20473 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
20474 use <X:MODE> for the mode attribute.
20475
20476 2019-07-07 Jeff Law <law@redhat.com>
20477
20478 PR tree-optimization/91090
20479 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
20480 in handling of ranges to simplify switch statements.
20481
20482 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20483
20484 * config/darwin.c (darwin_override_options): Make a final check on PIC
20485 options.
20486
20487 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20488
20489 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
20490 on for kernel code.
20491
20492 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20493
20494 PR target/91068
20495 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
20496 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
20497 instead of matching them to "l" output operands.
20498
20499 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20500
20501 * config/mips/mips.c (mips_split_move): Zero-initialize addr
20502 and check whether addr.reg is nonnull before using it.
20503
20504 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20505
20506 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
20507 ctx->for_simd_scan_phase simd copy the outer var to the privatized
20508 variable(s). For conditional lastprivate look through outer
20509 GIMPLE_OMP_SCAN context.
20510 (lower_omp_1): For conditional lastprivate look through outer
20511 GIMPLE_OMP_SCAN context.
20512
20513 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
20514 member to combined_into_simd_safelen1.
20515 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
20516 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
20517 clauses if ctx->combined_into_simd_safelen1 put statements after the
20518 predicate conditionalized block rather than into it.
20519
20520 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20521
20522 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
20523 operand 1.
20524 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
20525 Make the choice of <mode> explicit, giving...
20526 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
20527
20528 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20529
20530 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
20531 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
20532 of .md attributes.
20533 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
20534 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
20535 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
20536 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
20537 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
20538 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
20539 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
20540 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
20541 (*avx512f_scatterdi<mode>): Likewise.
20542 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
20543
20544 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20545
20546 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
20547 specify the mode iterator referenced by <mode>, giving...
20548 (*push1_h8300hs_<QHI:mode>): ...this.
20549
20550 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20551
20552 * config/gcn/gcn-valu.md
20553 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
20554 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
20555 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
20556 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
20557 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
20558 but using the _exec comparison patterns.
20559 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
20560 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
20561 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
20562 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
20563 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
20564 but using the _exec comparison patterns.
20565
20566 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20567
20568 * config/arm/sync.md
20569 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
20570 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
20571 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
20572 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
20573 <SIDI:cas_cmp_str>.
20574
20575 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20576
20577 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
20578 (maybe_lookup_ctx): Add forward declaration.
20579 (omp_find_scan): Likewise. Walk into body of simd if composited
20580 with worksharing loop.
20581 (scan_omp_simd_scan): New function.
20582 (scan_omp_1_stmt): Call it.
20583 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
20584 ctx->for_simd_scan_phase.
20585 (lower_rec_input_clauses): Do much less work for inscan reductions
20586 in ctx->for_simd_scan_phase is_simd regions.
20587 (lower_omp_scan): Set is_simd also on simd constructs composited
20588 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
20589 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
20590 emit their body after in simd constructs composited with worksharing
20591 loop.
20592 (lower_omp_for_scan): Handle worksharing loop composited with simd.
20593
20594 * omp-low.c (omp_find_scan): Make static.
20595 (lower_omp_for_scan): Fix order of merge arguments in input phase of
20596 the second loop, var2 represents the first partial sum and so needs
20597 to go before rprivb[ivar].
20598
20599 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
20600
20601 * config/rs6000/rs6000-logue.c: Remove unused code.
20602
20603 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20604
20605 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
20606
20607 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
20608
20609 PR target/90712
20610 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
20611 check with a frame laid out check.
20612
20613 2019-07-05 Richard Biener <rguenther@suse.de>
20614
20615 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
20616 when comparing against a store with possibly the same value.
20617
20618 2019-07-05 Richard Biener <rguenther@suse.de>
20619
20620 PR tree-optimization/91091
20621 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
20622 (walk_non_aliased_vuses): Likewise.
20623 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
20624 (get_continuation_for_phi): New tbaa_p parameter and pass
20625 it down.
20626 (walk_non_aliased_vuses): Likewise.
20627 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
20628 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
20629 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
20630 Likewise.
20631 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
20632 (adjust_offsets_for_equal_base_address): New function.
20633 (vn_reference_lookup_3): Use it to catch more base equivalences.
20634 Handle and pass down tbaa_p flag.
20635 (vn_reference_lookup_pieces): Adjust.
20636 (vn_reference_lookup): Remove alias-set altering, instead pass
20637 down false as tbaa_p.
20638
20639 2019-07-05 Richard Biener <rguenther@suse.de>
20640
20641 PR tree-optimization/91091
20642 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
20643 accesses can happen with -fno-strict-aliasing.
20644
20645 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
20646
20647 * tree-ssa-alias.c (alias_stats): Add
20648 nonoverlapping_component_refs_since_match_p_must_overlap.
20649 (dump_alias_stats): Print it.
20650 (nonoverlapping_component_refs_since_match_p): Add early exit.
20651 (nonoverlapping_component_refs_p): Do not account early exit.
20652
20653 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20654
20655 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
20656 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
20657 (emit_eh_dispatch): Delete.
20658 (lower_catch): Emit the eh_dispatch manually and set the location of
20659 the first catch statement onto it.
20660 (lower_eh_filter): Emit the eh_dispatch manually and set location.
20661 (lower_eh_dispatch): Propagate location.
20662 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
20663 (eliminate_build): Likewise.
20664
20665 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20666
20667 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
20668 phi nodes if possible.
20669 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
20670 location info on the newly created statement.
20671 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
20672 newly created increment if needed.
20673
20674 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20675
20676 PR middle-end/78884
20677 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
20678 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
20679 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
20680 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
20681 ctx->add_safelen1 is set.
20682
20683 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
20684 GOMP_loop_start at the start of second worksharing loop in a scan.
20685 For nowait, don't emit GOMP_loop_end_nowait at the end of first
20686 worksharing loop in a scan even if there are conditional lastprivates,
20687 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
20688
20689 2019-07-04 Jan Hubicka <jh@suse.cz>
20690
20691 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
20692 Fix check for match in the ref walk.
20693
20694 2019-07-04 Martin Liska <mliska@suse.cz>
20695
20696 * tree-ssa-loop-niter.c
20697 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
20698 (estimate_numbers_of_iterations):
20699 Support __builtin_expect_with_probability for analysis
20700 of # of loop iterations.
20701
20702 2019-07-04 Alexandre Oliva <oliva@adacore.com>
20703
20704 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
20705 * except.c: Likewise.
20706 * expr.c (expand_expr_real_1): Reject it.
20707 * gimplify.c (gimplify_expr): Gimplify it, within
20708 TRY_FINALLY_EXPR.
20709 * tree-dump.c (dequeue_and_dump): Dump it.
20710 * tree-pretty-print.c (dump_generic_node): Likewise.
20711 * tree.c (block_may_fallthru): Handle it.
20712 * tree.def (EH_ELSE_EXPR): Introduce it.
20713 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
20714 with GIMPLE_EH_ELSE as try/finally/else.
20715
20716 2019-07-04 Richard Biener <rguenther@suse.de>
20717
20718 PR ipa/91062
20719 * tree-pass.h (execute_all_ipa_transforms): Add a flag
20720 parameter whether to disable GC collection.
20721 * passes.c (execute_one_ipa_transform_pass): Likewise, and
20722 honor it.
20723 (execute_all_ipa_transforms): Likewise and pass it down.
20724 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
20725 collection from applying IPA transforms.
20726 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
20727 from applying IPA transforms.
20728
20729 2019-07-04 Richard Biener <rguenther@suse.de>
20730
20731 PR tree-optimization/90911
20732 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
20733 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
20734 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20735 scalar_loop_scaling.
20736 (vect_transform_loop): Scale scalar loop profile if needed.
20737 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
20738 the loop copy from if-conversion adjust edge probabilities
20739 and scale the vectorized loop body profile, queue the scalar
20740 profile for updating after peeling.
20741
20742 2019-07-04 Jan Hubicka <jh@suse.cz>
20743
20744 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
20745 parameters; return early for must-alias.
20746 (indirect_ref_may_alias_decl_p): Likewise; when establishing
20747 outer types match, try nonoverlapping_component_refs
20748 if must-alias is not obvious.
20749 (indirect_refs_may_alias_p): Likewise.
20750 (refs_may_alias_p_2): Likewise.
20751
20752 2019-07-04 Richard Biener <rguenther@suse.de>
20753
20754 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
20755 argument.
20756 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
20757 globals into...
20758 (struct vn_walk_cb_data): New callback data struct.
20759 (vn_reference_lookup_2): Adjust.
20760 (vn_reference_lookup_3): Likewise.
20761 (vn_reference_lookup_pieces): Likewise.
20762 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
20763 (visit_reference_op_load): Adjust.
20764
20765 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20766
20767 PR tree-optimization/91063
20768 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
20769 stmt from stmts sequence before calling vect_init_vector_1.
20770 Formatting fix.
20771
20772 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20773
20774 PR target/88833
20775 * fwprop.c (reg_single_def_p): New function.
20776 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
20777 (forward_propagate_into): New parameter reg_prop_only
20778 with default value false.
20779 Propagate def's src into loop only if SET_SRC and SET_DEST
20780 of def_set have single definitions.
20781 Likewise if reg_prop_only is set to true.
20782 (fwprop): New param fwprop_addr_p.
20783 Integrate fwprop_addr into fwprop.
20784 (fwprop_addr): Remove.
20785 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
20786 to true.
20787 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
20788 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
20789 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
20790
20791 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20792
20793 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
20794 in worksharing loop scans.
20795
20796 PR tree-optimization/91074
20797 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
20798 temporary.
20799
20800 PR rtl-optimization/90756
20801 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
20802 for VECTOR_TYPE_P.
20803
20804 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
20805
20806 * config/aarch64/aarch64.md: Remove redundant constraints from
20807 define_expand but keep some patterns untouched if they are
20808 specially selected by TARGET_SECONDARY_RELOAD hook.
20809 * config/aarch64/aarch64-sve.md: Likewise.
20810 * config/aarch64/atomics.md: Remove redundant constraints from
20811 define_expand.
20812 * config/aarch64/aarch64-simd.md: Likewise.
20813
20814 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20815
20816 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
20817 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
20818 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
20819 clauses.
20820 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
20821 DARWIN_NOPIE_SPEC.
20822
20823 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20824
20825 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
20826 (STARTFILE_SPEC): Split crt3 into a separate spec.
20827 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
20828 (DARWIN_CRT2_SPEC): New.
20829 (DARWIN_CRT3_SPEC): New.
20830 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
20831 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
20832 (DARWIN_CRT3_SPEC): New.
20833
20834 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
20835
20836 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
20837 Change the RTL attribute "length" from "4" to "*" to allow the
20838 length attribute to be adjusted automatically for prefixed load,
20839 store, and add immediate instructions.
20840 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
20841 Likewise.
20842 (extendsi<mode>2, EXTSI iterator): Likewise.
20843 (movsi_internal1): Likewise.
20844 (movsi_from_sf): Likewise.
20845 (movdi_from_sf_zero_ext): Likewise.
20846 (mov<mode>_internal): Likewise.
20847 (movcc_internal1, QHI iterator): Likewise.
20848 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
20849 (movsf_from_si): Likewise.
20850 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
20851 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
20852 (mov<mode>, FMOVE128 iterator): Likewise.
20853 (movdi_internal64): Likewise.
20854 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
20855 Likewise.
20856 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
20857 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
20858 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
20859 (vsx_splat_v4sf): Likewise.
20860
20861 2019-07-03 Mark Wielaard <mark@klomp.org>
20862
20863 PR debug/90981
20864 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
20865 DW_AT_addr_base if there is actually a .debug_addr section with
20866 addresses.
20867 (output_addr_table): Add DWARF5 table header generation here after
20868 checking there are actually any addresses from...
20869 (dwarf2out_finish): ...here.
20870
20871 2019-07-03 Richard Biener <rguenther@suse.de>
20872
20873 PR middle-end/91069
20874 * match.pd (vec_perm -> bit_insert): Fix element read from
20875 first vector.
20876
20877 2019-07-03 Martin Liska <mliska@suse.cz>
20878
20879 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
20880 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
20881 condition.
20882 * generic-match-head.c: Include dbgcnt.h.
20883 * gimple-match-head.c: Likewise.
20884
20885 2019-07-03 Martin Liska <mliska@suse.cz>
20886
20887 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
20888 (GCOV_COUNTER_V_TOPN): New.
20889 (GCOV_COUNTER_V_INDIR): Use _topn.
20890 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
20891 (GCOV_TOPN_VALUES): New.
20892 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
20893 (GCOV_TOPN_VALUES_COUNTERS): New.
20894 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
20895 * tree-profile.c:
20896 (gimple_init_gcov_profiler): Rename variables from one_value
20897 to topn_values.
20898 (gimple_gen_one_value_profiler): Remove.
20899 (gimple_gen_topn_values_profiler): New function.
20900 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
20901 names instead of SINGLE_VALUE.
20902 (stream_out_histogram_value): Likewise.
20903 (stream_in_histogram_value): Likewise.
20904 (get_most_common_single_value): Likewise.
20905 (gimple_divmod_fixed_value_transform): Likewise.
20906 (gimple_stringops_transform): Likewise.
20907 (gimple_divmod_values_to_profile): Likewise.
20908 (gimple_stringops_values_to_profile): Likewise.
20909 (gimple_find_values_to_profile): Likewise.
20910 * value-prof.h (enum hist_type): Rename to TOPN.
20911 (gimple_gen_one_value_profiler): Remove.
20912 (gimple_gen_topn_values_profiler): New.
20913
20914 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
20915
20916 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
20917 if it has the DW_AT_data_member_location attribute.
20918
20919 2019-07-03 Richard Biener <rguenther@suse.de>
20920
20921 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
20922 dumping.
20923
20924 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
20925
20926 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
20927 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
20928 (tlsdesc_small_sve_<mode>): Likewise.
20929
20930 2019-07-03 Martin Liska <mliska@suse.cz>
20931
20932 * Makefile.in: Define ZSTD_LIB.
20933 * common.opt: Adjust compression level
20934 to support also zstd levels.
20935 * config.in: Regenerate.
20936 * configure: Likewise.
20937 * configure.ac: Add --with-zstd and --with-zstd-include options
20938 and detect ZSTD.
20939 * doc/install.texi: Mention zstd dependency.
20940 * gcc.c: Print supported LTO compression algorithms.
20941 * lto-compress.c (lto_normalized_zstd_level): Likewise.
20942 (lto_compression_zstd): Likewise.
20943 (lto_uncompression_zstd): Likewise.
20944 (lto_end_compression): Dispatch in between zlib and zstd.
20945 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
20946 (lto_uncompression_zlib): Make it static.
20947 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
20948 * lto-section-in.c (lto_get_section_data): Pass info
20949 about used compression.
20950 * lto-streamer-out.c: By default use zstd when possible.
20951 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
20952 (TV_IPA_LTO_COMPRESS): Likewise for compression.
20953
20954 2019-07-03 Martin Liska <mliska@suse.cz>
20955
20956 * lto-section-in.c (lto_get_section_data): Add "lto" section.
20957 * lto-section-out.c (lto_destroy_simple_output_block): Never
20958 compress LTO_section_lto section.
20959 * lto-streamer-out.c (produce_asm): Do not set major_version
20960 and minor_version.
20961 (lto_output_toplevel_asms): Likewise.
20962 (produce_lto_section): New function.
20963 (lto_output): Call produce_lto_section.
20964 (lto_write_mode_table): Do not set major_version and
20965 minor_version.
20966 (produce_asm_for_decls): Likewise.
20967 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
20968 type.
20969 (struct lto_header): Remove.
20970 (struct lto_section): New struct.
20971 (struct lto_simple_header): Do not inherit from lto_header.
20972 (struct lto_file_decl_data): Add lto_section_header field.
20973
20974 2019-07-03 Martin Liska <mliska@suse.cz>
20975
20976 * lra-eliminations.c (eliminate_regs_in_insn): Remove
20977 dead assignemts.
20978 * reg-stack.c (check_asm_stack_operands): Likewise.
20979 * tree-ssa-structalias.c (create_function_info_for): Likewise.
20980 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
20981 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
20982 force_expand_binop.
20983
20984 2019-07-03 Martin Liska <mliska@suse.cz>
20985
20986 PR tree-optimization/90892
20987 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
20988 in string constants.
20989
20990 2019-07-03 Martin Liska <mliska@suse.cz>
20991
20992 PR middle-end/90899
20993 * multiple_target.c (create_dispatcher_calls): Add to comdat
20994 group only if set for ifunc.
20995
20996 2019-07-03 Martin Liska <mliska@suse.cz>
20997
20998 PR target/88056
20999 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21000 Define local_object_name in outer scope in order to handle
21001 use-after-scope issue.
21002
21003 2019-07-03 Martin Liska <mliska@suse.cz>
21004
21005 * common.opt: Add fprofile-note.
21006 * coverage.c (coverage_init): Append the option
21007 to bbg_file_name.
21008 * doc/invoke.texi: Document -fprofile-note.
21009
21010 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21011
21012 PR tree-optimization/91033
21013 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21014 vect_analyze_data_refs): Add bool * arguments.
21015 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21016 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21017 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21018 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21019 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21020 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21021 vect_analyze_data_refs caller.
21022
21023 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21024 clause.
21025 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21026 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21027 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21028 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21029 OMP_CLAUSE__SCANTEMP_ entry.
21030 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21031 * tree-pretty-print.c (dump_omp_clause): Likewise.
21032 * tree-nested.c (convert_nonlocal_omp_clauses,
21033 convert_local_omp_clauses): Likewise.
21034 * omp-general.h (struct omp_for_data): Add have_scantemp and
21035 have_nonctrl_scantemp members.
21036 * omp-general.c (omp_extract_for_data): Initialize them.
21037 * omp-low.c (struct omp_context): Add scan_exclusive member.
21038 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21039 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21040 ctx->scan_exclusive.
21041 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21042 of !ctx->scan_inclusive.
21043 (lower_rec_input_clauses): Simplify gimplification of dtors using
21044 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21045 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21046 loops. Don't add barrier for reduction_omp_orig_ref if
21047 ctx->scan_??xclusive.
21048 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21049 (lower_omp_scan): Use ctx->scan_exclusive instead
21050 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21051 reductions. Use new_vard != new_var instead of repeated
21052 omp_is_reference calls.
21053 (omp_find_scan, lower_omp_for_scan): New functions.
21054 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21055 inscan reductions.
21056 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21057 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21058 and fd->have_scantemp.
21059
21060 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21061 on worksharing loop propagate it as shared clause to containing
21062 combined parallel.
21063
21064 * omp-expand.c (expand_omp_for_static_nochunk,
21065 expand_omp_for_static_chunk): For nowait worksharing loop with
21066 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21067 at the end.
21068
21069 2019-07-02 qing zhao <qing.zhao@oracle.com>
21070
21071 PR preprocessor/90581
21072 * doc/cppopts.texi: Add document for -fmax-include-depth.
21073 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21074
21075 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21076
21077 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21078 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21079 (mmx_packssdw): Ditto.
21080 (mmx_punpckhbw): Ditto.
21081 (mmx_punpcklbw): Ditto.
21082 (mmx_punpckhwd): Ditto.
21083 (mmx_punpcklwd): Ditto.
21084 (mmx_punpckhdq): Ditto.
21085 (mmx_punpckldq): Ditto.
21086 (*vec_dupv4hi): Ditto.
21087 (*vec_dupv2si): Ditto.
21088 (mmx_pmovmskb): Ditto.
21089 * config/i386/sse.md (sse_cvtpi2ps): Use
21090 TARGET_SSE2 && SSE_REG_P in split condition.
21091 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21092 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21093 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21094 (ssse3_pshufbv8qi3): Ditto.
21095 (ssse3_palignrdi): Ditto.
21096
21097 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21098
21099 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21100 with inlined save and restore.
21101
21102 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21103
21104 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21105 to be inserted on single successor edge of the entry block. Then call
21106 commit_edge_insertions instead of inserting the instructions manually.
21107 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21108 RTL expansion and rebuild jump labels chain.
21109
21110 2019-07-02 Richard Biener <rguenther@suse.de>
21111
21112 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21113 TI_CHREC_KNOWN.
21114 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21115 Define here.
21116 * tree.c (build_common_tree_nodes): Initialize them.
21117 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21118 Make declarations comments.
21119 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21120 chrec_known): Remove definitions.
21121 (initialize_scalar_evolutions_analyzer): Remove.
21122 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21123 * tree-streamer.c (preload_common_nodes): Do not preload
21124 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21125
21126 2019-07-02 Jan Hubicka <jh@suse.cz>
21127
21128 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21129 sanity check.
21130
21131 2019-07-02 Jan Hubicka <jh@suse.cz>
21132
21133 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
21134 to ..
21135 (nonoverlapping_component_refs_since_match_p): ... this one;
21136 handle also non-decl bases; return -1 if search gave up.
21137 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
21138 nonoverlapping_component_refs_of_decl_p_no_alias to
21139 nonoverlapping_component_refs_since_match_p_may_alias,
21140 nonoverlapping_component_refs_since_match_p_no_alias.
21141 (dump_alias_stats): Update dumping.
21142 (aliasing_matching_component_refs_p): Break out from ...;
21143 dispatch to nonoverlapping_component_refs_for_decl_p
21144 and nonoverlapping_component_refs_since_match_p.
21145 (aliasing_component_refs_p): ... here; call
21146 nonoverlapping_component_refs_p in scenarios where we can not
21147 precisely determine base match.
21148 (decl_refs_may_alias_p): Use
21149 nonoverlapping_component_refs_since_match_p.
21150 (indirect_ref_may_alias_decl_p): Do not call
21151 nonoverlapping_component_refs_p.
21152 (indirect_refs_may_alias_p): Likewise.
21153
21154 2019-07-02 Jan Hubicka <jh@suse.cz>
21155
21156 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
21157 to clobber of return value.
21158
21159 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21160
21161 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
21162 for is_neon_type instructions that have not already been categorized.
21163
21164 2019-07-02 Richard Biener <rguenther@suse.de>
21165
21166 PR tree-optimization/58483
21167 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
21168 for MEM_REF base hashing.
21169 (equal_mem_array_ref_p): Likewise for base comparison.
21170
21171 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21172
21173 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
21174 parameterized name.
21175 (signbit<mode>2): Use that name. Simplify.
21176
21177 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
21178
21179 PR middle-end/66726
21180 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
21181 Tune heuristic from PR71016 to allow MIN / MAX.
21182
21183 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21184
21185 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
21186 parameterized name.
21187 (abs<mode>2): Use that name. Simplify.
21188
21189 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21190
21191 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
21192 parameterized name.
21193 (neg<mode>2): Use that name. Simplify.
21194
21195 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21196
21197 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
21198 name.
21199 (abs<mode>2): Use that name. Simplify.
21200
21201 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21202
21203 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
21204 name.
21205 (neg<mode>2): Use that name. Simplify.
21206
21207 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
21208
21209 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
21210 ("enabled" attribute): Handle sse_noavx isa attribute.
21211 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
21212 Use TARGET_SSE && SSE_REGNO_P in split condition.
21213 (*vec_dupv2sf): Ditto.
21214
21215 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21216
21217 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
21218 name.
21219 (floatsi<mode>2): Use that name. Simplify.
21220
21221 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21222
21223 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
21224 parameterized name.
21225 (extenddf<mode>2_vsx): Make this a parameterized name.
21226 (extenddf<mode>2): Use those names. Simplify.
21227
21228 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21229
21230 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
21231 name.
21232 (eh_return): Use that name. Simplify.
21233
21234 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21235
21236 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
21237 (doloop_end): Use that name. Simplify.
21238
21239 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21240
21241 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
21242 parameterized name.
21243 (indirect_jump): Use that name. Simplify.
21244
21245 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21246
21247 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
21248 parameterized name.
21249 (abs<mode>2): Use that name. Simplify.
21250
21251 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21252
21253 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
21254 parameterized name.
21255 (fix_trunc<mode>si2): Use that name. Simplify.
21256
21257 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21258
21259 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
21260 (allocate_stack): Use that name. Simplify.
21261
21262 2019-07-01 Martin Sebor <msebor@redhat.com>
21263
21264 PR middle-end/90923
21265 * hash-map.h (hash_map::put): On insertion invoke element ctor.
21266 (hash_map::get_or_insert): Same. Reformat comment.
21267 * hash-set.h (hash_set::add): On insertion invoke element ctor.
21268 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21269 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21270 * hash-table.h (hash_table::operator=): Prevent copy assignment.
21271 (hash_table::hash_table (const hash_table&)): Use copy ctor
21272 instead of assignment to copy elements.
21273
21274 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
21275 John David Anglin <danglin@gcc.gnu.org>
21276
21277 PR target/90963
21278 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
21279 using saved frame pointer.
21280
21281 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
21282
21283 PR middle-end/64242
21284 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
21285 Add frame clobber and schedule blockage.
21286
21287 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
21288
21289 * doc/invoke.texi (Link Options): Further editorial changes to
21290 -flinker-output docs.
21291
21292 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21293
21294 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
21295 Load both operands of a PLUS into registers separately.
21296
21297 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
21298
21299 * config/s390/vector.md: Fix shift count operand printing.
21300
21301 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21302
21303 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
21304
21305 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21306
21307 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
21308 Use recog_data to test for an output operand.
21309
21310 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21311
21312 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
21313 exclude any others that are disparaged or that are bound to need
21314 a reload or spill.
21315 (ira_get_dup_out_num): Expand comment.
21316
21317 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21318
21319 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
21320 constraint string for each operand/alternative combo. Only handle
21321 '%' at the start of constraint strings, and look for it outside
21322 the main loop.
21323
21324 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21325
21326 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
21327 alternative_mask instead of HARD_REG_SET to represent a
21328 bitmask of alternatives.
21329 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21330 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
21331
21332 2019-07-01 Martin Liska <mliska@suse.cz>
21333
21334 * edit-context.c (test_applying_fixits_unreadable_file): Do not
21335 use () for a constructor call.
21336 (test_applying_fixits_line_out_of_range): Likewise.
21337 * ggc-page.c (alloc_page): Use (void *) for %p printf format
21338 argument.
21339 (free_page): Likewise.
21340
21341 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
21342
21343 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
21344 parameter names to match usage (no functional change).
21345 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
21346
21347 2019-07-01 Richard Biener <rguenther@suse.de>
21348
21349 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
21350 pass parameter.
21351 (pass_fre::execute): Honor it.
21352 * passes.def: Adjust pass_fre invocations to allow iterating,
21353 add non-iterating pass_fre before late threading/dom.
21354
21355 2019-07-01 Richard Biener <rguenther@suse.de>
21356
21357 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
21358 TARGET_MEM_REF handling to also handle address-taken ones.
21359
21360 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
21361
21362 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21363 hardware attributes): Document avx512vp2intersect.
21364
21365 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21366
21367 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
21368 (abs<mode>2): New expander.
21369 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
21370 Use CODE_FOR_ssse3_absv8qi2.
21371 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
21372 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
21373
21374 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21375
21376 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
21377 to sse, sse_noavx and avx. Update all uses.
21378
21379 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21380
21381 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
21382 (*mmx_<plusminus_insn><mode>3): Ditto.
21383 (*mmx_mulv4hi3"): Ditto.
21384 (*mmx_smulv4hi3_highpart): Ditto.
21385 (*mmx_umulv4hi3_highpart): Ditto.
21386 (*mmx_pmaddwd): Ditto.
21387 (*sse2_umulv1siv1di3): Ditto.
21388 (*mmx_<code>v4hi3): Ditto.
21389 (*mmx_<code>v8qi3): Ditto.
21390 (mmx_ashr<mode>3): Ditto.
21391 ("mmx_<shift_insn><mode>3): Ditto.
21392 (*mmx_eq<mode>3): Ditto.
21393 (mmx_gt<mode>3): Ditto.
21394 (mmx_andnot<mode>3): Ditto.
21395 (*mmx_<code><mode>3): Ditto.
21396 (*mmx_pinsrw): Ditto.
21397 (*mmx_pextrw): Ditto.
21398 (mmx_pshufw_1): Ditto.
21399 (*mmx_uavgv8qi3): Ditto.
21400 (*mmx_uavgv4hi3): Ditto.
21401 ("mmx_psadbw): Ditto.
21402 * config/i386/sse.md (sse_cvtps2pi): Ditto.
21403 (sse_cvttps2pi): Ditto.
21404 (ssse3_pmaddubsw): Ditto.
21405 (*ssse3_pmulhrswv4hi3): Ditto.
21406 (ssse3_psign<mode>3): Ditto.
21407
21408 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
21409
21410 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
21411 adjustment for bit-fields to all aggregate types.
21412
21413 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
21414
21415 * config/rs6000/predicates.md (pcrel_address): Use
21416 SYMBOL_REF_LOCAL_P to determine if a label is local.
21417 (pcrel_external_address): New predicate.
21418 (non_prefixed_mem_operand): Delete, predicate not used.
21419 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
21420 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
21421 addressing.
21422 (SYMBOL_REF_PCREL_P): Likewise.
21423
21424 PR target/91009
21425 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
21426 alternative.
21427 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
21428 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
21429 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
21430
21431 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21432
21433 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
21434 override on extra_headers.
21435
21436 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21437
21438 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
21439 * config/darwin-driver.c (darwin_default_min_version): Remove newline
21440 from warning.
21441 (darwin_driver_init): Likewise.
21442
21443 2019-06-28 Jan Beulich <jbeulich@suse.com>
21444
21445 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21446 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
21447 Eliminate redundant alternative.
21448
21449 2019-06-28 Jan Beulich <jbeulich@suse.com>
21450
21451 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21452 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
21453 Use vector_operand.
21454
21455 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
21456
21457 * config/arc/arc.c (arc_rtx_costs): All short instructions are
21458 having a lower cost regardless of the speed option.
21459
21460 2019-06-28 Jan Beulich <jbeulich@suse.com>
21461
21462 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
21463 vector_operand plus, on both alternatives, "Bm" constraint.
21464
21465 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
21466
21467 * config/arm/arm.md: Remove redundant constraints from
21468 define_expand but leave reload_inm and reload_outm patterns
21469 untouched since they need special constraints to work.
21470 * config/arm/arm-fixed.md: Remove redundant constraints from
21471 define_expand.
21472 * config/arm/iwmmxt.md: Likewise.
21473 * config/arm/neon.md: Likewise.
21474 * config/arm/sync.md: Likewise.
21475 * config/arm/thumb1.md: Likewise.
21476 * config/arm/vec-common.md: Likewise.
21477
21478 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
21479
21480 * doc/install.texi: Document --disable-tm-clone-registry.
21481
21482 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21483
21484 PR c++/91024
21485 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
21486 statements.
21487
21488 PR tree-optimization/91010
21489 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
21490 return true. Otherwise, don't call operand_equal_p if offset1 or
21491 offset2 is NULL and just return false.
21492
21493 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21494
21495 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
21496 user-specified float mode choice for kernel mode code.
21497
21498 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21499
21500 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
21501 spec.
21502
21503 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21504
21505 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
21506 use longcall for 64b code.
21507
21508 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
21509
21510 * builtins.c (get_memory_rtx): Fix comment.
21511 * optabs.def (movmem_optab): Change to cpymem_optab.
21512 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
21513 (emit_block_move_hints): Change movmem to cpymem.
21514 * defaults.h: Change movmem to cpymem.
21515 * targhooks.c (get_move_ratio): Change movmem to cpymem.
21516 (default_use_by_pieces_infrastructure_p): Ditto.
21517 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
21518 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
21519 to cpymem.
21520 * config/aarch64/aarch64.h: Change movmem to cpymem.
21521 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
21522 * config/alpha/alpha.h: Change movmem to cpymem in comment.
21523 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
21524 movmem to cpymem.
21525 * config/arc/arc-protos.h: Change movmem to cpymem.
21526 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
21527 * config/arc/arc.h: Change movmem to cpymem in comment.
21528 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
21529 * config/arm/arm-protos.h: Change movmem to cpymem in names.
21530 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
21531 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
21532 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
21533 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
21534 * config/avr/avr-protos.h: Change movmem to cpymem.
21535 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
21536 avr_out_movmem): Change movmem to cpymem.
21537 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
21538 Change movmem to cpymem.
21539 * config/bfin/bfin-protos.h: Change movmem to cpymem.
21540 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
21541 Change movmem to cpymem.
21542 * config/bfin/bfin.h: Change movmem to cpymem in comment.
21543 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
21544 * config/c6x/c6x-protos.h: Change movmem to cpymem.
21545 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
21546 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
21547 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
21548 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
21549 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
21550 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
21551 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
21552 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
21553 expand_small_cpymem_or_setmem,
21554 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
21555 expand_set_or_cpymem_constant_prologue,
21556 ix86_expand_set_or_cpymem): Change movmem to cpymem.
21557 * config/i386/i386-protos.h: Change movmem to cpymem.
21558 * config/i386/i386.h: Change movmem to cpymem in comment.
21559 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
21560 (setmem<mode>): Change expansion function name.
21561 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
21562 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
21563 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
21564 * config/m32c/m32c-protos.h: Change movmem to cpymem.
21565 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
21566 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
21567 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
21568 to cpymem.
21569 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
21570 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
21571 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
21572 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
21573 Change movmem to cpymem.
21574 * config/mips/mips.h: Change movmem to cpymem.
21575 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
21576 * config/nds32/nds32-memory-manipulation.c
21577 (nds32_expand_movmemsi_loop_unknown_size,
21578 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
21579 nds32_expand_movmemsi_unroll,
21580 nds32_expand_movmemsi): Change movmem to cpymem.
21581 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
21582 * config/nds32/nds32-protos.h: Change movmem to cpymem.
21583 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
21584 (pa_adjust_insn_length): Change call to compute_movmem_length.
21585 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
21586 movmemdi, movmemdi_prereload,
21587 movmemdi_postreload): Change movmem to cpymem.
21588 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
21589 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
21590 * config/riscv/riscv.c: Change movmem to cpymem in comment.
21591 * config/riscv/riscv.h: Change movmem to cpymem.
21592 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
21593 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
21594 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
21595 movmem to cpymem.
21596 * config/s390/s390-protos.h: Change movmem to cpymem.
21597 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
21598 s390_expand_insv): Change movmem to cpymem.
21599 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
21600 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
21601 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
21602 * config/sparc/sparc.h: Change movmem to cpymem in comment.
21603 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
21604 for nonexistent function.
21605 * config/vax/vax.h: Change movmem to cpymem in comment.
21606 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
21607 * config/visium/visium.h: Change movmem to cpymem in comment.
21608 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
21609 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
21610 * doc/md.texi: Change movmem to cpymem and update description to match.
21611 * doc/rtl.texi: Change movmem to cpymem.
21612 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
21613 * doc/tm.texi: Regenerate.
21614
21615 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
21616
21617 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
21618 -fvariable-expansion-in-unroller by default.
21619 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
21620 default for Power.
21621
21622 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
21623
21624 Revert
21625 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21626 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21627
21628 * config.gcc(rs6000-*-*): Define target_gtfiles.
21629
21630 2019-06-27 Jan Hubicka <jh@suse.cz>
21631
21632 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
21633 (add_type_duplicate): When odr hash is not allocated, to nothing.
21634 (odr_based_tbaa_p): New function.
21635 (set_type_canonical_for_odr_type): New function.
21636 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
21637 set_type_canonical_for_odr_type): New.
21638 * tree.c (gimple_canonical_types_compatible_p): ODR types with
21639 ODR based TBAA are not equivalent to non-ODR types.
21640
21641 2019-06-27 Martin Liska <mliska@suse.cz>
21642
21643 PR tree-optimization/90974
21644 PR rtl-optimization/90975
21645 PR rtl-optimization/90976
21646 PR target/91016
21647 PR tree-optimization/91017
21648 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
21649 unused tmp.
21650 * lra.c (lra_set_insn_recog_data): Remove a leftover from
21651 initial commit of IRA.
21652 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
21653 of op0 and op1.
21654 * tree-vect-loop.c (vect_create_epilog_for_reduction):
21655 Remove unused mode1.
21656 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
21657 to new_stmt_info.
21658
21659 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21660
21661 PR target/90991
21662 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
21663 instead of register_operand for operands[1], add m to its constraints
21664 if operands[2] uses "C" constraint. Ensure in condition that if
21665 operands[2] is not 0, then operands[1] is not a MEM. For last two
21666 alternatives, use unaligned loads instead of aligned if operands[1] is
21667 misaligned_operand.
21668
21669 2019-06-27 Martin Liska <mliska@suse.cz>
21670
21671 * asan.c (asan_emit_allocas_unpoison): Remove obviously
21672 dead assignments.
21673 * bt-load.c (move_btr_def): Likewise.
21674 * builtins.c (expand_builtin_apply_args_1): Likewise.
21675 (expand_builtin_apply): Likewise.
21676 * cfgexpand.c (expand_asm_stmt): Likewise.
21677 (construct_init_block): Likewise.
21678 * cfghooks.c (verify_flow_info): Likewise.
21679 * cfgloopmanip.c (remove_path): Likewise.
21680 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
21681 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
21682 * combine.c (simplify_if_then_else): Likewise.
21683 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21684 (choose_basereg): Likewise.
21685 (ix86_expand_prologue): Likewise.
21686 (ix86_preferred_output_reload_class): Likewise.
21687 * cselib.c (cselib_record_sets): Likewise.
21688 * df-scan.c (df_scan_alloc): Likewise.
21689 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
21690 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
21691 * emit-rtl.c (try_split): Likewise.
21692 * graphite-scop-detection.c (assign_parameter_index_in_region):
21693 Likewise.
21694 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
21695 * ira-color.c (setup_profitable_hard_regs): Likewise.
21696 * ira.c (rtx_moveable_p): Likewise.
21697 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21698 * read-rtl.c (read_subst_mapping): Likewise.
21699 * regrename.c (scan_rtx): Likewise.
21700 * reorg.c (fill_slots_from_thread): Likewise.
21701 * tree-inline.c (tree_function_versioning): Likewise.
21702 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
21703 * tree-ssa-sink.c (statement_sink_location): Likewise.
21704 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
21705 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
21706 (vect_create_epilog_for_reduction): Likewise.
21707 * tree.c (build_nonstandard_integer_type): Likewise.
21708
21709 2019-06-27 Richard Biener <rguenther@suse.de>
21710
21711 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
21712
21713 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
21714
21715 PR tree-optimization/89772
21716 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
21717 out-of-bound accesses checking.
21718
21719 2019-06-27 Martin Liska <mliska@suse.cz>
21720
21721 PR tree-optimization/91014
21722 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
21723 when LHS is NULL_TREE.
21724
21725 2019-06-27 Martin Liska <mliska@suse.cz>
21726
21727 * symbol-summary.h (traverse): Pass
21728 argument a to the call of callback.
21729 (gt_ggc_mx): Mark arguments as unused.
21730 (gt_pch_nx): Likewise.
21731
21732 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
21733
21734 PR target/62147
21735 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
21736 finiteness.
21737
21738 2019-06-26 Jeff Law <law@redhat.com>
21739
21740 PR tree-optimization/90883
21741 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
21742 (delete_dead_or_redundant_assignment): Likewise.
21743
21744 PR tree-optimization/90883
21745 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
21746 * tree-ssa-dse.c: Update various comments to distinguish between
21747 dead and redundant stores.
21748 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
21749 (dse_optimize_redundant_stores): New function.
21750 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
21751 Distinguish between dead and redundant calls in dump output. All
21752 callers updated.
21753 (delete_dead_or_redundant_assignment): Similarly for assignments.
21754 (dse_optimize_stmt): Handle _CHK variants. For statements which
21755 store 0 into multiple memory locations, try to prove a subsequent
21756 store is redundant.
21757
21758 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
21759
21760 PR target/89021
21761 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
21762 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
21763
21764 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21765
21766 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
21767 (branch_islands): New extern.
21768 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
21769 * config/rs6000/rs6000.c: .. here.
21770
21771 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21772
21773 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
21774 (powerpc*-*-*) ... to here.
21775
21776 2019-06-26 Jeff Law <law@redhat.com>
21777
21778 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
21779 memcpy, memmove and memset builtins.
21780 (maybe_trim_memstar_call): Likewise.
21781
21782 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21783
21784 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
21785
21786 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21787
21788 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21789
21790 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21791
21792 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
21793 declaration.
21794 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
21795 "static".
21796 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
21797 declaration.
21798
21799 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21800
21801 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
21802
21803 2019-06-26 Richard Biener <rguenther@suse.de>
21804
21805 PR ipa/90982
21806 * tree-inline.c (remap_ssa_name): Copy SSA range info.
21807
21808 2019-06-26 Richard Biener <rguenther@suse.de>
21809
21810 * lto-streamer.h (lto_bitmap_alloc): Remove.
21811 (lto_bitmap_free): Likewise.
21812 * lto-streamer.c (lto_bitmap_alloc): Remove.
21813 (lto_bitmap_free): Likewise.
21814 (lto_obstack): Likewise.
21815 (lto_obstack_initialized): Likewise.
21816 * lto-streamer-out.c (lto_output): Use own obstack for local
21817 bitmap, free it consistently.
21818
21819 2019-06-26 Jakub Jelinek <jakub@redhat.com>
21820
21821 PR target/90991
21822 * config/i386/sse.md
21823 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
21824 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
21825 insns if operands[2] is misaligned_operand.
21826
21827 2019-06-26 Li Jia He <helijia@linux.ibm.com>
21828
21829 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
21830 TARGET_POWERPC64.
21831 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
21832 to GPR.
21833
21834 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21835
21836 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
21837
21838 2019-06-26 Martin Liska <mliska@suse.cz>
21839
21840 PR tree-optimization/90973
21841 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
21842 epilogue_cost_vec instead of prologue_cost_vec for
21843 a epilogue cost.
21844
21845 2019-06-26 Martin Liska <mliska@suse.cz>
21846
21847 * bb-reorder.c (connect_better_edge_p): Add missing else
21848 statement in the middle of if-else statements.
21849
21850 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
21851 H.J. Lu <hongjiu.lu@intel.com>
21852 Olga Makhotina <olga.makhotina@intel.com>
21853
21854 * common/config/i386/i386-common.c
21855 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
21856 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
21857 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
21858 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
21859 (ix86_handle_option): Handle -mavx512vp2intersect.
21860 * config/i386/avx512vp2intersectintrin.h: New.
21861 * config/i386/avx512vp2intersectvlintrin.h: New.
21862 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
21863 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21864 AVX512VP2INTERSECT.
21865 * config/i386/i386-builtin-types.def: Add new types.
21866 * config/i386/i386-builtin.def: Add new builtins.
21867 * config/i386/i386-builtins.c: (enum processor_features): Add
21868 F_AVX512VP2INTERSECT.
21869 (static const _isa_names_table isa_names_table): Ditto.
21870 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21871 __AVX512VP2INTERSECT__.
21872 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
21873 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
21874 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
21875 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
21876 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
21877 * config/i386/i386-options.c (ix86_target_string): Add
21878 -mavx512vp2intersect.
21879 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
21880 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
21881 P2HImode and P2QImode.
21882 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
21883 number for P2QImode and P2HImode.
21884 (ix86_regmode_natural_size): New function.
21885 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
21886 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
21887 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
21888 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
21889 * config/i386/i386.opt: Add -mavx512vp2intersect.
21890 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
21891 avx512vp2intersectvlintrin.h.
21892 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
21893 (define_mode_iterator VI48_AVX512VP2VL): New.
21894 (avx512vp2intersect_2intersect<mode>,
21895 avx512vp2intersect_2intersectv16si): New define_insn patterns.
21896 * config.gcc: Add avx512vp2intersectvlintrin.h and
21897 avx512vp2intersectintrin.h to extra_headers.
21898 * doc/invoke.texi: Document -mavx512vp2intersect.
21899
21900 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
21901
21902 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
21903
21904 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21905
21906 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
21907 savres_routine_syms, savres_routine_name, morestack_ref,
21908 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21909 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21910 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21911 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21912 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21913 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21914 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21915 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21916 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21917 get_stack_clash_protection_probe_interval,
21918 get_stack_clash_protection_guard_size,
21919 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21920 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21921 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21922 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21923 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21924 gen_frame_mem_offset, rs6000_savres_routine_name,
21925 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21926 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21927 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21928 rs6000_global_entry_point_prologue_needed_p,
21929 rs6000_get_separate_components, rs6000_components_for_bb,
21930 rs6000_disqualify_components, rs6000_emit_prologue_components,
21931 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21932 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21933 rs6000_output_savres_externs, rs6000_output_function_prologue,
21934 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21935 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21936 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21937 rs6000_output_function_epilogue, gen_add3_const,
21938 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21939 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21940 to rs6000-logue.c.
21941 (machine_function): Moved to rs6000.h.
21942 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
21943 rs6000-internal.h.
21944 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
21945 savres_routine_syms, savres_routine_name, morestack_ref,
21946 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21947 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21948 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21949 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21950 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21951 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21952 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21953 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21954 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21955 get_stack_clash_protection_probe_interval,
21956 get_stack_clash_protection_guard_size,
21957 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21958 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21959 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21960 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21961 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21962 gen_frame_mem_offset, rs6000_savres_routine_name,
21963 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21964 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21965 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21966 rs6000_global_entry_point_prologue_needed_p,
21967 rs6000_get_separate_components, rs6000_components_for_bb,
21968 rs6000_disqualify_components, rs6000_emit_prologue_components,
21969 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21970 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21971 rs6000_output_savres_externs, rs6000_output_function_prologue,
21972 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21973 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21974 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21975 rs6000_output_function_epilogue, gen_add3_const,
21976 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21977 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21978 to here from rs6000.c.
21979 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
21980 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
21981 quad_address_offset_p) Moved to here from rs6000.c.
21982 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
21983 * config/config.gcc: Add new source file rs6000-logue.c to garbage
21984 collector.
21985
21986 2019-06-25 Martin Liska <mliska@suse.cz>
21987
21988 * hash-table.c (hashtab_chk_error): Move here from ...
21989 * hash-table.h (hashtab_chk_error): ... here.
21990
21991 2019-06-25 Martin Liska <mliska@suse.cz>
21992
21993 PR tree-optimization/90978
21994 * df-scan.c (df_update_entry_block_defs): Remove dead else
21995 branch.
21996 (df_update_exit_block_uses): Likewise.
21997
21998 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
21999 Andrew Stubbs <ams@codesourcery.com>
22000
22001 * config.gcc (thread_file): Set to gcn for AMD GCN.
22002 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22003 (TARGET_EMUTLS_VAR_INIT): New hook.
22004
22005 2019-06-25 Martin Jambor <mjambor@suse.cz>
22006
22007 PR ipa/90939
22008 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22009
22010 2019-06-25 Richard Biener <rguenther@suse.de>
22011
22012 PR tree-optimization/90930
22013 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22014 into parallel form in the last pass instance.
22015
22016 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22017
22018 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22019 (arc_legitimize_pic_address): Simplify and cleanup the function.
22020 (SYMBOLIC_CONST): Remove.
22021 (prepare_pic_move): Likewise.
22022 (prepare_move_operands): Handle complex mov cases here.
22023 (arc_legitimize_address_0): Remove call to
22024 arc_legitimize_pic_address.
22025 (arc_legitimize_address): Remove call to
22026 arc_legitimize_tls_address.
22027 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22028 (movhi_insn): Likewise.
22029
22030 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22031
22032 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22033 PTRDIFF_TYPE.
22034 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22035 format of "__intN" types for UINTMAX_TYPE.
22036 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22037 format of "__intN" types for SIZETYPE.
22038 * tree.c (build_common_tree_nodes): Accept "__intN__"
22039 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22040 * doc/invoke.texi: Document that __intN__ disables pedantic
22041 warnings.
22042
22043 2019-06-25 Jan Hubicka <jh@suse.cz>
22044
22045 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22046 base2_alias_set is non-zero before doing TBAA based disambiguation.
22047
22048 2019-06-25 Martin Liska <mliska@suse.cz>
22049
22050 PR tree-optimization/90973
22051 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22052 of prologue and epilogue.
22053
22054 2019-06-24 Jan Hubicka <jh@suse.cz>
22055
22056 * ipa-utils.h (type_with_linkage_p): Verify that type is
22057 CXX_ODR_P.
22058 (odr_type_p): Remove extra return.
22059 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22060 hash STRING_FLAG only for arrays and integers.
22061 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22062 Update analogously.
22063 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22064 Likewise.
22065 * print-tree.c (print_node): Print cxx-odr-p
22066 and string-flag.
22067 * tree.c (need_assembler_name_p): Also check that type
22068 is CXX_ODR_TYPE_P
22069 (verify_type_variant): Update verification of SRING_FLAG;
22070 also check CXX_ODR_P.
22071 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22072 (TYPE_STRING_FLAG): Use it.
22073 (TYPE_CXX_ODR_P): New macro.
22074 * dwarf2out.c (gen_array_type_die): First check that type
22075 is an array and then test string flag.
22076
22077 2019-06-24 Richard Biener <rguenther@suse.de>
22078
22079 PR tree-optimization/90972
22080 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22081 in common code, dealing with STRING_CST properly.
22082
22083 2019-06-24 Richard Biener <rguenther@suse.de>
22084
22085 PR tree-optimization/90930
22086 PR tree-optimization/90316
22087 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22088 decrement of limit.
22089
22090 2019-06-24 Martin Sebor <msebor@redhat.com>
22091
22092 * tree-pretty-print.h: Remove unnecessary punctuation characters
22093 from a diagnostic.
22094 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22095
22096 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22097
22098 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22099 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22100 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22101
22102 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22103
22104 * config/rs6000/darwin.h: Handle GCC target pragma.
22105
22106 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22107
22108 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22109
22110 2019-06-22 Jeff Law <law@redhat.com>
22111
22112 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22113
22114 2019-06-22 Jan Hubicka <jh@suse.cz>
22115
22116 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22117 give up on bitfields; continue searching for different refs
22118 appearing later.
22119
22120 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22121
22122 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22123 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22124 containing the offset as possible simd lane access. Look through
22125 widening conversion. Move the
22126 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22127
22128 2019-06-21 Richard Biener <rguenther@suse.de>
22129
22130 PR tree-optimization/90930
22131 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22132 flag on new stmts to avoid re-processing them.
22133
22134 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
22135
22136 PR c++/90875 - added -Wswitch-outside-range option
22137 * doc/invoke.texi (Wswitch-outside-range): Document.
22138
22139 2019-06-21 Jeff Law <law@redhat.com>
22140
22141 PR tree-optimization/90949
22142 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
22143 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
22144
22145 2019-06-21 Richard Biener <rguenther@suse.de>
22146
22147 PR debug/90914
22148 * dwarf2out.c (prune_unused_types_walk): Always consider
22149 function-local extern declarations as used.
22150
22151 2019-06-21 Richard Biener <rguenther@suse.de>
22152
22153 PR tree-optimization/90913
22154 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
22155 the scalar variant of if-conversion versioning.
22156
22157 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22158
22159 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
22160 create another "omp scan inscan exclusive" array if
22161 !ctx->scan_inclusive.
22162 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
22163 (lower_omp_scan): Likewise.
22164 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
22165 2-bit bitfield for simd_lane_access_p member.
22166 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
22167 aux == (void *)-4 as simd lane access.
22168 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
22169 comment with permutations to show the canonical permutation order.
22170 (vectorizable_scan_store): Handle exclusive scan.
22171 (vectorizable_store): Call vectorizable_scan_store even for
22172 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
22173
22174 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22175 "omp simd array" arrays with one byte elements.
22176
22177 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
22178
22179 * config/alpha/alpha.md (@unaligned_store<mode>):
22180 Rename from unaligned_store<mode>.
22181 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
22182 * config/alpha/sync.md (@load_locked_<mode>): Rename
22183 from load_locked_<mode>.
22184 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
22185 (@atomic_compare_and_swap<mode>_1): Rename
22186 from atomic_compare_and_swap<mode>_1.
22187 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
22188 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
22189 Use gen_reload_in_aligned and gen_unaligned_store.
22190 (emit_load_locked): Remove.
22191 (emit_store_conditional): Ditto.
22192 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
22193 (alpha_split_compare_and_swap): Ditto.
22194 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
22195 (alpha_split_compare_and_swap_12): Use gen_load_locked
22196 and gen_store_conditional.
22197 (alpha_split_atomic_exchange): Ditto.
22198 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
22199 (alpha_split_atomic_exchange_12): Use gen_load_locked
22200 and gen_store_conditional.
22201
22202 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
22203
22204 * config/aarch64/aarch64-errata.h: New file.
22205 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
22206 (CA53_ERR_843419_SPEC): Delete.
22207 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
22208 * config/aarch64/aarch64-linux.h: Likewise.
22209 * config/aarch64/aarch64-netbsd.h: Likewise.
22210 * config/aarch64/aarch64-freebsd.h: Likewise.
22211
22212 2019-06-20 Marek Polacek <polacek@redhat.com>
22213
22214 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
22215
22216 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
22217
22218 * config/rs6000/rs6000.md (isa attribute): Add support for
22219 for a future processor.
22220
22221 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
22222
22223 PR target/54855
22224 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
22225 standard scalar operation pattern for V2DF.
22226 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
22227 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
22228 (*ieee_<ieee_maxmin><mode>3): Likewise.
22229 (vec_setv2df_0): Likewise.
22230
22231 2019-06-20 Jan Hubicka <jh@suse.cz>
22232
22233 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
22234 parameter; it has no use in gimple memory model.
22235 (indirect_ref_may_alias_decl_p): Update.
22236
22237 2019-06-20 Martin Liska <mliska@suse.cz>
22238
22239 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
22240 to 10.
22241
22242 2019-06-20 Jakub Jelinek <jakub@redhat.com>
22243
22244 * tree-vect-stmts.c (enum scan_store_kind): New type.
22245 (scan_store_can_perm_p): Change last argument from int * to
22246 vec<enum scan_store_kind> *, record precisely which permutations
22247 need whole vector left shift or that plus VEC_COND_EXPR.
22248 (vectorizable_scan_store): Adjust caller, use whole vector left shift
22249 and additional VEC_COND_EXPR only for those iterations that need it.
22250
22251 2019-06-20 Alexandre Oliva <oliva@adacore.com>
22252
22253 * config.gcc: Fix ARM --with-fpu checking and error message.
22254
22255 2019-06-19 Marek Polacek <polacek@redhat.com>
22256
22257 PR c++/60364 - noreturn after first decl not diagnosed.
22258 * attribs.c (get_attribute_namespace): No longer static.
22259 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
22260 attributes.
22261 (attr_noreturn_exclusions): Make it extern.
22262 * attribs.h (get_attribute_namespace): Declare.
22263 * tree-inline.c (function_attribute_inlinable_p): Use
22264 get_attribute_name.
22265
22266 2019-06-19 Martin Sebor <msebor@redhat.com>
22267
22268 PR tree-optimization/90626
22269 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
22270
22271 PR tree-optimization/90626
22272 * tree-ssa-strlen.c (strxcmp_unequal): New function.
22273 (handle_builtin_string_cmp): Call it.
22274
22275 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22276
22277 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
22278 and DARWIN_NOPIE_SPEC.
22279 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
22280 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
22281 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
22282 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
22283 (DARWIN_EXPORT_DYNAMIC): Delete.
22284 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
22285 and pie options processing to darwin.h.
22286 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
22287
22288 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22289
22290 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
22291 in computing the number of options to be moved.
22292
22293 2019-06-19 Maya Rashish <coypu@sdf.org>
22294
22295 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
22296 (CLEAR_INSN_CACHE) Use it.
22297
22298 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
22299
22300 * config/i386/i386.md (cmpstrnsi): Remove dead code.
22301
22302 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
22303
22304 PR middle-end/84521
22305 * builtins.c (expand_builtin_setjmp_setup): Save
22306 hard_frame_pointer_rtx.
22307 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
22308 restore fp.
22309 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
22310 non-local goto.
22311 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
22312 elimination code.
22313 (remove_reg_equal_offset_note): Remove unused function.
22314 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
22315 code.
22316 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22317 (arc_builtin_setjmp_frame_value): Remove function.
22318 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22319 (avr_builtin_setjmp_frame_value): Remove function.
22320 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22321 (ix86_builtin_setjmp_frame_value): Remove function.
22322 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
22323 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22324 (sparc_builtin_setjmp_frame_value): Remove function.
22325 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22326 (vax_builtin_setjmp_frame_value): Remove function.
22327 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
22328 pointer if has_nonlocal_label.
22329
22330 2019-06-19 Jakub Jelinek <jakub@redhat.com>
22331
22332 * doc/md.texi: Document vec_shl_<mode> pattern.
22333 * optabs.def (vec_shl_optab): New optab.
22334 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
22335 argument, if == vec_shl_optab, check for left whole vector shift
22336 pattern rather than right shift.
22337 (expand_vec_perm_const): Add vec_shl_optab support.
22338 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
22339 in the comment.
22340 * tree-vect-generic.c (lower_vec_perm): Support permutations which
22341 can be handled by vec_shl_optab.
22342 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
22343 (check_scan_store): Use it.
22344 (vectorizable_scan_store): If target can't do normal permutations,
22345 try to use whole vector left shifts and if needed a VEC_COND_EXPR
22346 after it.
22347 * config/i386/sse.md (vec_shl_<mode>): New expander.
22348
22349 * omp-low.c (lower_rec_input_clauses): Handle references properly
22350 in inscan clauses.
22351 (lower_omp_scan): Likewise.
22352
22353 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22354
22355 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
22356 mem_mode is BLKmode.
22357
22358 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
22359
22360 PR target/90922
22361 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
22362 pointer adjustment for the case of no callee-saved registers and
22363 stack frame bigger than 128 bytes.
22364
22365 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
22366
22367 PR middle-end/90862
22368 * omp-low.c (check_omp_nesting_restrictions): Handle
22369 GF_OMP_TARGET_KIND_OACC_DECLARE.
22370
22371 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
22372
22373 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
22374 (@add<mode>3_carry): Rename from add<mode>3_carry.
22375 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
22376 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
22377 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
22378 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
22379 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
22380 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
22381 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
22382 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
22383 (cmpstrnsi): Use gen_cmp_1.
22384 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
22385 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
22386 (@umonitor_<mode>): Rename from umonitor_<mode>.
22387 * config/i386/i386-expand.c (ix86_expand_copysign):
22388 Use gen_copysign3_const and gen_copysign3_var.
22389 (ix86_expand_xorsign): Use gen_xorsign3_1.
22390 (ix86_expand_branch): Use gen_sub3_carry_ccc,
22391 gen_sub3_carry_ccgz and gen_cmp1.
22392 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
22393 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
22394 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
22395 (ix86_split_lshr): Ditto.
22396 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
22397
22398 2019-06-18 Jason Merrill <jason@redhat.com>
22399
22400 * tree.c (build_constructor): Add MEM_STAT_DECL.
22401
22402 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22403
22404 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
22405 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
22406 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
22407 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
22408 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
22409 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
22410 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
22411 Use CC_NZC instead of CC.
22412 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
22413 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
22414 (aarch64_print_operand): Handle E_CC_NZCmode.
22415 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
22416 of gen_set_clobber_cc.
22417
22418 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22419
22420 * config/aarch64/aarch64-sve.md: Tabify file.
22421
22422 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22423
22424 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
22425 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
22426 * config/aarch64/aarch64-sve.md: Use it.
22427
22428 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22429
22430 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
22431 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
22432 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
22433 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
22434 (aarch64_expand_sve_vec_cmp_int): Use it.
22435 (aarch64_expand_sve_vec_cmp_float): Likewise.
22436 * config/aarch64/aarch64-sve.md: Likewise throughout.
22437
22438 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22439 Kugan Vivekanandarajah <kuganv@linaro.org>
22440
22441 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
22442 (*cond_<optab><mode>_z): Fold into...
22443 (*cond_<optab><mode>_any): ...here. Also handle cases in which
22444 operand 4 can be tied to operand 0 (either inherently or via RA).
22445
22446 2019-06-18 Richard Biener <rguenther@suse.de>
22447
22448 PR debug/90900
22449 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
22450 as if optimized away.
22451
22452 2019-06-18 Tom de Vries <tdevries@suse.de>
22453
22454 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
22455 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
22456 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
22457 Rename to ...
22458 (define_insn "@set_softstack_<mode>"): ... this.
22459 (define_insn "omp_simt_enter_<mode>"): Rename to ...
22460 (define_insn "@omp_simt_enter_<mode>"): ... this.
22461 (define_insn "omp_simt_exit_<mode>"): Rename to ...
22462 (define_insn "@omp_simt_exit_<mode>"): ... this.
22463
22464 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22465
22466 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
22467 vf parameter. Restore the previous iv step of nscalars_step,
22468 but give it iv_type rather than compare_type. Tweak code order
22469 to match the comments.
22470 (vect_set_loop_condition_masked): Update accordingly.
22471 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
22472 for iv_precision. Tweak comment formatting.
22473
22474 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22475
22476 * config/darwin.c: Strip trailing whitespace.
22477
22478 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22479
22480 * config/darwin.c (darwin_emit_unwind_label): New default to false.
22481 (darwin_override_options): Set darwin_emit_unwind_label as needed.
22482
22483 2019-06-18 Martin Jambor <mjambor@suse.cz>
22484
22485 PR ipa/90889
22486 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
22487 caller does not have flag_ipa_cp set.
22488
22489 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22490
22491 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
22492 from "*fold_left_plus_<mode>", updated operands order.
22493 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
22494 * internal-fn.c (mask_fold_left_direct): New define.
22495 (expand_mask_fold_left_optab_fn): Likewise.
22496 (direct_mask_fold_left_optab_supported_p): Likewise.
22497 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
22498 * optabs.def (mask_fold_left_plus_optab): New optab.
22499 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
22500 masked internal_fn for a reduction ifn.
22501 (vectorize_fold_left_reduction): Add support for masking reductions.
22502
22503 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
22504
22505 PR middle-end/80791
22506 * target.def (predict_doloop_p): New hook.
22507 * targhooks.h (default_predict_doloop_p): New declaration.
22508 * targhooks.c (default_predict_doloop_p): New function.
22509 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
22510 * doc/tm.texi: Regenerate.
22511 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
22512 (TARGET_PREDICT_DOLOOP_P): New macro.
22513 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
22514
22515 2019-06-17 Jakub Jelinek <jakub@redhat.com>
22516
22517 * omp-low.c (struct omp_context): Add scan_inclusive field.
22518 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
22519 if inclusive scan.
22520 (struct omplow_simd_context): Add lastlane member.
22521 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
22522 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
22523 1 or 2 argument.
22524 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
22525 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
22526 (lower_omp_scan): New function.
22527 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
22528 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
22529 check 3rd argument if present rather than 2nd.
22530 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
22531 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
22532 2-bit bitfield.
22533 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22534 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
22535 than 2nd.
22536 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
22537 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
22538 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
22539 init.
22540 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
22541 IFN_GOMP_SIMD_LANE argument.
22542 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
22543 encoded ->aux value.
22544 * tree-vect-stmts.c: Include attribs.h.
22545 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
22546 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
22547 functions.
22548 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
22549 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
22550
22551 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
22552
22553 PR target/62055
22554 * config/i386/i386.md (*nabstf2_1): New insn pattern.
22555 (*nabs<mode>2_1): Ditto.
22556 (nabs sse-reg splitter): New splitter.
22557 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
22558
22559 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22560
22561 PR bootstrap/90873.
22562 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
22563 TMR index check.
22564
22565 2019-06-17 Tom de Vries <tdevries@suse.de>
22566
22567 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
22568 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
22569 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
22570 ...
22571 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
22572 match_operand 0.
22573 (define_insn "omp_simt_enter_insn"): Rename to ...
22574 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
22575 match_operand 0, 1 and 2, as well as the unspec_volatile result.
22576 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
22577 gen_omp_simt_enter_si.
22578 (define_expand "omp_simt_exit"): New.
22579 (define_insn "omp_simt_exit"): Rename to ...
22580 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
22581 match_operand 0.
22582
22583 2019-06-17 Matthew Green <mrg@eterna.com.au>
22584 Maya Rashish <coypu@sdf.org>
22585
22586 * config.gcc (aarch64*-*-netbsd*): New target.
22587 * config/aarch64/aarch64-netbsd.h: New file.
22588 * config/aarch64/t-aarch64-netbsd: Likewise.
22589
22590 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22591
22592 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
22593 the access path from base to first VIEW_CONVERT_EXPR or
22594 BIT_FIELD_REF.
22595
22596 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22597
22598 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
22599 access path on BIT_FIELD_REFs.
22600
22601 2019-06-17 Martin Liska <mliska@suse.cz>
22602
22603 PR ipa/90874
22604 * ipa-utils.h (odr_type_p): Remove dead code.
22605
22606 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22607
22608 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
22609 alternative Solaris 11.4 format.
22610 * configure: Regenerate.
22611
22612 2019-06-17 Tom de Vries <tdevries@suse.de>
22613
22614 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
22615 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
22616 match_operand 0.
22617 (define_insn "call_value_insn"): Rename to ...
22618 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
22619 match_operand 0.
22620 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
22621 DI.
22622
22623 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
22624
22625 PR middle-end/64242
22626 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
22627 frame clobbers and schedule block.
22628 (builtin_longjmp): Likewise.
22629
22630 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22631
22632 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
22633 describe how to perform MSPABI compliant 64-bit shift.
22634 * config/msp430/msp430.md (ashldi3): New define_expand.
22635 (ashrdi3): New define_expand.
22636 (lshrdi3): New define_expand.
22637
22638 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22639
22640 * doc/sourcebuild.texi: Document new effective target keyword
22641 longlong64.
22642
22643 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22644
22645 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
22646 indirect_refs_may_alias_p): Revert accidental commits.
22647
22648 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
22649 at the end of structures.
22650
22651 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22652
22653 * config/darwin.c (machopic_indirect_call_target): Use renamed
22654 darwin_picsymbol_stubs to decide on output.
22655 (darwin_override_options): Handle darwin_picsymbol_stubs.
22656 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
22657 (LD64_VERSION): Revise default.
22658 * config/darwin.opt: (mpic-symbol-stubs): New option.
22659 (darwin_picsymbol_stubs): New variable.
22660 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
22661 rename to TARGET_MACHO_PICSYM_STUBS.
22662 * config/i386/i386.c (output_pic_addr_const): Likewise.
22663 * config/i386/i386.h Likewise.
22664 * config/rs6000/darwin.h: Likewise.
22665 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
22666 darwin_picsymbol_stubs.
22667
22668 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22669
22670 * config/darwin.opt (prebind, noprebind, seglinkedit,
22671 noseglinkedit): Add RejectNegative.
22672
22673 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22674
22675 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
22676 in my previous patch.
22677
22678 2019-06-16 Tom de Vries <tdevries@suse.de>
22679
22680 PR tree-optimization/89376
22681 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
22682
22683 2019-06-15 Maya Rashish <coypu@sdf.org>
22684
22685 * doc/invoke.texi (Spec Files): Update location of the
22686 Fortran spec file.
22687
22688 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
22689
22690 * doc/extend.texi (Common Function Attributes): Clarify
22691 no_sanitize. Fix grammar.
22692
22693 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
22694
22695 * tree-ssa-alias.c (alias_stats): Add
22696 nonoverlapping_component_refs_p_may_alias,
22697 nonoverlapping_component_refs_p_no_alias,
22698 nonoverlapping_component_refs_of_decl_p_may_alias,
22699 nonoverlapping_component_refs_of_decl_p_no_alias.
22700 (dump_alias_stats): Dump them.
22701 (nonoverlapping_component_refs_of_decl_p): Add stats.
22702 (nonoverlapping_component_refs_p): Add stats; do not stop on first
22703 ARRAY_REF.
22704
22705 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
22706
22707 * config/i386/i386.md (and<mode>3): Generate zero-extends for
22708 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
22709 only.
22710 (*anddi3_doubleword): Split before reload. Merge with
22711 anddi->zext pre-reload splitter.
22712 (*andndi3_doubleword): Split before reload.
22713 (*<code>di3_doubleword): Ditto.
22714 (*one_cmpldi2_doubleword): Ditto.
22715
22716 2019-06-15 Jakub Jelinek <jakub@redhat.com>
22717
22718 PR middle-end/90779
22719 * gimplify.c: Include omp-offload.h and context.h.
22720 (gimplify_bind_expr): Add "omp declare target" attributes
22721 to static block scope variables inside of target region or target
22722 functions.
22723
22724 2019-06-15 Tom de Vries <tdevries@suse.de>
22725
22726 PR tree-optimization/90009
22727 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
22728 Return NULL if bb contains IFN_UNIQUE.
22729
22730 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
22731
22732 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
22733 (un): New define_mode_attr.
22734 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
22735 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
22736 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
22737 merge into ...
22738 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
22739
22740 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
22741
22742 * config/darwin.opt: Add RejectNegative where needed, reorder
22743 and add minimal functional descriptions.
22744
22745 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22746
22747 PR rtl-optimization/90765
22748 * calls.c (update_stack_alignment_for_call): New function.
22749 (expand_call): Call update_stack_alignment_for_call when
22750 outgoing parameter is passed in the stack.
22751 (emit_library_call_value_1): Likewise.
22752 * function.c (locate_and_pad_parm): Don't update
22753 stack_alignment_needed and preferred_stack_boundary.
22754
22755 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22756
22757 PR target/90877
22758 * config/i386/i386-features.c
22759 (dimode_scalar_chain::compute_convert_gain): Replace
22760 mmxsse_to_integer with sse_to_integer.
22761 * config/i386/i386.c (ix86_register_move_cost): Verify that
22762 moves between MMX and non-MMX units require secondary memory.
22763 Correct costs of moves between SSE and integer units.
22764 * config/i386/i386.h (processor_costs): Rename cost of moving
22765 SSE register to integer to sse_to_integer. Rename cost of
22766
22767 2019-06-14 Matt Thomas <matt@3am-software.com>
22768 Matthew Green <mrg@eterna.com.au>
22769 Nick Hudson <skrll@netbsd.org>
22770 Maya Rashish <coypu@sdf.org>
22771 Richard Earnshaw <rearnsha@arm.com>
22772
22773 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
22774 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
22775 * config/arm/netbsd-eabi.h: New file.
22776 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
22777 redefining.
22778 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
22779 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
22780 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
22781 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
22782
22783 2019-06-14 Richard Biener <rguenther@suse.de>
22784
22785 * tree-loop-distribution.c (classify_partition): Return
22786 whether a reduction appeared in all partitions and do not
22787 stop builtin detection because of this.
22788 (distribute_loop): Sort a non-builtin partition last if
22789 there's a reduction in all partitions and make sure the
22790 partition prevailing as last is not a builtin.
22791
22792 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
22793
22794 PR ipa/90401
22795 * ipa-prop.c (add_to_agg_contents_list): New function.
22796 (clobber_by_agg_contents_list_p): Likewise.
22797 (extract_mem_content): Likewise.
22798 (get_place_in_agg_contents_list): Delete.
22799 (determine_known_aggregate_parts): Renamed from
22800 determine_locally_known_aggregate_parts. New parameter
22801 aa_walk_budget_p.
22802
22803 2019-06-13 Martin Sebor <msebor@redhat.com>
22804
22805 PR tree-optimization/90662
22806 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
22807 to the same type.
22808
22809 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22810
22811 PR bootstrap/90873
22812 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
22813 dbase is not TARGET_MEM_REF.
22814
22815 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22816
22817 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
22818 Update all uses.
22819 (and<mode>3): Use gen_extend_insn instead of indirect functions.
22820 Do not generate DImode extends for 32bit targets.
22821 (and->zext post-reload splitter): Use gen_extend_insn
22822 instead of indirect functions.
22823 (anddi->zext pre-reload splitter): New.
22824 (*zext<mode>_doubleword_and): Remove.
22825 (*zext<mode>_doubleword): Ditto.
22826 (*zextsi_doubleword): Dittto.
22827
22828 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22829
22830 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22831 Use gen_sub3_insn instead of indirect function.
22832 (ix86_expand_ashl_const): Use gen_add2_insn instead of
22833 indirect function.
22834 (ix86_adjust_counter): Ditto.
22835
22836 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
22837 Lijia He <helijia@linux.ibm.com>
22838
22839 PR tree-optimization/77820
22840 * tree-ssa-threadedge.c
22841 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
22842 function.
22843 (thread_across_edge): Add call to
22844 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
22845
22846 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
22847
22848 * config/darwin-driver.c (validate_macosx_version_min): New.
22849 (darwin_default_min_version): Cleanup and validate supplied version.
22850 (darwin_driver_init): Likewise and push cleaned version into opts.
22851
22852 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22853
22854 PR tree-optimization/90869
22855 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
22856 converts in MEM_REF referencing decl rather than view converts
22857 from decl type to MEM_REF type.
22858
22859 2019-06-13 Richard Biener <rguenther@suse.de>
22860
22861 PR tree-optimization/90856
22862 * tree-sra.c (build_ref_for_model): Only use
22863 build_reconstructed_reference when address-spaces are the same.
22864
22865 2019-06-13 Jakub Jelinek <jakub@redhat.com>
22866
22867 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
22868 wrap ei variable name in the declaration in ()s.
22869 (nvptx_single): Actually use mode_label variable. Formatting fix.
22870
22871 2019-06-13 Richard Biener <rguenther@suse.de>
22872
22873 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
22874 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
22875 also return the condition stmt.
22876 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
22877 loop we can version and version that, reusing the loop version
22878 created by if-conversion instead of versioning again.
22879
22880 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
22881
22882 * gimple-loop-versioning.cc (prune_loop_conditions): Use
22883 may_contain_p.
22884 * tree-vrp (value_range_base::may_contain_p): Call into
22885 value_inside_range.
22886 (value_inside_range): Make private inside value_range_base class.
22887 Take min/max from *this.
22888 (range_includes_p): Remove.
22889 * tree-vrp.h (value_range_base): Add value_inside_range.
22890 (range_includes_p): Remove.
22891 (range_includes_zero_p): Call may_contain_p.
22892 * vr-values.c (compare_range_with_value): Same.
22893
22894 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
22895
22896 * doc/extend.texi (ARC Function Attributes): Update info.
22897
22898 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
22899
22900 PR tree-optimization/89713
22901 * doc/invoke.texi (-ffinite-loops): Document new option.
22902 * common.opt (-ffinite-loops): New option.
22903 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
22904 IFN_GOACC_LOOP calls as necessary.
22905 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
22906 is finite.
22907 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
22908 IFN_GOACC_LOOP call is not used.
22909 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
22910
22911 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22912
22913 PR target/88838
22914 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
22915 compare_type is not with Pmode size, we will create an IV with
22916 Pmode size with truncated use (i.e. converted to the correct type).
22917 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
22918 (vect_iv_limit_for_full_masking): New. Factored out of
22919 vect_set_loop_condition_masked.
22920 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
22921 (vect_iv_limit_for_full_masking): Declare.
22922
22923 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22924
22925 PR target/88834
22926 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
22927 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
22928 (get_alias_ptr_type_for_ptr_address): Likewise.
22929 (add_iv_candidate_for_use): Add scaled index candidate if useful.
22930 * tree-ssa-address.c (preferred_mem_scale_factor): New.
22931 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
22932 allow_reg_index_p.
22933
22934 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22935
22936 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
22937
22938 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
22939
22940 * common/config/pru/pru-common.c: New file.
22941 * config.gcc: Add PRU target.
22942 * config/pru/alu-zext.md: New file.
22943 * config/pru/constraints.md: New file.
22944 * config/pru/predicates.md: New file.
22945 * config/pru/pru-opts.h: New file.
22946 * config/pru/pru-passes.c: New file.
22947 * config/pru/pru-pragma.c: New file.
22948 * config/pru/pru-protos.h: New file.
22949 * config/pru/pru.c: New file.
22950 * config/pru/pru.h: New file.
22951 * config/pru/pru.md: New file.
22952 * config/pru/pru.opt: New file.
22953 * config/pru/t-pru: New file.
22954 * doc/extend.texi: Document PRU pragmas.
22955 * doc/invoke.texi: Document PRU-specific options.
22956 * doc/md.texi: Document PRU asm constraints.
22957
22958 2019-06-12 Martin Sebor <msebor@redhat.com>
22959
22960 PR middle-end/90676
22961 * tree-pretty-print.c (dump_mem_ref): New function. Include
22962 MEM_REF type in output when different size than operand.
22963 (dump_generic_node): Move code to dump_mem_ref and call it.
22964
22965 2019-06-12 Martin Sebor <msebor@redhat.com>
22966
22967 PR tree-optimization/90662
22968 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
22969 to arrays.
22970
22971 2019-06-12 Tom de Vries <tdevries@suse.de>
22972
22973 PR tree-optimization/90009
22974 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
22975
22976 2019-06-12 Martin Liska <mliska@suse.cz>
22977
22978 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
22979 the created map.
22980 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
22981 * mem-stats.h (mem_alloc_description::mem_alloc_description):
22982 Do not sanitize created maps.
22983
22984 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
22985
22986 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
22987 value_range::singleton_p.
22988 * tree-vrp.c (value_range_constant_singleton): Remove.
22989 * tree-vrp.h (value_range_constant_singleton): Remove.
22990 * vr-values.c (vr_values::singleton): Use
22991 value_range::singleton_p.
22992
22993 2019-06-12 Jakub Jelinek <jakub@redhat.com>
22994
22995 PR target/90811
22996 * cfgexpand.c (align_local_variable): Add really_expand argument,
22997 don't SET_DECL_ALIGN if it is false.
22998 (add_stack_var): Add really_expand argument, pass it through to
22999 align_local_variable.
23000 (expand_one_stack_var_1): Pass true as really_expand to
23001 align_local_variable.
23002 (expand_one_ssa_partition): Pass true as really_expand to
23003 add_stack_var.
23004 (expand_one_var): Pass really_expand through to add_stack_var.
23005
23006 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23007
23008 * config/arm/iterators.md (VABAL): New int iterator.
23009 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23010 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23011 UNSPEC_VABAL_U values.
23012
23013 2019-06-12 Martin Liska <mliska@suse.cz>
23014
23015 * value-prof.c (stream_out_histogram_value): Only first value
23016 can't be negative.
23017
23018 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23019
23020 PR c/90760
23021 * symtab.c (symtab_node::set_section): Allow being called on aliases
23022 as long as they aren't analyzed yet.
23023
23024 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23025
23026 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23027 to `mips_set_text_contents_type' to indicate whether a
23028 non-debug insn follows.
23029
23030 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23031
23032 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23033 enabling -mpcrel by default.
23034 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23035 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23036 that the test against -mcpu=future is done first. Then test if
23037 -mprefixed-addr is on for -mpcrel.
23038 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23039
23040 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23041
23042 PR target/90811
23043 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23044 instead of and.u%d.
23045
23046 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23047
23048 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23049
23050 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23051
23052 PR c++/90449 - add -Winaccessible-base option.
23053 * doc/invoke.texi (Winaccessible-base): Document.
23054
23055 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23056
23057 PR tree-optimization/62041
23058 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23059
23060 2019-06-11 Jason Merrill <jason@redhat.com>
23061
23062 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23063 * tree.c (get_tree_code_name): Likewise.
23064 * print-tree.c (print_node): Only briefly print a node with an
23065 invalid code.
23066
23067 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23068
23069 PR bootstrap/90819
23070 * trans-mem.c (tm_memopt_compute_available): Add assertion
23071 that blocks is not empty. Formatting fix.
23072
23073 2019-06-11 Martin Liska <mliska@suse.cz>
23074
23075 PR c++/87847
23076 * hash-table.h: Extend create_gcc, add one parameter
23077 that is passed into hash_table::hash_table.
23078
23079 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23080
23081 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23082 New prototype.
23083 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23084 Emit clobber also for non-sse operations.
23085 (ix86_split_fp_absneg_operator): New function.
23086 * config/i386/i386.md (SSEMODEF): New mode iterator.
23087 (ssevecmodef): New mode attribute.
23088 (<code>tf2): Use absneg code iterator.
23089 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23090 Add three-operand AVX alternatives.
23091 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23092 Use absneg code iterator and X87MODEF mode iterator.
23093 (absneg fp_reg non-sse splitter): Call absneg code iterator
23094 and X87MODEF mode iterator.
23095 (absneg general_reg non-sse splitter): Use absneg code iterator
23096 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23097 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23098 code iterator. Add three-operand AVX alternative.
23099 (absneg sse_reg splitter): Use absneg code iterator
23100 and SSEMODEF mode iterator. Handle AVX operands.
23101 (absneg fp_reg splitter): Use absneg code iterator
23102 and MODEF mode iterator.
23103 (absneg general_reg splitter): Merge splitters using MODEF mode
23104 iterator. Use absneg code iterator. Call
23105 ix86_split_fp_absneg_operator.
23106 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23107 Do not enable for non-sse modes before reload.
23108 (CSGNMODE): Remove.
23109 (CSGNVMODE): Ditto.
23110 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23111 ssevecmodef mode attribute instaed of CSGNVMODE.
23112 (copysign<mode>3_const): Ditto.
23113 (copysign<mode>3_var): Ditto.
23114 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23115 Use absneg code iterator. Simplify code using std::swap.
23116 * config/i386/predicates.md (absneg_operator): Remove.
23117
23118 2019-06-10 Martin Sebor <msebor@redhat.com>
23119
23120 * gimple-fold.c (get_range_strlen): Update comment that didn't
23121 make it into r267503 or related commits.
23122
23123 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
23124
23125 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23126 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23127
23128 2019-06-10 Jakub Jelinek <jakub@redhat.com>
23129
23130 * tree.def (OMP_SCAN): New tree code.
23131 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23132 OMP_CLAUSE_EXCLUSIVE.
23133 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
23134 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
23135 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
23136 OMP_CLAUSE_{IN,EX}CLUSIVE.
23137 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23138 * tree-nested.c (convert_nonlocal_reference_stmt,
23139 convert_local_reference_stmt, convert_gimple_call): Handle
23140 GIMPLE_OMP_SCAN.
23141 * tree-pretty-print.c (dump_omp_clause): Handle
23142 OMP_CLAUSE_{IN,EX}CLUSIVE.
23143 (dump_generic_node): Handle OMP_SCAN.
23144 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
23145 * gimple.h (gomp_scan): New type.
23146 (is_a_helper <gomp_scan *>::test,
23147 is_a_helper <const gomp_scan *>::test): New templates.
23148 (gimple_build_omp_scan): Declare.
23149 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
23150 gimple_omp_scan_set_clauses): New inline functions.
23151 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
23152 * gimple.c (gimple_build_omp_scan): New function.
23153 (gimple_copy): Handle GIMPLE_OMP_SCAN.
23154 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
23155 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
23156 GIMPLE_OMP_TASKGROUP.
23157 (dump_gimple_omp_scan): New function.
23158 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
23159 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
23160 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
23161 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
23162 (is_gimple_stmt): Handle OMP_SCAN.
23163 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
23164 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23165 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
23166 mentioned in nested #pragma omp scan. Handle
23167 OMP_CLAUSE_{IN,EX}CLUSIVE.
23168 (gimplify_expr): Handle OMP_SCAN.
23169 * omp-low.c (check_omp_nesting_restrictions): For parent context,
23170 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
23171 simd constructs.
23172 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
23173 GIMPLE_OMP_SCAN.
23174
23175 2019-06-10 Martin Liska <mliska@suse.cz>
23176
23177 * ipa-cp.c (ignore_edge_p): New function.
23178 (build_toporder_info): Use it.
23179 * ipa-inline.c (ignore_edge_p): New function.
23180 (inline_small_functions): Use it.
23181 * ipa-pure-const.c (ignore_edge_for_nothrow):
23182 Verify opt_for_fn for caller and callee.
23183 (ignore_edge_for_pure_const): Likewise.
23184 * ipa-reference.c (ignore_edge_p): Extend to check
23185 for opt_for_fn.
23186 * ipa-utils.c (searchc): Refactor.
23187 * ipa-utils.h: Fix coding style.
23188
23189 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23190
23191 * config/arc/arc.c (arc_rtx_costs): Update costs.
23192
23193 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23194
23195 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
23196 (arc_split_ior): Likewise.
23197 (arc_check_mov_const): Likewise.
23198 (arc_split_mov_const): Likewise.
23199 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
23200 (arc_rtx_costs): Replace check Crr with Cax constraint.
23201 (prepare_move_operands): Cleanup, remove unused code.
23202 (arc_split_ior): New function.
23203 (arc_check_ior_const): Likewise.
23204 (arc_split_mov_const): Likewise.
23205 (arc_check_mov_const): Likewise.
23206 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
23207 in define_insn_and_split pattern.
23208 (iorsi3): Likewise.
23209 (mulsi3_v2): Add new matching variant.
23210 (andsi3_i): Cleanup pattern.
23211 (rotrsi3_cnt1): Update pattern.
23212 (rotrsi3_cnt8): New pattern.
23213 (ashlsi2_cnt8): Likewise.
23214 (ashlsi2_cnt16): Likewise.
23215 * config/arc/constraints.md (C0p): Update constraint.
23216 (Crr): Remove it.
23217 (C0x): New pattern.
23218 (Cax): New pattern.
23219
23220 2019-06-10 Martin Liska <mliska@suse.cz>
23221
23222 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
23223 Update coding style.
23224 (sem_item_optimizer::dump_cong_classes):
23225 Print how many items are in a non-singular class. Improve
23226 coding style.
23227
23228 2019-06-10 Martin Liska <mliska@suse.cz>
23229
23230 * value-prof.c (dump_histogram_value): Change dump format.
23231 (gimple_mod_subtract_transform): Remove legacy comment.
23232
23233 2019-06-10 Martin Liska <mliska@suse.cz>
23234
23235 * value-prof.c (dump_histogram_value): Print histogram values
23236 only if present.
23237
23238 2019-06-10 Martin Liska <mliska@suse.cz>
23239
23240 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
23241 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
23242 * ipa-profile.c (ipa_profile_generate_summary):
23243 Use get_most_common_single_value.
23244 * tree-profile.c (gimple_init_gcov_profiler):
23245 Instrument with __gcov_one_value_profiler_v2
23246 and __gcov_indirect_call_profiler_v4.
23247 * value-prof.c (dump_histogram_value):
23248 Print all values for HIST_TYPE_SINGLE_VALUE.
23249 (stream_out_histogram_value): Update assert for
23250 N values.
23251 (stream_in_histogram_value): Set number of
23252 counters for HIST_TYPE_SINGLE_VALUE.
23253 (get_most_common_single_value): New.
23254 (gimple_divmod_fixed_value_transform):
23255 Use get_most_common_single_value.
23256 (gimple_ic_transform): Likewise.
23257 (gimple_stringops_transform): Likewise.
23258 (gimple_find_values_to_profile): Set number
23259 of counters for HIST_TYPE_SINGLE_VALUE.
23260 * value-prof.h (get_most_common_single_value): New.
23261
23262 2019-06-10 Martin Liska <mliska@suse.cz>
23263
23264 * hash-map.h: Pass default value to hash_table ctor.
23265 * hash-table.h: Add default value to call of a ctor.
23266
23267 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
23268
23269 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
23270 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
23271
23272 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
23273
23274 PR target/90751
23275 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
23276 Call pa_output_function_label.
23277 (TARGET_ASM_FUNCTION_PROLOGUE): define.
23278 * config/pa/pa-protos.h (pa_output_function_label): Declare.
23279 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
23280 to declaration.
23281 (pa_linux_output_function_prologue): Declare.
23282 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
23283 (pa_output_function_label): New.
23284 (pa_output_function_prologue): Revise to use pa_output_function_label.
23285 (pa_linux_output_function_prologue): New.
23286 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
23287
23288 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
23289
23290 * tree-vrp.h (value_range_base::intersect): New.
23291 (value_range::intersect_helper): Move from here...
23292 (value_range_base::intersect_helper): ...to here.
23293 * tree-vrp.c (value_range::intersect_helper): Rename to...
23294 (value_range_base::intersect_helper): ...this, and rewrite to
23295 return a value instead of modifying THIS in place.
23296 Also, move equivalence handling...
23297 (value_range::intersect): ...here, while calling intersect_helper.
23298 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
23299 calling intersect.
23300 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
23301 Same.
23302 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
23303
23304 2019-06-07 Jakub Jelinek <jakub@redhat.com>
23305
23306 * Makefile.in (genprogerr): Add condmd.
23307 (genprog): Remove it here.
23308
23309 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23310
23311 * doc/invoke.texi (AMD GCN Options): Add gfx906.
23312
23313 2019-06-07 Richard Biener <rguenther@suse.de>
23314
23315 PR debug/90574
23316 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
23317 that appear after user labels.
23318
23319 2019-06-07 Martin Liska <mliska@suse.cz>
23320
23321 * cselib.c (cselib_init): Disable hash table
23322 sanitization.
23323 * hash-set.h: Pass new default argument to m_table.
23324 * hash-table.c: Add global variable with hash table
23325 sanitization limit.
23326 * hash-table.h (Allocator>::hash_table): Add new argument
23327 to ctor.
23328 (hashtab_chk_error): New.
23329 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
23330 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
23331 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
23332
23333 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23334
23335 * common.opt (flto-odr-type-merging): Ignore.
23336 * invoke.texi (-flto-odr-type-merging): Remove.
23337 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
23338 (can_be_vtable_hashed_p): Remove.
23339 (hash_odr_vtable): Remove.
23340 (odr_vtable_hasher::hash): Remove.
23341 (types_same_for_odr): Remove.
23342 (types_odr_comparable): Remove.
23343 (odr_vtable_hasher::equal): Remove.
23344 (odr_vtable_hash_type, odr_vtable_hash): Remove.
23345 (add_type_duplicate): Do not synchronize vtable and name hashtables.
23346 (get_odr_type): Do not use vtable hash.
23347 (dump_odr_type): Remove commented out code.
23348 (build_type_inheritance_graph): Do not allocate vtable hash.
23349 (rebuild_type_inheritance_graph): Do not delete vtable hash.
23350 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
23351 (odr_type_p): Likewise.
23352 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
23353 test.
23354
23355 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23356
23357 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
23358 immediately after same_types_for_tbaa_p returns -1 and continue
23359 looking for possible exact match; if matching types are arrays
23360 watch for partial overlaps.
23361 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
23362 (indirect_refs_may_alias_p): Do type based disambiguation first;
23363 update comment.
23364
23365 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
23366
23367 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
23368
23369 2019-06-07 Martin Liska <mliska@suse.cz>
23370
23371 * doc/invoke.texi: Remove param.
23372 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
23373 Remove.
23374 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
23375 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
23376 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
23377 * profile.c (instrument_values): Remove
23378 HIST_TYPE_INDIR_CALL_TOPN.
23379 * tree-profile.c (init_ic_make_global_vars):
23380 Always build __gcov_indirect_call only.
23381 (gimple_init_gcov_profiler): Remove usage
23382 of PARAM_INDIR_CALL_TOPN_PROFILE.
23383 (gimple_gen_ic_profiler): Likewise.
23384 * value-prof.c (dump_histogram_value): Likewise.
23385 (stream_in_histogram_value): Likewise.
23386 (gimple_indirect_call_to_profile): Likewise.
23387 (gimple_find_values_to_profile): Likewise.
23388 * value-prof.h (enum hist_type): Likewise.
23389
23390 2019-06-07 Martin Liska <mliska@suse.cz>
23391
23392 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
23393 function.
23394
23395 2019-06-07 Martin Liska <mliska@suse.cz>
23396
23397 PR tree-optimization/78902
23398 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
23399 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
23400 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23401 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23402 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
23403 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23404 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
23405 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
23406 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23407 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23408 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23409 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
23410 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
23411 New.
23412 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
23413 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
23414 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
23415 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23416 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23417 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
23418 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23419 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23420 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
23421 warn_unused_result attribute.
23422 (BUILT_IN_STRDUP): Likewise.
23423 (BUILT_IN_STRNDUP): Likewise.
23424 (BUILT_IN_ALLOCA): Likewise.
23425 (BUILT_IN_CALLOC): Likewise.
23426 (BUILT_IN_MALLOC): Likewise.
23427 (BUILT_IN_REALLOC): Likewise.
23428
23429 2019-06-06 Jim Wilson <jimw@sifive.com>
23430
23431 PR target/89955
23432 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
23433 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
23434 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
23435
23436 2019-06-06 Martin Sebor <msebor@redhat.com>
23437
23438 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
23439 (handle_builtin_malloc): Remove trailing spaces.
23440 (handle_builtin_memset): Same.
23441 (handle_builtin_memcmp): Same.
23442 (compute_string_length): Same.
23443 (determine_min_objsize): Same.
23444 (handle_builtin_string_cmp): Same.
23445 (handle_char_store): Same. Break up excessively long line.
23446
23447 2019-06-06 Martin Jambor <mjambor@suse.cz>
23448
23449 * tree-sra.c (build_reconstructed_reference): Drop the alignment
23450 check.
23451
23452 2019-06-06 Martin Jambor <mjambor@suse.cz>
23453
23454 * tree-sra.c (struct access): New field grp_same_access_path.
23455 (dump_access): Dump it.
23456 (build_reconstructed_reference): New function.
23457 (build_ref_for_model): Use it if possible.
23458 (path_comparable_for_same_access): New function.
23459 (same_access_path_p): Likewise.
23460 (sort_and_splice_var_accesses): Set the new flag.
23461 (analyze_access_subtree): Likewise.
23462 (propagate_subaccesses_across_link): Propagate zero value of the new
23463 flag down the access tree.
23464
23465 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
23466
23467 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
23468 * config/gcn/gcn.opt (gpu_type): Add gfx906.
23469 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
23470 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
23471 Add gfx906.
23472
23473 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23474
23475 PR tree-optimization/90332
23476 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
23477 Handle VALS containing two vectors.
23478 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
23479 to...
23480 (@aarch64_combinez<mode>): ... This.
23481 (*aarch64_combinez_be<mode>): Rename to...
23482 (@aarch64_combinez_be<mode>): ... This.
23483 (vec_init<mode><Vhalf>): New define_expand.
23484 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
23485
23486 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23487
23488 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
23489 library functions only when not optimizing for size.
23490 (ashlsi3): Likewise.
23491 (ashrhi3): Likewise.
23492 (ashrsi3): Likewise.
23493 (lshrhi3): Likewise.
23494 (lshrsi3): Likewise.
23495
23496 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
23497
23498 PR rtl-optimization/88751
23499 * ira.c (ira): Use the number of the actually referenced registers
23500 when calculating the threshold.
23501
23502 2019-06-06 Jakub Jelinek <jakub@redhat.com>
23503
23504 * configure: Regenerate.
23505
23506 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23507
23508 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
23509 register if it is in memory, so the shift can be emulated with a rotate
23510 instruction.
23511 (ashrhi3): Likewise.
23512 (lshrhi3): Likewise.
23513
23514 2019-06-06 Martin Liska <mliska@suse.cz>
23515
23516 PR tree-optimization/87954
23517 * match.pd: Simplify mult where both arguments are 0 or 1.
23518
23519 2019-06-06 Richard Biener <rguenther@suse.de>
23520
23521 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
23522 put equivalences on UNDEFINED ranges.
23523 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
23524 Make sure to drop defs of stmts added during simplification
23525 to VARYING.
23526
23527 2019-06-06 Richard Biener <rguenther@suse.de>
23528
23529 * tree-ssa-structalias.c: Include tree-cfg.h.
23530 (make_heapvar): Do not make heap vars artificial.
23531 (find_func_aliases_for_builtin_call): Handle stack allocation
23532 functions.
23533 (find_func_aliases): Delay processing of simple enough returns
23534 in non-IPA mode.
23535 (set_uids_in_ptset): Adjust.
23536 (find_what_var_points_to): Likewise.
23537 (solve_constraints): Do not dump points-to sets here.
23538 (compute_points_to_sets): Post-process return statements,
23539 amending the escaped solution. Dump points-to sets afterwards.
23540 (ipa_pta_execute): Dump points-to sets.
23541
23542 2019-06-06 Martin Liska <mliska@suse.cz>
23543
23544 PR web/87933
23545 * doc/install.texi: Fix HTML headers and
23546 titles for 'Installing GCC' pages.
23547
23548 2019-06-06 Martin Liska <mliska@suse.cz>
23549
23550 * ipa-icf-gimple.h (dump_message_1): Remove.
23551 (dump_message): Likewise.
23552 (return_false_with_message_1): Print also file.
23553 (return_false_with_msg): Likewise.
23554 (return_with_result): Likewise.
23555 (return_with_debug): Likewise.
23556 * ipa-icf.c (sem_function::equals_private): Remove call
23557 to dump_message.
23558
23559 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23560
23561 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
23562 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
23563 memory operand for it.
23564 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
23565
23566 2019-06-05 Martin Sebor <msebor@redhat.com>
23567
23568 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
23569 Adjust quoting and hyphenation.
23570 * convert.c (convert_to_real_1): Same.
23571 * gcc.c (driver_wrong_lang_callback): Same.
23572 (driver::handle_unrecognized_options): Same.
23573 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
23574 * opts-common.c (cmdline_handle_error): Same.
23575 (read_cmdline_option): Same.
23576 * opts-global.c (complain_wrong_lang): Same.
23577 (print_ignored_options): Same.
23578 (handle_common_deferred_options): Same.
23579 * pretty-print.h: Same.
23580 * print-rtl.c (debug_bb_n_slim): Same.
23581 * sched-rgn.c (make_pass_sched_fusion): Same.
23582 * tree-cfg.c (verify_gimple_assign_unary): Same.
23583 (verify_gimple_label): Same.
23584 * tree-ssa-operands.c (verify_ssa_operands): Same.
23585 * varasm.c (do_assemble_alias): Same.
23586 (assemble_alias): Same.
23587
23588 2019-06-05 Richard Henderson <rth@twiddle.net>
23589
23590 * config/alpha/alpha.c (direct_return): Move down after
23591 struct machine_function definition; use saved frame_size;
23592 return bool.
23593 (struct machine_function): Add sa_mask, sa_size, frame_size.
23594 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
23595 (alpha_compute_frame_layout): ... new function.
23596 (TARGET_COMPUTE_FRAME_LAYOUT): New.
23597 (alpha_initial_elimination_offset): Use saved sa_size.
23598 (alpha_vms_initial_elimination_offset): Likewise.
23599 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
23600 (alpha_expand_prologue): Use saved frame data. Merge integer
23601 and fp register save loops.
23602 (alpha_expand_epilogue): Likewise.
23603 (alpha_start_function): Use saved frame data.
23604 * config/alpha/alpha-protos.h (direct_return): Update.
23605 (alpha_sa_size): Remove.
23606
23607 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
23608
23609 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
23610 multiplication by a power-of-two value.
23611 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
23612 and turn the modulo operation into a masking operation.
23613
23614 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23615
23616 PR debug/90733
23617 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
23618 with VOIDmode inner operands.
23619
23620 2019-06-05 Richard Biener <rguenther@suse.de>
23621
23622 PR middle-end/90726
23623 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23624 turn an expression graph into a tree.
23625
23626 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23627
23628 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
23629 member.
23630 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
23631 treat it like explicit monotonic schedule modifier.
23632 (expand_omp_for): Initialize has_lastprivate_conditional.
23633 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
23634 schedule modifier.
23635
23636 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
23637 references, lookup in in hash map MEM_REF operand instead of the
23638 MEM_REF itself.
23639 (lower_omp_1): When looking for lastprivate conditional assignments,
23640 handle MEM_REFs with REFERENCE_TYPE operands.
23641
23642 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
23643 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
23644 and references a VLA. Handle references to non-VLAs if is_simd
23645 all privatization clauses like reductions.
23646 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
23647 If omp_is_reference, use always omp simd arrays and set
23648 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
23649 fails, emit reference initialization.
23650
23651 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23652
23653 PR target/89803
23654 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
23655 _mm_mask_fpclass_sd_mask): New intrinsics.
23656 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
23657 * config/i386/i386-builtin.def
23658 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
23659 New builtins.
23660 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
23661 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
23662 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
23663 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
23664 case QI_FTYPE_V2SF_INT): Ditto.
23665 * config/i386/sse.md
23666 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
23667 Extended to insnstructions with mask operands.
23668
23669 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23670
23671 * config/rs6000/constraints.md (define_register_constraint "wp"):
23672 Delete.
23673 (define_register_constraint "wq"): Delete.
23674 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23675 (rs6000_init_hard_regno_mode_ok): Adjust.
23676 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23677 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
23678 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
23679 (define_mode_attr VSa): Delete.
23680 (define_mode_attr VSisa): New.
23681 (rest of file): Adjust.
23682 * doc/md.texi (Machine Constraints): Adjust.
23683
23684 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23685
23686 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
23687 (define_attr "enabled"): Handle those new isa values.
23688
23689 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23690
23691 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
23692 (define_mode_attr VSr5): Delete.
23693 (define_mode_attr VStype_sqrt): Delete.
23694 (define_mode_iterator VSX_SPDP): Delete.
23695 (define_mode_attr VS_spdp_res): Delete.
23696 (define_mode_attr VS_spdp_insn): Delete.
23697 (define_mode_attr VS_spdp_type): Delete.
23698 (*vsx_sqrt<mode>2): Adjust.
23699 (vsx_<VS_spdp_insn>): Delete, split to...
23700 (vsx_xscvdpsp): ... this. New. And...
23701 (vsx_xvcvspdp): ... this. New. And...
23702 (vsx_xvcvdpsp): ... this. New.
23703
23704 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23705
23706 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
23707 and V2DF.
23708 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
23709 (rest of file): Adjust.
23710
23711 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23712
23713 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
23714 (vsx_extract_<mode>_var): Ditto.
23715
23716 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23717
23718 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
23719 with just "wa".
23720
23721 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23722
23723 * config/rs6000/constraints.md (define_register_constraint "ww"):
23724 Delete.
23725 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23726 (rs6000_init_hard_regno_mode_ok): Adjust.
23727 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23728 RS6000_CONSTRAINT_ww.
23729 * config/rs6000/rs6000.md: Adjust.
23730 * config/rs6000/vsx.md: Adjust.
23731 * doc/md.texi (Machine Constraints): Adjust.
23732
23733 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23734
23735 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
23736 (define_mode_attr sd): New.
23737 (define_mode_attr s): New.
23738 (define_mode_attr Ftrad): Delete.
23739 (define_mode_attr Fvsx): Delete.
23740 (define_mode_attr Fs): Delete.
23741 (rest of file): Use the new mode attributes.
23742 * config.rs6000/vsx.md: Use the new mode attributes.
23743
23744 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23745
23746 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
23747 with just "wa".
23748
23749 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23750
23751 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
23752 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
23753 used with VSX_B, VSX_D, or VSX_F, with just "wa".
23754
23755 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
23756
23757 PR target/78263
23758 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
23759 C++ with strict ANSI requirements.
23760
23761 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
23762
23763 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
23764 computations when step is 1.
23765
23766 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23767
23768 * config/rs6000/constraints.md (define_register_constraint "wf"):
23769 Delete.
23770 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23771 (rs6000_init_hard_regno_mode_ok): Adjust.
23772 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23773 RS6000_CONSTRAINT_wf.
23774 * config/rs6000/rs6000.md: Adjust.
23775 * config/rs6000/vsx.md: Adjust.
23776 * doc/md.texi (Machine Constraints): Adjust.
23777
23778 2019-06-04 Andrew Pinski <apinski@marvell.com>
23779
23780 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
23781 Fix ILP32 value.
23782
23783 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23784
23785 * config/rs6000/constraints.md (define_register_constraint "wd"):
23786 Delete.
23787 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23788 (rs6000_init_hard_regno_mode_ok): Adjust.
23789 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23790 RS6000_CONSTRAINT_wd.
23791 * config/rs6000/rs6000.md: Adjust.
23792 * config/rs6000/vsx.md: Adjust.
23793 * doc/md.texi (Machine Constraints): Adjust.
23794
23795 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23796
23797 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
23798 (rest of file): Adjust.
23799
23800 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23801
23802 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
23803 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
23804 (vsx_splat_<mode>_reg): Adjust.
23805
23806 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23807
23808 * config/rs6000/constraints.md (define_register_constraint "ws"):
23809 Delete.
23810 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23811 (rs6000_init_hard_regno_mode_ok): Adjust.
23812 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23813 RS6000_CONSTRAINT_ws.
23814 * config/rs6000/rs6000.md: Adjust.
23815 * config/rs6000/vsx.md: Adjust.
23816 * doc/md.texi (Machine Constraints): Adjust.
23817
23818 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23819
23820 * config/rs6000/constraints.md (define_register_constraint "wv"):
23821 Delete.
23822 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23823 (rs6000_init_hard_regno_mode_ok): Adjust.
23824 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23825 RS6000_CONSTRAINT_wv.
23826 * config/rs6000/rs6000.md: Adjust.
23827 * config/rs6000/vsx.md: Adjust.
23828 * doc/md.texi (Machine Constraints): Adjust.
23829
23830 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23831
23832 * config/rs6000/constraints.md (define_register_constraint "wi"):
23833 Delete.
23834 (define_register_constraint "wt"): Delete.
23835 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23836 (rs6000_init_hard_regno_mode_ok): Adjust.
23837 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23838 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
23839 * config/rs6000/rs6000.md: Adjust.
23840 * config/rs6000/vsx.md: Adjust.
23841 * doc/md.texi (Machine Constraints): Adjust.
23842
23843 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
23844
23845 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
23846 const.
23847 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
23848 default_elf_asm_output_external.
23849
23850 2019-06-04 Martin Liska <mliska@suse.cz>
23851
23852 * ipa-icf.c (INCLUDE_LIST): Remove.
23853 (sem_item_optimizer::execute): Remove call to init_wpa.
23854 * ipa-icf.h (init_wpa): Remove.
23855
23856 2019-06-04 Jakub Jelinek <jakub@redhat.com>
23857
23858 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
23859 conditional on combined for simd.
23860 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
23861 member.
23862 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
23863 constructs, don't remove lastprivate_conditional_map, but instead set
23864 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
23865 to parent construct temporaries.
23866 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
23867 like !ctx->lastprivate_conditional_map.
23868 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
23869 use up->outer context instead of up.
23870 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
23871 gimple_omp_for_combined_p.
23872 (expand_omp_for_static_nochunk): Likewise.
23873 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
23874 probably moved over into expand_omp_for_generic rather than being copied
23875 there.
23876
23877 2019-06-04 Martin Liska <mliska@suse.cz>
23878
23879 * value-prof.c (dump_histogram_value): Fix typo.
23880 (gimple_mod_subtract_transform): Likewise.
23881
23882 2019-06-04 Richard Biener <rguenther@suse.de>
23883
23884 PR middle-end/90726
23885 * tree-chrec.c (chrec_contains_symbols): Add to visited.
23886 (tree_contains_chrecs): Likewise.
23887 (chrec_contains_symbols_defined_in_loop): Move here and avoid
23888 exponential behaivor from ...
23889 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23890 ... here.
23891 (expression_expensive_p): Avoid exponential behavior and compute
23892 expanded size, rejecting any expansion.
23893 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
23894 (idx_contains_abnormal_ssa_name_p): Likewise.
23895 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
23896 (contains_abnormal_ssa_name_p): Simplify and use
23897 walk_tree_without_duplicates.
23898
23899 2019-06-04 Richard Biener <rguenther@suse.de>
23900
23901 PR tree-optimization/90738
23902 Revert
23903 2019-06-03 Richard Biener <rguenther@suse.de>
23904
23905 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23906 full reference tree and record in ref->ref.
23907 (vn_reference_lookup_3): Pass in original ref to
23908 ao_ref_init_from_vn_reference.
23909 (vn_reference_lookup): Likewise.
23910 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23911 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23912 Handle non-decl bases in the original reference.
23913
23914 2019-06-04 Martin Liska <mliska@suse.cz>
23915
23916 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
23917 number of references.
23918 (sem_item_optimizer::do_congruence_step):
23919 (sem_item_optimizer::worklist_push): Dump how references
23920 a class has.
23921 (sem_item_optimizer::worklist_pop): Use heap.
23922 (sem_item_optimizer::process_cong_reduction): Likewise.
23923 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
23924
23925 2019-06-04 Martin Liska <mliska@suse.cz>
23926
23927 * ipa-icf.h (struct sem_usage_pair_hash): New.
23928 (sem_usage_pair_hash::hash): Likewise.
23929 (sem_usage_pair_hash::equal): Likewise.
23930 (struct sem_usage_hash): Likewise.
23931 * ipa-icf.c (sem_item::sem_item): Initialize
23932 referenced_by_count.
23933 (sem_item::add_reference): Register a reference
23934 in ref_map and not in target->usages.
23935 (sem_item::setup): Remove initialization of
23936 dead vectors.
23937 (sem_item::~sem_item): Remove usage of dead vectors.
23938 (sem_item::dump): Remove dump of references.
23939 (sem_item_optimizer::sem_item_optimizer): Initialize
23940 m_references.
23941 (sem_item_optimizer::read_section): Remove useless
23942 dump.
23943 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
23944 (sem_item_optimizer::build_graph): Pass m_references
23945 to ::add_reference.
23946 (sem_item_optimizer::verify_classes): Remove usage of dead
23947 vectors.
23948 (sem_item_optimizer::traverse_congruence_split): Return true
23949 when a class is split.
23950 (sem_item_optimizer::do_congruence_step_for_index): Use
23951 hash_map for look up of (sem_item *, index). That brings
23952 significant speed up.
23953 (sem_item_optimizer::do_congruence_step): Return true
23954 when a split is done.
23955 (congruence_class::is_class_used): Use referenced_by_count.
23956
23957 2019-06-04 Alan Modra <amodra@gmail.com>
23958
23959 PR target/90689
23960 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
23961 error.
23962
23963 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23964
23965 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
23966 * config/rs6000/rs6000.c (direct_move_p): Adjust.
23967 (rs6000_secondary_reload_simple_move): Adjust.
23968 (rs6000_opt_masks): Neuter the "mfpgpr" option.
23969 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
23970 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
23971 comment.
23972 (power6x): Adjust.
23973 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
23974 (floatunssi<mode>2_lfiwzx): Adjust.
23975 (fix_trunc<mode>si2_stfiwx): Adjust.
23976 (fixuns_trunc<mode>si2_stfiwx): Adjust.
23977 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
23978 (mfpgpr): Mark as deprecated.
23979 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
23980 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
23981 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
23982
23983 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23984
23985 * config/rs6000/constraints.md (define_register_constraint "wg"):
23986 Delete.
23987 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23988 RS6000_CONSTRAINT_wg.
23989 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23990 (rs6000_init_hard_regno_mode_ok): Adjust.
23991 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
23992 Delete "wg" alternatives.
23993 * doc/md.texi (Machine Constraints): Adjust.
23994
23995 2019-06-03 Alan Modra <amodra@gmail.com>
23996
23997 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
23998 (get_uncond_jump_length): Assert length less than INT_MAX and
23999 non-negative.
24000
24001 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24002
24003 PR middle-end/64242
24004 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24005 block.
24006 (expand_builtin_nonlocal_goto): Likewise.
24007
24008 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24009
24010 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24011 (aarch64_asm_output_external): Declare.
24012 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24013 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24014 (aarch64_asm_output_alias): New.
24015 (aarch64_asm_output_external): New.
24016 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24017 (ASM_OUTPUT_EXTERNAL): Define.
24018
24019 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24020 * tree-vrp.h (value_range_base::nonzero_p): New.
24021 (value_range_base::set_nonnull): Rename to...
24022 (value_range_base::set_nonzero): ...this.
24023 (value_range_base::set_null): Rename to...
24024 (value_range_base::set_zero): ...this.
24025 (value_range::set_nonnull): Remove.
24026 (value_range::set_null): Remove.
24027 * tree-vrp.c (range_is_null): Remove.
24028 (range_is_nonnull): Remove.
24029 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24030 instead of range_is_*null.
24031 (extract_range_from_unary_expr): Same.
24032 (value_range_base::set_nonnull): Rename to...
24033 (value_range_base::set_nonzero): ...this.
24034 (value_range::set_nonnull): Remove.
24035 (value_range_base::set_null): Rename to...
24036 (value_range_base::set_zero): ...this.
24037 (value_range::set_null): Remove.
24038 (extract_range_from_binary_expr): Rename set_*null uses to
24039 set_*zero.
24040 (extract_range_from_unary_expr): Same.
24041 (union_helper): Same.
24042 * vr-values.c (get_value_range): Use set_*zero instead of
24043 set_*null.
24044 (vr_values::extract_range_from_binary_expr): Same.
24045 (vr_values::extract_range_basic): Same.
24046
24047 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24048
24049 PR driver/90684
24050 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24051
24052 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24053
24054 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24055 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24056 Rename to...
24057 (aarch64_<su>abd<mode>_3): ... This.
24058 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24059
24060 2019-06-03 Richard Biener <rguenther@suse.de>
24061
24062 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24063 full reference tree and record in ref->ref.
24064 (vn_reference_lookup_3): Pass in original ref to
24065 ao_ref_init_from_vn_reference.
24066 (vn_reference_lookup): Likewise.
24067 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24068 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24069 Handle non-decl bases in the original reference.
24070
24071 2019-06-03 Martin Liska <mliska@suse.cz>
24072
24073 * doc/generic.texi: Remove Java Trees.
24074
24075 2019-06-03 Martin Liska <mliska@suse.cz>
24076
24077 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24078 returns 0 when operands are equal.
24079
24080 2019-06-03 Richard Biener <rguenther@suse.de>
24081
24082 PR tree-optimization/90716
24083 * tree-loop-distribution.c (destroy_loop): Process blocks in
24084 correct order.
24085
24086 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24087
24088 PR target/88837
24089 * vector-builder.h (vector_builder::count_dups): New method.
24090 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24091 Declare prototype.
24092 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24093 (vec_init<mode><Vel>): New pattern.
24094 * config/aarch64/aarch64.c (emit_insr): New function.
24095 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24096 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24097 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24098 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24099
24100 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24101
24102 PR tree-optimization/90681
24103 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24104 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24105 special case for SLP, but fail on non-groupped loads.
24106
24107 2019-06-03 Martin Liska <mliska@suse.cz>
24108
24109 * cfg.c (debug): Use TDF_DETAILS for debug and
24110 print edge info only once.
24111
24112 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24113
24114 PR fortran/90539
24115 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24116
24117 2019-06-01 Martin Sebor <msebor@redhat.com>
24118
24119 PR middle-end/90694
24120 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24121
24122 2019-05-31 Jan Hubicka <jh@suse.cz>
24123
24124 * alias.c: Include ipa-utils.h.
24125 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24126 * ipa-devirt.c (prevailing_odr_type): New.
24127 * ipa-utils.h (previaling_odr_type): Declare.
24128
24129 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
24130 Hongtao Liu <hongtao.liu@intel.com>
24131
24132 PR target/89355
24133 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
24134 NOTE_INSN_DELETED_LABEL check.
24135
24136 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
24137 Robert Suchanek <robert.suchanek@mips.com>
24138
24139 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
24140 and 3rd operands of the fmadd/fmsub/maddv builtin.
24141
24142 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24143
24144 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
24145 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24146 on OMP_SIMD if not nested inside of worksharing loop that also has
24147 lastprivate conditional clause for the same decl.
24148 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
24149 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
24150 on simd.
24151 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
24152 on simd construct.
24153 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
24154 on simd construct.
24155 (lower_lastprivate_clauses): Likewise.
24156 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
24157 calling lower_rec_input_clauses.
24158 (lower_omp_for): Likewise.
24159 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
24160 clause on simd construct.
24161 * omp-expand.c (expand_omp_simd): Initialize cond_var if
24162 OMP_CLAUSE__CONDTEMP_ clause is present.
24163
24164 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
24165 ivar and lvar.
24166
24167 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
24168
24169 PR c/43673
24170 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
24171 TEX_D32, TEX_D64 or TEX_D128.
24172
24173 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24174
24175 * match.pd (~(vec?cst1:cst2)): New transformation.
24176
24177 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24178
24179 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
24180 ((size_t)(A /[ex] B) CMP C): New transformation.
24181
24182 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
24183
24184 * doc/md.texi: Document define_insn_and_rewrite.
24185 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
24186 * gensupport.c (queue_elem): Update comment.
24187 (replace_operands_with_dups): New function.
24188 (gen_rewrite_sequence): Likewise.
24189 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
24190 * read-rtl.c (apply_subst_iterator): Likewise.
24191 (add_condition_to_rtx, named_rtx_p): Likewise.
24192 (rtx_reader::read_rtx_operand): Likewise.
24193 * config/aarch64/aarch64-sve.md
24194 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
24195 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
24196 define_insn_and_rewrite.
24197 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
24198 Remove separate define_split.
24199
24200 2019-05-31 Jan Hubicka <jh@suse.cz>
24201
24202 * tree-ssa-alias.c (type_has_components_p): New function.
24203 (aliasing_component_refs_p): Use it.
24204
24205 2019-05-31 Martin Liska <mliska@suse.cz>
24206
24207 * gdbhooks.py: Add const_tree to TreePrinter.
24208
24209 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
24210
24211 PR debug/86964
24212 * common.opt (feliminate-unused-debug-symbols): Enable by default.
24213 * doc/invoke.texi (Debugging Options): Document new default of
24214 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
24215
24216 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24217
24218 PR tree-optimization/90671
24219 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
24220 template_block used to be empty on the first call, don't use
24221 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
24222 seq with bb_seq and set it with set_bb_seq.
24223
24224 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
24225
24226 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
24227
24228 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24229 Michael Meissner <meissner@linux.ibm.com>
24230
24231 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
24232 (prefixed_mem_operand): Likewise.
24233 (non_prefixed_mem_operand): Likewise.
24234 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
24235 prototype.
24236 * config/rs6000/rs6000.c (print_operand_address): Handle
24237 PC-relative addresses.
24238 (mode_supports_prefixed_address_p): New function.
24239 (rs6000_prefixed_address): New function.
24240 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
24241 (SYMBOL_REF_PCREL_P): Likewise.
24242
24243 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24244
24245 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
24246 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
24247 (gimplify_omp_for): If worksharing loop with lastprivate conditional
24248 is nested inside of parallel region, add _condtemp_ clause to both.
24249 * tree-nested.c (convert_nonlocal_omp_clauses,
24250 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
24251 assertion failure.
24252 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
24253 member.
24254 * omp-general.c (omp_extract_for_data): Compute it.
24255 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
24256 (lower_rec_input_clauses): Likewise.
24257 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
24258 clause is already present, just add one further one after it.
24259 (lower_lastprivate_clauses): Handle cond_ptr with array type.
24260 (lower_send_shared_vars): Clear _condtemp_ vars.
24261 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
24262 or section or taskgroup.
24263 * omp-expand.c (determine_parallel_type): Disallow combining only if
24264 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
24265 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
24266 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24267 expand_omp_for_static_chunk, expand_omp_for): Use
24268 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
24269 determine if a special set of API routines are needed and if condtemp
24270 needs to be initialized, while always initialize cond_var if
24271 fd->lastprivate_conditional is non-zero.
24272
24273 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24274 Michael Meissner <meissner@linux.ibm.com>
24275
24276 * config/rs6000/constraints.md (eI): New constraint.
24277 * config/rs6000/predicates.md (cint34_operand): New predicate.
24278 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
24279 (SIGNED_34BIT_OFFSET_P): Likewise.
24280 * doc/md.texi (eI): Document constraint.
24281
24282 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
24283
24284 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
24285
24286 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24287 Michael Meissner <meissner@linux.ibm.com>
24288
24289 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
24290 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
24291 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
24292 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
24293 (OTHER_FUTURE_MASKS): Likewise.
24294 (POWERPC_MASKS): Likewise.
24295 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
24296 specified without -mprefixed-addr or -mcpu=future. Error if
24297 -mprefixed-addr is specified without -mcpu=future.
24298 (rs6000_opt_masks): Add entry for prefixed-addr.
24299 * rs6000.opt (mprefixed-addr): New option.
24300
24301 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
24302
24303 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
24304 cfun->is_thunk check.
24305
24306 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24307
24308 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24309 to length.
24310
24311 2019-05-30 Martin Liska <mliska@suse.cz>
24312
24313 * gdbinit.in: Fix 'ptc' command. Add trt
24314 that prints TREE_TYPE($).
24315
24316 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
24317 Alan Modra <amodra@gmail.com>
24318
24319 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
24320 calls here...
24321 (rs6000_indirect_call_template_1): ...and here.
24322 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
24323 plt16_ha, plt16_lo, mtctr indirect calls. Use
24324 rs6000_pltseq_enum.
24325 (rs6000_decl_ok_for_sibcall): New function.
24326 (rs6000_function_ok_for_sibcall): Refactor.
24327 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
24328 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
24329 when pcrel. Reorganize.
24330 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
24331 * rs6000.h (rs6000_pltseq_enum): New enum.
24332 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
24333 (*pltseq_tocsave): Use rs6000_pltseq_enum.
24334 (*pltseq_plt16_ha): Likewise.
24335 (*pltseq_plt16_lo): Likewise.
24336 (*pltseq_mtctr): Likewise.
24337 (*pltseq_plt_pcrel): New insn.
24338 (*call_local_aix): Handle @notoc calls.
24339 (*call_value_local_aix): Likewise.
24340 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
24341 (*call_value_nonlocal_aix): Likewise.
24342 (*call_indirect_pcrel): New insn.
24343 (*call_value_indirect_pcrel): Likewise.
24344
24345 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
24346
24347 * config/i386/sse.md (*save_multiple<mode>): Rename from
24348 save_multiple<mode>.
24349 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
24350 (*restore_multiple_and_return<mode>): Rename from
24351 restore_multiple_and_return<mode>.
24352 (*restore_multiple_leave_return<mode>): Rename from
24353 restore_multiple_leave_return<mode>.
24354
24355 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
24356
24357 * config.gcc (rx-*-linux*): New target.
24358 * config/rx/elf.opt: New file.
24359 * config/rx/linux.h: Likewise.
24360 * config/rx/t-linux: Likewise.
24361 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
24362 make it zero.
24363 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
24364 (ASM_APP_OFF): Likewise.
24365 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
24366 moved elsewhere.
24367
24368 2019-05-29 Jan Hubicka <jh@suse.cz>
24369
24370 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
24371 variants are pointer equivalent.
24372
24373 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24374
24375 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
24376 * config/aarch64/aarch64-sve2.md: New file.
24377 (<u>avg<mode>3_floor): New pattern.
24378 (<u>avg<mode>3_ceil): Likewise.
24379 (*<sur>h<addsub><mode>): Likewise.
24380 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
24381 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
24382
24383 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24384
24385 PR bootstrap/90543
24386 * optc-save-gen.awk: In cl_optimization_print, use correct condition
24387 for var_opt_string printing. In cl_optimization_print_diff, print
24388 (null) instead of invoking undefined behavior if one of the
24389 var_opt_string pointers is NULL and use && instead of first || in the
24390 guarding condition. For var_target_other options, handle const char *
24391 target variables similarly to const char * optimize node variables.
24392
24393 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
24394
24395 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
24396 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
24397 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
24398 Add autib1716 and pacib1716 initialisation.
24399 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
24400 for autib1716 and pacib1716.
24401 * config/aarch64/aarch64-protos.h (aarch64_key_type,
24402 aarch64_post_cfi_startproc): Define.
24403 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
24404 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
24405 aarch64_handle_pac_ret_protection): Set default sign key to A.
24406 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
24407 aarch64_expand_prologue): Add check for b-key.
24408 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
24409 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
24410 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
24411 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
24412 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
24413 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
24414 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24415 * config/aarch64/aarch64.md (do_return): Add check for b-key.
24416 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
24417 pauth_hint_num_a with pauth_hint_num.
24418 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
24419 pauth_hint_num_a with pauth_hint_num.
24420 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
24421 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
24422 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24423 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
24424 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
24425 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
24426 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
24427 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24428 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
24429 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
24430 UNSPEC_AUTIA1716 respectively.
24431 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
24432 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
24433 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
24434 * doc/invoke.texi (-mbranch-protection): Add b-key type.
24435 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
24436 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
24437
24438 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24439
24440 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
24441 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
24442 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
24443 explicit clause on combined parallel into implicit shared clause.
24444 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
24445 and firstprivate if the decl has one too from combined parallel to
24446 the worksharing construct.
24447
24448 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
24449 Michael Meissner <meissner@linux.ibm.com>
24450
24451 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
24452
24453 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
24454
24455 * rtl.h (LABEL_REF_P): New #define.
24456
24457 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
24458
24459 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
24460
24461 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24462
24463 * internal-fn.c: Marked mask_load_direct as vectorizable.
24464 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
24465 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
24466 combined even if masks different with allow_slp_p param.
24467 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
24468 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
24469 dissolve SLP-only vectorizable groups when SLP has been discarded.
24470 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
24471 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
24472 masks.
24473 (vect_build_slp_tree_1): Fixed comment typo.
24474 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
24475 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
24476 loads for SLP only.
24477 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
24478 vectorizable.
24479 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
24480
24481 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24482
24483 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
24484 Remove obsolete use_thunk reference.
24485 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24486 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24487 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24488 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24489 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24490 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24491 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24492 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24493 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24494
24495 2019-05-28 Nathan Sidwell <nathan@acm.org>
24496
24497 * tree.h (IDENTIFIER_ANON_P): New.
24498 (anon_aggrname_format, anon_aggname_p): Don't declare.
24499 (make_anon_name): Declare.
24500 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
24501 (hash_tree): Likewise.
24502 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
24503 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
24504 (anon_cnt, make_anon_name): New.
24505
24506 2019-05-28 Martin Liska <mliska@suse.cz>
24507
24508 PR other/90315
24509 * opts-global.c (decode_options): Print help for all
24510 help_option_arguments.
24511 * opts.c (print_help): Add new argument.
24512 (common_handle_option): Remember all values into
24513 help_option_arguments.
24514 * opts.h (print_help): Add new argument.
24515
24516 2019-05-28 Martin Liska <mliska@suse.cz>
24517
24518 PR ipa/90555
24519 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
24520 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
24521 (func_checker::compare_bb): Call compare_loops.
24522
24523 2019-05-27 Jakub Jelinek <jakub@redhat.com>
24524
24525 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24526 on sections construct.
24527 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
24528 construct.
24529 (lower_omp_sections): Handle lastprivate conditional.
24530 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
24531 lastprivate_conditional_map.
24532 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
24533
24534 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
24535 critical, taskgroup and section regions when looking for a region
24536 with non-NULL lastprivate_conditional_map.
24537
24538 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24539
24540 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
24541 (*ix86_gen_sub3): Ditto.
24542 (*ix86_gen_sub3_carry): Ditto.
24543 (*ix86_gen_one_cmpl2): Ditto.
24544 (*ix86_gen_andsp): Ditto.
24545 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
24546 (gen_and2_insn): New static function.
24547 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
24548 Use gen_add3_insn instead of ix86_gen_add3.
24549 (ix86_expand_split_stack_prologue): Use gen_add2_insn
24550 instead of ix86_gen_add3.
24551 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
24552 Use gen_sub3_insn instead of ix86_gen_sub3.
24553 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
24554 instead of ix86_gen_add3.
24555 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
24556 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
24557 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
24558 * config/i386/i386-options.c (ix86_option_override_internal):
24559 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
24560 ix86_gen_one_cmpl2 and ix86_gen_andsp.
24561
24562 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
24563
24564 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
24565 and DW_OP_GNU_const_index opcodes.
24566
24567 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24568
24569 * config/i386/i386.h (STACK_SIZE_MODE): Define.
24570
24571 2019-05-27 Richard Biener <rguenther@suse.de>
24572
24573 PR tree-optimization/90637
24574 * tree-ssa-sink.c (statement_sink_location): Honor the
24575 computed sink location for single-uses.
24576
24577 2019-05-27 Richard Biener <rguenther@suse.de>
24578
24579 PR middle-end/90610
24580 * match.pd (vec_perm): Avoid clobbering op0 when not generating
24581 a bit-insert.
24582
24583 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24584
24585 * config/i386/i386.md (@sub<mode>3_carry): Rename
24586 from sub<mode>3_carry.
24587 (@leave_<mode>): New expander.
24588 (*leave): Rename from leave.
24589 (*leave_rex64): Rename from leave_rex64.
24590 (@monitorx_<mode>): Rename from monitorx_<mode>.
24591 (@clzero_<mode>): Rename from clzero_<mode>.
24592 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
24593 from sse3_monitor_<mode>.
24594 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
24595 (*ix86_gen_leave): Ditto.
24596 (*ix86_gen_monitor): Ditto.
24597 (*ix86_gen_monitorx): Ditto.
24598 (*ix86_gen_clzero): Ditto.
24599 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
24600 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
24601 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
24602 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
24603 Use gen_sse3_monitor instead of ix86_gen_monitor.
24604 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
24605 instead of ix86_gen_monitorx.
24606 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
24607 instead of ix86_gen_clzero.
24608 * config/i386/i386-options.c (ix86_option_override_internal):
24609 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
24610 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
24611
24612 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24613
24614 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
24615 Rename from tls_global_dynamic_64_<mode>.
24616 (@tls_local_dynamic_base_64_<mode>): Rename from
24617 tls_local_dynamic_base_64_<mode>.
24618 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
24619 Remove indirect function.
24620 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
24621 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
24622 instead of ix86_gen_tls_global_dynamic_64.
24623 Use gen_tls_local_dynamic_base_64 instead of
24624 ix86_gen_tls_local_dynamic_base_64.
24625 * config/i386/i386-options.c (ix86_option_override_internal):
24626 Do not initialize ix86_gen_tls_global_dynamic_64 and
24627 ix86_gen_tls_local_dynamic_base_64.
24628
24629 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24630
24631 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
24632 Rename from pro_epilogue_adjust_stack_<mode>_add.
24633 (@pro_epilogue_adjust_stack_sub_<mode>)
24634 Rename from pro_epilogue_adjust_stack_<mode>_sub.
24635 (@allocate_stack_worker_probe_<mode>):
24636 Rename from allocate_stack_worker_probe_<mode>.
24637 (allocate_stack): Use gen_allocate_stack_worker_probe.
24638 (probe_stack): Use gen_probe_stack_1.
24639 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
24640 (@adjust_stack_and_probe_<mode>): Rename from
24641 adjust_stack_and_probe<mode>.
24642 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
24643 (stack_protect_set): Use gen_stack_protect_set_1.
24644 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
24645 (stack_protect_test): Use gen_stack_protect_test_1.
24646 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
24647 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
24648 Remove indirect function.
24649 (*ix86_gen_adjust_stack_and_probe): Ditto.
24650 (*ix86_gen_probe_stack_range): Ditto.
24651 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
24652 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
24653 (ix86_adjust_stack_and_probe_stack_clash): Use
24654 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
24655 (ix86_adjust_stack_and_probe): Ditto.
24656 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
24657 of ix86_gen_probe_stack_range.
24658 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
24659 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
24660 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
24661 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
24662 CODE_FOR_stack_protect_test_{si,di}.
24663 * config/i386/i386-options.c (ix86_option_override_internal):
24664 Do not initialize ix86_gen_allocate_stack_worker,
24665 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
24666
24667 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
24668
24669 * doc/invoke.texi (Link Options): Many editorial changes around
24670 -flinker-output.
24671
24672 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24673
24674 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
24675 pre-Solaris 11 referene and most Studio compiler details.
24676
24677 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
24678
24679 PR target/90530
24680 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
24681 DImode to SImode in floating-point registers on 64-bit target.
24682 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
24683 register_operand in xmpyu patterns.
24684
24685 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24686
24687 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
24688 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
24689 OMP_CLAUSE__REDUCTEMP_.
24690 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
24691 OMP_CLAUSE__CONDTEMP_.
24692 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
24693 * tree-pretty-print.c (dump_omp_clause): Likewise.
24694 * tree-nested.c (convert_nonlocal_omp_clauses,
24695 convert_local_omp_clauses): Likewise.
24696 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
24697 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
24698 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
24699 on OMP_FOR.
24700 (gimplify_omp_for): Warn and disable conditional modifier from
24701 lastprivate on loop iterators.
24702 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
24703 member.
24704 * omp-general.c (omp_extract_for_data): Initialize it.
24705 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
24706 member.
24707 (delete_omp_context): Delete it.
24708 (lower_lastprivate_conditional_clauses): New function.
24709 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
24710 handle lastprivate conditional clauses.
24711 (lower_reduction_clauses): Add CLIST argument, emit it into
24712 the critical section if any.
24713 (lower_omp_sections): Adjust lower_lastprivate_clauses and
24714 lower_reduction_clauses callers.
24715 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
24716 to lower_lastprivate_clauses.
24717 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
24718 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
24719 clist into a critical section if not emitted there already by
24720 lower_reduction_clauses.
24721 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
24722 callers.
24723 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
24724 conditional variables.
24725 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
24726 clause is present.
24727 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24728 expand_omp_for_static_chunk): Handle lastprivate conditional.
24729 (expand_omp_for): Handle fd.lastprivate_conditional like
24730 fd.have_reductemp.
24731
24732 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24733
24734 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
24735 kernel does not exit cleanly.
24736 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
24737
24738 2019-05-24 Jason Merrill <jason@redhat.com>
24739
24740 Revert:
24741 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24742
24743 2019-05-24 Richard Biener <rguenther@suse.de>
24744
24745 PR testsuite/90607
24746 * tree-loop-distribution.c (struct partition): Add location
24747 member.
24748 (partition_alloc): Initialize all fields.
24749 (generate_memset_builtin): Use the location recorded in the
24750 partition for the generated call.
24751 (generate_memcpy_builtin): Likewise.
24752 (classify_partition): Record the location of a single store
24753 as location for the partition.
24754
24755 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24756
24757 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
24758 for lo-part.
24759
24760 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
24761
24762 PR target/90588
24763 * common/config/aarch64/aarch64-common.c
24764 (aarch64_rewrite_selected_cpu): Change local temporary variable
24765 type from unsigned long to uint64_t.
24766 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
24767 aarch64_get_extension_string_for_isa_flags): Change declaration to
24768 match new definition by replacing unsigned long with uint64_t.
24769
24770 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24771
24772 PR target/90568
24773 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
24774 gen_attr_type just once instead of 4-7 times. Formatting fixes.
24775 Handle stack_protect_test_<mode> codegen similarly to corresponding
24776 sub instruction.
24777
24778 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
24779
24780 * config/i386/darwin.h: Reject -mfentry*.
24781 * doc/sourcebuild.texi: Document mfentry target support.
24782
24783 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24784
24785 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
24786 Rename to rs6000_global_entry_point_prologue_needed_p. Return
24787 false for PC-relative functions.
24788 (rs6000_output_function_prologue): Change called function name to
24789 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
24790 name,1" for PC-relative functions.
24791 (rs6000_elf_declare_function_name): Change called function name to
24792 rs6000_global_entry_point_prologue_needed_p.
24793
24794 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
24795
24796 PR target/90552
24797 * config/i386/i386.c (gen_rtx_cost):
24798 Use ix86_tune_cost instead of ix86_cost.
24799
24800 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24801 Michael Meissner <meissner@linux.ibm.com>
24802 Segher Boessenkool <segher@kernel.crashing.org>
24803
24804 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
24805 OPTION_MASK_PCREL.
24806 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
24807 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
24808 (rs6000_fndecl_pcrel_p): Likewise.
24809 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
24810 error if -mpcrel is requested without -mcpu=future.
24811 (rs6000_opt_masks): Add entry for pcrel.
24812 (rs6000_fndecl_pcrel_p): New function.
24813 (rs6000_pcrel_p): Likewise.
24814 * config/rs6000/rs6000.opt (mpcrel): New option.
24815 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
24816
24817 2019-05-23 Jan Hubicka <jh@suse.cz>
24818 Martin Liska <mliska@suse.cz>
24819
24820 PR tree-optimization/90576
24821 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
24822 poly_int_tree_p.
24823 (aliasing_component_refs_p): Fix three way size compare conditional;
24824 give up earlier in case we can not decide on equivalence.
24825
24826 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24827 Michael Meissner <meissner@linux.ibm.com>
24828 Segher Boessenkool <segher@kernel.crashing.org>
24829
24830 * config.gcc: Add future cpu.
24831 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
24832 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
24833 #define.
24834 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
24835 (RS6000_CPU): New instantiation for future cpu.
24836 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24837 PROCESSOR_FUTURE.
24838 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
24839 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
24840 * config/rs6000/rs6000-tables.opt: Regenerate.
24841 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
24842 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
24843 (rs6000_machine_from_flags): Handle future cpu.
24844 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
24845 PROCESSOR_POWER9 for now.
24846 (rs6000_adjust_cost): Likewise.
24847 (rs6000_issue_rate): Likewise.
24848 (rs6000_register_move_cost): Likewise.
24849 (rs6000_opt_masks): Add entry for future.
24850 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
24851 (MASK_FUTURE): New #define.
24852 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
24853 * config/rs6000/rs6000.opt (mfuture): New target option.
24854 * doc/invoke.texi (mcpu): Add future cpu.
24855
24856 2019-05-23 Martin Liska <mliska@suse.cz>
24857
24858 PR c++/90587
24859 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
24860 operation points to a temporary (pointed via tree_to_wide_ref)
24861 that is out of scope after the &.
24862
24863 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
24864
24865 PR c++/90592
24866 * doc/extend.texi (Function Names): Add missing word.
24867
24868 2019-05-23 Richard Biener <rguenther@suse.de>
24869
24870 PR tree-optimization/88440
24871 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
24872 at -O[2s]+.
24873 * tree-loop-distribution.c (generate_memset_builtin): Fold the
24874 generated call.
24875 (generate_memcpy_builtin): Likewise.
24876 (distribute_loop): Pass in whether to only distribute patterns.
24877 (prepare_perfect_loop_nest): Also allow size optimization.
24878 (pass_loop_distribution::execute): When optimizing a loop
24879 nest for size allow pattern replacement.
24880
24881 2019-05-23 Jakub Jelinek <jakub@redhat.com>
24882
24883 PR target/90568
24884 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
24885 of xor.
24886
24887 2019-05-23 Martin Liska <mliska@suse.cz>
24888
24889 PR sanitizer/90570
24890 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
24891 expression similarly to gimplify_decl_expr.
24892
24893 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24894
24895 * cse.c (cse_dump_path): s/dump_file/f.
24896
24897 2019-05-22 David Malcolm <dmalcolm@redhat.com>
24898
24899 PR c++/90462
24900 * diagnostic-format-json.cc: Include "selftest.h".
24901 (json_from_expanded_location): Only add "file" key for non-NULL
24902 file strings.
24903 (json_from_location_range): Don't add "start" and "finish"
24904 children if they are UNKNOWN_LOCATION.
24905 (selftest::test_unknown_location): New selftest.
24906 (selftest::test_bad_endpoints): New selftest.
24907 (selftest::diagnostic_format_json_cc_tests): New function.
24908 * json.cc (json::object::get): New function.
24909 (selftest::test_object_get): New selftest.
24910 (selftest::json_cc_tests): Call it.
24911 * json.h (json::object::get): New decl.
24912 * selftest-run-tests.c (selftest::run_tests): Call
24913 selftest::diagnostic_format_json_cc_tests.
24914 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
24915 decl.
24916
24917 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
24918 Andrew Stubbs <amd@codesourcery.com>
24919
24920 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
24921 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
24922 (kernel): Rename to...
24923 (main_kernel): ... this.
24924 (load_image): Load _init_array and _fini_array kernels.
24925 (run): Add argument for kernel to run.
24926 (main): Run init_array_kernel before main_kernel, and
24927 fini_array_kernel after.
24928 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
24929 amdgpu_hsa_kernel attribute on functions.
24930 (gcn_disable_constructors): Delete.
24931 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
24932 * config/gcn/crt0.c (size_t): Define.
24933 (_init_array, _fini_array): New.
24934 (__preinit_array_start, __preinit_array_end,
24935 __init_array_start, __init_array_end,
24936 __fini_array_start, __fini_array_end): Declare weak references.
24937
24938 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
24939
24940 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
24941
24942 2019-05-22 Jason Merrill <jason@redhat.com>
24943
24944 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24945
24946 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
24947
24948 PR target/88483
24949 * config/i386/i386-options.c (ix86_init_machine_status): Set
24950 stack_frame_required to true.
24951 * config/i386/i386.c (ix86_get_frame_size): New function.
24952 (ix86_frame_pointer_required): Replace get_frame_size with
24953 ix86_get_frame_size.
24954 (ix86_compute_frame_layout): Likewise.
24955 (ix86_find_max_used_stack_alignment): Changed to void. Set
24956 stack_frame_required.
24957 (ix86_finalize_stack_frame_flags): Always call
24958 ix86_find_max_used_stack_alignment. Replace get_frame_size with
24959 ix86_get_frame_size.
24960 * config/i386/i386.h (machine_function): Add stack_frame_required.
24961
24962 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
24963
24964 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
24965
24966 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
24967
24968 * common/config/aarch64/aarch64-common.c
24969 (struct aarch64_option_extension, struct processor_name_to_arch,
24970 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
24971 aarch64_contains_opt,
24972 aarch64_get_extension_string_for_isa_flags): Change type of
24973 variables storing flags to uint64_t.
24974 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
24975 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
24976 * config/aarch64/aarch64.c (struct processor,
24977 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
24978 aarch64_validate_march, aarch64_override_options,
24979 aarch64_option_print, aarch64_handle_attr_isa_flags,
24980 aarch64_declare_function_name, aarch64_start_file): Make flag
24981 variables uint64_t.
24982 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
24983 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
24984 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
24985 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
24986 * config/aarch64/driver-aarch64.c
24987 (struct aarch64_arch_extension, struct aarch64_core_data,
24988 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
24989 flag variables uint64_t.
24990 * doc/invoke.texi: Add documentation for new arguments.
24991
24992 2019-05-22 Richard Biener <rguenther@suse.de>
24993
24994 * alias.c (ao_ref_from_mem): Move stack-slot sharing
24995 rewrite ...
24996 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
24997
24998 2019-05-22 Martin Liska <mliska@suse.cz>
24999
25000 PR lto/90500
25001 * doc/extend.texi: Document the change.
25002
25003 2019-05-22 Richard Biener <rguenther@suse.de>
25004
25005 PR tree-optimization/90450
25006 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25007 (mem_ref_hasher::equal): Check it.
25008 (mem_ref_alloc): Initialize it.
25009 (gather_mem_refs_stmt): Set it.
25010
25011 2019-05-22 Richard Biener <rguenther@suse.de>
25012
25013 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25014 Add ABS_EXPR.
25015 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25016 as ABSU_EXPR.
25017
25018 2019-05-22 Alan Modra <amodra@gmail.com>
25019
25020 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25021 (ASM_CPU_SPEC): Conditionally add -many.
25022 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25023 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25024 (rs6000_file_start): ..extracted from here, and modified to
25025 test all ISA bits.
25026 (rs6000_output_function_prologue): Emit .machine as necessary.
25027
25028 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25029
25030 PR middle-end/90553
25031 * ira-lives.c (process_bb_node_lives): Consider defs
25032 for a call insn to be die before the call, not after.
25033
25034 * function.c (assign_parm_setup_block): Raise alignment of
25035 stacked parameter only for STRICT_ALIGNMENT targets.
25036
25037 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25038
25039 * config/rs6000/constraints.md (define_register_constraint "wz"):
25040 Delete.
25041 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25042 RS6000_CONSTRAINT_wz.
25043 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25044 (rs6000_init_hard_regno_mode_ok): Adjust.
25045 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25046 * doc/md.texi (Machine Constraints): Adjust.
25047
25048 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25049
25050 * config/rs6000/constraints.md (define_register_constraint "wl"):
25051 Delete.
25052 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25053 RS6000_CONSTRAINT_wl.
25054 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25055 (rs6000_init_hard_regno_mode_ok): Adjust.
25056 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25057 * doc/md.texi (Machine Constraints): Adjust.
25058
25059 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25060
25061 * config/rs6000/constraints.md (define_register_constraint "wm"):
25062 Delete.
25063 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25064 RS6000_CONSTRAINT_wm.
25065 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25066 (rs6000_init_hard_regno_mode_ok): Adjust.
25067 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25068 * doc/md.texi (Machine Constraints): Adjust.
25069
25070 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25071
25072 * config/rs6000/constraints.md (define_register_constraint "wk"):
25073 Delete.
25074 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25075 RS6000_CONSTRAINT_wk.
25076 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25077 (rs6000_init_hard_regno_mode_ok): Adjust.
25078 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25079 * doc/md.texi (Machine Constraints): Adjust.
25080
25081 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25082
25083 * config/rs6000/constraints.md (define_register_constraint "wj"):
25084 Delete.
25085 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25086 RS6000_CONSTRAINT_wj.
25087 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25088 (rs6000_init_hard_regno_mode_ok): Adjust.
25089 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25090 (VS_64dm): Delete.
25091 * config/rs6000/vsx.md: Ditto.
25092 * doc/md.texi (Machine Constraints): Adjust.
25093
25094 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25095
25096 * config/rs6000/constraints.md (define_register_constraint "wh"):
25097 Delete.
25098 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25099 RS6000_CONSTRAINT_wh.
25100 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25101 (rs6000_init_hard_regno_mode_ok): Adjust.
25102 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25103 * doc/md.texi (Machine Constraints): Adjust.
25104
25105 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25106
25107 PR target/90547
25108 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25109 Avoid calling gen_lowpart with CONST operand.
25110
25111 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25112
25113 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25114 field template_last_to_copy.
25115 (ssa_create_duplicates): Set it, and use it. Attempt to
25116 preserve more debug stmts.
25117
25118 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25119
25120 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25121 (signbit<mode>2): New expander
25122
25123 2019-05-21 James Clarke <jrtc27@jrtc27.com>
25124
25125 PR bootstrap/87338
25126 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25127 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25128
25129 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25130
25131 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25132 %ebx and %ecx bafore calling cpuid with leaf 1 or
25133 non-constant leaf argument.
25134
25135 2019-05-21 Alan Modra <amodra@gmail.com>
25136
25137 PR target/90545
25138 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
25139 power9 direct move cost.
25140
25141 2019-05-21 Richard Biener <rguenther@suse.de>
25142
25143 PR middle-end/90510
25144 * fold-const.c (fold_read_from_vector): New function.
25145 * fold-const.h (fold_read_from_vector): Declare.
25146 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
25147 single-element insert permutations. Canonicalize selector
25148 further and fix issue with last commit.
25149
25150 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25151
25152 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
25153 parameter with default value false to declaration.
25154 (split_edges_for_insertion): New inline function. Wrapper for
25155 split_critical_edges with for_edge_insertion_p = true.
25156 * tree-cfg.c (split_critical_edges): Don't split non-critical
25157 edges if for_edge_insertion_p is false. Fix whitespace.
25158 * tree-ssa-pre.c (pass_pre::execute): Call
25159 split_edges_for_insertion instead of split_critical_edges.
25160 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
25161 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
25162 (pass_data_sink_code): Update function name in the comment.
25163
25164 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25165
25166 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
25167 around is_value_included_in that knows how to handle BIT_AND_EXPR.
25168 (is_pred_expr_subset_of): Use the new function. Handle more cases where
25169 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
25170 positives.
25171
25172 2019-05-21 Martin Liska <mliska@suse.cz>
25173
25174 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
25175 an extra newline.
25176 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
25177 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
25178 vec_lvsr.
25179 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25180 Quote a C type.
25181 (rs6000_function_arg): Likewise.
25182 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
25183 (rs6000_expand_ternop_builtin): Use interval syntax.
25184 (get_element_number): Likewise.
25185 (altivec_expand_builtin): Likewise.
25186 (rs6000_get_function_versions_dispatcher): Quote target_clones.
25187
25188 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25189
25190 PR c++/59813
25191 PR target/90418
25192 * function.h (struct function): Add calls_eh_return member.
25193 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
25194 gimplifying __builtin_eh_return call.
25195 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
25196 to cfun.
25197 (expand_call_inline): Or in src_cfun->calls_eh_return into
25198 dst_cfun->calls_eh_return.
25199 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
25200 cfun->calls_eh_return.
25201 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
25202 * lto-streamer-out.c (output_struct_function_base): Write
25203 calls_eh_return.
25204
25205 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
25206
25207 PR rtl-optimization/43147
25208 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
25209 IX86_BUILTIN_SHUFPD.
25210
25211 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25212
25213 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
25214 (refs_may_alias_p_1): ... here; update stats.
25215 (refs_may_alias_p): Do not update stats here.
25216
25217 2019-05-20 Richard Biener <rguenther@suse.de>
25218
25219 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
25220 doesn't produce pointers.
25221 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
25222 the first operand points to.
25223
25224 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25225
25226 * tree-ssa-alias.c (compare_sizes): New function.
25227 (sompare_type_sizes): New function
25228 (aliasing_component_refs_p): Use it.
25229 (indirect_ref_may_alias_decl_p): Likewise.
25230
25231 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25232
25233 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
25234
25235 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25236
25237 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
25238 (LIBLSAN_EARLY_SPEC): Likewise.
25239 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
25240
25241 2019-05-20 Martin Liska <mliska@suse.cz>
25242
25243 * config/i386/i386.c (ix86_libc_has_fast_function):
25244 Add ATTRIBUTE_UNUSED for the argument.
25245
25246 2019-05-20 Richard Biener <rguenther@suse.de>
25247
25248 * gimple-match-head.c: Include vec-perm-indices.h.
25249 * generic-match-head.c: Likewise.
25250 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
25251 is included.
25252 * fold-const.c (fold_vec_perm): Export.
25253 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
25254 (match.pd): ...here.
25255
25256 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25257
25258 * cfgloop.h (struct loop): Add simdlen member.
25259 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
25260 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
25261 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
25262 as new argument to autovectorize_vector_sizes target hook. If
25263 loop->simdlen, pick up vector size where the vectorization factor
25264 is equal to loop->simd, and if there is none, fall back to the first
25265 successful one.
25266 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
25267 caller.
25268 * omp-low.c (omp_clause_aligned_alignment): Likewise.
25269 * omp-general.c (omp_max_vf): Likewise.
25270 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
25271 * tree-vect-slp.c (vect_slp_bb): Likewise.
25272 * target.def (autovectorize_vector_sizes): Add ALL argument and
25273 document it.
25274 * doc/tm.texi: Adjust documentation.
25275 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
25276 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
25277 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
25278 bool argument.
25279 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
25280 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
25281 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
25282 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
25283 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
25284 preferred vector size is not 512-bit or 256-bit, just put those
25285 unpreferred ones last.
25286
25287 2019-05-20 Martin Liska <mliska@suse.cz>
25288
25289 * targhooks.c (default_libc_has_fast_function): New function.
25290 * targhooks.h (default_libc_has_fast_function): Likewise.
25291
25292 2019-05-20 Martin Liska <mliska@suse.cz>
25293
25294 PR middle-end/90263
25295 * builtins.c (expand_builtin_memory_copy_args): When having a
25296 target with fast mempcpy implementation do now use memcpy.
25297 * config/i386/i386.c (ix86_libc_has_fast_function): New.
25298 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
25299 * doc/tm.texi: Likewise.
25300 * doc/tm.texi.in: Likewise.
25301 * target.def:
25302 * expr.c (emit_block_move_hints): Add 2 new arguments.
25303 * expr.h (emit_block_move_hints): Bail out when libcall
25304 to memcpy would be used.
25305
25306 2019-05-20 Martin Liska <mliska@suse.cz>
25307
25308 * profile-count.c: Add vertical spacing in order
25309 to separate functions.
25310 * profile-count.h: Likewise.
25311
25312 2019-05-20 Martin Liska <mliska@suse.cz>
25313
25314 * profile-count.h: Do not use full qualified
25315 names if possible.
25316 * profile-count.c (profile_count::to_frequency): Likewise.
25317
25318 2019-05-20 Martin Liska <mliska@suse.cz>
25319
25320 * profile-count.h (enum profile_quality): Use capital letters
25321 for enum value names. Use the adjusted names.
25322 * profile-count.c: Use the adjusted names.
25323
25324 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25325
25326 * config/rs6000/constraints.md (define_register_constraint "wH"):
25327 Delete.
25328 (define_register_constraint "wI"): Delete.
25329 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25330 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
25331 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25332 (rs6000_init_hard_regno_mode_ok): Adjust.
25333 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
25334 resp. "d", or with "wa" as appropriate, all with "p8v".
25335 * config/rs6000/vsx.md: Ditto.
25336 * doc/md.texi (Machine Constraints): Adjust.
25337
25338 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25339
25340 * config/rs6000/constraints.md (define_register_constraint "wy"):
25341 Delete.
25342 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25343 RS6000_CONSTRAINT_wy.
25344 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25345 (rs6000_init_hard_regno_mode_ok): Adjust.
25346 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
25347 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
25348 (define_mode_attr Fisa): New.
25349 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
25350 * doc/md.texi (Machine Constraints): Adjust.
25351
25352 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25353
25354 * config/rs6000/constraints.md (define_register_constraint "wu"):
25355 Delete.
25356 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25357 RS6000_CONSTRAINT_wu.
25358 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25359 (rs6000_init_hard_regno_mode_ok): Adjust.
25360 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
25361 both with "p8v".
25362 (define_mode_attr Fa): Delete.
25363 * config/rs6000/vsx.md: Ditto.
25364 * doc/md.texi (Machine Constraints): Adjust.
25365
25366 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25367
25368 * config/rs6000/constraints.md (define_register_constraint "wJ"):
25369 Delete.
25370 (define_register_constraint "wK"): Delete.
25371 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25372 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
25373 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25374 (rs6000_init_hard_regno_mode_ok): Adjust.
25375 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
25376 Replace "wK" constraint by "wH" with "p9v".
25377 * config/rs6000/vsx.md: Ditto.
25378 * doc/md.texi (Machine Constraints): Adjust.
25379
25380 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25381
25382 * config/rs6000/constraints.md (define_register_constraint "wb"):
25383 Delete.
25384 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25385 RS6000_CONSTRAINT_wb.
25386 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25387 (rs6000_init_hard_regno_mode_ok): Adjust.
25388 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
25389 * config/rs6000/vsx.md: Ditto.
25390 * doc/md.texi (Machine Constraints): Adjust.
25391
25392 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25393
25394 * config/rs6000/constraints.md (define_register_constraint "wo"):
25395 Delete.
25396 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25397 RS6000_CONSTRAINT_wo.
25398 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25399 (rs6000_init_hard_regno_mode_ok): Adjust.
25400 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
25401 * config/rs6000/altivec.md: Ditto.
25402 * doc/md.texi (Machine Constraints): Adjust.
25403
25404 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25405
25406 * config/darwin-c.c (darwin_register_objc_includes): Do not
25407 prepend the sysroot when building gnu-runtime header search
25408 paths.
25409
25410 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25411
25412 * config/darwin.c (darwin_file_end): Use switch_to_section ()
25413 instead of direct output of the asm.
25414
25415 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25416
25417 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
25418 argument to be type bool (was int before).
25419 (rs6000_emit_epilogue): Simplify some code. Declare some variables
25420 at first use. Use type bool for some variables. Fix a theoretical
25421 eh_return bug for svr4.
25422
25423 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25424
25425 * config/rs6000/rs6000.md (isa): New attribute.
25426 (enabled): New attribute.
25427
25428 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
25429
25430 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
25431 assemble_start_function and assemble_end_function.
25432
25433 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
25434
25435 PR middle-end/89433
25436 * omp-general.c (oacc_verify_routine_clauses): Change formal
25437 parameters. Add checking if already marked with an OpenACC
25438 'routine' directive. Adjust all users.
25439
25440 PR middle-end/89433
25441 * omp-general.c (oacc_build_routine_dims): Move some of its
25442 processing into...
25443 (oacc_verify_routine_clauses): ... this new function.
25444 * omp-general.h (oacc_verify_routine_clauses): New prototype.
25445
25446 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25447
25448 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
25449 formating of picbase labels to match other ports.
25450
25451 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25452
25453 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
25454 in the generated code.
25455
25456 2019-05-16 Martin Sebor <msebor@redhat.com>
25457
25458 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
25459 identifiers, keywords, operators, and types in diagnostics. Correct
25460 quoting, spelling, and sentence capitalization issues.
25461 (expand_builtin_atomic_is_lock_free): Same.
25462 (fold_builtin_next_arg): Same.
25463 * cfgexpand.c (expand_one_var): Same.
25464 (tree_conflicts_with_clobbers_p): Same.
25465 (expand_asm_stmt): Same.
25466 (verify_loop_structure): Same.
25467 * cgraphunit.c (process_function_and_variable_attributes): Same.
25468 * collect-utils.c (collect_execute): Same.
25469 * collect2.c (maybe_run_lto_and_relink): Same.
25470 (is_lto_object_file): Same.
25471 (scan_prog_file): Same.
25472 * convert.c (convert_to_real_1): Same.
25473 * dwarf2out.c (dwarf2out_begin_prologue): Same.
25474 * except.c (verify_eh_tree): Same.
25475 * gcc.c (execute): Same.
25476 (eval_spec_function): Same.
25477 (run_attempt): Same.
25478 (driver::set_up_specs): Same.
25479 (compare_debug_auxbase_opt_spec_function): Same.
25480 * gcov-tool.c (unlink_gcda_file): Same.
25481 (do_merge): Same.
25482 (do_rewrite): Same.
25483 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
25484 * gimplify.c (gimplify_asm_expr): Same.
25485 (gimplify_adjust_omp_clauses): Same.
25486 * hsa-gen.c (gen_hsa_addr_insns): Same.
25487 (gen_hsa_insns_for_load): Same.
25488 (gen_hsa_cmp_insn_from_gimple): Same.
25489 (gen_hsa_insns_for_operation_assignment): Same.
25490 (gen_get_level): Same.
25491 (gen_hsa_alloca): Same.
25492 (omp_simple_builtin::generate): Same.
25493 (gen_hsa_atomic_for_builtin): Same.
25494 (gen_hsa_insns_for_call): Same.
25495 * input.c (dump_location_info): Same.
25496 * ipa-devirt.c (compare_virtual_tables): Same.
25497 * ira.c (ira_setup_eliminable_regset): Same.
25498 * lra-assigns.c (lra_assign): Same.
25499 * lra-constraints.c (lra_constraints): Same.
25500 * lto-streamer-in.c (lto_input_mode_table): Same.
25501 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
25502 (merge_and_complain): Same.
25503 (compile_offload_image): Same.
25504 (compile_images_for_offload_targets): Same.
25505 (debug_objcopy): Same.
25506 (run_gcc): Same.
25507 (main): Same.
25508 * opts.c (print_specific_help): Same.
25509 (parse_no_sanitize_attribute): Same.
25510 (print_help): Same.
25511 (handle_param): Same.
25512 * plugin.c (add_new_plugin): Same.
25513 (parse_plugin_arg_opt): Same.
25514 (try_init_one_plugin): Same.
25515 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
25516 operators, and types in diagnostics. Correct quoting and spelling
25517 issues.
25518 * read-rtl-function.c (parse_edge_flag_token): Same.
25519 (function_reader::parse_enum_value): Same.
25520 * reg-stack.c (check_asm_stack_operands): Same.
25521 * regcprop.c (validate_value_data): Same.
25522 * sched-rgn.c (make_pass_sched_fusion): Same.
25523 * stmt.c (check_unique_operand_names): Same.
25524 * targhooks.c (default_target_option_pragma_parse): Same.
25525 * tlink.c (recompile_files): Same.
25526 * toplev.c (process_options): Same.
25527 (do_compile): Same.
25528 * trans-mem.c (diagnose_tm_1): Same.
25529 (ipa_tm_scan_irr_block): Same.
25530 (ipa_tm_diagnose_transaction): Same.
25531 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
25532 format a tree code name in a diagnostic.
25533 (verify_types_in_gimple_min_lval): Same.
25534 (verify_types_in_gimple_reference): Same.
25535 (verify_gimple_call): Same.
25536 (verify_gimple_assign_unary): Same.
25537 (verify_gimple_assign_binary): Same.
25538 (verify_gimple_assign_ternary): Same.
25539 (verify_gimple_assign_single): Same.
25540 (verify_gimple_switch): Same.
25541 (verify_gimple_label): Same.
25542 (verify_gimple_phi): Same.
25543 (verify_gimple_in_seq): Same.
25544 (verify_eh_throw_stmt_node): Same.
25545 (collect_subblocks): Same.
25546 (gimple_verify_flow_info): Same.
25547 (do_warn_unused_result): Same.
25548 * tree-inline.c (expand_call_inline): Same.
25549 * tree-into-ssa.c (update_ssa): Same.
25550 * tree.c (tree_int_cst_elt_check_failed): Same.
25551 (tree_vec_elt_check_failed): Same.
25552 (omp_clause_operand_check_failed): Same.
25553 (verify_type_variant): Same.
25554 (verify_type): Same.
25555 * value-prof.c (verify_histograms): Same.
25556 * varasm.c (assemble_start_function): Same.
25557
25558 2019-05-16 Martin Sebor <msebor@redhat.com>
25559
25560 * config/i386/i386-expand.c (get_element_number): Quote keywords
25561 and other internal names in diagnostics. Adjust other diagnostic
25562 formatting issues noted by -Wformat-diag.
25563 * config/i386/i386-features.c
25564 (ix86_mangle_function_version_assembler_name): Same.
25565 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
25566 * config/i386/i386.c (ix86_function_type_abi): Same.
25567 (ix86_function_ms_hook_prologue): Same.
25568 (classify_argument): Same.
25569 (ix86_expand_prologue): Same.
25570 (ix86_md_asm_adjust): Same.
25571 (ix86_memmodel_check): Same.
25572
25573 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
25574
25575 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
25576 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
25577 and fpxx modes.
25578
25579 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
25580
25581 PR target/90497
25582 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
25583 intrinsics without SSE/SSE2/SSSE3.
25584 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
25585 check.
25586 (*mmx_uavgv8qi3): Likewise.
25587
25588 2019-05-17 Richard Biener <rguenther@suse.de>
25589
25590 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
25591 VEC_PERM_EXPR as __VEC_PERM with -gimple.
25592
25593 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
25594
25595 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
25596 vec_sldw insn pattern.
25597
25598 2019-05-17 Richard Biener <rguenther@suse.de>
25599
25600 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
25601
25602 2019-05-17 Martin Liska <mliska@suse.cz>
25603
25604 PR driver/90496
25605 * toplev.c (output_stack_usage): With LTO and sanitizer it
25606 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
25607 has no file location.
25608
25609 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25610
25611 PR c++/90484
25612 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
25613 sz0 is equal to sz1, instead return false in that case.
25614
25615 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
25616 has non-constant expression, force sctx.lane and use two
25617 argument IFN_GOMP_SIMD_LANE instead of single argument.
25618 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
25619 two argument IFN_GOMP_SIMD_LANE without lhs.
25620 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
25621 member.
25622 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
25623 Define.
25624 (LOOP_REQUIRES_VERSIONING): Or in
25625 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
25626 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25627 simd_if_cond.
25628 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
25629 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
25630 from simd if clause if needed.
25631
25632 2019-05-16 Richard Biener <rguenther@suse.de>
25633
25634 * tree-affine.c (expr_to_aff_combination): New function split
25635 out from...
25636 (tree_to_aff_combination): ... here.
25637 (aff_combination_expand): Avoid building a GENERIC tree.
25638
25639 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
25640
25641 * cgraphunit.c (cgraph_node::expand_thunk): Remove
25642 assemble_start_function and assemble_end_function calls.
25643 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
25644 assemble_start_function and assemble_end_function.
25645 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
25646 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
25647 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
25648 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
25649 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
25650 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
25651 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
25652 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
25653 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25654 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25655 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
25656 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
25657 Likewise.
25658 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
25659 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
25660 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
25661 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
25662 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25663 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25664 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
25665 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
25666 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25667 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25668 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25669 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25670 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
25671 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
25672 Likewise.
25673 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25674 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25675 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
25676
25677 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
25678
25679 * tree-ssa-alias.c (alias_stats): Add
25680 aliasing_component_refs_p_may_alias and
25681 aliasing_component_refs_p_no_alias.
25682 (dump_alias_stats): Print aliasing_component_refs_p stats.
25683 (aliasing_component_refs_p): Update stats.
25684
25685 2019-05-16 Martin Liska <mliska@suse.cz>
25686
25687 PR lto/90500
25688 * multiple_target.c (expand_target_clones): Do not allow
25689 target_clones being used with a symbol that is an alias.
25690
25691 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
25692
25693 PR tree-optimization/90394
25694 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
25695 positives rather than ICE for cases where (code2 == NE_EXPR
25696 && code1 == BIT_AND_EXPR).
25697
25698 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25699
25700 PR fortran/90329
25701 * tree-core.h (struct tree_decl_common): Document
25702 decl_nonshareable_flag for PARM_DECLs.
25703 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
25704 * calls.c (expand_call): Don't try tail call if caller
25705 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
25706 passed on the stack and callee needs to pass any arguments on the
25707 stack.
25708 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25709 else if instead of series of mutually exclusive ifs. Handle
25710 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
25711 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
25712
25713 * lto-streamer.h (LTO_major_version): Bump to 9.
25714
25715 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
25716
25717 PR tree-optimization/90106
25718 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
25719 new parameter as new internal function call, also move it to new
25720 basic block.
25721 (use_internal_fn): Pass internal function call to
25722 shrink_wrap_one_built_in_call_with_conds.
25723
25724 2019-05-15 Jakub Jelinek <jakub@redhat.com>
25725
25726 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
25727 max_vf to 1.
25728 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
25729 safelen_int and set loop->dont_vectorize.
25730
25731 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25732
25733 PR target/89021
25734 * config/i386/i386-builtin.def: Enable MMX intrinsics with
25735 SSE/SSE2/SSSE3.
25736 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
25737 Likewise.
25738 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
25739 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
25740 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
25741 is defined.
25742
25743 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25744
25745 PR target/89021
25746 * config/i386/mmx.md (*vec_dupv2sf): Changed to
25747 define_insn_and_split to support SSE emulation.
25748 (*vec_extractv2sf_0): Likewise.
25749 (*vec_extractv2sf_1): Likewise.
25750 (*vec_extractv2si_0): Likewise.
25751 (*vec_extractv2si_1): Likewise.
25752 (*vec_extractv2si_zext_mem): Likewise.
25753 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
25754 (vec_extractv2sf_1 splitter): Likewise.
25755 (vec_extractv2sfsf): Likewise.
25756 (vec_setv2si): Likewise.
25757 (vec_extractv2si_1 splitter): Likewise.
25758 (vec_extractv2sisi): Likewise.
25759 (vec_setv4hi): Likewise.
25760 (vec_extractv4hihi): Likewise.
25761 (vec_setv8qi): Likewise.
25762 (vec_extractv8qiqi): Likewise.
25763 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25764 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
25765 (vec_extractv2sisi): Likewise.
25766 (vec_extractv4hihi): Likewise.
25767 (vec_extractv8qiqi): Likewise.
25768 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25769 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
25770 (vec_initv2sisi): Likewise.
25771 (vec_initv4hihi): Likewise.
25772 (vec_initv8qiqi): Likewise.
25773 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
25774 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
25775 (vec_setv4hi): Likewise.
25776 (vec_setv8qi): Likewise.
25777
25778 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25779
25780 PR target/89021
25781 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
25782 TARGET_MMX_WITH_SSE.
25783 (MMXMODE:*mov<mode>_internal): Likewise.
25784 (MMXMODE:movmisalign<mode>): Likewise.
25785
25786 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
25787
25788 PR target/89021
25789 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
25790 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
25791 (sse2_cvtpd2pi): Ditto.
25792 (sse2_cvttpd2pi): Ditto.
25793 (*vec_concatv2sf_sse4_1): Ditto.
25794 (*vec_concatv2sf_sse): Ditto.
25795 (*vec_concatv2si_sse4_1): Ditto.
25796 (*vec_concatv2si): Ditto.
25797 (*vec_concatv4si_0): Ditto.
25798 (*vec_concatv2di_0): Ditto.
25799
25800 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25801
25802 PR target/89021
25803 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
25804
25805 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25806
25807 PR target/89021
25808 * config/i386/sse.md (ssse3_palignrdi): Changed to
25809 define_insn_and_split to support SSE emulation.
25810
25811 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25812
25813 PR target/89021
25814 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
25815
25816 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25817
25818 PR target/89021
25819 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
25820 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25821 SSE emulation.
25822
25823 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25824
25825 PR target/89021
25826 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
25827 or TARGET_MMX_WITH_SSE.
25828 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
25829
25830 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25831
25832 PR target/89021
25833 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
25834
25835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25836
25837 PR target/89021
25838 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
25839 Changed to define_insn_and_split to support SSE emulation.
25840
25841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25842
25843 PR target/89021
25844 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
25845 Changed to define_insn_and_split to support SSE emulation.
25846
25847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25848
25849 PR target/89021
25850 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
25851 (*mmx_<emms>): This.
25852 (mmx_<emms>): New expander.
25853
25854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25855
25856 PR target/89021
25857 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
25858 support.
25859 (*sse2_umulv1siv1di3): Add SSE2 emulation.
25860
25861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25862
25863 PR target/89021
25864 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
25865
25866 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25867
25868 PR target/89021
25869 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
25870
25871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25872
25873 PR target/89021
25874 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
25875 TARGET_MMX_WITH_SSE.
25876 (*mmx_uavgv4hi3): Add SSE emulation.
25877
25878 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25879
25880 PR target/89021
25881 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
25882 and TARGET_MMX_WITH_SSE.
25883 (*mmx_uavgv8qi3): Add SSE emulation.
25884
25885 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25886
25887 PR target/89021
25888 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
25889 maskmovdqu for __MMX_WITH_SSE__.
25890
25891 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25892
25893 PR target/89021
25894 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
25895 TARGET_MMX and TARGET_MMX_WITH_SSE.
25896 (*mmx_umulv4hi3_highpart): Add SSE emulation.
25897
25898 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25899
25900 PR target/89021
25901 * config/i386/mmx.md (mmx_pmovmskb): Changed to
25902 define_insn_and_split to support SSE emulation.
25903
25904 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25905
25906 PR target/89021
25907 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
25908 and TARGET_MMX_WITH_SSE.
25909 (mmx_<code>v8qi3): Likewise.
25910 (smaxmin:<code>v4hi3): New.
25911 (umaxmin:<code>v8qi3): Likewise.
25912 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
25913 (umaxmin:*mmx_<code>v8qi3): Likewise.
25914
25915 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 PR target/89021
25918 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
25919 TARGET_MMX_WITH_SSE.
25920 (*mmx_pinsrw): Add SSE emulation.
25921
25922 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25923
25924 PR target/89021
25925 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
25926
25927 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25928
25929 PR target/89021
25930 * config/i386/sse.md (sse_cvtpi2ps): Changed to
25931 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25932 SSE emulation.
25933
25934 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25935
25936 PR target/89021
25937 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
25938 (sse_cvttps2pi): Likewise.
25939
25940 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25941
25942 PR target/89021
25943 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
25944 TARGET_MMX_WITH_SSE.
25945 (mmx_pshufw_1): Add SSE emulation.
25946 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
25947 TARGET_MMX_WITH_SSE to support SSE emulation.
25948
25949 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25950
25951 PR target/89021
25952 * config/i386/constraints.md (Yw): New constraint.
25953 * config/i386/mmx.md (*vec_dupv2si): Changed to
25954 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
25955 support SSE emulation.
25956
25957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25958
25959 PR target/89021
25960 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
25961 TARGET_MMX_WITH_SSE.
25962 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25963 support.
25964 (mmx_gt<mode>3): Likewise.
25965
25966 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25967
25968 PR target/89021
25969 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
25970 TARGET_MMX_WITH_SSE. Add SSE support.
25971
25972 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25973
25974 PR target/89021
25975 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
25976 TARGET_MMX_WITH_SSE.
25977 (any_logic:<code><mode>3): New.
25978 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
25979 Add SSE support.
25980
25981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25982
25983 PR target/89021
25984 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
25985 TARGET_MMX_WITH_SSE. Add SSE emulation.
25986 (mmx_<shift_insn><mode>3): Likewise.
25987 (ashr<mode>3): New.
25988 (<shift_insn><mode>3): Likewise.
25989
25990 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25991
25992 PR target/89021
25993 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
25994 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
25995
25996 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25997
25998 PR target/89021
25999 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26000 TARGET_MMX_WITH_SSE.
26001 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26002 SSE support.
26003
26004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26005
26006 PR target/89021
26007 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26008 TARGET_MMX_WITH_SSE.
26009 (mulv4hi3): New.
26010 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26011 support.
26012
26013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26014
26015 PR target/89021
26016 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26017 (plusminus:mmx_<plusminus_insn><mode>3): Check
26018 TARGET_MMX_WITH_SSE.
26019 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26020 (<plusminus_insn><mode>3): New.
26021 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26022 (*mmx_<plusminus_insn><mode>3): Likewise.
26023
26024 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26025
26026 PR target/89021
26027 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26028 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26029 prototype.
26030 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26031 define_insn_and_split to support SSE emulation.
26032 (mmx_punpcklbw): Likewise.
26033 (mmx_punpckhwd): Likewise.
26034 (mmx_punpcklwd): Likewise.
26035 (mmx_punpckhdq): Likewise.
26036 (mmx_punpckldq): Likewise.
26037
26038 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26039 Uros Bizjak <ubizjak@gmail.com>
26040
26041 PR target/89021
26042 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26043 New function.
26044 (ix86_split_mmx_pack): Likewise.
26045 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26046 New prototype.
26047 (ix86_split_mmx_pack): Likewise.
26048 * config/i386/i386.md (mmx_isa): New.
26049 (enabled): Also check mmx_isa.
26050 * config/i386/mmx.md (any_s_truncate): New code iterator.
26051 (s_trunsuffix): New code attr.
26052 (mmx_packsswb): Removed.
26053 (mmx_packssdw): Likewise.
26054 (mmx_packuswb): Likewise.
26055 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26056 MMX packsswb/packuswb with SSE2.
26057 (mmx_packssdw): Likewise.
26058 * config/i386/predicates.md (register_mmxmem_operand): New.
26059
26060 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 PR target/89021
26063 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26064 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26065 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26066 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26067 (ix86_vector_mode_supported_p): Likewise.
26068 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26069
26070 2019-05-15 Martin Liska <mliska@suse.cz>
26071
26072 PR middle-end/90478
26073 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26074 Check for overflow.
26075
26076 2019-05-15 Richard Biener <rguenther@suse.de>
26077
26078 * tree-into-ssa.c (pass_build_ssa::execute): Run
26079 update_address_taken before going into SSA.
26080
26081 2019-05-15 Richard Biener <rguenther@suse.de>
26082
26083 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26084 as __BIT_FIELD_REF with type with -gimple.
26085
26086 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26087
26088 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26089 semantically equivalent branches (left over after prior refactorings).
26090
26091 2019-05-15 Richard Biener <rguenther@suse.de>
26092
26093 PR tree-optimization/88828
26094 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26095 bogus check.
26096
26097 2019-05-14 Richard Biener <rguenther@suse.de>
26098
26099 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26100 as __VIEW_CONVERT with -gimple.
26101
26102 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26103
26104 PR target/82920
26105 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26106 Darwin.
26107
26108 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26109
26110 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26111 define_split to become a define_insn_and_split.
26112
26113 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26114
26115 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26116 arguments.
26117 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26118 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26119 (sibcall_epilogue): Adjust.
26120 (epilogue): Adjust.
26121
26122 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26123
26124 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26125 to unsupported ones.
26126 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26127 * config.host: Likewise.
26128 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26129 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26130 __svr4__]: Remove "brand" fallback.
26131 [!KSTAT_DATA_STRING]: Remove.
26132 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26133 to *-*-solaris2*.
26134 (comdat_group): Likewise.
26135 (set_have_as_tls): Likewise.
26136 (gcc_cv_target_dl_iterate_phdr): Likewise.
26137 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
26138 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
26139 * configure: Regenerate.
26140 * doc/install.texi: Simplify Solaris target triplets.
26141 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
26142 (Specific, *-*-solaris2*): Document Solaris 10 removal.
26143 Remove Solaris 10 references.
26144 Remove obsolete Solaris bug reference.
26145 (Specific, sparc-sun-solaris2.10): Remove.
26146
26147 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
26148
26149 * config/i386/i386.md (any_div): New code iterator.
26150 (paired_mod): New code attribute.
26151 (sgnprefix): Handle DIV and UDIV RTXes.
26152 (u): Ditto.
26153 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
26154 and udivmod<mode>4 patterns using any_div code iterator.
26155 (divmod splitters): Macroize splitters using any_div code iterator.
26156 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
26157 (*udivmodsi4_pow2_zext_2): Ditto.
26158 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
26159 and *udivmod<mode>4_noext patterns using any_div code iterator.
26160 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
26161 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
26162 patterns using any_div code iterator.
26163 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
26164 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
26165 patterns using any_div code iterator.
26166 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
26167 udivmodhiqi3 patterns using any_extend code iterator.
26168
26169 2019-05-14 Richard Biener <rguenther@suse.de>
26170 H.J. Lu <hongjiu.lu@intel.com>
26171
26172 PR tree-optimization/88828
26173 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
26174 permuting in a single non-constant element not extracted
26175 from a vector.
26176
26177 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
26178
26179 * internal-fn.def (SIGNBIT): New.
26180 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
26181 defined.
26182 (signbitv4sf2): Likewise.
26183
26184 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
26185
26186 PR target/90357
26187 * config/mips/mips.c (mips_split_move): Skip forward SRC into
26188 next insn when the SRC reg is dead.
26189
26190 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
26191
26192 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
26193 (alloc_cand_and_find_basis): Ditto.
26194 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
26195 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
26196 (create_add_imm_cand, slsr_process_cast): Ditto.
26197 (slsr_process_copy, replace_mult_candidate): Ditto.
26198 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
26199 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
26200 (pass_strength_reduction::execute): Init the first NULL element.
26201
26202 2019-05-13 Nathan Sidwell <nathan@acm.org>
26203
26204 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
26205 (run_attempt): Reformat line break.
26206
26207 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
26208
26209 PR target/90418
26210 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
26211 data registers in sibcall epilogues.
26212 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26213
26214 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
26215
26216 PR target/89221
26217 * configure.ac (--enable-frame-pointer):
26218 Disable by default for cygwin and mingw.
26219 * configure: Regenerate.
26220
26221 2019-05-13 Nathan Sidwell <nathan@acm.org>
26222
26223 * dwarf2out.c (breakout_comdat_types): Move comment to correct
26224 piece of code.
26225 (const_ok_for_output_1): Balance parens around #if/#else/#endif
26226 (gen_member_die): Move abstract origin check earlier. Only VARs
26227 can be static_inline_p. Simplify splicing control flow.
26228
26229 2019-05-13 Richard Biener <rguenther@suse.de>
26230
26231 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
26232 VIEW_CONVERT_EXPR.
26233 (vect_build_slp_tree_1): Likewise.
26234
26235 2019-05-13 Richard Biener <rguenther@suse.de>
26236
26237 PR tree-optimization/90402
26238 * tree-if-conv.c (tree_if_conversion): Value number only
26239 the loop body by making the latch an exit of the region
26240 as well.
26241 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
26242 processing PHIs.
26243 (do_rpo_vn): Deal with multiple edges into the entry block
26244 that are not backedges inside the region by skipping PHIs
26245 of the entry block.
26246
26247 2019-05-13 Richard Biener <rguenther@suse.de>
26248
26249 PR tree-optimization/90316
26250 * tree-ssa-pre.c (insert_aux): Fold into ...
26251 (insert): ... this function. Use a RPO walk to reduce the
26252 number of required iterations.
26253
26254 2019-05-13 Martin Liska <mliska@suse.cz>
26255
26256 PR tree-optimization/90416
26257 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
26258 string instead of passing the second part as va_arg argument.
26259
26260 2019-05-13 Martin Liska <mliska@suse.cz>
26261
26262 PR gcov-profile/90380
26263 * gcov.c (handle_cycle): Do not support zero cycle count,
26264 it should not be possible.
26265 (path_contains_zero_cycle_arc): New function.
26266 (circuit): Ignore zero cycle arc counts.
26267
26268 2019-05-13 Martin Liska <mliska@suse.cz>
26269
26270 PR gcov-profile/90380
26271 * gcov.c (enum loop_type): Remove the enum and
26272 the operator.
26273 (handle_cycle): Assert that we should not reach
26274 a negative count.
26275 (circuit): Use loop_found instead of a tri-state loop_type.
26276 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
26277 happen.
26278
26279 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26280
26281 PR target/82920
26282 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
26283 (ix86_output_indirect_branch_via_reg): Use output mechanism
26284 accounting for __USER_LABEL_PREFIX__.
26285 (ix86_output_indirect_branch_via_push): Likewise.
26286 (ix86_output_function_return): Likewise.
26287 (ix86_output_indirect_function_return): Likewise.
26288
26289 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
26290
26291 * doc/md.texi: Document use of code attributes in rtx patterns.
26292 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
26293 * read-rtl.c (find_code): Split out search loops into...
26294 (maybe_find_code): ...this new function.
26295 (check_code_iterator): Make the error message more informative.
26296 (check_code_attribute): New function.
26297 (rtx_reader::rtx_alloc_for_name): Likewise.
26298 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
26299 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
26300 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
26301 <max_opp> directly as an rtx code instead of via a match_operator.
26302 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
26303 (<su>abd<mode>_3): Update accordingly.
26304
26305 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26306
26307 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
26308 is given, print the state of the EH "save world" computation for
26309 Darwin.
26310
26311 2019-05-11 Jakub Jelinek <jakub@redhat.com>
26312
26313 PR c++/59813
26314 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
26315 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26316
26317 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
26318
26319 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
26320 Use pinsrd for TARGET_SSE4_1.
26321 * config/i386/sse.md (movdi_to_sse): Ditto.
26322
26323 2019-05-10 Richard Biener <rguenther@suse.de>
26324
26325 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
26326 (do_rpo_vn): Initialize next_value_id.
26327
26328 2019-05-10 Martin Liska <mliska@suse.cz>
26329
26330 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26331 Fix plural form.
26332
26333 2019-05-10 Jakub Jelinek <jakub@redhat.com>
26334
26335 PR tree-optimization/90385
26336 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
26337 arguments of the exit phis.
26338
26339 PR c++/90383
26340 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
26341 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
26342 id->do_not_fold.
26343 (copy_tree_body_r): Likewise.
26344 (copy_fn): Set id.do_not_fold to true.
26345
26346 2019-05-10 Martin Liska <mliska@suse.cz>
26347
26348 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
26349 Reapply changes from r269790.
26350
26351 2019-05-10 Martin Liska <mliska@suse.cz>
26352
26353 PR middle-end/90340
26354 * doc/invoke.texi: New params.
26355 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
26356 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
26357 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26358 Use it.
26359 * tree-switch-conversion.h (struct jump_table_cluster):
26360 Likewise.
26361
26362 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
26363
26364 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
26365
26366 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
26367
26368 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
26369
26370 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
26371
26372 PR rtl-optimization/88879
26373 * sel-sched.c (sel_target_adjust_priority): Remove assert.
26374
26375 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
26376
26377 PR target/90405
26378 * config/arm/arm.c (callee_saved_reg_p): Move before
26379 thumb_find_work_register.
26380 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
26381 thumb_find_work_register. Only call df_get_live_out once.
26382 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
26383 (thumb_find_work_register): Use
26384 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
26385 algorithms to locate a spare call clobbered reg.
26386
26387 2019-05-09 Martin Liska <mliska@suse.cz>
26388
26389 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
26390 and MAX_EXPR in GIMPLE FE format.
26391
26392 2019-05-09 Martin Liska <mliska@suse.cz>
26393
26394 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
26395 * gimple-pretty-print.c (dump_gimple_bb_header):
26396 Dump BB count.
26397 (pp_cfg_jump): Dump edge probability.
26398 * profile-count.c (profile_quality_as_string): Simplify
26399 with a static array.
26400 (parse_profile_quality): New function.
26401 (profile_count::dump): Simplify with a static array.
26402 (profile_count::from_gcov_type): Add new argument.
26403 * profile-count.h (parse_profile_quality): Likewise.
26404 * predict.h (set_hot_bb_threshold): New.
26405 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26406 New param.
26407 * predict.c (get_hot_bb_threshold): Set from the new param.
26408 (set_hot_bb_threshold): New.
26409
26410 2019-05-09 Richard Biener <rguenther@suse.de>
26411
26412 PR tree-optimization/90395
26413 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
26414 rewrite vector stores that throw internally.
26415
26416 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
26417
26418 * cif-code.def (CHKP): Remove.
26419
26420 PR target/89221
26421 * configure.ac (--enable-frame-pointer): Disable by default for
26422 GNU systems.
26423 * configure: Regenerate.
26424
26425 2019-05-09 Alan Modra <amodra@gmail.com>
26426
26427 PR target/89271
26428 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
26429 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
26430 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
26431 cost for general <-> vsx when direct moves are available.
26432 Cost union classes at minimal cost for any reg in the class.
26433 Correct calculation for moves between vsx, float, and altivec.
26434 Don't return a low cost for moves between special regs. Don't
26435 use hard coded register numbers.
26436 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
26437 (rs6000_ira_change_pseudo_allocno_class): New function.
26438 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
26439 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
26440 alternatives.
26441 (movsi_internal1): Don't disparage vector alternatives.
26442 (mov<mode>_internal): Likewise, excepting alternative that
26443 will be split.
26444 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
26445 we <- b alternative.
26446
26447 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26448
26449 PR c++/59813
26450 PR tree-optimization/89060
26451 * tree-ssa-live.h (live_vars_map): New typedef.
26452 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
26453 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
26454 (struct compute_live_vars_data): New type.
26455 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
26456 live_vars_at_stmt, destroy_live_vars): New functions.
26457 * tree-tailcall.c: Include tree-ssa-live.h.
26458 (live_vars, live_vars_vec): New global variables.
26459 (find_tail_calls): Perform variable life analysis before punting.
26460 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
26461 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
26462 member.
26463 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
26464 Perform variable life analysis to select variables that really need
26465 clobbers added.
26466 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
26467 instead set id->eh_landing_pad_dest and assert it is the same.
26468 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
26469
26470 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
26471 Richard Earnshaw <rearnsha@arm.com>
26472
26473 PR target/88167
26474 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
26475 function.
26476 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
26477 (thumb1_compute_save_core_reg_mask): Don't force a spare work
26478 register if both the epilogue and prologue can use call-clobbered
26479 regs.
26480 (thumb1_unexpanded_epilogue): Use
26481 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
26482 picking temporaries for restoring high regs to match that of the
26483 prologue where possible.
26484 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
26485 the list of work registers. Detect if the return address is still live
26486 at the end of the prologue and avoid using it for a work register if so.
26487 If the return address is not live, add LR to the list of pushable regs
26488 after the first pass.
26489
26490 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26491
26492 PR tree-optimization/90078
26493 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
26494 (INFTY): Increase the value for infinite cost.
26495 (struct comp_cost): Promote type of members to int64_t.
26496 (infinite_cost): Don't set complexity in initialization.
26497 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
26498 overflows to infinite_cost.
26499 (adjust_setup_cost): Promote type of parameter and cost computation
26500 to int64_t.
26501 (struct ainc_cost_data, struct iv_ca): Promote type of member to
26502 int64_t.
26503 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
26504 cost computation to int64_t.
26505 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
26506 int64_t's format specifier in dump.
26507
26508 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26509
26510 PR tree-optimization/90240
26511 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
26512 with respect to scaling factor pre-computed for each basic block.
26513 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
26514 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
26515 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
26516 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
26517 live range for array of loop's basic blocks. Cleanup aux field of
26518 loop's basic blocks.
26519
26520 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26521
26522 PR tree-optimization/90356
26523 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
26524
26525 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
26526
26527 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
26528 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
26529 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
26530 (ix86_handle_option): Handle -mavx512bf16.
26531 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
26532 to extra_headers.
26533 * config/i386/avx512bf16vlintrin.h: New.
26534 * config/i386/avx512bf16intrin.h: New.
26535 * config/i386/cpuid.h (bit_AVX512BF16): New.
26536 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
26537 * config/i386/i386-builtin-types.def: Add new types.
26538 * config/i386/i386-builtin.def: Add new builtins.
26539 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26540 __AVX512BF16__.
26541 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
26542 (ix86_option_override_internal): Handle BF16.
26543 (ix86_valid_target_attribute_inner_p): Ditto.
26544 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
26545 * config/i386/i386-builtin.c (enum processor_features): Add
26546 F_AVX512BF16.
26547 (static const _isa_names_table isa_names_table): Ditto.
26548 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
26549 (PTA_AVX512BF16): Ditto.
26550 * config/i386/i386.opt: Add -mavx512bf16.
26551 * config/i386/immintrin.h: Include avx512bf16intrin.h
26552 and avx512bf16vlintrin.h.
26553 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
26554 avx512f_cvtneps2bf16_<mode><mask_name>,
26555 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
26556 * config/i386/subst.md (mask_half): Add new subst.
26557 * doc/invoke.texi: Document -mavx512bf16.
26558
26559 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26560
26561 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
26562 Delete declaration.
26563 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
26564 (rs6000_debug_legitimize_reload_address): Delete.
26565 (rs6000_legitimize_reload_address_ptr): Delete.
26566 (rs6000_option_override_internal): Adjust.
26567 (mem_operand_gpr): Adjust comment.
26568 (legitimate_lo_sum_address_p): Ditto.
26569 (rs6000_legitimize_reload_address): Delete.
26570 (rs6000_debug_legitimize_reload_address): Delete.
26571 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
26572
26573 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
26574
26575 PR target/89765
26576 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26577 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
26578 to compute vector element selector for both constant and variable
26579 operands.
26580
26581 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26582
26583 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
26584 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
26585 ashrdi3_cvt using SWI48 mode iterator.
26586
26587 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26588
26589 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
26590 (aarch64_<su>abd<mode>_3): Likewise.
26591 (*aarch64_<su>abd<mode>_3): New define_insn.
26592 (<sur>sad<vsi2qi>): New define_expand.
26593 * config/aarch64/iterators.md: Added MAX_OPP attribute.
26594 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
26595 (build_vect_cond_expr): Likewise.
26596
26597 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26598
26599 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
26600 clobbers outside of accessible_reg_set.
26601 * config/i386/i386.c (ix86_conditional_register_usage):
26602 Disable register sets by clearing corresponding bits in
26603 accessible_reg_set. Do not set corresponding bits in fixed_regs,
26604 call_used_regs and don't clear corresponding reg_names array members.
26605
26606 2019-05-07 Richard Biener <rguenther@suse.de>
26607
26608 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
26609 not specified still compute a comp_vectype for invariant
26610 compares.
26611
26612 2019-05-07 Richard Biener <rguenther@suse.de>
26613
26614 PR tree-optimization/90316
26615 * tree-ssa-pre.c (translate_vuse_through_block): When
26616 same_valid is NULL do not bother to search for a virtual
26617 PHI continuation.
26618 (phi_translate_1): When operands changed we cannot keep
26619 the same value-number so do not bother to ask whether
26620 that's possible from translate_vuse_through_block.
26621
26622 2019-05-07 Martin Liska <mliska@suse.cz>
26623
26624 * bitmap.c (bitmap_register): Come up with
26625 alloc_descriptor_max_uid and assign it for
26626 a new bitmap.
26627 (register_overhead): Use get_descriptor as
26628 a descriptor.
26629 (release_overhead): New.
26630 (bitmap_elem_to_freelist): Call it.
26631 (bitmap_elt_clear_from): Likewise.
26632 (bitmap_obstack_free): Likewise.
26633 (bitmap_move): Sensitively release memory.
26634 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
26635 (bitmap_initialize): Initialize alloc_descriptor to zero.
26636 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
26637
26638 2019-05-07 Richard Biener <rguenther@suse.de>
26639
26640 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
26641 we build a SLP node. Remove max_size and limiting.
26642 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
26643
26644 2019-05-07 Richard Biener <rguenther@suse.de>
26645
26646 PR tree-optimization/90316
26647 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
26648 limit by reference.
26649 (walk_non_aliased_vuses): Take walking limit argument.
26650 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
26651 walking if it is reached instead of just counting.
26652 (get_continuation_for_phi): Likewise.
26653 (walk_non_aliased_vuses): Likewise, instead of leaving counter
26654 limiting to the callback.
26655 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
26656 (vn_reference_lookup_3): Likewise.
26657 (vn_reference_lookup_pieces): Likewise.
26658 (vn_reference_lookup): Likewise.
26659 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
26660 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
26661 (avail_exprs_stack::lookup_avail_expr): Likewise.
26662
26663 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
26664
26665 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
26666 for comparaible types in the second direction even if first one
26667 hits incomparable type.
26668
26669 2019-05-07 Richard Biener <rguenther@suse.de>
26670
26671 PR lto/90369
26672 * lto-wrapper.c (debug_objcopy): Use the original filename
26673 including archive offset for the filename used for -save-temps.
26674
26675 2019-05-07 Li Jia He <helijia@linux.ibm.com>
26676
26677 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
26678 detection.
26679
26680 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
26681 Hongtao Liu <hongtao.liu@intel.com>
26682
26683 PR target/89750
26684 PR target/86444
26685 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
26686 Modified, original implementation isn't correct.
26687
26688 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26689
26690 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
26691 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
26692 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
26693 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
26694 (FRAME_POINTER_REGNUM): Change numbering.
26695 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
26696 (alt_reg_names): Adjust.
26697 (rs6000_conditional_register_usage): Don't mark hard register 64 as
26698 fixed.
26699 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26700 (DWARF_FRAME_REGISTERS): Delete.
26701 (DWARF2_FRAME_REG_OUT): Fix whitespace.
26702 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26703 Adjust.
26704 (REG_ALLOC_ORDER): Adjust.
26705 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
26706 (REG_CLASS_CONTENTS): Adjust.
26707 (RETURN_ADDR_RTX): Change comment.
26708 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
26709 instead of 67.
26710 (REGISTER_NAMES): Adjust.
26711 (ADDITIONAL_REGISTER_NAMES): Adjust.
26712 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26713
26714 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26715
26716 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
26717 Delete.
26718 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26719 (DWARF_FRAME_REGISTERS): Adjust.
26720 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26721 Adjust.
26722 (REG_ALLOC_ORDER): Adjust.
26723 (enum reg_class): Delete SPR_REGS.
26724 (REG_CLASS_NAMES): Delete SPR_REGS.
26725 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
26726 (REGISTER_NAMES): Adjust.
26727 (ADDITIONAL_REGISTER_NAMES): Adjust.
26728 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26729 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
26730 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
26731 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
26732 (htm_spr_regno): Delete.
26733 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
26734 argument.
26735 (rs6000_dbx_register_number): Adjust.
26736
26737 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26738
26739 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
26740
26741 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26742
26743 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
26744 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
26745
26746 2019-05-06 Jakub Jelinek <jakub@redhat.com>
26747
26748 PR tree-optimization/88709
26749 PR tree-optimization/90271
26750 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
26751 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
26752 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
26753 variable.
26754 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
26755 of the store merging group is larger than
26756 PARAM_STORE_MERGING_MAX_SIZE parameter.
26757 (split_group): Add bzero_first argument. If set, always emit first
26758 the first store which must be = {} of the whole area and then for the
26759 rest of the stores consider all zero bytes as paddings.
26760 (imm_store_chain_info::output_merged_store): Check if first store
26761 is = {} of the whole area and if yes, determine which setting of
26762 bzero_first for split_group gives smaller number of stores. Adjust
26763 split_group callers.
26764 (lhs_valid_for_store_merging_p): Allow decls.
26765 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
26766 no elts.
26767 (pass_store_merging::process_store): Likewise.
26768
26769 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
26770
26771 PR target/89424
26772 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
26773 handling of V1TImode.
26774
26775 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
26776
26777 PR target/89221
26778 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
26779 and enable_frame_pointer ...
26780 * configure.ac: ... here. Update help strings for
26781 --enable-frame-pointer.
26782 * configure: Regenerate.
26783 * config/i386/i386-options.c (ix86_option_override_internal): Remove
26784 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
26785 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
26786 (USE_X86_64_FRAME_POINTER): Ditto.
26787
26788 2019-05-06 Martin Liska <mliska@suse.cz>
26789
26790 * config.gcc: Append to target_gtfiles and fix indentation.
26791
26792 2019-05-06 Richard Biener <rguenther@suse.de>
26793
26794 PR tree-optimization/90358
26795 * tree-vect-stmts.c (get_group_load_store_type): Properly
26796 detect unused upper half of load.
26797 (vectorizable_load): Likewise.
26798
26799 2019-05-06 Richard Biener <rguenther@suse.de>
26800
26801 PR tree-optimization/88828
26802 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
26803 (simplify_vector_constructor): ...here. Handle constants in
26804 the constructor.
26805
26806 2019-05-06 Richard Biener <rguenther@suse.de>
26807
26808 PR tree-optimization/90328
26809 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
26810 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
26811 is valid in the loop nest before using it.
26812 (initialize_data_dependence_relation): Adjust.
26813 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
26814 loop as loop-nest to dr_may_alias_p.
26815
26816 2019-05-06 Richard Biener <rguenther@suse.de>
26817
26818 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
26819
26820 2019-05-06 Richard Biener <rguenther@suse.de>
26821
26822 PR tree-optimization/90316
26823 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
26824 compute target on demand.
26825 (get_continuation_for_phi): Remove code walking stmts to
26826 get to a target virtual operand which could end up being
26827 quadratic.
26828
26829 2019-05-06 Martin Liska <mliska@suse.cz>
26830
26831 PR sanitizer/90312
26832 * config/i386/i386-options.c (ix86_option_override_internal): Error only
26833 when -mabi is selected to a non-default version.
26834
26835 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
26836 Martin Liska <mliska@suse.cz>
26837
26838 * Makefile.in: Add lto-dump.texi.
26839 * cgraph.h: Add new functions get_visibility_string and
26840 get_symtab_type_string.
26841 * doc/gcc.texi: Include lto-dump section.
26842 * doc/lto-dump.texi: New file.
26843 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
26844 (parse_dump_option): Factor out this function.
26845 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
26846 (parse_dump_option): Export the function.
26847 * symtab.c (symtab_node::get_visibility_string): New function.
26848 (symtab_node::get_symtab_type_string): Likewise.
26849
26850 2019-05-06 Martin Liska <mliska@suse.cz>
26851
26852 * config/i386/i386-builtins.c: New file.
26853 * config/i386/i386-builtins.h: New file.
26854 * config/i386/i386-expand.c: New file.
26855 * config/i386/i386-expand.h: New file.
26856 * config/i386/i386-features.c: New file.
26857 * config/i386/i386-features.h: New file.
26858 * config/i386/i386-options.c: New file.
26859 * config/i386/i386-options.h: New file.
26860 * config.gcc: Add new files into extra_objs and
26861 target_gtfiles.
26862 * config/i386/i386.c: Split content of the file
26863 into newly introduced files.
26864 * config/i386/i386.h: Declare common variables
26865 and macros.
26866 * config/i386/t-i386: Define dependencies for new files.
26867
26868 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
26869
26870 PR target/89400
26871 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
26872 Restrict 'all' variant to 32-bit configurations.
26873 (unaligned_loadhiu): Likewise.
26874 (unaligned_storehi): Likewise.
26875 (unaligned_storesi): Likewise.
26876 (unaligned_loadhis): Disable when compiling for thumb1.
26877
26878 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
26879
26880 PR tree-optimization/90269
26881 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
26882 Ignore clobbers.
26883
26884 2019-05-03 Martin Liska <mliska@suse.cz>
26885
26886 * hash-map.h: Add is_empty function.
26887 * hash-set.h: Likewise.
26888 * hash-table.h: Likewise.
26889 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
26890 elements () == 0 (and similar usages).
26891 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
26892 * gimplify.c (gimplify_bind_expr): Likewise.
26893 (gimplify_switch_expr): Likewise.
26894 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
26895 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
26896 * postreload-gcse.c (dump_hash_table): Likewise.
26897 (gcse_after_reload_main): Likewise.
26898 * predict.c (combine_predictions_for_bb): Likewise.
26899 * tree-parloops.c (reduction_phi): Likewise.
26900 (separate_decls_in_region): Likewise.
26901 (transform_to_exit_first_loop): Likewise.
26902 (gen_parallel_loop): Likewise.
26903 (gather_scalar_reductions): Likewise.
26904 (try_create_reduction_list): Likewise.
26905 * var-tracking.c (dump_vars): Likewise.
26906 (emit_notes_for_changes): Likewise.
26907 (vt_emit_notes): Likewise.
26908
26909 2019-05-03 Richard Biener <rguenther@suse.de>
26910
26911 PR tree-optimization/90316
26912 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
26913 before running VN.
26914
26915 2019-05-03 Richard Biener <rguenther@suse.de>
26916
26917 * tree-vect-stmts.c (get_group_load_store_type): Avoid
26918 peeling for gaps by loading only lower halves of vectors
26919 if possible.
26920 (vectorizable_load): Likewise.
26921
26922 2019-05-03 Richard Biener <rguenther@suse.de>
26923
26924 PR middle-end/89518
26925 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
26926
26927 2019-05-03 Richard Biener <rguenther@suse.de>
26928
26929 PR middle-end/87314
26930 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
26931 Handle STRING_CST vs DECL or STRING_CST.
26932
26933 2019-05-03 Richard Biener <rguenther@suse.de>
26934
26935 PR tree-optimization/88963
26936 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
26937 vector loads feeding only BIT_FIELD_REFs to component
26938 loads. Rewrite stores fed by CONSTRUCTORs to component
26939 stores.
26940
26941 2019-05-03 Jakub Jelinek <jakub@redhat.com>
26942
26943 * opts.h (finish_options): Remove lang_mask argument.
26944 (print_help, help_option_argument): Declare.
26945 * opts.c (print_help): Remove forward declaration, no longer static.
26946 (finish_options): Remove lang_mask argument, don't call print_help
26947 here.
26948 * opts-global.c (decode_options): Adjust finish_option caller, call
26949 print_help here.
26950
26951 PR tree-optimization/90303
26952 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
26953 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
26954
26955 2019-05-03 Richard Biener <rguenther@suse.de>
26956
26957 PR tree-optimization/89698
26958 * gimple-fold.c (canonicalize_constructor_val): Early out
26959 for constants, handle unfolded INTEGER_CSTs as they appear in
26960 C++ virtual table ctors.
26961
26962 2019-05-03 Richard Biener <rguenther@suse.de>
26963
26964 * passes.c (execute_function_todo): Remove dead code.
26965
26966 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26967
26968 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
26969 the internal register number, for any "real" register.
26970
26971 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26972
26973 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
26974 correct numbers for TFHAR, TFIAR, TEXASR.
26975
26976 2019-05-02 Richard Biener <rguenther@suse.de>
26977
26978 PR tree-optimization/89653
26979 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
26980 update-address-taken before the pass.
26981 * passes.def (pass_tree_loop_init): Put comment before it.
26982
26983 2019-05-02 Richard Biener <rguenther@suse.de>
26984
26985 PR tree-optimization/89509
26986 * tree-ssa-structalias.c (compute_dependence_clique): Look
26987 at the first subvar when determining whether it is restrict.
26988
26989 2019-05-02 Richard Biener <rguenther@suse.de>
26990
26991 PR tree-optimization/90273
26992 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
26993 useless debug stmts.
26994
26995 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26996
26997 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
26998 ACLE branch.
26999 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27000 SVE ACLE branch.
27001 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27002 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27003 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27004 (vectorizable_reduction): Use the functions above to vectorize in a
27005 fully masked loop codes that don't have a conditional internal
27006 function.
27007
27008 2019-05-02 Martin Liska <mliska@suse.cz>
27009
27010 * cgraphclones.c: Call valid_attribute_p with 1 for
27011 target_clone.
27012 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27013 it's for target attribute.
27014 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27015 Add new boolean argument.
27016 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27017 Likewise.
27018 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27019 to ix86_valid_target_attribute_inner_p.
27020 (ix86_valid_target_attribute_p): Pass flags argument to
27021 ix86_valid_target_attribute_inner_p.
27022 (get_builtin_code_for_version): Use 0 as it's target attribute.
27023
27024 2019-05-02 Martin Liska <mliska@suse.cz>
27025
27026 * gcc.c (process_command): Add dummy file only
27027 if n_infiles == 0.
27028 * opts-global.c (decode_options): Pass lang_mask.
27029 * opts.c (print_help): New function.
27030 (finish_options): Print --help if help_option_argument
27031 is set.
27032 (common_handle_option): Factor out content of OPT__help_
27033 into print_help.
27034 * opts.h (finish_options): Add new argument.
27035
27036 2019-05-02 Martin Liska <mliska@suse.cz>
27037
27038 PR target/88809
27039 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27040 With -minline-all-stringops use inline expansion using 4B loop.
27041 * doc/invoke.texi: Document the change of
27042 -minline-all-stringops.
27043
27044 2019-05-01 Jeff Law <law@redhat.com>
27045
27046 PR tree-optimization/88797
27047 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27048 PHI feeds a conditional on the RHS of an assignment.
27049
27050 2019-04-30 Andrew Waterman <andrew@sifive.com>
27051 Jim Wilson <jimw@sifive.com>
27052
27053 * config/riscv/constraints.md (L): New.
27054 * config/riscv/predicates.md (lui_operand): New.
27055 (sfb_alu_operand): New.
27056 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27057 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27058 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27059 * config/riscv/risc.md (type): Add sfb_alu.
27060 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27061 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27062 (branch_zero<mode>): Delete.
27063 (mov<mode>cc): New.
27064 (mov<GPR:mode><X:mode>cc): Likewise.
27065 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27066
27067 2019-04-30 Nathan Sidwell <nathan@acm.org>
27068
27069 * tree.h (MARK_TS_EXP): New.
27070
27071 2019-04-30 Martin Liska <mliska@suse.cz>
27072
27073 * opts.c (enable_warning_as_error): Provide hints
27074 for unknown options.
27075
27076 2019-04-30 Martin Liska <mliska@suse.cz>
27077
27078 PR debug/90288
27079 * doc/invoke.texi: Add missing dash for gas-locview-support
27080 and gno-as-locview-support.
27081
27082 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27083
27084 PR target/89093
27085 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27086 whitespace at the start of target attribute string.
27087
27088 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27089
27090 PR target/86538
27091 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27092 Define __ARM_FEATURE_ATOMICS.
27093
27094 2019-04-30 Martin Liska <mliska@suse.cz>
27095
27096 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27097 into built_in_function enum. Remove code for endp == 2 and
27098 use BUILT_IN_* constants.
27099 (gimple_fold_builtin): Call the function with fcode.
27100
27101 2019-04-30 Martin Liska <mliska@suse.cz>
27102
27103 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27104 DECL_FUNCTION_CODE into ix86_builtins enum before
27105 the switch statement.
27106
27107 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27108
27109 PR tree-optimization/89475
27110 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27111 calls.
27112
27113 2019-04-30 Martin Liska <mliska@suse.cz>
27114
27115 PR translation/90274
27116 * opts.c (print_filtered_help): Wrap string in _(...).
27117
27118 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27119
27120 PR tree-optimization/90240
27121 Revert:
27122 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27123
27124 PR tree-optimization/90078
27125 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27126 checks for infinite_cost overflow.
27127
27128 2019-04-29 Jeff Law <law@redhat.com>
27129
27130 * passes.def: Move -Wrestrict pass after copy propagation.
27131
27132 2019-04-29 Maya Rashish <coypu@sdf.org>
27133
27134 * config.gcc (default_gnu_indirect_function): Default to yes
27135 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
27136 sparc*-*-netbsd*, x86_64-*-netbsd*.
27137
27138 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
27139
27140 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
27141 where cond2 is NE_EXPR.
27142 (is_value_included_in): Update comment.
27143
27144 2019-04-29 Richard Biener <rguenther@suse.de>
27145
27146 PR tree-optimization/90278
27147 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
27148 EH on comparison simplification.
27149
27150 2019-04-29 Jason Merrill <jason@redhat.com>
27151
27152 PR c++/82081 - tail call optimization breaks noexcept
27153 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
27154 nothrow function to a might-throw function into a tail call.
27155
27156 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
27157
27158 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
27159 (DDR_INNER_LOOP): Likewise.
27160 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
27161 (initialize_data_dependence_relation): Likewise.
27162 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
27163
27164 2019-04-29 Jakub Jelinek <jakub@redhat.com>
27165
27166 PR rtl-optimization/90257
27167 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
27168 return value.
27169
27170 Revert the revert:
27171 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27172
27173 PR target/90178
27174 Revert:
27175 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27176
27177 Revert the revert:
27178 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27179
27180 Revert:
27181 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27182
27183 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27184
27185 2019-04-29 Richard Biener <rguenther@suse.de>
27186
27187 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
27188 rhs issue a reset.
27189
27190 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
27191
27192 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
27193 varasm.h, and netbsd-protos.h.
27194
27195 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
27196
27197 PR target/89261
27198 * config/i386/i386-protos.h (ix86_data_alignment): Change
27199 the second argument type to unsigned int.
27200 * config/i386/i386.c (ix86_data_alignment): Change "align"
27201 argument type to unsigned int.
27202
27203 2019-04-27 Martin Liska <mliska@suse.cz>
27204
27205 PR middle-end/90258
27206 * opt-suggestions.c (option_proposer::build_option_suggestions):
27207 When get_valid_option_values returns empty values, add the
27208 misspelling candidate.
27209
27210 2019-04-26 Jim Wilson <jimw@sifive.com>
27211
27212 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
27213 parameter.
27214 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
27215 Pass orig_mode to riscv_build_integer.
27216 (riscv_split_integer): Pass mode to riscv_move_integer.
27217 (riscv_legitimize_const_move): Likewise.
27218 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
27219 promoted_mode. Replace force_reg call with code to load constant into
27220 promoted reg and then subreg it for the store.
27221 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
27222 riscv_move_integer.
27223
27224 2018-04-26 Eugene Sharygin <eush@ispras.ru>
27225
27226 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
27227 corrupt codes.
27228
27229 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
27230
27231 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
27232 commentary about the encoding of precision.
27233
27234 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
27235
27236 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
27237 * config/i386/t-freebsd64: New file.
27238 * config.gcc: Add the t-freebsd64 for multilib support.
27239
27240 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
27241
27242 * doc/extend.texi (vector_size): Add missing comma after @xref.
27243
27244 2019-04-25 Jakub Jelinek <jakub@redhat.com>
27245
27246 * BASE-VER: Set to 10.0.0.
27247
27248 2019-04-25 Richard Biener <rguenther@suse.de>
27249
27250 PR middle-end/89765
27251 * gimplify.c (gimplify_expr): Avoid turning a lvalue
27252 VIEW_CONVERT_EXPR into one operating on an rvalue.
27253
27254 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
27255
27256 PR target/89929
27257 * config/i386/i386.c (feature_priority): Moved to file scope.
27258 (processor_features): Likewise.
27259 (processor_model): Likewise.
27260 (_arch_names_table): Likewise.
27261 (arch_names_table): Likewise.
27262 (_feature_list): Removed.
27263 (feature_list): Likewise.
27264 (_isa_names_table): Moved to file scope. Add priority.
27265 (isa_names_table): Likewise.
27266 (get_builtin_code_for_version): Replace feature_list with
27267 isa_names_table. Update error message for P_ZERO priority.
27268
27269 2019-04-25 Richard Biener <rguenther@suse.de>
27270
27271 * tree-pass.h (make_pass_phi_only_cprop): Remove.
27272 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
27273
27274 2019-04-24 Jeff Law <law@redhat.com>
27275
27276 PR tree-optimization/90037
27277 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
27278 * passes.def: Replace all instance of phi-only cprop with the
27279 lattice propagator. Move propagation pass from after erroneous
27280 path isolation to before erroneous path isolation.
27281 * tree-ssa-phionlycprop.c: Remove.
27282
27283 2019-04-24 Richard Biener <rguenther@suse.de>
27284
27285 PR middle-end/90213
27286 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
27287 by size and BITS_PER_UNIT on poly-wide-ints.
27288
27289 2019-04-25 Richard Biener <rguenther@suse.de>
27290
27291 PR middle-end/90194
27292 * match.pd: Add pattern to simplify view-conversion of an
27293 empty constructor.
27294
27295 2019-04-24 Clement Chigot <clement.chigot@atos.net>
27296
27297 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
27298 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
27299 for Go on 32 bit AIX.
27300 * config/rs6000/aix72.h: Likewise.
27301
27302 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27303
27304 PR target/90193
27305 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
27306 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
27307
27308 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
27309
27310 PR target/89952
27311 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
27312 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
27313 for restored hard frame pointer.
27314 (s390_sched_dependencies_evaluation): Implement new target hook.
27315 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
27316
27317 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
27318
27319 * config/arc/arc-options.def: Fix typos and spelling mistakes.
27320 * config/arc/arc.c (arc_init): Cleanup warning message.
27321 (arc_override_options): Likewise.
27322
27323 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27324
27325 PR target/90187
27326 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
27327 a register if both if_true and if_false are MEMs.
27328
27329 PR tree-optimization/90208
27330 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
27331 after labels of new_bb, not before them.
27332
27333 PR tree-optimization/90211
27334 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
27335 which are not SSA_NAMEs.
27336
27337 2018-04-23 Sudakshina Das <sudi.das@arm.com>
27338
27339 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
27340 AArch64.
27341 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
27342
27343 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27344
27345 PR rtl-optimization/87979
27346 * modulo-sched.c (sms_schedule): Start ii value "mii" should
27347 not equal zero.
27348
27349 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27350
27351 PR rtl-optimization/84032
27352 * modulo-sched.c (ps_insn_find_column): Change condition so that
27353 branch will always be the last insn in a row inside partial
27354 schedule.
27355
27356 2019-04-23 Richard Biener <rguenther@suse.de>
27357
27358 PR debug/90131
27359 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
27360 dest_single_pred_p argument.
27361 (remove_forwarder_block): Adjust.
27362 (remove_forwarder_block_with_phi): Likewise.
27363
27364 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27365 Bernd Edlinger <bernd.edlinger@hotmail.de>
27366 Jakub Jelinek <jakub@redhat.com>
27367
27368 PR target/89093
27369 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
27370 if used with general-regs-only.
27371 (arm_conditional_register_usage): Don't add non-general regs if
27372 general-regs-only.
27373 (arm_valid_target_attribute_rec): Handle general-regs-only.
27374 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
27375 general-regs-only.
27376 (TARGET_HARD_FLOAT_SUB): Define.
27377 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
27378 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
27379 (TARGET_REALLY_IWMMXT2): Likewise.
27380 * config/arm/arm.opt: Add -mgeneral-regs-only.
27381 * doc/extend.texi: Document ARM general-regs-only target.
27382 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
27383
27384 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27385
27386 PR tree-optimization/90078
27387 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27388 checks for infinite_cost overflow.
27389
27390 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27391
27392 PR tree-optimization/90021
27393 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
27394 and check univariate against it.
27395 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
27396 * tree-data-ref.c (add_other_self_distances): Pass new argument.
27397
27398 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27399
27400 PR target/90178
27401 Revert:
27402 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27403
27404 Revert the revert:
27405 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27406
27407 Revert:
27408 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27409
27410 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27411
27412 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
27413
27414 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
27415 names using operand format, rather than hard-wired.
27416 (speculation_barrier): Likewise.
27417
27418 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
27419
27420 PR tree-optimization/88055
27421 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
27422 (gen_one_condition): Use it if !HONOR_NANS.
27423
27424 2019-04-19 Jakub Jelinek <jakub@redhat.com>
27425
27426 PR middle-end/90139
27427 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
27428 assign_temp instead of gen_reg_rtx.
27429
27430 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
27431
27432 PR translation/90118
27433 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27434 Add missing space before %<.
27435
27436 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
27437
27438 PR rtl-optimization/87871
27439 * ira-lives.c (make_object_dead): Don't add conflicts to
27440 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
27441
27442 2019-04-18 Martin Sebor <msebor@redhat.com>
27443
27444 PR middle-end/89797
27445 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
27446 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
27447 assuming type size fits in SHWI.
27448
27449 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
27450
27451 PR ipa/85051
27452 * ipa-inline.c (flatten_function): New parameter UPDATE.
27453 (ipa_inline, early_inliner): Use it.
27454
27455 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27456
27457 * fold-const.c (int_const_binop): Return early on failure.
27458
27459 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27460
27461 PR middle-end/85164
27462 * combine.c (force_int_to_mode): Cast the argument rather than
27463 the result of known_alignment.
27464 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
27465
27466 2019-04-18 Richard Biener <rguenther@suse.de>
27467
27468 PR debug/90131
27469 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
27470 out from ...
27471 (remove_forwarder_block): ... here.
27472 (remove_forwarder_block_with_phi): Also move debug stmts here.
27473
27474 2019-04-18 Jakub Jelinek <jakub@redhat.com>
27475
27476 PR translation/79183
27477 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
27478 inform where appropriate.
27479
27480 2019-04-18 Richard Biener <rguenther@suse.de>
27481
27482 * tree.c (get_qualified_type): Put found type variants at the
27483 head of the variant list.
27484
27485 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27486
27487 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
27488
27489 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
27490
27491 PR target/90125
27492 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
27493 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
27494 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
27495 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
27496 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
27497
27498 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
27499
27500 * ira-conflicts.c (print_allocno_conflicts): Always print something,
27501 even for allocno's with no conflicts.
27502 (print_conflicts): Print an extra newline.
27503
27504 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27505
27506 * auto-inc-dec.c (attempt_change): Set the alignment of the
27507 temporary memory to that of the original.
27508
27509 2019-04-17 Joao Moreira <jmoreira@suse.de>
27510
27511 * targhooks.c (default_print_patchable_function_entry): Emit
27512 __patchable_function_entries section with writable flags to allow
27513 relocation resolution.
27514
27515 2019-04-17 Jonny Grant <jg@jguk.org>
27516
27517 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
27518
27519 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27520
27521 PR middle-end/90095
27522 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
27523 on lowpart SUBREGs.
27524
27525 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
27526
27527 * config/arc/arc.c (arc_init): Format diagnostic string.
27528 (arc_override_options): Likewise.
27529 (check_if_valid_regno_const): Likewise.
27530 (arc_reorg): Likewise.
27531
27532 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27533
27534 PR target/17108
27535 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
27536 name.
27537 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
27538 name.
27539 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
27540 (*movdi_update1): Use Pmode.
27541 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
27542 (movdi_<mode>_update_stack): Rename to ...
27543 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
27544 use Pmode.
27545 (*movsi_update1): Use Pmode.
27546 (*movsi_update2): Use Pmode.
27547 (movsi_update): Rename to ...
27548 (movsi_<mode>_update): ... this. Use Pmode.
27549 (movsi_update_stack): Fix condition.
27550 (*movhi_update1): Use Pmode. Fix argument to
27551 avoiding_indexed_address_p.
27552 (*movhi_update2): Ditto.
27553 (*movhi_update3): Ditto.
27554 (*movhi_update4): Ditto.
27555 (*movqi_update1): Ditto.
27556 (*movqi_update2): Ditto.
27557 (*movqi_update3): Ditto.
27558 (*movsf_update1, *movdf_update1): Merge, rename to...
27559 (*mov<mode>_update1): This. Use Pmode. Fix argument to
27560 avoiding_indexed_address_p. Add "size" attribute.
27561 (*movsf_update2, *movdf_update2): Merge, rename to...
27562 (*mov<mode>_update2): This. Ditto.
27563 (*movsf_update3): Use Pmode. Fix argument to
27564 avoiding_indexed_address_p.
27565 (*movsf_update4): Ditto.
27566 (allocate_stack): Simplify condition. Adjust pattern names.
27567
27568 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27569
27570 PR target/89093
27571 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
27572 whitespace at the start of target attribute string.
27573
27574 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
27575
27576 PR target/84369
27577 * config/rs6000/power9.md: Add store forwarding bypass.
27578
27579 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
27580
27581 PR debug/89528
27582 * valtrack.c (dead_debug_insert_temp): Reset debug references
27583 to the return value of a call being removed.
27584
27585 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27586
27587 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
27588 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
27589 implement target hook.
27590 (arc_memory_move_cost): New function.
27591 (TARGET_REGISTER_MOVE_COST): Define.
27592 (TARGET_MEMORY_MOVE_COST): Likewise.
27593 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
27594 (MEMORY_MOVE_COST): Likewise.
27595
27596 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27597
27598 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
27599 (sibcall_value_insn): Likewise.
27600 * config/arc/constraints.md (Rs5): Remove.
27601
27602 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27603
27604 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
27605 for last two fake registers.
27606 (arc_conditional_register_usage): Make sure fake frame and arg
27607 pointer regs are in general regs class.
27608 (FRAME_POINTER_MASK): Remove.
27609 (RETURN_ADDR_MASK): Remove.
27610 (arc_must_save_register): Use hard frame regnum.
27611 (frame_restore_reg): Use hard_frame_pointer_rtx.
27612 (arc_save_callee_saves): Likewise.
27613 (arc_restore_callee_saves): Likewise.
27614 (arc_save_callee_enter): Likewise.
27615 (arc_restore_callee_leave): Likewise.
27616 (arc_save_callee_milli): Likewise.
27617 (arc_eh_return_address_location): Likewise.
27618 (arc_check_multi): Use hard frame regnum.
27619 (arc_can_eliminate): Likewise.
27620 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
27621 for register allocator.
27622 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
27623 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
27624 (FRAME_POINTER_REGNUM): Change it to a fake register.
27625 (HARD_FRAME_POINTER_REGNUM): Defined.
27626 (ARG_POINTER_REGNUM): Change it to a new fake register.
27627 (ELIMINABLE_REGS): Update.
27628 (REGISTER_NAMES): Update names.
27629 * config/arc/arc.md (LP_START): Remove.
27630 (LP_END): Likewise.
27631 (shift_si3_loop): Update pattern.
27632
27633 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27634
27635 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
27636 to avoid delay slot scheduling.
27637 (arc_must_save_register): Don't save SP.
27638 * config/arc/arc.md (stack_tie): Remove.
27639 (UNSPEC_ARC_STKTIE): Likewise.
27640
27641 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
27642 Shiva Chen <shiva0217@gmail.com>
27643
27644 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
27645 code gen with large shift amount.
27646
27647 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
27648
27649 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
27650 subreg.
27651
27652 2019-04-16 Jakub Jelinek <jakub@redhat.com>
27653
27654 PR target/90096
27655 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
27656 print -m64/-mx32/-m32 if it is true.
27657 (ix86_debug_options, ix86_function_specific_print): Pass true as
27658 ADD_ABI_P to ix86_target_string.
27659 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
27660 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
27661 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
27662
27663 PR rtl-optimization/90082
27664 * dce.c (can_delete_call): New function.
27665 (deletable_insn_p, mark_insn): Use it.
27666
27667 PR tree-optimization/90090
27668 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
27669 throw internally.
27670 (is_division_by_square): Likewise. Formatting fix.
27671
27672 2019-04-16 Richard Biener <rguenther@suse.de>
27673
27674 PR tree-optimization/56049
27675 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
27676 equality check if alias-set zero will prevail.
27677
27678 2019-04-15 Jeff Law <law@redhat.com>
27679
27680 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
27681 size and alignment as unsigned.
27682
27683 2019-04-15 Richard Biener <rguenther@suse.de>
27684
27685 PR debug/90074
27686 * tree-loop-distribution.c (destroy_loop): Preserve correct
27687 debug info.
27688
27689 2019-04-15 Richard Biener <rguenther@suse.de>
27690
27691 PR tree-optimization/90071
27692 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
27693 abnormal operands from def stmts.
27694
27695 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
27696
27697 PR rtl-optimization/89794
27698 * combine.c (count_auto_inc): New function.
27699 (try_combine): Count how many auto_inc expressions there were in the
27700 original instructions. Ensure we have the same number in the new
27701 instructions. Remove the code that tried to ensure auto_inc side
27702 effects on i1 and i0 are not lost.
27703
27704 2019-04-15 Richard Biener <rguenther@suse.de>
27705
27706 PR ipa/88936
27707 * tree.h (auto_var_p): Declare.
27708 * tree.c (auto_var_p): New function, split out from ...
27709 (auto_var_in_fn_p): ... here.
27710 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
27711 member.
27712 (new_var_info): Initialize it.
27713 (set_uids_in_ptset): Also set the shadow variable uid if required.
27714 (ipa_pta_execute): Postprocess points-to solutions assigning
27715 shadow variable uids for locals that may reach their containing
27716 function recursively.
27717 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
27718 assert but instead check whether the points-to solution is
27719 a singleton.
27720
27721 2019-04-15 Martin Jambor <mjambor@suse.cz>
27722
27723 PR ipa/pr89693
27724 * cgraph.c (clone_of_p): Loop over clone chain for each step in
27725 the thunk chain.
27726
27727 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27728
27729 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
27730
27731 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27732 Kito Cheng <kito.cheng@gmail.com>
27733 Shiva Chen <shiva0217@gmail.com>
27734
27735 * config/nds32/nds32-md-auxiliary.c
27736 (nds32_legitimize_pic_address): Use new PIC pattern.
27737 (nds32_legitimize_tls_address): Use new TLS pattern.
27738 (nds32_output_symrel): New.
27739 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
27740 (nds32_alloc_relax_group_id): Ditto.
27741 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
27742 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
27743 relax_group_id.
27744 (nds32_group_tls_insn): Ditto.
27745 (nds32_group_float_insns): Ditto.
27746 * config/nds32/nds32.md (tls_le): New.
27747 (sym_got): Ditto.
27748
27749 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
27750
27751 * configure: Add nds32 target for dwarf2 debug_line checking.
27752 * configure.ac: Regenerated.
27753
27754 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
27755
27756 PR lto/89358
27757 * ipa-devirt.c (skip_in_fields_list_p): New.
27758 (odr_types_equivalent_p): Use it.
27759
27760 2019-04-13 Jakub Jelinek <jakub@redhat.com>
27761
27762 PR target/89093
27763 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
27764 instead of strncmp when checking for thumb and arm. Formatting fixes.
27765
27766 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
27767
27768 * doc/install.texi: Document --with-target-system-zlib.
27769
27770 2019-04-12 Martin Sebor <msebor@redhat.com>
27771
27772 PR c/88383
27773 PR c/89288
27774 PR c/89798
27775 PR c/89797
27776 * targhooks.c (default_vector_alignment): Avoid assuming
27777 argument fits in SHWI.
27778 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
27779 a shift expression.
27780 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
27781
27782 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27783
27784 PR rtl-optimization/89965
27785 * dce.c: Include rtl-iter.h.
27786 (struct check_argument_load_data): New type.
27787 (check_argument_load): New function.
27788 (find_call_stack_args): Check for loads from stack slots still tracked
27789 in sp_bytes and punt if any is found.
27790
27791 * config/mips/loongson-mmiintrin.h: Fix up #error message.
27792
27793 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
27794
27795 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
27796 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
27797
27798 2019-04-12 Martin Liska <mliska@suse.cz>
27799
27800 PR middle-end/89970
27801 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
27802 in error message.
27803 (separate_attrs): Handle multiple 'default's.
27804 (expand_target_clones): Rework error handling code.
27805
27806 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
27807
27808 PR target/87532
27809 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
27810 mode of vector rather than mode of destination for move instruction.
27811 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
27812 Use QI inner mode with V16QI vector mode.
27813
27814 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27815
27816 PR target/52726
27817 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
27818 "invalid %%t operand" in output_operand_lossage message.
27819
27820 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
27821
27822 * config/s390/predicates.md (permute_pattern_operand): New
27823 predicate.
27824 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
27825 operand for the permute pattern.
27826 ("*vec_perm<mode>"): New insn definition.
27827 ("bswap<mode>"): Generate the permute pattern operand in the
27828 expander and perform the operand reloads for pre arch13 level
27829 already.
27830 ("*bswap<mode>_emu"): Rename to ...
27831 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
27832 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
27833 Add the USE operand for the permute pattern.
27834 ("*vec_set_bswap_vec<mode>"): Likewise.
27835
27836 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27837
27838 PR c/89946
27839 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
27840 and gcc_unreachable if it fails, just call tree_to_uhwi which
27841 verifies that too. Test TREE_CHAIN instead of list_length > 1.
27842 Start warning message with a lower-case letter. Formatting fixes.
27843
27844 PR rtl-optimization/90026
27845 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
27846 successors, look for BARRIERs inside of the whole BB_FOOTER chain
27847 rather than just at the start of it. If e->src BB_FOOTER is not NULL
27848 in cfglayout mode, use emit_barrier_after_bb.
27849
27850 2018-04-11 Steve Ellcey <sellcey@marvell.com>
27851
27852 PR rtl-optimization/87763
27853 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
27854 New Instruction.
27855
27856 2019-04-11 Tom de Vries <tdevries@suse.de>
27857
27858 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
27859 max macro using statement expression.
27860
27861 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
27862
27863 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
27864 * xcoffout.c (xcoff_private_rodata_section_name): Define.
27865 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
27866 read_only_private_data_section using xcoff_private_rodata_section_name.
27867 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
27868
27869 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
27870
27871 PR target/90016
27872 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
27873
27874 2019-04-11 Jakub Jelinek <jakub@redhat.com>
27875
27876 PR rtl-optimization/89965
27877 * dce.c (sp_based_mem_offset): New function.
27878 (find_call_stack_args): Use sp_based_mem_offset.
27879
27880 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
27881
27882 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
27883
27884 2019-04-11 Richard Biener <rguenther@suse.de>
27885
27886 PR tree-optimization/90020
27887 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
27888 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
27889 * tree-ssa-pre.c (compute_avail): Use it to not put
27890 possibly trapping references after a call that might not
27891 return into EXP_GEN.
27892 * gcse.c (compute_hash_table_work): Do not elide
27893 marking a block containing a call if the call might not
27894 return.
27895
27896 2019-04-11 Richard Biener <rguenther@suse.de>
27897
27898 PR tree-optimization/90018
27899 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
27900 Test both SLP and interleaving variants.
27901
27902 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
27903
27904 * config/s390/8561.md: New file.
27905 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27906 Add arch13 cpu model.
27907 * config/s390/s390-opts.h (enum processor_type): Likewise.
27908 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
27909 (s390_get_unit_mask): Likewise.
27910 (s390_is_fpd): Likewise.
27911 (s390_is_fxd): Likewise.
27912 * config/s390/s390.h (s390_tune_attr): Likewise.
27913 * config/s390/s390.md: Include arch13 pipeline description.
27914 * config/s390/s390.opt: Add arch13.
27915
27916 2018-04-10 Steve Ellcey <sellcey@marvell.com>
27917
27918 PR rtl-optimization/87763
27919 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
27920 New prototype.
27921 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
27922 New function.
27923 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
27924 New instruction.
27925 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
27926 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
27927 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
27928 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
27929
27930 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
27931
27932 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
27933 "Although" in -fipa-icf documentation.
27934
27935 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
27936 of using multiple -g options.
27937
27938 2019-04-10 Martin Liska <mliska@suse.cz>
27939
27940 PR gcov-profile/89959
27941 * doc/gcov.texi: Make documentation of -x option
27942 more precise.
27943
27944 2019-04-10 Richard Biener <rguenther@suse.de>
27945
27946 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
27947 member.
27948 (DR_GROUP_SAME_DR_STMT): Remove.
27949 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
27950 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
27951 replace with assert.
27952 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
27953 (vect_record_grouped_load_vectors): Remove unreachable code.
27954
27955 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
27956
27957 PR target/90016
27958 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
27959 obsolete reference to N.
27960
27961 2019-04-10 Jakub Jelinek <jakub@redhat.com>
27962
27963 PR middle-end/90025
27964 * expr.c (store_expr): Set properly size on the MEM passed to
27965 clear_storage.
27966
27967 PR c++/90010
27968 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
27969 with strlen in between hostsz-3 and hostsz-1 inclusive when no
27970 translation is needed, and when translation is needed, only append
27971 ... if the string length is hostsz or more bytes long. Avoid using
27972 strncpy or strcat.
27973
27974 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
27975
27976 PR target/90024
27977 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
27978 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
27979 into three.
27980 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
27981 differences directly.
27982 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
27983
27984 2019-04-09 Jakub Jelinek <jakub@redhat.com>
27985
27986 PR translation/90011
27987 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27988 from diagnostics.
27989 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
27990 diagnostics.
27991 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
27992 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
27993 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
27994 trailing space from -gsplit-dwarf diagnostics.
27995
27996 PR tree-optimization/89998
27997 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
27998 instead of integer_type_node if possible, don't add ranges if return
27999 type is not compatible with int.
28000 * gimple-fold.c (gimple_fold_builtin_sprintf,
28001 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28002 integer_type_node.
28003
28004 2019-04-09 Martin Liska <mliska@suse.cz>
28005
28006 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28007 * doc/install.texi: Document the new config.
28008
28009 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28010
28011 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28012 use gimple_expr_type for load and store calls. Skip over the
28013 condition argument in a conditional internal function.
28014 Protect use of TREE_INT_CST_LOW.
28015
28016 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28017
28018 PR target/90015
28019 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28020 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28021 trailing period from it too.
28022
28023 2019-04-08 wu yuan <wuyuan5@huawei.com>
28024
28025 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28026 * config/aarch64/aarch64.md: Add "tsv110.md".
28027 * config/aarch64/tsv110.md: New file.
28028
28029 2019-04-08 Richard Biener <rguenther@suse.de>
28030
28031 PR tree-optimization/90006
28032 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28033 calls like lrint.
28034
28035 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28036
28037 PR target/83033
28038 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28039 construction.
28040 (fma_root_node): Likewise.
28041 (func_fma_steering): Likewise.
28042
28043 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28044
28045 PR rtl-optimization/89865
28046 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28047
28048 PR rtl-optimization/89865
28049 * config/i386/i386.md
28050 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28051 numbers not to clash with the additional operands[4].
28052 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28053 with extra register copy in the middle.
28054
28055 2019-04-08 Martin Liska <mliska@suse.cz>
28056
28057 PR gcov-profile/89961
28058 * doc/gcov.texi: Document data_file.
28059 * gcov.c (generate_results): Add data_info into JSON output.
28060
28061 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28062
28063 PR tree-optimization/89725
28064 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28065 loop's chrec as invariant symbol.
28066 * tree-chrec.h (chrec_contains_symbols): New parameter.
28067 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28068 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28069 function of loops not in DDR's loop_nest.
28070 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28071
28072 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28073
28074 PR target/89623
28075 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28076 Mask.
28077
28078 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28079
28080 PR target/89945
28081 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28082 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28083
28084 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28085
28086 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28087 targetm.fixed_condition_code_regs.
28088
28089 2019-04-05 Richard Biener <rguenther@suse.de>
28090
28091 PR debug/89892
28092 PR debug/89905
28093 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28094 debug bind stmts but reset them if they are not valid at the
28095 destination.
28096
28097 2019-04-05 Martin Liska <mliska@suse.cz>
28098
28099 PR translation/89936
28100 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28101 order to wrap keywords or arguments.
28102 * collect2.c (main): Likewise.
28103 (scan_prog_file): Likewise.
28104 (scan_libraries): Likewise.
28105 * common/config/riscv/riscv-common.c
28106 (riscv_subset_list::parsing_subset_version): Likewise.
28107 (riscv_subset_list::parse_std_ext): Likewise.
28108 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28109 Likewise.
28110 * config/arm/arm.c (arm_option_override): Likewise.
28111 * config/cris/cris.c (cris_print_operand): Likewise.
28112 * config/darwin-c.c (darwin_pragma_options): Likewise.
28113 (darwin_pragma_unused): Likewise.
28114 (darwin_pragma_ms_struct): Likewise.
28115 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28116 * config/i386/i386.c (print_reg): Likewise.
28117 (ix86_print_operand): Likewise.
28118 * config/i386/xm-djgpp.h: Likewise.
28119 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28120 * config/m32c/m32c.c (m32c_option_override): Likewise.
28121 * config/msp430/msp430.c (msp430_option_override): Likewise.
28122 * config/nds32/nds32.c (nds32_option_override): Likewise.
28123 * config/nvptx/mkoffload.c (main): Likewise.
28124 * config/rx/rx.c (rx_print_operand): Likewise.
28125 (valid_psw_flag): Likewise.
28126 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28127 (vms_pragma_nomember_alignment): Likewise.
28128 (vms_pragma_extern_model): Likewise.
28129 * lto-wrapper.c (compile_offload_image): Likewise.
28130 * omp-offload.c (oacc_parse_default_dims): Likewise.
28131 * symtab.c (symtab_node::verify_base): Likewise.
28132 * tlink.c (recompile_files): Likewise.
28133 (start_tweaking): Likewise.
28134 * tree-profile.c (parse_profile_filter): Likewise.
28135
28136 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
28137
28138 PR tree-optimization/89956
28139 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
28140 multiple negates of the same value.
28141
28142 2019-04-04 Martin Sebor <msebor@redhat.com>
28143
28144 PR middle-end/89957
28145 PR middle-end/89911
28146 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
28147 have the same precision since the function crashes otherwise.
28148 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
28149 has non-zero arguments.
28150
28151 2019-04-04 Martin Sebor <msebor@redhat.com>
28152
28153 PR middle-end/89934
28154 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
28155 out if the number of arguments is less than expected.
28156
28157 2019-04-04 Jeff Law <law@redhat.com>
28158
28159 PR rtl-optimization/89399
28160 * ree.c (combine_set_extension): Use single_set rather than
28161 digging into PATTERN for items on the candidate list.
28162 (combine_reaching_defs): Likewise.
28163
28164 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
28165
28166 PR rtl-optimization/46590
28167 * loop-invariant.c (find_defs): Move df_remove_problem and
28168 df_process_deferred_rescans to move_invariants.
28169 Move df_live_add_problem and df_live_set_all_dirty calls
28170 to move_invariants.
28171 (move_invariants): Likewise.
28172 (move_loop_invariants): Likewise, making the df_live calls
28173 conditional on -O. Remove the problem again if we added it
28174 locally.
28175
28176 2019-04-03 qing zhao <qing.zhao@oracle.com>
28177
28178 PR tree-optimization/89730
28179 * ipa-inline.c (can_inline_edge_p): Delete the checking for
28180 -flive-patching=inline-only-static.
28181 (can_inline_edge_by_limits_p): Add the checking for
28182 -flive-patching=inline-only-static and grant always_inline
28183 even when -flive-patching=inline-only-static is specified.
28184
28185 2019-04-03 Jeff Law <law@redhat.com>
28186
28187 PR rtl-optimization/81025
28188 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
28189
28190 2019-04-03 Richard Biener <rguenther@suse.de>
28191
28192 PR tree-optimization/84101
28193 * tree-vect-stmts.c: Include explow.h for hard_function_value,
28194 regs.h for hard_regno_nregs.
28195 (cfun_returns): New helper.
28196 (vect_model_store_cost): When vectorizing a store to a decl
28197 we return and the function ABI returns in a multi-reg location
28198 account for the possible spilling that will happen.
28199
28200 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
28201
28202 * config/s390/s390.c (s390_legitimate_address_p): Reject long
28203 displacement addresses for vector mode operands.
28204
28205 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
28206
28207 * config/arc/arc.c (GMASK_LEN): Define.
28208 (arc_restore_callee_saves): Restore first blink when
28209 !optimize_size.
28210
28211 2019-04-03 Sudakshina Das <sudi.das@arm.com>
28212
28213 * doc/extend.texi: Add deprecated comment on sign-return-address
28214 function attribute and add mbranch-protection.
28215 * doc/invoke.texi: Add bti to the options for mbranch-protection.
28216
28217 2019-04-03 Richard Biener <rguenther@suse.de>
28218
28219 PR lto/89896
28220 * lto-wrapper.c (run_gcc): Avoid implicit rules making
28221 the all target phony.
28222
28223 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
28224
28225 PR target/89902
28226 PR target/89903
28227 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
28228 Return false for variable DImode shifts.
28229 (dimode_scalar_chain::compute_convert_gain): Do not handle
28230 register count operand in variable DImode shifts.
28231 (dimode_scalar_chain::make_vector_copies): Remove support to copy
28232 count argument of a variable shift instruction to a vector register.
28233 (dimode_scalar_chain::convert_reg): Remove support to convert
28234 count argument of a variable shift instruction.
28235
28236 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28237
28238 PR rtl-optimization/84206
28239 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
28240 iterating over loop headers.
28241
28242 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28243
28244 PR rtl-optimization/85876
28245 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
28246 beyond the original fence.
28247
28248 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28249
28250 * config.gcc: Mark spu* targets as deprecated/obsolete.
28251
28252 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28253
28254 * config/s390/s390-builtin-types.def: New builtin function type
28255 definitions. Remove unused types.
28256 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
28257 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
28258 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
28259 overloaded builtins.
28260 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
28261 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
28262 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
28263 (vec_double, vec_signed, vec_unsigned): Define to use the new
28264 overloaded builtins.
28265 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
28266 Remove expanders.
28267
28268 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28269
28270 * config/s390/s390-builtin-types.def: New builtin function type
28271 definitions.
28272 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
28273 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
28274 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
28275 (s390_vstrszh, s390_vstrszf): New low-level builtins.
28276 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
28277 constant definitions.
28278 * config/s390/vecintrin.h (vec_search_string_cc)
28279 (vec_search_string_until_zero_cc): New builtin name definitions.
28280 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
28281 expanders.
28282 ("vec_vstrs<mode>"): New insn definition.
28283
28284 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28285
28286 * config/s390/s390-builtin-types.def: Add new builtin function
28287 types.
28288 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
28289 New overloaded builtins.
28290 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
28291 s390_vsrd.
28292 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
28293 (UNSPEC_VEC_SLDBYTE): ... this.
28294 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
28295 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
28296 definitions.
28297 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
28298 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
28299 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
28300
28301 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28302
28303 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
28304 New insn definition.
28305 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
28306 * config/s390/vector.md (V_HW_HSD): ... here.
28307
28308 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28309
28310 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
28311 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
28312 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
28313 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
28314 New insn definitions.
28315
28316 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28317
28318 * config/s390/s390-builtin-types.def: Add new builtin function type.
28319 * config/s390/s390-builtins.def: Add overloaded builtin
28320 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
28321 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
28322 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
28323 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
28324 ("eltswap<mode>"): New expander.
28325 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
28326 insn definitions.
28327
28328 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28329
28330 * config/s390/s390-builtin-types.def: Add new builtin function types.
28331 * config/s390/s390-builtins.def: Add overloaded builtin
28332 s390_vec_revb. Add low-level builtins for vlbr and vstbr
28333 instructions.
28334 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
28335 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
28336 ("bswap<mode>"): New expander.
28337 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
28338
28339 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28340
28341 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
28342 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
28343 vector builtin version number in __VEC__.
28344
28345 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28346
28347 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
28348 iterators.
28349 (SFSI): New mode attribute.
28350 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
28351 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
28352 rename to ...
28353 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
28354 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
28355 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
28356 ("floatsi<mode>2"): Add wcefb instruction.
28357
28358 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28359
28360 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
28361 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
28362 mode iterators.
28363 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
28364 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
28365 support 32 bit fp-int conversions. Rename to ...
28366 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28367 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28368 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
28369 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
28370 ... to these.
28371
28372 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28373
28374 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
28375 if-then-else constructs if we can use the select instruction.
28376 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
28377
28378 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28379
28380 * config/s390/s390.md ("*popcountdi_arch13_cc")
28381 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
28382 definition.
28383 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
28384 Append _z196 to make it ...
28385 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
28386 ("popcounthi2_z196"): ... this.
28387 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
28388 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
28389
28390 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28391
28392 * config/s390/s390.c (s390_canonicalize_comparison): Convert
28393 certain compares for arch13 in order to make use of the condition
28394 code result produced by the new instructions.
28395 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
28396 nxrk, and nxgrk instruction patterns.
28397 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
28398 (inv_no): Add new code iterator together with some attributes.
28399 ("*andc_split_<mode>"): Disable splitter for arch13.
28400 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
28401 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
28402 ("*<ANDOR:bitops_name>c<GPR:mode>")
28403 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
28404 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
28405 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
28406 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
28407
28408 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28409
28410 * common/config/s390/s390-common.c (processor_flags_table): New
28411 entry for arch13.
28412 * config.gcc: Support arch13 with the --with-arch= configure flag.
28413 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28414 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
28415 * config/s390/s390.c (s390_get_sched_attrmask)
28416 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
28417 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
28418 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
28419 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
28420 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
28421 definitions.
28422 * config/s390/s390.opt: Support arch13 as processor type in
28423 command line options.
28424
28425 2019-04-02 Martin Liska <mliska@suse.cz>
28426
28427 PR translation/89912
28428 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
28429 Fix param description of graphite-max-arrays-per-scop.
28430
28431 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
28432
28433 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
28434 (ASAN_CC1_SPEC): Use it in 64-bit mode.
28435 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
28436
28437 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28438
28439 PR rtl-optimization/85412
28440 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
28441 sel_sched_region_1, not after.
28442
28443 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28444
28445 PR rtl-optimization/86928
28446 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
28447 compute_live if necessary.
28448 (sel_redirect_edge_and_branch): Likewise.
28449
28450 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
28451
28452 PR rtl-optimization/89865
28453 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
28454 register if it is a part of small class.
28455
28456 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28457
28458 PR rtl-optimization/87273
28459 * sel-sched-ir.c (merge_fences): Remove assert.
28460
28461 2019-04-01 Richard Biener <rguenther@suse.de>
28462
28463 PR tree-optimization/46590
28464 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
28465 (dom_walker::m_reachability): Add in place of...
28466 (dom_walker::m_skip_unreachable_blocks): ...this.
28467 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
28468 Move complex initialization ...
28469 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
28470 lazily and initialize edge flags on each invocation.
28471 (dom_walker::bb_reachable): Use m_reachability.
28472
28473 2019-04-01 Martin Liska <mliska@suse.cz>
28474
28475 PR driver/89861
28476 * opt-suggestions.c (option_proposer::build_option_suggestions):
28477 Add variant without any argument in order to provide better
28478 hints.
28479
28480 2019-04-01 Richard Biener <rguenther@suse.de>
28481
28482 PR c/71598
28483 * gimple.c: Include langhooks.h.
28484 (gimple_get_alias_set): Treat enumeral types as the underlying
28485 integer type.
28486
28487 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
28488 Eric Botcazou <ebotcazou@adacore.com>
28489
28490 PR rtl-optimization/89862
28491 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
28492 that operates on the full registers for WORD_REGISTER_OPERATIONS
28493 architectures.
28494
28495 2019-03-29 Jim Wilson <jimw@sifive.com>
28496
28497 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
28498 Clear MASK_RVC and then set if C subset supported.
28499
28500 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28501
28502 PR c/89872
28503 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
28504 non-addressable complit into its initializer if it is volatile.
28505
28506 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
28507
28508 * opts-common.c (integral_argument): Set errno properly in one case.
28509
28510 2019-03-29 Martin Liska <mliska@suse.cz>
28511
28512 * doc/invoke.texi: Remove -Wchkp from documentation.
28513
28514 2019-03-29 Martin Liska <mliska@suse.cz>
28515
28516 * dbgcnt.c (print_limit_reach): New function.
28517 (dbg_cnt): Use it.
28518
28519 2019-03-29 Martin Liska <mliska@suse.cz>
28520
28521 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
28522 (dbg_cnt_process_opt): Parse first tokens aas
28523 dbg_cnt_process_single_pair is also using strtok.
28524
28525 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28526
28527 PR rtl-optimization/87485
28528 * function.c (expand_function_end): Move stack_protect_epilogue
28529 before loading of return value into hard register(s).
28530
28531 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28532
28533 PR middle-end/89621
28534 * tree-inline.h (struct copy_body_data): Add
28535 dont_remap_vla_if_no_change flag.
28536 * tree-inline.c (remap_type_3, remap_type_2): New functions.
28537 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
28538 and remap_type_2 returns false.
28539 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
28540 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
28541 only from where it is copied to nested contexts.
28542
28543 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28544
28545 PR target/89865
28546 * config/i386/i386.md (RMW operation with LEA peephole):
28547 Use LEAMODE mode attribute instead of SWI mode iterator for
28548 LEA pattern.
28549
28550 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28551
28552 PR target/89848
28553 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
28554 Also process XEXP (src, 0) of a shift insn.
28555
28556 2019-03-28 David Malcolm <dmalcolm@redhat.com>
28557
28558 PR middle-end/89725
28559 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
28560 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
28561
28562 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28563
28564 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
28565 test.
28566 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
28567 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
28568 immediately after first one with df_analyze in between, but rather
28569 process all bbs, queueing ones that need second pass in a worklist,
28570 df_analyze, process queued debug insn changes and if second pass is
28571 needed, process bbs from worklist, df_analyze, process queued debug
28572 insns again.
28573
28574 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
28575 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
28576 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
28577
28578 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
28579
28580 PR c/79022
28581 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
28582 definition.
28583
28584 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
28585
28586 PR target/85667
28587 * config/i386/i386.c (ix86_function_value_1): Call the newly added
28588 function for 32-bit MS_ABI.
28589 (function_value_ms_32): New function.
28590
28591 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
28592
28593 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
28594 (movdi): Call gen_movdi_symbol_save_scc.
28595 (gen_movdi_symbol_save_scc): New insn and split.
28596
28597 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
28598
28599 PR rtl-optimization/89313
28600 * function.c (matching_constraint_num): New static function.
28601 (match_asm_constraints_1): Use it. Fixup white space and comment.
28602 Don't replace inputs with non-matching constraints which conflict
28603 with early clobber outputs.
28604
28605 2019-03-27 Jeff Law <law@redhat.com>
28606
28607 PR rtl-optimization/87761
28608 PR rtl-optimization/89826
28609 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
28610 slightly later.
28611 (pass_cprop_hardreg::execute): Call df_analyze after adding the
28612 note problem to get REG_DEAD/REG_UNUSED notes updated.
28613
28614 2019-03-27 Richard Biener <rguenther@suse.de>
28615
28616 PR tree-optimization/89463
28617 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
28618 queue edges to remove.
28619 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
28620 dead stmts. Delay edge removal until PHIs are removed to
28621 make debug-stmt creation not confused by seemingly degenerate
28622 PHIs.
28623
28624 2019-03-27 Alan Modra <amodra@gmail.com>
28625
28626 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
28627 throughout file.
28628 * config/rs6000/darwin.h: Likewise.
28629 * config/rs6000/rs6000.c: Likewise.
28630
28631 2019-03-27 Alan Modra <amodra@gmail.com>
28632
28633 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
28634 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
28635
28636 2019-03-26 Andrew Waterman <andrew@sifive.com>
28637 Jim Wilson <jimw@sifive.com>
28638
28639 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
28640 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
28641 (generic_idivdi, generic_fmul_single, generic_fmul_double)
28642 (generic_fdiv, generic_fsqrt): Add check for generic tune.
28643 (generic_alu): Add auipc to type list.
28644 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
28645 (riscv_microarchitecture): Declare.
28646 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
28647 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
28648 field.
28649 (riscv_microarchitecture): New.
28650 (sifive_7_tune_info): New.
28651 (riscv_cpu_info_table): Add microarchitecture value for rocket and
28652 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
28653 entries.
28654 (riscv_store_data_bypass_p): New.
28655 (riscv_option_override): Set riscv_microarchitecture from
28656 cpu->microarchitecture.
28657 * config/riscv/riscv.md: Include sifive-7.md.
28658 (type): Add auipc.
28659 (tune): New.
28660 (auipc<mode>): Change type to auipc.
28661 (restore_stack_nonlocal): New.
28662 * config/riscv/sifive-7.md: New.
28663 * doc/invoke.texi (RISC-V Options): Update mtune docs.
28664
28665 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
28666
28667 PR target/89827
28668 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28669 Also process XEXP (src, 0) of a shift insn.
28670
28671 2019-03-26 Richard Biener <rguenther@suse.de>
28672
28673 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
28674 (copy_debug_stmt): Likewise.
28675 (expand_call_inline): Likewise.
28676 (copy_bb): Avoid redundant lookup & set of gimple_block.
28677 * gimple-low.c (lower_gimple_return): Likewise.
28678 (lower_builtin_setjmp): Likewise.
28679
28680 2019-03-26 Jakub Jelinek <jakub@redhat.com>
28681
28682 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
28683 is constant 0, turn into static const data member initialized to false.
28684 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
28685 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
28686
28687 2019-03-26 Jason Merrill <jason@redhat.com>
28688 Jakub Jelinek <jakub@redhat.com>
28689
28690 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
28691 method.
28692 (mem_alloc_description::release_object_overhead): Fix comment typos.
28693 * hash-table.h (hash_table::~hash_table): Call
28694 release_instance_overhead only if m_entries is non-NULL, otherwise
28695 call unregister_descriptor.
28696
28697 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
28698
28699 PR tree-optimization/81740
28700 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28701 In case of outer loop vectorization, check for backward dependence
28702 at the inner loop if outer loop dependence is reversed.
28703
28704 2019-03-26 Alan Modra <amodra@gmail.com>
28705
28706 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
28707 rs6000_vector_mem init. Correct wI and wJ comment.
28708
28709 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
28710
28711 PR rtl-optimization/88347
28712 PR rtl-optimization/88423
28713 * sched-deps.c (sched_analyze_insn): Take into account that for
28714 tablejumps the barrier appears after a label and a jump_table_data.
28715
28716 2019-03-25 Martin Sebor <msebor@redhat.com>
28717
28718 PR c/89812
28719 * c-common.c (check_user_alignment): Rename local. Correct maximum
28720 alignment in diagnostic. Avoid assuming argument fits in SHWI,
28721 convert it to UHWI when it fits.
28722
28723 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
28724
28725 PR debug/86964
28726 * dwarf2out.c (premark_used_variables): New function.
28727 (prune_unused_types_walk): Do not mark not premarked external
28728 variables.
28729 (prune_unused_types): Call premark_used_variables.
28730
28731 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
28732
28733 PR rtl-optimization/89676
28734 * lra-constraints.c (curr_insn_transform): Do match reload for
28735 early clobbers when the match was successful only for different
28736 registers.
28737
28738 2019-03-25 Martin Sebor <msebor@redhat.com>
28739
28740 * doc/extend.texi (Common Type Attributes): Document vector_size.
28741 (Common Variable Attributes): Mention size constraint. Correct
28742 quoting and typos.
28743 (Vector Extensions): Use @dfn when defining bas type. Clarify
28744 base type and size constraints.
28745
28746 2019-03-25 Richard Biener <rguenther@suse.de>
28747
28748 PR tree-optimization/89789
28749 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
28750 changes from non-undefined back to undefined.
28751
28752 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
28753
28754 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
28755 heap string and a gc string, but since this variable is unknown to
28756 ggc the gc string might get reused and corrupted. Fixed by always
28757 using a heap string.
28758
28759 2019-03-25 Richard Biener <rguenther@suse.de>
28760
28761 PR tree-optimization/89779
28762 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
28763 to remove IV defs, delay actual removal.
28764 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
28765 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
28766 very end, properly also reset loop control IV information.
28767
28768 2019-03-25 Richard Biener <rguenther@suse.de>
28769
28770 PR tree-optimization/89802
28771 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
28772 move EH data to folded stmt.
28773
28774 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28775
28776 * config/s390/s390-builtin-types.def: Remove few unused types and
28777 fix sort order for others.
28778
28779 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28780
28781 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
28782 expected and found types with -mdebug during builtin matching.
28783
28784 2019-03-25 Richard Biener <rguenther@suse.de>
28785
28786 PR middle-end/89790
28787 * fold-const.c (operand_equal_p): Revert last change with
28788 updated comment.
28789
28790 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
28791
28792 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
28793 notes for the result of the __tls_get_addr calls.
28794 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
28795
28796 2019-03-24 Jeff Law <law@redhat.com>
28797
28798 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
28799
28800 PR rtl-optimization/87761
28801 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
28802 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
28803 as needed.
28804 (pass_cprop_hardreg::execute): Add df note problem and defer insn
28805 rescans. Reprocess blocks as needed, calling df_analyze before
28806 reprocessing. Always call df_analyze before fixing up debug bind
28807 insns.
28808
28809 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
28810
28811 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
28812 big endian.
28813
28814 2019-03-22 Andrew Pinski <apinski@marvell.com>
28815
28816 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
28817 attrribute for uxtw.
28818
28819 2019-03-26 Jeff Law <law@redhat.com>
28820
28821 PR rtl-optimization/87761
28822 * config/mips/mips-protos.h (mips_split_move): Add new argument.
28823 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
28824 (mips_split_move): Accept new INSN argument. Try to forward SRC
28825 into the next instruction.
28826 (mips_split_move_insn): Pass INSN through to mips_split_move.
28827
28828 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
28829
28830 PR rtl-optimization/89676
28831 * lra-constraints.c (curr_insn_transform): Do match reload for
28832 early clobbers even if the match was successful.
28833
28834 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28835
28836 PR c++/87481
28837 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
28838
28839 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
28840
28841 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
28842
28843 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28844
28845 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
28846 <avx512>_fmsub_<mode>_mask3<round_name>,
28847 <avx512>_fnmadd_<mode>_mask3<round_name>,
28848 <avx512>_fnmsub_<mode>_mask3<round_name>,
28849 avx512f_vmfmadd_<mode>_mask3<round_name>,
28850 avx512f_vmfmsub_<mode>_mask3<round_name>,
28851 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
28852 instead of register_operand and %v instead of v for match_operand 1.
28853 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
28854 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
28855 <round_nimm_predicate> instead of register_operand and %v instead of v
28856 for match_operand 1.
28857
28858 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
28859 <avx512>_fmadd_<mode>_mask3<round_name>,
28860 <avx512>_fmsub_<mode>_mask<round_name>,
28861 <avx512>_fmsub_<mode>_mask3<round_name>,
28862 <avx512>_fnmadd_<mode>_mask<round_name>,
28863 <avx512>_fnmadd_<mode>_mask3<round_name>,
28864 <avx512>_fnmsub_<mode>_mask<round_name>,
28865 <avx512>_fnmsub_<mode>_mask3<round_name>,
28866 <avx512>_fmaddsub_<mode>_mask<round_name>,
28867 <avx512>_fmaddsub_<mode>_mask3<round_name>,
28868 <avx512>_fmsubadd_<mode>_mask<round_name>,
28869 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
28870 <round_nimm_predicate> instead of nonimmediate_operand.
28871 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
28872 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
28873 Use register_operand instead of <round_nimm_predicate> for the
28874 operand that needs to match output.
28875 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
28876 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
28877 Likewise. Formatting fixes.
28878
28879 PR target/89784
28880 * config/i386/i386.c (enum ix86_builtins): Remove
28881 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
28882 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
28883 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
28884 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
28885 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
28886 __builtin_ia32_vfmsubss3_mask3): New builtins.
28887 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
28888 avx512f_vmfmadd_<mode>_mask3<round_name>,
28889 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
28890 *avx512f_vmfmsub_<mode>_mask<round_name>,
28891 avx512f_vmfmsub_<mode>_mask3<round_name>,
28892 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
28893 *avx512f_vmfnmadd_<mode>_mask<round_name>,
28894 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
28895 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
28896 *avx512f_vmfnmsub_<mode>_mask<round_name>,
28897 avx512f_vmfnmsub_<mode>_mask3<round_name>,
28898 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
28899 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
28900 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
28901 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
28902 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
28903 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
28904 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
28905 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
28906 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
28907 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
28908 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
28909 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
28910 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
28911 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
28912 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
28913 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
28914 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
28915 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
28916 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
28917 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
28918 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
28919 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
28920
28921 2019-03-21 Martin Sebor <msebor@redhat.com>
28922
28923 PR tree-optimization/89350
28924 * builtins.c (compute_objsize): Also ignore offsets whose upper
28925 bound is negative.
28926 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
28927 (builtin_memref::builtin_memref): Initialize new member.
28928 Allow EXPR to be null.
28929 (builtin_memref::extend_offset_range): Replace local with a member.
28930 Avoid assuming pointer offsets are unsigned.
28931 (builtin_memref::set_base_and_offset): Determine base object
28932 before computing offset range.
28933 (builtin_access::builtin_access): Handle memset.
28934 (builtin_access::generic_overlap): Replace local with a member.
28935 (builtin_access::strcat_overlap): Same.
28936 (builtin_access::overlap): Same.
28937 (maybe_diag_overlap): Same.
28938 (maybe_diag_access_bounds): Same.
28939 (wrestrict_dom_walker::check_call): Handle memset.
28940 (check_bounds_or_overlap): Same.
28941
28942 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
28943 Jakub Jelinek <jakub@redhat.com>
28944
28945 PR lto/89692
28946 * tree.c (fld_type_variant, fld_incomplete_type_of,
28947 fld_process_array_type): Call fld->pset.add and don't call
28948 add_tree_to_fld_list if it returns true.
28949 (free_lang_data_in_type): Similarly with self-recursive call. Purge
28950 non-marked types from TYPE_NEXT_VARIANT list.
28951 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
28952
28953 2019-03-21 Jakub Jelinek <jakub@redhat.com>
28954
28955 * hash-table.h (hash_table): Add Lazy template parameter defaulted
28956 to false, if true, don't alloc_entries during construction, but defer
28957 it to the first method that needs m_entries allocated.
28958 (hash_table::hash_table, hash_table::~hash_table,
28959 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
28960 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
28961 hash_table::clear_slot, hash_table::traverse_noresize,
28962 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
28963 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
28964 false.
28965 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
28966 NO_INSERT instead of find_with_hash.
28967 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
28968 hash_set::m_table): Add Lazy to template params of hash_table.
28969 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
28970 * attribs.c (test_attribute_exclusions): Likewise.
28971 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
28972 hash_set. Add tests for hash_set with Lazy = true.
28973
28974 2019-03-21 Richard Biener <rguenther@suse.de>
28975
28976 PR tree-optimization/89779
28977 * tree.c (tree_nop_conversion): Consolidate and fix defensive
28978 checks with respect to released SSA names now having error_mark_node
28979 type.
28980 * fold-const.c (operand_equal_p): Likewise.
28981
28982 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
28983
28984 PR target/89775
28985 * config/s390/s390.c (global_not_special_regno_p): Move to make it
28986 available to ...
28987 (s390_optimize_register_info): Use global_not_special_regno_p to
28988 check for global regs.
28989
28990 2019-03-20 Jakub Jelinek <jakub@redhat.com>
28991
28992 PR target/89752
28993 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
28994 update this_alternative nor this_alternative_set.
28995
28996 2019-03-19 Jim Wilson <jimw@sifive.com>
28997
28998 PR target/89411
28999 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29000 align, size, offset. Use them to handle a BLKmode reference. Update
29001 comment.
29002 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29003
29004 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29005
29006 PR rtl-optimization/89768
29007 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29008 instead of GEN_INT.
29009 (unroll_loop_runtime_iterations): Likewise.
29010
29011 2019-03-19 Martin Sebor <msebor@redhat.com>
29012
29013 PR tree-optimization/89644
29014 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29015 rather than endptr as an indicator of nul-termination.
29016
29017 PR tree-optimization/89644
29018 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29019 arrays in determining sequence sizes in strncpy and stpncpy.
29020
29021 2019-03-19 Martin Liska <mliska@suse.cz>
29022
29023 PR middle-end/89737
29024 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29025 unlikely_edges if there's an edge that belongs to both these sets.
29026
29027 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29028
29029 PR target/89746
29030 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29031 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29032 go via a stack temporary.
29033
29034 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29035
29036 PR target/89378
29037 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29038 instead of gen_rtx_SUBREG.
29039 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29040
29041 2019-03-19 Richard Biener <rguenther@suse.de>
29042
29043 PR debug/88389
29044 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29045
29046 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29047
29048 PR lto/87809
29049 PR lto/89335
29050 * tree.c (free_lang_data_in_decl): Do not free context of C++
29051 destrutors.
29052
29053 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29054
29055 PR target/89506
29056 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29057 subs for the first alternative except when operands[3] is 1.
29058
29059 PR target/89752
29060 * gimplify.c (gimplify_asm_expr): For output argument with
29061 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29062 diagnose error.
29063
29064 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29065
29066 PR rtl-optimization/89753
29067 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29068 explicit unrolling factor even more robust.
29069
29070 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29071
29072 PR target/89726
29073 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29074 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29075 signed zeros, do another copysign after the compensation.
29076
29077 2019-03-18 Martin Sebor <msebor@redhat.com>
29078
29079 PR tree-optimization/89720
29080 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29081 more conservatively, the same as anti-range.
29082
29083 2019-03-18 Richard Biener <rguenther@suse.de>
29084
29085 PR middle-end/88945
29086 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29087 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29088 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29089 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29090
29091 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29092
29093 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29094 Extend queue to 1024 entries.
29095 Add "consumed" field.
29096 (gomp_print_output): Remove print_index parameter.
29097 Add final parameter.
29098 Change limit to unsigned.
29099 Use consumed field to implement circular buffer.
29100 Detect interrupted print in final pass.
29101 Flush output at the end.
29102 (run): Update gomp_print_output usage.
29103 (main): Initialize kernargs->output_data.consumed.
29104
29105 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29106
29107 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29108 calculation of the minimum number of scalar iterations for
29109 fully-predicated loops.
29110
29111 2019-03-18 Martin Jambor <mjambor@suse.cz>
29112
29113 PR tree-optimization/89546
29114 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29115 any propagation to its children took place.
29116
29117 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29118
29119 PR target/89627
29120 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29121 parameter, and make use of it.
29122 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29123
29124 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29125
29126 * config/arc/arc.opt (mcode-density-frame): Get the inital value
29127 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29128 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29129 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29130 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29131 match what the ops is doing.
29132 (push_multi_fp_blink): Likewise.
29133 * config/arc/arc.c (arc_override_options): Enable enter/leave when
29134 compiling for size and elf target.
29135 (arc_save_callee_enter): Adjust note to match what enter/leave
29136 operation does.
29137
29138 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29139
29140 * config/arc/arc.md (tst_movb): Fix constraint.
29141
29142 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29143
29144 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
29145
29146 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29147
29148 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
29149 * config/arc/arc.c (arc_conditional_register_usage): Remove all
29150 reg_alloc_order references.
29151 (size_alloc_order): Define.
29152 (arc_adjust_reg_alloc_order): New function.
29153 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
29154 order.
29155 (ADJUST_REG_ALLOC_ORDER): Define.
29156 (HONOR_REG_ALLOC_ORDER): Likewise.
29157
29158 2019-03-18 Richard Biener <rguenther@suse.de>
29159
29160 PR target/87561
29161 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
29162 loads and stores a bit more.
29163
29164 2019-03-18 Richard Biener <rguenther@suse.de>
29165
29166 PR target/87561
29167 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
29168 load pessimization to stores as well.
29169
29170 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
29171
29172 PR middle-end/86979
29173 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
29174 successor, use NULL as its av set.
29175
29176 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29177
29178 PR rtl-optimization/89721
29179 * lra-constraints (invariant_p): Return false if side_effects_p holds.
29180
29181 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
29182
29183 PR target/87532
29184 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29185 When handling vec_extract, use modular arithmetic to allow
29186 constant selectors greater than vector length.
29187 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
29188 V1TImode vectors to have constant selector values greater than 0.
29189 Use modular arithmetic to compute vector index.
29190 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
29191 index for in-memory vectors. Correct code generation for
29192 in-register vectors.
29193 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
29194 compute index.
29195
29196 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
29197
29198 PR c++/88534
29199 PR c++/88537
29200 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
29201 VAR_DECL args.
29202
29203 2019-03-15 Jakub Jelinek <jakub@redhat.com>
29204
29205 PR c++/89709
29206 * tree.c (inchash::add_expr): Strip any location wrappers.
29207 * fold-const.c (operand_equal_p): Move stripping of location wrapper
29208 after hash verification.
29209
29210 PR debug/89704
29211 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
29212 SIGN_EXTEND and ZERO_EXTEND.
29213
29214 2019-03-14 Jason Merrill <jason@redhat.com>
29215 Jakub Jelinek <jakub@redhat.com>
29216
29217 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
29218 than if is_empty (*slot).
29219 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
29220 existing elt and for elt removal.
29221 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
29222 of already removed elt.
29223
29224 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
29225
29226 PR target/89650
29227 * config/i386/i386.c (remove_partial_avx_dependency): Handle
29228 REG_EH_REGION note.
29229
29230 2019-03-14 Martin Liska <mliska@suse.cz>
29231
29232 PR other/89712
29233 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
29234
29235 2019-03-14 Richard Biener <rguenther@suse.de>
29236
29237 PR target/89711
29238 * config/i386/i386.c (make_resolver_func): Properly set
29239 DECL_CONTEXT on the RESULT_DECL.
29240 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
29241
29242 2019-03-14 Richard Biener <rguenther@suse.de>
29243
29244 * gimple-pretty-print.c: Include cfgloop.h.
29245 (dump_gimple_phi): Adjust.
29246 (dump_gimple_bb_header): Dump loop header for GIMPLE.
29247 (pp_cfg_jump): Adjust.
29248 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
29249 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
29250 (lower_phi_internal_fn): Remove.
29251 (verify_gimple_call): Remove IFN_PHI special-casing.
29252 (dump_function_to_file): Dump IL state.
29253 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
29254 done to deal with PHI nodes being present in non-SSA state.
29255
29256 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29257
29258 PR ipa/89684
29259 * multiple_target.c (create_dispatcher_calls): Change
29260 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
29261 In the node->iterate_referring loop, push *ref rather than ref, call
29262 ref->remove_reference () and always pass 0 to iterate_referring.
29263
29264 PR rtl-optimization/89679
29265 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
29266 would contain a paradoxical SUBREG.
29267
29268 2019-03-14 Richard Biener <rguenther@suse.de>
29269
29270 PR tree-optimization/89710
29271 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
29272 safe_dyn_cast.
29273
29274 2019-03-14 Martin Liska <mliska@suse.cz>
29275
29276 * coverage.c (coverage_begin_function): Stream also
29277 end_column.
29278 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
29279 documentation about function declaration location.
29280 * gcov-dump.c (tag_function): Print whole range
29281 of function declaration.
29282 * gcov.c (struct function_info): Add end_column field.
29283 (function_info::function_info): Initialize it.
29284 (output_json_intermediate_file): Output {start,end}_column
29285 fields.
29286 (read_graph_file): Read end_column.
29287
29288 2019-03-14 Richard Biener <rguenther@suse.de>
29289
29290 PR middle-end/89698
29291 * fold-const.c (operand_equal_p): For INDIRECT_REF check
29292 that the access types are similar.
29293
29294 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29295
29296 PR tree-optimization/89703
29297 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
29298 aren't compatible also with builtin_decl_explicit. Check pure
29299 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
29300 and BUILT_IN_STPNCPY{,_CHK}.
29301
29302 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
29303
29304 PR target/89523
29305 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
29306 addr32 prefix to VSIB address for X32.
29307 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
29308 "%M2" to opcode.
29309 (*avx512pf_gatherpf<mode>df_mask): Likewise.
29310 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
29311 (*avx512pf_scatterpf<mode>df_mask): Likewise.
29312 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
29313 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
29314 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
29315 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
29316 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
29317 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
29318 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
29319 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
29320 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
29321 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
29322 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
29323 (*avx512f_scatterdi<mode>): Likewise.
29324
29325 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
29326
29327 PR target/85860
29328 * lra-constraints.c (inherit_in_ebb): Update
29329 potential_reload_hard_regs along with live_hard_regs.
29330
29331 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29332
29333 PR debug/89498
29334 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
29335 DWARF_OFFSET_SIZE.
29336 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
29337
29338 2019-03-13 Martin Sebor <msebor@redhat.com>
29339
29340 PR tree-optimization/89662
29341 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
29342 has a size.
29343
29344 2019-03-13 Richard Biener <rguenther@suse.de>
29345
29346 PR middle-end/89677
29347 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
29348 throw FP expressions at tree-affine.
29349
29350 2019-03-14 Richard Biener <rguenther@suse.de>
29351
29352 * tree-pretty-print.c (dump_generic_node): For -gimple properly
29353 dump negative integer constants using _Literal (type) -num.
29354
29355 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29356
29357 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
29358 nonlocal_value member.
29359
29360 PR middle-end/88588
29361 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
29362 (ipa_simd_modify_function_body): Handle PHIs.
29363
29364 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29365
29366 * config/s390/s390.c (s390_option_override_internal): Use more
29367 aggressive inlining parameters.
29368
29369 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29370
29371 * config/s390/3906.md: New file.
29372 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29373 (LONGRUNNING_THRESHOLD): Remove.
29374 (MAX_SCHED_MIX_SCORE): Decrease.
29375 (MAX_SCHED_MIX_DISTANCE): Decrease.
29376 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
29377 (struct s390_sched_state): New struct to hold scheduling state.
29378 (S390_SCHED_STATE_NORMAL): Remove.
29379 (S390_SCHED_STATE_CRACKED): Remove.
29380 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
29381 (s390_get_sched_attrmask): Use new attribute.
29382 (s390_get_unit_mask): Use new units.
29383 (s390_is_fpd): New function.
29384 (s390_is_fxd): New function.
29385 (s390_is_longrunning): New function.
29386 (s390_sched_score): Use new functions.
29387 (s390_sched_reorder): Likewise.
29388 (s390_sched_variable_issue): Rework and use new functions.
29389 (s390_sched_init): Use new functions.
29390 * config/s390/s390.h (s390_tune_attr): Add z14.
29391 * config/s390/s390.md: Add z14.
29392
29393 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29394
29395 * config/s390/2964.md: Update pipeline description.
29396 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29397 (LONGRUNNING_THRESHOLD): Remove.
29398 (LATENCY_FACTOR): Remove.
29399 (s390_get_unit_mask): Add unit.
29400 (s390_sched_score): Use fxd/fpd.
29401 (s390_sched_variable_issue): Use fxd/fpd.
29402
29403 2019-03-12 Martin Liska <mliska@suse.cz>
29404
29405 * config/i386/i386.c: Reword an error message.
29406
29407 2019-03-12 Martin Jambor <mjambor@suse.cz>
29408
29409 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
29410 terminate with newline.
29411
29412 2019-03-12 Jakub Jelinek <jakub@redhat.com>
29413
29414 PR target/52726
29415 * config/s390/s390.md (tabort): Use %wd instead of
29416 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
29417 letters and periods.
29418 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
29419 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
29420 's with %< and %>.
29421
29422 PR middle-end/89663
29423 * builtins.c (expand_builtin_int_roundingfn,
29424 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
29425 gcc_unreachable if validate_arglist fails.
29426
29427 2019-03-12 Richard Biener <rguenther@suse.de>
29428
29429 PR tree-optimization/89664
29430 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
29431 free the occurance tree after the early out.
29432
29433 2019-03-11 Jakub Jelinek <jakub@redhat.com>
29434
29435 PR middle-end/89655
29436 PR bootstrap/89656
29437 * vr-values.c (vr_values::update_value_range): If
29438 old_vr->varying_p (), don't update it, make new_vr also VARYING
29439 and return false.
29440
29441 2019-03-11 Martin Liska <mliska@suse.cz>
29442
29443 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29444 Fix double string quoting.
29445
29446 2019-03-11 Martin Liska <mliska@suse.cz>
29447
29448 * collect-utils.c (collect_wait): Wrap apostrophes
29449 in gcc internal format with %'.
29450 * collect2.c (main): Likewise.
29451 (scan_prog_file): Likewise.
29452 (scan_libraries): Likewise.
29453 * config/i386/i386.c (ix86_expand_call): Likewise.
29454 (ix86_handle_interrupt_attribute): Likewise.
29455 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
29456 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
29457 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
29458 * lto-wrapper.c (find_crtoffloadtable): Likewise.
29459 * symtab.c (symtab_node::verify_base): Likewise.
29460 * tree-cfg.c (verify_gimple_label): Likewise.
29461 * tree.c (verify_type_variant): Likewise.
29462
29463 2019-03-11 Martin Liska <mliska@suse.cz>
29464
29465 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
29466 in a string format message and fix GNU coding style.
29467 (expand_builtin_set_thread_pointer): Likewise.
29468 * common/config/aarch64/aarch64-common.c
29469 (aarch64_rewrite_selected_cpu): Likewise.
29470 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
29471 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
29472 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
29473 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
29474 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
29475 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
29476 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
29477 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
29478 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
29479 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
29480 Likewise.
29481 * common/config/riscv/riscv-common.c
29482 (riscv_subset_list::parsing_subset_version): Likewise.
29483 (riscv_subset_list::parse_std_ext): Likewise.
29484 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29485 (riscv_subset_list::parse): Likewise.
29486 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
29487 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
29488 (aarch64_override_options_internal): Likewise.
29489 (aarch64_validate_mcpu): Likewise.
29490 (aarch64_validate_march): Likewise.
29491 (aarch64_validate_mtune): Likewise.
29492 (aarch64_override_options): Likewise.
29493 * config/alpha/alpha.c (alpha_option_override): Likewise.
29494 * config/arc/arc.c (arc_init): Likewise.
29495 (parse_mrgf_banked_regs_option): Likewise.
29496 (arc_override_options): Likewise.
29497 (arc_expand_builtin_aligned): Likewise.
29498 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
29499 (arm_expand_builtin): Likewise.
29500 * config/arm/arm.c (arm_option_check_internal): Likewise.
29501 (arm_configure_build_target): Likewise.
29502 (arm_option_override): Likewise.
29503 (arm_options_perform_arch_sanity_checks): Likewise.
29504 (arm_handle_cmse_nonsecure_entry): Likewise.
29505 (arm_handle_cmse_nonsecure_call): Likewise.
29506 (arm_tls_referenced_p): Likewise.
29507 (thumb1_expand_prologue): Likewise.
29508 * config/avr/avr.c (avr_option_override): Likewise.
29509 * config/bfin/bfin.c (bfin_option_override): Likewise.
29510 * config/c6x/c6x.c (c6x_option_override): Likewise.
29511 * config/cr16/cr16.c (cr16_override_options): Likewise.
29512 * config/cris/cris.c (cris_option_override): Likewise.
29513 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
29514 * config/darwin-c.c (macosx_version_as_macro): Likewise.
29515 * config/darwin.c (darwin_override_options): Likewise.
29516 * config/frv/frv.c (frv_expand_builtin): Likewise.
29517 * config/h8300/h8300.c (h8300_option_override): Likewise.
29518 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
29519 (ix86_option_override_internal): Likewise.
29520 (warn_once_call_ms2sysv_xlogues): Likewise.
29521 (ix86_expand_prologue): Likewise.
29522 (split_stack_prologue_scratch_regno): Likewise.
29523 (ix86_warn_parameter_passing_abi): Likewise.
29524 * config/ia64/ia64.c (fix_range): Likewise.
29525 * config/m68k/m68k.c (m68k_option_override): Likewise.
29526 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
29527 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
29528 (mips_set_compression_mode): Likewise.
29529 * config/mmix/mmix.c (mmix_option_override): Likewise.
29530 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
29531 * config/msp430/msp430.c (msp430_option_override): Likewise.
29532 * config/nds32/nds32.c (nds32_option_override): Likewise.
29533 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
29534 (nios2_option_override): Likewise.
29535 (nios2_expand_custom_builtin): Likewise.
29536 * config/nvptx/mkoffload.c (main): Likewise.
29537 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
29538 * config/pa/pa.c (fix_range): Likewise.
29539 (pa_option_override): Likewise.
29540 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
29541 (riscv_option_override): Likewise.
29542 * config/rl78/rl78.c (rl78_option_override): Likewise.
29543 * config/rs6000/aix61.h: Likewise.
29544 * config/rs6000/aix71.h: Likewise.
29545 * config/rs6000/aix72.h: Likewise.
29546 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
29547 * config/rs6000/freebsd64.h: Likewise.
29548 * config/rs6000/linux64.h: Likewise.
29549 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
29550 (rs6000_expand_zeroop_builtin): Likewise.
29551 (rs6000_expand_mtfsb_builtin): Likewise.
29552 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
29553 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
29554 (rs6000_invalid_builtin): Likewise.
29555 (rs6000_expand_split_stack_prologue): Likewise.
29556 * config/rs6000/rtems.h: Likewise.
29557 * config/rx/rx.c (valid_psw_flag): Likewise.
29558 (rx_expand_builtin): Likewise.
29559 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
29560 * config/s390/s390.c (s390_expand_builtin): Likewise.
29561 (s390_function_profiler): Likewise.
29562 (s390_option_override_internal): Likewise.
29563 (s390_option_override): Likewise.
29564 * config/sh/sh.c (sh_option_override): Likewise.
29565 (sh_builtin_saveregs): Likewise.
29566 (sh_fix_range): Likewise.
29567 * config/sh/vxworks.h: Likewise.
29568 * config/sparc/sparc.c (sparc_option_override): Likewise.
29569 * config/spu/spu.c (spu_option_override): Likewise.
29570 (fix_range): Likewise.
29571 * config/visium/visium.c (visium_option_override): Likewise.
29572 (visium_handle_interrupt_attr): Likewise.
29573 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
29574 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
29575 (dbg_cnt_process_opt): Likewise.
29576 * dwarf2out.c (output_dwarf_version): Likewise.
29577 * except.c (expand_eh_return): Likewise.
29578 * gcc.c (defined): Likewise.
29579 (driver_handle_option): Likewise.
29580 (process_command): Likewise.
29581 (compare_files): Likewise.
29582 (driver::prepare_infiles): Likewise.
29583 (driver::do_spec_on_infiles): Likewise.
29584 (driver::maybe_run_linker): Likewise.
29585 * omp-offload.c (oacc_parse_default_dims): Likewise.
29586 * opts-global.c (handle_common_deferred_options): Likewise.
29587 * opts.c (parse_sanitizer_options): Likewise.
29588 (common_handle_option): Likewise.
29589 (enable_warning_as_error): Likewise.
29590 * passes.c (enable_disable_pass): Likewise.
29591 * plugin.c (parse_plugin_arg_opt): Likewise.
29592 (default_plugin_dir_name): Likewise.
29593 * targhooks.c (default_expand_builtin_saveregs): Likewise.
29594 (default_pch_valid_p): Likewise.
29595 * toplev.c (init_asm_output): Likewise.
29596 (process_options): Likewise.
29597 (toplev::run_self_tests): Likewise.
29598 * tree-cfg.c (verify_gimple_call): Likewise.
29599 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
29600 (tree_inlinable_function_p): Likewise.
29601 * var-tracking.c (vt_find_locations): Likewise.
29602
29603 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
29604
29605 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
29606 only on the else branch.
29607
29608 2019-03-11 Martin Liska <mliska@suse.cz>
29609
29610 * gcov.c (output_intermediate_json_line): Print function
29611 name of each line.
29612 (output_json_intermediate_file): Add new argument.
29613 * doc/gcov.texi: Document the change.
29614
29615 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
29616
29617 PR rtl-optimization/89588
29618 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29619 explicit unrolling factor more robust.
29620
29621 2019-03-11 Richard Biener <rguenther@suse.de>
29622
29623 PR tree-optimization/89649
29624 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
29625 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
29626 on the prolog and epilog loops.
29627 (vect_loop_versioning): Return copy of loop.
29628 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
29629 on the non-vectorized version of the loop.
29630
29631 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
29632
29633 PR target/68924
29634 * config/i386/sse.md (*vec_extractv2di_0_sse):
29635 Add (=r,x) alternative and corresponding splitter.
29636
29637 2019-03-10 Martin Jambor <mjambor@suse.cz>
29638
29639 PR tree-optimization/85762
29640 PR tree-optimization/87008
29641 PR tree-optimization/85459
29642 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
29643 it points to if there is a type changing MEM_REF. Adjust all callers.
29644 (build_accesses_from_assign): Disable total scalarization if
29645 contains_vce_or_bfcref_p returns true through the new parameter, for
29646 both rhs and lhs.
29647
29648 2019-03-09 Jakub Jelinek <jakub@redhat.com>
29649
29650 PR c/88568
29651 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
29652 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
29653
29654 PR target/79645
29655 * common.opt (fdiagnostics-show-labels,
29656 fdiagnostics-show-line-numbers, fdiagnostics-format=,
29657 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
29658 gas-locview-support, ginline-points, ginternal-reset-location-views):
29659 Terminate description text with a dot.
29660 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
29661 * config/mcore/mcore.opt (m210, m340): Likewise.
29662 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
29663 mnops=): Start description text with a capital letter.
29664 * config/arc/arc.opt (msize-level=): Likewise.
29665 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
29666 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
29667 mnewlib): Likewise.
29668 * config/ft32/ft32.opt (msim): Likewise.
29669 (mft32b, mcompress): Likewise. Terminate description text with a dot.
29670 (mnodiv, mnopm): Terminate description text with a dot.
29671 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
29672 a colon.
29673 * config/i386/i386.opt (prefer_vector_width, instrument_return):
29674 Likewise.
29675 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
29676 text.
29677
29678 PR rtl-optimization/89634
29679 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
29680 are modified in BB_END (e->src) instruction.
29681
29682 2019-03-08 David Malcolm <dmalcolm@redhat.com>
29683
29684 PR target/79926
29685 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
29686 messages more amenable to translation, and improve wording.
29687
29688 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
29689
29690 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
29691 ud- and du-chains between phases.
29692
29693 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
29694
29695 PR debug/89631
29696 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
29697 instead of POLY_INT_CST.
29698
29699 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
29700
29701 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
29702 requirement.
29703
29704 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
29705
29706 PR target/68924
29707 PR target/78782
29708 PR target/87558
29709 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
29710 (_mm_storeu_si64): Ditto.
29711
29712 2019-03-08 Martin Liska <mliska@suse.cz>
29713
29714 PR target/86952
29715 * config/i386/i386.c (ix86_option_override_internal): Disable
29716 jump tables when retpolines are used.
29717
29718 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
29719
29720 PR go/63560
29721 * ipa-split.c (execute_split_functions): Do not split
29722 'noinline' or 'section' function.
29723
29724 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29725
29726 PR target/79846
29727 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
29728 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
29729 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
29730
29731 PR ipa/80000
29732 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29733 from diagnostics. Formatting fixes.
29734
29735 PR target/85665
29736 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
29737 warn_odr diagnostics.
29738
29739 PR other/80058
29740 * lra-constraints.c (process_alt_operands): Avoid one space before
29741 " at the end of line and another after " on another line in a string
29742 literal.
29743 * attribs.c (handle_dll_attribute): Likewise.
29744 * config/avr/avr-devices.c (avr_texinfo): Likewise.
29745
29746 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
29747 warning_at or inform messages in G_() if there is no ?:.
29748
29749 PR tree-optimization/89550
29750 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
29751 returned true. Formatting fixes.
29752 (expand_builtin_strnlen): Formatting fixes.
29753 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
29754 if warning_at returned true.
29755 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
29756
29757 2019-03-08 Richard Biener <rguenther@suse.de>
29758
29759 PR middle-end/89578
29760 * cfgloop.h (struct loop): Add owned_clique field.
29761 * cfgloopmanip.c (copy_loop_info): Copy it.
29762 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
29763 cliques.
29764 * tree-inline.c (copy_loops): Remap owned_clique.
29765 * lto-streamer-in.c (input_cfg): Stream owned_clique.
29766 * lto-streamer-out.c (output_cfg): Likewise.
29767
29768 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29769
29770 PR target/80190
29771 * config/darwin.c: Include intl.h.
29772 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
29773 composing the message out of two separate parts.
29774
29775 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29776
29777 PR target/80003
29778 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
29779 doesn't start with a capital letter and doesn't end with a dot.
29780 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
29781 with a capital letter.
29782 (ix86_mangle_function_version_assembler_name): Likewise.
29783 (ix86_generate_version_dispatcher_body): Likewise.
29784 (fold_builtin_cpu): Likewise.
29785 (get_builtin_code_for_version): Likewise. Remove extraneous space.
29786 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
29787 translators, wrap full type name in %qs.
29788
29789 PR translation/79999
29790 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
29791 depend clause with source (or sink) modifier.
29792 * omp-expand.c (expand_omp_ordered_sink): Likewise.
29793
29794 PR target/89602
29795 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
29796 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
29797 (avx512f_load<mode>_mask): New define_expand.
29798 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
29799 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
29800 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
29801 __builtin_ia32_movess_mask): New builtins.
29802 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
29803 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
29804 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
29805 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
29806
29807 2019-03-07 Martin Jambor <mjambor@suse.cz>
29808
29809 PR lto/87525
29810 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
29811 for extern inline functions.
29812
29813 2019-03-07 Martin Jambor <mjambor@suse.cz>
29814
29815 PR ipa/88235
29816 * cgraph.h (cgraph_node): New inline method former_thunk_p.
29817 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
29818 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
29819 have multiple callees. At the end check if declarations match as
29820 opposed to cgraph_nodes.
29821
29822 2019-03-07 Martin Liska <mliska@suse.cz>
29823
29824 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
29825 which is equivalent to searching for this in clones chain.
29826 * symtab.c (symtab_node::verify_base): Similarly compare ASM
29827 names with a neighbour and special case first node in a chain.
29828
29829 2019-01-25 Jason Merrill <jason@redhat.com>
29830
29831 PR c++/80916 - spurious "static but not defined" warning.
29832 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
29833 for an internal symbol with DECL_EXTERNAL.
29834
29835 2019-04-07 Richard Biener <rguenther@suse.de>
29836
29837 PR middle-end/89618
29838 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
29839 * tree-inline.c (copy_loops): Simplify.
29840
29841 2019-03-07 Martin Liska <mliska@suse.cz>
29842
29843 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
29844
29845 2019-03-07 Richard Biener <rguenther@suse.de>
29846
29847 PR tree-optimization/89595
29848 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
29849 stmt iterator as reference, take boolean output parameter to
29850 indicate whether the stmt was removed and thus the iterator
29851 already advanced.
29852 (dom_opt_dom_walker::before_dom_children): Re-iterate over
29853 stmts created by folding.
29854
29855 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29856
29857 PR c++/89585
29858 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
29859 at toplevel.
29860
29861 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
29862
29863 PR rtl-optimization/88845
29864 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
29865 LRA.
29866 * lra.c (remove_scratches_1): New function.
29867 (remove_scratches): Use it.
29868 (lra_emit_move): Likewise.
29869
29870 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
29871
29872 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
29873 unaligned_access variable.
29874 * config/arc/arc.c (arc_override_options): Set unaligned access
29875 default on for HS CPUs.
29876 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
29877
29878 2019-03-06 Martin Liska <mliska@suse.cz>
29879
29880 PR gcov-profile/89577
29881 * doc/gcov.texi: Prefer to use --coverage.
29882 * doc/sourcebuild.texi: Likewise.
29883
29884 2019-03-02 Jason Merrill <jason@redhat.com>
29885
29886 PR c++/86485 - -Wmaybe-unused with empty class ?:
29887 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
29888
29889 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29890
29891 PR target/89587
29892 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
29893 if_multiarch.
29894
29895 PR middle-end/89590
29896 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
29897 exactly one argument.
29898
29899 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29900 Richard Sandiford <richard.sandiford@arm.com>
29901
29902 PR tree-optimization/89570
29903 * match.pd (vec_cond into cond_op simplification): Don't use
29904 get_conditional_internal_fn, use as_internal_fn (cond_op).
29905
29906 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
29907
29908 PR target/89222
29909 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
29910 to decide when to split off a non-zero offset from a symbol.
29911 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
29912 in function symbols.
29913
29914 2019-03-05 Richard Biener <rguenther@suse.de>
29915
29916 PR tree-optimization/89594
29917 * tree-if-conv.c (pass_if_conversion::execute): Handle
29918 case where .LOOP_VECTORIZED_FUNCTION was removed.
29919
29920 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29921
29922 PR bootstrap/89560
29923 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
29924 instead alloca it only when needed with the needed size.
29925
29926 PR tree-optimization/89570
29927 * match.pd (vec_cond into cond_op simplification): Guard with
29928 vectorized_internal_fn_supported_p test and #if GIMPLE.
29929
29930 PR tree-optimization/89566
29931 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
29932 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
29933 Punt if get_user_idx_format succeeds, but idx_format argument is
29934 not provided or doesn't have pointer type, or if idx_args is above
29935 number of provided arguments.
29936
29937 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
29938
29939 PR tree-optimization/89437
29940 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
29941
29942 2019-03-04 Richard Biener <rguenther@suse.de>
29943
29944 PR middle-end/89572
29945 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
29946 safe_dyn_cast.
29947
29948 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
29949
29950 PR tree-optimization/89487
29951 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
29952 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
29953 (distribute_loop): Don't do runtime alias check if there is non-
29954 addressable data reference.
29955 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
29956 is a register variable.
29957
29958 2019-03-02 Jakub Jelinek <jakub@redhat.com>
29959
29960 PR target/89506
29961 * config/arm/arm.md (cmpsi2_addneg): Use
29962 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
29963 If operands[2] is 0 or INT_MIN, force use of subs.
29964 (*compare_scc splitter): Use gen_int_mode.
29965 (*negscc): Likewise.
29966 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
29967
29968 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
29969 Monk Chiang <sh.chiang04@gmail.com>
29970
29971 * common/config/riscv/riscv-common.c: Include sstream.
29972 (riscv_subset_list::to_string): New.
29973 (riscv_arch_str): Likewise.
29974 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
29975 * config.in: Regen.
29976 * config/riscv/riscv-protos.h (riscv_arch_str): New.
29977 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
29978 (riscv_emit_attribute): New.
29979 (riscv_file_start): Emit attribute if needed.
29980 (riscv_option_override): Init riscv_emit_attribute_p.
29981 * config/riscv/riscv.opt (mriscv-attribute): New option.
29982 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
29983 * configure: Regen.
29984 * doc/install.texi: Document --with-riscv-attribute.
29985 * doc/invoke.texi: Document -mriscv-attribute.
29986
29987 * common/config/riscv/riscv-common.c:
29988 Include config/riscv/riscv-protos.h.
29989 (INCLUDE_STRING): Defined.
29990 (RISCV_DONT_CARE_VERSION): Defined.
29991 (riscv_subset_t): Declare.
29992 (riscv_subset_t::riscv_subset_t): New.
29993 (riscv_subset_list): Declare.
29994 (riscv_subset_list::riscv_subset_list): New.
29995 (riscv_subset_list::~riscv_subset_list): Likewise.
29996 (riscv_subset_list::parsing_subset_version): Likewise.
29997 (riscv_subset_list::parse_std_ext): Likewise.
29998 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29999 (riscv_subset_list::add): Likewise.
30000 (riscv_subset_list::lookup): Likewise.
30001 (riscv_subset_list::xlen): Likewise.
30002 (riscv_subset_list::parse): Likewise.
30003 (riscv_supported_std_ext): Likewise.
30004 (current_subset_list): Likewise.
30005 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30006 parse.
30007
30008 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30009
30010 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30011 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30012 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30013
30014 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30015
30016 PR rtl-optimization/85899
30017 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30018 fallthru edges leading to the exit block.
30019
30020 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30021
30022 PR target/89517
30023 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30024 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30025
30026 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30027
30028 PR tree-optimization/89535
30029 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30030 for each operand. Calculate the fallback choice for mask operands
30031 and pass it to vect_get_vec_def_for_operand.
30032
30033 2019-03-01 Richard Biener <rguenther@suse.de>
30034
30035 PR middle-end/89541
30036 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30037 get virtual operands.
30038 (get_expr_operands): Handle CONST_DECL like other decls.
30039
30040 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30041
30042 PR middle-end/89503
30043 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30044 on DECL_P and EXPR_P.
30045
30046 2019-03-01 Richard Biener <rguenther@suse.de>
30047
30048 PR middle-end/89497
30049 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30050 argument, defaulted to zero.
30051 * passes.c (execute_function_todo): Pass down SSA update flags
30052 to cleanup_tree_cfg.
30053 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30054 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30055 form if requested.
30056 (cleanup_tree_cfg): Get and pass down SSA update flags.
30057
30058 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30059
30060 PR bootstrap/89539
30061 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30062 early_lto_debug argument.
30063
30064 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30065
30066 PR tree-optimization/89536
30067 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30068 only whether bit #0 of the value is 0 instead of the entire value.
30069
30070 2019-02-28 Marek Polacek <polacek@redhat.com>
30071
30072 PR c++/87068 - missing diagnostic with fallthrough statement.
30073 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30074 at the end of a seq, save its location to walk_stmt_info.
30075 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30076 a switch.
30077
30078 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30079
30080 PR lto/88585
30081 * tree.c (find_atomic_core_type): Move ahead in file.
30082 (check_base_type): Correctly compare alignments of atomic types.
30083
30084 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30085
30086 PR target/89455
30087 * config/i386/i386.c (get_builtin_code_for_version): Identify
30088 Westmere from PCLMUL, instead of AES.
30089
30090 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30091
30092 PR target/89434
30093 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30094 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30095 -UINTVAL (...).
30096
30097 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30098
30099 PR target/88530
30100 * config/aarch64/aarch64-option-extensions.def: Document it.
30101 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30102 if empty hwcaps.
30103
30104 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30105
30106 PR c/89520
30107 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30108 builtins if they don't have a single scalar floating point argument.
30109 Formatting fixes.
30110
30111 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30112
30113 PR rtl-optimization/89490
30114 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30115 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30116 block section is not mergeable.
30117
30118 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30119
30120 PR target/70341
30121 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
30122 old define_insn to ...
30123 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
30124 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30125 Rename old define_insn to ...
30126 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
30127 (thumb2_casesi_internal_pic): New define_expand. Rename old
30128 define_insn to ...
30129 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
30130 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30131 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30132
30133 2019-02-27 Richard Biener <rguenther@suse.de>
30134
30135 PR debug/88878
30136 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
30137
30138 2019-02-27 Richard Biener <rguenther@suse.de>
30139
30140 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
30141 building.
30142
30143 2019-02-27 Richard Biener <rguenther@suse.de>
30144
30145 PR debug/88878
30146 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
30147 parameter, prefix section name with .gnu.debuglto_ if true.
30148 (dwarf2out_finish): Pass false to output_comdat_type_unit.
30149 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
30150
30151 2019-02-27 Richard Biener <rguenther@suse.de>
30152
30153 PR debug/89514
30154 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
30155 rather than on use_debug_types, doing what output_die does.
30156 (value_format): Likewise.
30157
30158 2019-02-27 Martin Jambor <mjambor@suse.cz>
30159 Martin Sebor <msebor@redhat.com>
30160
30161 * doc/invoke.texi (Warning Options): Reword description of
30162 -Wno-absolute-value.
30163
30164 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30165
30166 PR tree-optimization/89280
30167 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
30168 builtin_setjmp_setup_bb): New functions.
30169 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
30170 When visiting __builtin_setjmp_setup block, queue in special
30171 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
30172 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
30173 from visited after the loop if they don't have any visited successor
30174 blocks.
30175
30176 2018-02-26 Steve Ellcey <sellcey@marvell.com>
30177
30178 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
30179 New function.
30180 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
30181
30182 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30183
30184 PR c++/89507
30185 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
30186 with types other than sizetype/ssizetype.
30187
30188 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30189
30190 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
30191 (enum sparc_processor_type): ...this.
30192 (enum sparc_code_model_type): New enumeration type.
30193 (enum sparc_memory_model_type): Tweak comments.
30194 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
30195 (mtune): Likewise.
30196 (mcmodel): Use sparc_code_model enumeration and variable.
30197 (sparc_code_model): New enumeration.
30198 (mdebug): Add Undocumented marker.
30199 * config/sparc/sparc.h (enum cmodel): Delete.
30200 (sparc_cmodel): Likewise.
30201 (TARGET_CM_MEDLOW): Adjust to above renaming.
30202 (TARGET_CM_MEDMID): Likewise.
30203 (TARGET_CM_MEDANY): Likewise.
30204 (TARGET_CM_EMBMEDANY): Likewise.
30205 * config/sparc/sparc.c (sparc_cmodel): Delete.
30206 (sparc_option_override): Remove string/value mapping support for the
30207 code model. Move code and memory model support to after the handling
30208 of target flags. Do private machine setup last.
30209 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
30210 (sparc_legitimize_reload_address): Likewise.
30211 (sparc_output_mi_thunk): Likewise.
30212 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
30213
30214 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30215
30216 PR tree-optimization/89500
30217 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
30218 (handle_builtin_strlen): Remove noncst_bound variable. Always
30219 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
30220 cst if the first cst bytes starting at x are known to be non-zero,
30221 even if the string is not zero terminated. Don't try to modify
30222 *si for strnlen. Update strlen_to_stridx only for strlen or if
30223 we can prove strnlen returns the same value as strlen would.
30224
30225 2019-02-26 Martin Liska <mliska@suse.cz>
30226
30227 * alloc-pool.h (struct pool_usage): Remove extra
30228 print_dash_line.
30229 * bitmap.h (struct bitmap_usage): Likewise.
30230 * ggc-common.c (struct ggc_usage): Likewise.
30231 * mem-stats.h (struct mem_usage): Likewise.
30232 (mem_alloc_description::dump): Print dash lines
30233 here and repeat header at the end of a table report.
30234 It's then more readable.
30235 * tree-phinodes.c (phinodes_print_statistics): Make
30236 horizontal alignment.
30237 * tree-ssanames.c (ssanames_print_statistics): Likewise.
30238 * vec.c (struct vec_usage): Remove extra print_dash_line.
30239 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
30240
30241 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
30242
30243 * doc/extend.texi (__builtin_object_size):
30244 Use @pxref instead of @xref inside parenthesis.
30245 (__builtin_has_attribute): Add missing comma after @xref.
30246 (__builtin_object_size): Ditto.
30247 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
30248
30249 2019-02-26 Jeff Law <law@redhat.com>
30250
30251 PR rtl-optimization/87761
30252 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
30253 detect obviously dead insns and delete them.
30254
30255 2019-02-26 Richard Biener <rguenther@suse.de>
30256
30257 PR tree-optimization/89505
30258 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
30259 to handle restrict pointed-to vars with multiple subvars
30260 correctly.
30261
30262 2019-02-26 Richard Biener <rguenther@suse.de>
30263
30264 PR tree-optimization/89489
30265 * tree-parloops.c (create_loop_fn): Copy over last_clique.
30266
30267 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30268
30269 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
30270 and move around comment.
30271 <BIT_AND_EXPR>: Likewise.
30272 <BIT_NOT_EXPR>: Add specific handling for boolean types.
30273
30274 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30275
30276 PR target/89474
30277 * config/i386/i386.c (remove_partial_avx_dependency): Call
30278 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
30279 after changing possibly many instructions to use that pseudo. Fix up
30280 insertion of v4sf_const0 setter at the start of bb.
30281
30282 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30283
30284 PR c/80409
30285 * doc/extend.texi (Variadic Pointer Args): New section.
30286
30287 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30288 Martin Sebor <msebor@gmail.com>
30289
30290 * common.opt (Wattribute-alias): Likewise.
30291 * doc/invoke.texi (Option Summary): List general form of
30292 -Wattribute-alias=. List positive form of -Wmissing-attributes.
30293 (-Wmissing-attributes): Invert entry, rewrite and correct default.
30294 Add cross-references.
30295 (-Wattribute-alias): Rewrite and correct default. Mention
30296 considered attributes (same as for -Wmissing-attributes).
30297
30298 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
30299
30300 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
30301 (_mm_cvtpd_ps): Likewise.
30302 (_mm_cvttpd_epi32): Likewise.
30303
30304 PR target/89338
30305 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
30306 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
30307
30308 PR target/89339
30309 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
30310
30311 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30312
30313 PR target/88530
30314 * common/config/aarch64/aarch64-common.c
30315 (struct aarch64_option_extension): Add is_synthetic.
30316 (all_extensions): Use it.
30317 (TARGET_OPTION_INIT_STRUCT): Define hook.
30318 (struct gcc_targetm_common): Moved to end.
30319 (all_extensions_by_on): New.
30320 (opt_ext_cmp, typedef opt_ext): New.
30321 (aarch64_option_init_struct): New.
30322 (aarch64_contains_opt): New.
30323 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
30324 * config/aarch64/aarch64-option-extensions.def
30325 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
30326 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
30327 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
30328 Set is_synthetic to false.
30329 (crypto): Set is_synthetic to true.
30330 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
30331 SYNTHETIC.
30332
30333 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30334
30335 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30336 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
30337 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30338 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
30339 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
30340 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
30341 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
30342 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
30343 Rename ...
30344 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
30345 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30346 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
30347 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
30348 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
30349 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
30350 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
30351 vfmlsl_laneq_high_f16): ... To this.
30352 * config/arm/neon.md: Update comments.
30353
30354 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30355
30356 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30357 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
30358 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30359 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
30360 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
30361 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
30362 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
30363 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
30364 Rename ...
30365 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
30366 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30367 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
30368 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
30369 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
30370 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
30371 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
30372 vfmlslq_laneq_high_f16): ... To this.
30373
30374 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
30375
30376 PR rtl-optimization/86096
30377 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
30378 comparing mw_order values.
30379
30380 2019-02-25 Jakub Jelinek <jakub@redhat.com>
30381
30382 PR target/89434
30383 * config/arm/arm.md (*subsi3_carryin_const): Use
30384 arm_neg_immediate_operand predicate instead of
30385 arm_not_immediate_operand, "L" constraint instead of "K" and
30386 print it using %n2 instead of %B2.
30387 (*subsi3_carryin_const0): New define_insn.
30388 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
30389 instead of arm_not_operand and "I" constraint instead of "K" and
30390 print it using %n3 instead of %B2. Instead of using match_dup 2 add
30391 another match_operand and in the condition check that it is negation
30392 of operands[2].
30393 (*subsi3_carryin_compare_const0): New define_ins.
30394 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
30395 *subsi3_carryin_const.
30396 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
30397 split into *subsi3_carryin_compare_const0 if the highpart is zero.
30398
30399 PR target/89438
30400 * config/arm.vfp.md (*negdf2_vfp): Use
30401 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
30402 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
30403
30404 2019-02-24 Jakub Jelinek <jakub@redhat.com>
30405
30406 PR rtl-optimization/89445
30407 * simplify-rtx.c (simplify_ternary_operation): Don't use
30408 simplify_merge_mask on operands that may trap.
30409 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
30410 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
30411 second operand is CONST_VECTOR, check if any element could be zero.
30412 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
30413 their operands can trap.
30414
30415 2019-02-23 Martin Sebor <msebor@redhat.com>
30416
30417 * gimple-ssa-sprintf.c (target_strtol): Rename...
30418 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
30419 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
30420 check for range error.
30421
30422 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
30423
30424 PR driver/69471
30425 * opts-common.c (prune_options): Also prune joined switches
30426 with Negative and RejectNegative.
30427 * config/i386/i386.opt (march=): Add Negative(march=).
30428 (mtune=): Add Negative(mtune=).
30429 * doc/options.texi: Document Negative used together with Joined
30430 and RejectNegative.
30431
30432 2019-02-22 Martin Sebor <msebor@redhat.com>
30433
30434 * doc/extend.texi (Other Builtins): Add
30435 __builtin_is_constant_evaluated.
30436
30437 2019-02-22 Richard Biener <rguenther@suse.de>
30438
30439 PR tree-optimization/87609
30440 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
30441
30442 2019-02-22 Jeff Law <law@redhat.com>
30443
30444 PR rtl-optimization/87761
30445 * config/mips/mips.md: Add new combiner pattern to recognize
30446 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
30447
30448 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
30449
30450 PR target/89324
30451 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
30452 destination register in peepholes generating patterns for ADDS/SUBS.
30453 (add<mode>3_compare0,
30454 *addsi3_compare0_uxtw, add<mode>3_compareC,
30455 add<mode>3_compareV_imm, add<mode>3_compareV,
30456 *adds_<optab><ALLX:mode>_<GPI:mode>,
30457 *subs_<optab><ALLX:mode>_<GPI:mode>,
30458 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
30459 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
30460 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
30461 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
30462 sub<mode>3_compare1): Allow stack pointer for source register.
30463 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
30464
30465 2019-02-22 Martin Sebor <msebor@redhat.com>
30466
30467 PR tree-optimization/88993
30468 PR tree-optimization/88853
30469 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
30470 New helper.
30471 (sprintf_dom_walker::call_info::is_string_func): New helper.
30472 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
30473 for formatted string functions.
30474 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
30475
30476 2019-02-22 Martin Sebor <msebor@redhat.com>
30477
30478 PR c/89425
30479 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
30480 unreachable subexpressions.
30481
30482 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
30483 Hongtao Liu <hongtao.liu@intel.com>
30484 Sunil K Pandey <sunil.k.pandey@intel.com>
30485
30486 PR target/87007
30487 * config/i386/i386-passes.def: Add
30488 pass_remove_partial_avx_dependency.
30489 * config/i386/i386-protos.h
30490 (make_pass_remove_partial_avx_dependency): New.
30491 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
30492 New function.
30493 (pass_data_remove_partial_avx_dependency): New.
30494 (pass_remove_partial_avx_dependency): Likewise.
30495 (make_pass_remove_partial_avx_dependency): Likewise.
30496 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
30497 (*extendsfdf2): Add avx_partial_xmm_update.
30498 (truncdfsf2): Likewise.
30499 (*float<SWI48:mode><MODEF:mode>2): Likewise.
30500 (SF/DF conversion splitters): Disabled for TARGET_AVX.
30501
30502 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
30503
30504 PR middle-end/85598
30505 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
30506 analysis for pass.
30507
30508 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
30509
30510 PR target/89444
30511 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
30512 (PTA_SKYLAKE): Add PTA_AES.
30513 (PTA_GOLDMONT): Likewise.
30514
30515 2019-02-22 Sudakshina Das <sudi.das@arm.com>
30516
30517 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
30518 instruction if enabled.
30519 (aarch64_override_options): Remove reference to return address key.
30520
30521 2019-02-22 Richard Biener <rguenther@suse.de>
30522
30523 PR tree-optimization/89440
30524 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
30525 not necessary assert.
30526
30527 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
30528
30529 PR fortran/72741
30530 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
30531 (oacc_replace_fn_attrib_attr): ... this new function.
30532 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
30533 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
30534
30535 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30536
30537 * config/arm/arm-cpus.in (ares): Rename to...
30538 (neoverse-n1): ... This. Add ares as alias.
30539 * config/arm/arm-tables.opt: Regenerate.
30540 * config/arm/arm-tune.md: Likewise.
30541 * doc/invoke.txt (ARM Options): Document neoverse-n1.
30542
30543 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30544
30545 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
30546 * config/aarch64/aarch64-tune.md: Regenerate.
30547 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
30548
30549 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30550
30551 * config/aarch64/aarch64.c (ares_tunings): Rename to...
30552 (neoversen1_tunings): ... This.
30553 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
30554 (neoverse-n1): New CPU.
30555 * config/aarch64/aarch64-tune.md: Regenerate.
30556 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
30557
30558 2019-02-22 Richard Biener <rguenther@suse.de>
30559
30560 PR middle-end/87609
30561 * cfghooks.h (dependence_hash): New typedef.
30562 (struct copy_bb_data): New type.
30563 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
30564 (duplicate_block): Likewise.
30565 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
30566 (copy_bbs): Create and pass down copy_bb_data.
30567 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
30568 (rtl_duplicate_bb): Likewise.
30569 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
30570 remap dependence info.
30571
30572 2019-02-22 Richard Biener <rguenther@suse.de>
30573
30574 PR tree-optimization/87609
30575 * tree-core.h (tree_base): Document special clique values.
30576 * tree-inline.c (remap_dependence_clique): Do not use the
30577 special clique value of one.
30578 (maybe_set_dependence_info): Use clique one.
30579 (clear_dependence_clique): New callback.
30580 (compute_dependence_clique): Clear clique one from all refs
30581 before assigning it (again).
30582
30583 2019-02-21 Martin Sebor <msebor@redhat.com>
30584
30585 * doc/extend.texi (__clear_cache): Correct signature.
30586
30587 2019-02-21 Ian Lance Taylor <iant@golang.org>
30588
30589 PR go/89170
30590 * varasm.c (decode_addr_const): Call lookup_constant_def rather
30591 than output_constant_def.
30592 (add_constant_to_table): New static function.
30593 (output_constant_def): Call add_constant_to_table.
30594 (tree_output_constant_def): Likewise.
30595
30596 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30597
30598 PR c++/89285
30599 * builtins.c (fold_builtin_arith_overflow): If first two args are
30600 INTEGER_CSTs, set intres and ovfres to constants rather than calls
30601 to ifn.
30602
30603 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
30604
30605 PR target/87412
30606 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
30607 error for -mindirect-branch/-mfunction-return with incompatible
30608 -fcf-protection.
30609
30610 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30611
30612 PR bootstrap/88714
30613 * constraints.md (q): Remove.
30614 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
30615 instead of q.
30616
30617 2019-02-21 Martin Jambor <mjambor@suse.cz>
30618
30619 PR hsa/89302
30620 * omp-general.c (omp_extract_for_data): Removed a duplicate call
30621 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
30622 (omp_adjust_for_condition): ...here. Added necessary parameters.
30623 * omp-general.h (omp_adjust_for_condition): Updated declaration.
30624 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
30625 proper values to new parameters of omp_adjust_for_condition.
30626
30627 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30628
30629 PR middle-end/89412
30630 * expr.c (expand_assignment): If result is a MEM, use change_address
30631 instead of simplify_gen_subreg.
30632
30633 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30634 David Malcolm <dmalcolm@redhat.com>
30635
30636 PR middle-end/89091
30637 * fold-const.c (decode_field_reference): Return NULL_TREE if
30638 lang_hooks.types.type_for_size returns NULL. Check it before
30639 overwriting *exp_. Use return NULL_TREE instead of return 0.
30640
30641 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30642
30643 PR middle-end/88074
30644 PR middle-end/89415
30645 * toplev.c (do_compile): Double the emin/emax exponents to workaround
30646 buggy mpc_norm.
30647
30648 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
30649
30650 PR target/89397
30651 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
30652 TARGET_SSE in addition to TARGET_SSE_MATH.
30653
30654 (ix86_excess_precision): Ditto.
30655 (ix86_float_exceptions_rounding_supported_p): Ditto.
30656 (use_rsqrt_p): Ditto.
30657 * config/i386/sse.md (rsqrt<mode>2): Ditto.
30658
30659 2019-02-20 David Malcolm <dmalcolm@redhat.com>
30660
30661 PR c/89410
30662 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
30663 linenum_arith_t when determining if two adjacent line spans are
30664 close enough to merge.
30665 (diagnostic_show_locus): Use linenum_arith_t when iterating over
30666 lines within each line_span.
30667
30668 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
30669
30670 PR target/86487
30671 * lra-constraints.c(uses_hard_regs_p): Fix handling of
30672 paradoxical SUBREGS.
30673
30674 2019-02-20 Li Jia He <helijia@linux.ibm.com>
30675
30676 PR target/88100
30677 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
30678 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
30679 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
30680 range checking it.
30681
30682 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
30683
30684 * config/gcn/gcn.c (print_operand): Fix typo.
30685
30686 2019-02-19 Richard Biener <rguenther@suse.de>
30687
30688 PR middle-end/88074
30689 * toplev.c (do_compile): Initialize mpfr's exponent range
30690 based on available float modes.
30691
30692 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
30693
30694 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
30695 as long as the epilogue isn't completed.
30696
30697 2019-02-18 Martin Sebor <msebor@redhat.com>
30698
30699 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
30700 __has_cpp_attribute, and __has_include.
30701
30702 2019-02-18 Martin Sebor <msebor@redhat.com>
30703
30704 * doc/invoke.texi (-Wreturn-type): Correct and expand.
30705
30706 2019-02-18 Martin Sebor <msebor@redhat.com>
30707
30708 PR middle-end/89294
30709 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
30710 expression.
30711 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
30712
30713 2019-02-18 Richard Biener <rguenther@suse.de>
30714
30715 PR tree-optimization/89296
30716 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
30717 of no-warning flag to cases that might emit the bogus warning.
30718
30719 2019-02-18 Jakub Jelinek <jakub@redhat.com>
30720
30721 PR bootstrap/88714
30722 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
30723 "q" constraint.
30724 * config/arm/vfp.md (*movdi_vfp): Likewise.
30725 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
30726 "q" constraint for operands[0].
30727
30728 PR target/89369
30729 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
30730 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
30731 pattern in a temporary buffer.
30732 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
30733 than 64-operands[2].
30734
30735 PR target/89361
30736 * config/s390/s390.c (s390_indirect_branch_attrvalue,
30737 s390_indirect_branch_settings): Define unconditionally.
30738 (s390_set_current_function): Likewise, but guard the whole body except
30739 the s390_indirect_branch_settings call with
30740 #if S390_USE_TARGET_ATTRIBUTE.
30741 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
30742
30743 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
30744 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
30745 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
30746 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
30747 HOST_WIDE_INT_1U instead of 1ULL.
30748 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
30749 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
30750 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
30751 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
30752 instead of 1UL.
30753 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
30754 instead of 1ul.
30755
30756 2019-02-18 Martin Jambor <mjambor@suse.cz>
30757
30758 PR tree-optimization/89209
30759 * tree-sra.c (create_access_replacement): New optional parameter
30760 reg_tree. Use it as a type if non-NULL and access type is not of
30761 a register type.
30762 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
30763 to create_access_replacement.
30764 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
30765 Check lacc is non-NULL before attempting to re-create it on the RHS.
30766
30767 2019-02-18 Martin Liska <mliska@suse.cz>
30768
30769 PR ipa/89306
30770 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
30771 by default.
30772 (symbol_table::free_edge): Recycle m_summary_id.
30773 * cgraph.h (get_summary_id): New.
30774 (symbol_table::release_symbol): Set m_summary_id to -1
30775 by default.
30776 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
30777 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
30778 function_summary to fast_function_summary.
30779 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
30780 * ipa-pure-const.c (class funct_state_summary_t):
30781 Switch from function_summary to fast_function_summary.
30782 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
30783 (class ipa_ref_opt_summary_t): Switch from function_summary
30784 to fast_function_summary.
30785 * symbol-summary.h (class function_summary_base): New class
30786 that is created from base of former function_summary.
30787 (function_summary_base::unregister_hooks): New.
30788 (class function_summary): Inherit from function_summary_base.
30789 (class call_summary_base): New class
30790 that is created from base of former call_summary.
30791 (class call_summary): Inherit from call_summary_base.
30792 (struct is_same): New.
30793 (class fast_function_summary): New summary class.
30794 (class fast_call_summary): New summary class.
30795 * vec.h (vec_safe_grow_cleared): New function.
30796
30797 2019-02-18 Martin Liska <mliska@suse.cz>
30798
30799 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
30800 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
30801 * doc/tm.texi: Document new target hook.
30802 * doc/tm.texi.in: Likewise.
30803 * target.def: Add new target macro.
30804 * gcc.c (find_fortran_preinclude_file): Do not search multilib
30805 suffixes.
30806
30807 2019-02-17 Alan Modra <amodra@gmail.com>
30808
30809 PR target/89271
30810 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
30811 output reg on add insn.
30812 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
30813
30814 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30815
30816 PR target/89372
30817 * config/i386/sse.md (ssedoublemode): Remove V4HI.
30818 (PMULHRSW): Likewise.
30819 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
30820 TARGET_AVX2.
30821 (ssse3_pmulhrswv4hi3): New expander.
30822
30823 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30824
30825 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
30826 MMX. Add isa attribute.
30827
30828 2019-02-16 Jakub Jelinek <jakub@redhat.com>
30829
30830 PR rtl-optimization/66152
30831 * builtins.h (c_readstr): Declare.
30832 * builtins.c (c_readstr): Remove forward declaration. Add
30833 null_terminated_p argument, if false, read all bytes from the
30834 string instead of stopping after '\0'.
30835 * expr.c (string_cst_read_str): New function.
30836 (store_expr): Use string_cst_read_str instead of
30837 builtin_strncpy_read_str. Try to store by pieces the whole
30838 exp_len first, and only if that fails, split it up into
30839 store by pieces followed by clear_storage. Formatting fix.
30840
30841 * config/i386/i386.md (*movqi_internal): Remove static from
30842 buf variable. Use output_asm_insn (buf, operands); return "";
30843 instead of return buf;.
30844 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
30845 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
30846 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
30847
30848 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30849
30850 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
30851 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
30852 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
30853 (CC1_SPEC): Likewise.
30854 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
30855
30856 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30857
30858 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
30859 the base address on 64-bit strict-alignment platforms.
30860
30861 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
30862
30863 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
30864
30865 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30866
30867 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
30868
30869 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
30870
30871 PR rtl-optimization/88308
30872 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
30873 on copied instruction.
30874
30875 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30876
30877 * final.c (insn_current_reference_address): Replace test on JUMP_P
30878 with test on jump_to_label_p.
30879 * config/visium/visium-passes.def: New file.
30880 * config/visium/t-visium (PASSES_EXTRA): Define.
30881 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
30882 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
30883 (TRAMPOLINE_ALIGNMENT): Define.
30884 * config/visium/visium.c (visium_option_override): Do not register
30885 the machine-specific reorg pass here.
30886 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
30887 for the GR6.
30888 (output_branch): Adjust threshold for long branch instruction.
30889 * config/visium/visium.md (cpu): Move around.
30890 (length): Adjust for the GR6.
30891
30892 2019-02-15 Richard Biener <rguenther@suse.de>
30893 Jakub Jelinek <jakub@redhat.com>
30894
30895 PR tree-optimization/89278
30896 * tree-loop-distribution.c: Include tree-eh.h.
30897 (generate_memset_builtin, generate_memcpy_builtin): Call
30898 rewrite_to_non_trapping_overflow on builtin->size before passing it
30899 to force_gimple_operand_gsi.
30900
30901 2019-02-15 Jakub Jelinek <jakub@redhat.com>
30902
30903 PR other/89342
30904 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
30905 optimize_debug.
30906 * opth-gen.awk: Likewise.
30907
30908 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30909
30910 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
30911 Enable MMX, SSE and SSE2 by default.
30912 * config/i386/i386.c (ix86_option_override_internal): Do not
30913 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
30914
30915 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30916
30917 PR rtl-optimization/89354
30918 * combine.c (make_extraction): Punt if extraction_mode is narrower
30919 than len bits.
30920
30921 2019-02-14 Maya Rashish <coypu@sdf.org>
30922
30923 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
30924 * config/netbsd-d.c: New file.
30925 * config/t-netbsd: Add netbsd-d.o
30926
30927 2018-02-14 Steve Ellcey <sellcey@marvell.com>
30928
30929 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
30930 affects_type_identity to true for aarch64_vector_pcs.
30931 (aarch64_comp_type_attributes): New function.
30932 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
30933
30934 2019-02-14 Tamar Christina <tamar.christina@arm.com>
30935
30936 PR target/88850
30937 * config/arm/iterators.md (ANY64): Add V4HF.
30938
30939 2019-02-14 Martin Liska <mliska@suse.cz>
30940
30941 PR rtl-optimization/89242
30942 * dce.c (delete_unmarked_insns): Call free_dominance_info we
30943 process a transformation.
30944
30945 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30946
30947 PR tree-optimization/89314
30948 * fold-const.c (fold_binary_loc): Cast strlen argument to
30949 const char * before dereferencing it. Formatting fixes.
30950
30951 PR middle-end/89284
30952 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
30953
30954 2019-02-13 Ian Lance Taylor <iant@golang.org>
30955
30956 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
30957 and set current index for other optimizations.
30958
30959 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
30960
30961 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
30962 nonimmediate_operand as operand 2 predicate.
30963 (vec_set<VF2_512_256:mode>_0): Ditto.
30964 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
30965 (*vec_concatv2si): Remove alternative 2.
30966 (*vec_concatv4si_0): Use vm constraint for alternative 0.
30967 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
30968 (vec_concatv2di): Split alternatives 4,5,6 to ...
30969 (*vec_concatv2di_0) ... new pattern.
30970
30971 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
30972
30973 PR target/89190
30974 * config/arm/arm.c (ldm_stm_operation_p) Set
30975 addr_reg_in_reglist correctly for first register.
30976 (load_multiple_sequence): Remove dead base check.
30977 (gen_ldm_seq): Correctly set write_back for Thumb-1.
30978
30979 2019-02-13 Tamar Christina <tamar.christina@arm.com>
30980
30981 PR target/88847
30982 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
30983 Expose as @aarch64_pred_mov.
30984 * config/aarch64/aarch64.c (aarch64_classify_address):
30985 Use expand_insn which legitimizes operands.
30986
30987 2019-02-13 Martin Liska <mliska@suse.cz>
30988
30989 * builtins.h (expand_builtin_with_bounds): Remove declaration.
30990 * calls.c (struct arg_data): Remove special_slot, pointer_arg
30991 and pointer_offset fields.
30992 (initialize_argument_information): Remove usage of dead
30993 fields.
30994 * cgraph.h (struct cgraph_thunk_info): Remove
30995 add_pointer_bounds_args.
30996 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
30997 fields.
30998 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
30999 fields.
31000 * config/i386/i386.c (ix86_function_arg_advance): Remove
31001 unrelated comment.
31002 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31003 (def_builtin): Remove usage of dead fields.
31004 (ix86_add_new_builtins): Likewise.
31005 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31006 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31007 (sem_function::init): Likewise.
31008 (sem_variable::merge): Likewise.
31009 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31010 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31011 * lto-cgraph.c (lto_output_node): Likewise.
31012 (lto_output_varpool_node): Likewise.
31013 (input_node): Likewise.
31014 (input_varpool_node): Likewise.
31015 * lto-streamer-out.c (lto_output): Likewise.
31016 * tree-inline.c (expand_call_inline): Remove usage of
31017 assign_stmts.
31018 * tree-inline.h (struct copy_body_data): Likewise.
31019 * varpool.c (varpool_node::dump): Likewise.
31020
31021 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31022
31023 PR middle-end/89303
31024 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31025 into pt->vars_contains_escaped_heap instead of setting
31026 pt->vars_contains_escaped_heap to it.
31027
31028 PR middle-end/89281
31029 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31030 INTVAL (size), compare it to GET_MODE_MASK instead of
31031 1 << GET_MODE_BITSIZE.
31032
31033 PR target/89290
31034 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31035 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31036 -mcmodel=large.
31037
31038 2019-02-13 Martin Liska <mliska@suse.cz>
31039
31040 PR lto/88858
31041 * cfgrtl.c (remove_barriers_from_footer): New function.
31042 (try_redirect_by_replacing_jump): Use it.
31043 (cfg_layout_redirect_edge_and_branch): Likewise.
31044
31045 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31046
31047 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31048 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31049 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31050 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31051 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31052 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31053 New BU_CRYPTO_2.
31054 * config/rs6000/rs6000.c (builtin_function_type)
31055 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31056 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31057 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31058 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31059 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31060
31061 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31062
31063 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31064 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31065
31066 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31067
31068 PR target/89229
31069 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31070 268678 and revision 268657.
31071 (*movti_internal): Likewise.
31072
31073 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31074
31075 PR target/89233
31076 * config/s390/s390.c (s390_decompose_address): Update comment.
31077 (s390_check_qrst_address): Reject invalid address forms after
31078 LRA.
31079
31080 2019-02-12 Martin Liska <mliska@suse.cz>
31081
31082 PR lto/88876
31083 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31084 we need default values of funct_state for a function that
31085 is not optimized.
31086
31087 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31088
31089 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31090 the object to pick the size of stores on strict-alignment platforms.
31091
31092 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31093 (*movdi_insn_sp32): Likewise.
31094 (*movdi_insn_sp64): Likewise.
31095
31096 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31097
31098 PR lto/88677
31099 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31100 types that needs constructiong.
31101 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31102
31103 2019-02-12 Richard Biener <rguenther@suse.de>
31104
31105 PR tree-optimization/89253
31106 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31107 duplicate the loop.
31108
31109 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31110
31111 PR lto/88147
31112 * input.c (selftest::test_line_offset_overflow): New selftest.
31113 (selftest::input_c_tests): Call it.
31114
31115 2019-02-11 Martin Sebor <msebor@redhat.com>
31116
31117 PR tree-optimization/88771
31118 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31119 when -Wstringop-overflow is set.
31120 (builtin_memref::builtin_memref): Adjust excessive upper bound
31121 only when lower bound is not excessive.
31122 (maybe_diag_overlap): Detect and diagnose excessive bounds via
31123 -Wstringop-ovefflow.
31124 (maybe_diag_offset_bounds): Rename...
31125 (maybe_diag_access_bounds): ...to this.
31126 (check_bounds_or_overlap): Adjust for name change above.
31127
31128 2019-02-11 Martin Sebor <msebor@redhat.com>
31129
31130 PR c++/87996
31131 * builtins.c (max_object_size): Move from here...
31132 * builtins.h (max_object_size): ...and here...
31133 * tree.c (max_object_size): ...to here...
31134 * tree.h (max_object_size): ...and here.
31135
31136 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
31137
31138 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
31139 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
31140 for correct semantics.
31141
31142 2019-02-11 Alan Modra <amodra@gmail.com>
31143
31144 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
31145 -mlongcall and -mpltseq.
31146 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
31147 (RS/6000 and PowerPC Options <-mpltseq>): Document.
31148 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
31149 * config/rs6000/sysv4.opt (mpltseq): New option.
31150 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
31151 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
31152 support is lacking. Don't allow -mpltseq with -mbss-plt.
31153 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
31154 -mpltseq given for ELFv1.
31155 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
31156 Only use UNSPEC_PLTSEQ for inline PLT calls.
31157 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
31158 use UNSPEC_PLTSEQ for inline PLT calls.
31159 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
31160 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
31161 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
31162 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31163 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31164 (pltseq_mtctr_<mode>): Likewise.
31165
31166 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31167
31168 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
31169 Solaris ld.
31170 * configure: Regenerate.
31171
31172 2019-02-11 Jakub Jelinek <jakub@redhat.com>
31173
31174 PR bootstrap/88714
31175 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
31176 instead of r.
31177
31178 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31179
31180 * function.c (assign_parm_setup_block): Use the stored
31181 size, not the passed size, when allocating stack-space,
31182 also for a parameter with alignment larger than
31183 MAX_SUPPORTED_STACK_ALIGNMENT.
31184
31185 2019-02-11 Martin Liska <mliska@suse.cz>
31186
31187 PR ipa/89009
31188 * ipa-cp.c (build_toporder_info): Remove usage of a param.
31189 * ipa-inline.c (inline_small_functions): Likewise.
31190 * ipa-pure-const.c (propagate_pure_const): Likewise.
31191 (propagate_nothrow): Likewise.
31192 * ipa-reference.c (propagate): Likewise.
31193 * ipa-utils.c (struct searchc_env): Remove unused field.
31194 (searchc): Always search across AVAIL_INTERPOSABLE.
31195 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
31196 the only called IPA pure const can properly not propagate
31197 across interposable boundary.
31198 * ipa-utils.h (ipa_reduced_postorder): Remove param.
31199
31200 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
31201
31202 * config/nds32/nds32.md (call_internal, call_value_internal,
31203 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
31204
31205 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31206
31207 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
31208 typo.
31209
31210 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
31211
31212 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
31213 in comments
31214
31215 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31216
31217 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
31218
31219 2019-02-10 Jakub Jelinek <jakub@redhat.com>
31220
31221 PR tree-optimization/89268
31222 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
31223 if preds is non-NULL.
31224
31225 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31226
31227 PR lto/89272
31228 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
31229 polymorphic types.
31230
31231 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31232
31233 * config/nds32/nds32.md (trap): New pattern.
31234
31235 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31236
31237 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
31238 dwarf span.
31239
31240 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31241
31242 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
31243 to split POST_INC.
31244
31245 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31246
31247 * ipa-visibility.c (localize_node): Also do not localize
31248 LDPR_PREVAILING_DEF_IRONLY_EXP.
31249
31250 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31251
31252 PR lto/87957
31253 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
31254 instead of type_with_linkage.
31255
31256 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31257
31258 PR ipa/88755
31259 * params.def (uninlined-function-insns, uninlined-function-time,
31260 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
31261 bound so we don't get overflows.
31262
31263 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31264
31265 * config/rs6000/rs6000-string.c (expand_compare_loop,
31266 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
31267 memcmp/strncmp.
31268
31269 2019-02-09 Jakub Jelinek <jakub@redhat.com>
31270
31271 PR middle-end/89246
31272 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31273 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
31274 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
31275
31276 2019-02-09 Alan Modra <amodra@gmail.com>
31277
31278 PR target/88343
31279 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
31280 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
31281 setup.
31282
31283 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
31284
31285 PR middle-end/88560
31286 * lra-constraints.c (process_alt_operands): Don't increase reject
31287 for memory when offset memory is required.
31288
31289 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
31290
31291 * config/s390/vector.md: Implement vector copysign.
31292
31293 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31294
31295 * expr.c (expand_constructor): Correct indentations.
31296
31297 2019-02-08 Richard Biener <rguenther@suse.de>
31298
31299 PR tree-optimization/89247
31300 * tree-if-conv.c: Include tree-cfgcleanup.h.
31301 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
31302 (tree_if_conversion): Pass through predicate vector.
31303 (pass_if_conversion::execute): Do CFG cleanup and SSA update
31304 inline, see if any if-converted loops we refrece in
31305 LOOP_VECTORIZED calls vanished and fixup.
31306 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
31307
31308 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
31309
31310 * config/s390/constraints.md (jdd): New constraint.
31311
31312 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31313
31314 PR target/89229
31315 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
31316 upper 16 vector registers without TARGET_AVX512VL.
31317 (*movti_internal): Likewise.
31318
31319 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31320
31321 PR rtl-optimization/89234
31322 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
31323 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
31324 (copy_reg_eh_region_note_backward): Likewise.
31325
31326 2019-02-08 Richard Biener <rguenther@suse.de>
31327
31328 PR middle-end/89223
31329 * tree-data-ref.c (initialize_matrix_A): Fail if constant
31330 doesn't fit in HWI.
31331 (analyze_subscript_affine_affine): Handle failure from
31332 initialize_matrix_A.
31333
31334 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31335
31336 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
31337 cfun everywhere.
31338
31339 2019-02-07 David Malcolm <dmalcolm@redhat.com>
31340
31341 PR tree-optimization/86637
31342 PR tree-optimization/89235
31343 * tree-vect-loop.c (optimize_mask_stores): Add an
31344 auto_purge_vect_location sentinel to ensure that vect_location is
31345 purged on exit.
31346 * tree-vectorizer.c
31347 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
31348 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
31349 to ensure that vect_location is purged on exit.
31350 (pass_slp_vectorize::execute): Likewise, replacing the manual
31351 reset.
31352 * tree-vectorizer.h (class auto_purge_vect_location): New class.
31353
31354 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31355
31356 * config/aarch64/iterators.md (max_opp): New code_attr.
31357 (USMAX): New code iterator.
31358 * config/aarch64/predicates.md (aarch64_smin): New predicate.
31359 (aarch64_smax): Likewise.
31360 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
31361 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
31362 MINUS (MAX MIN).
31363
31364 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
31365
31366 PR target/89229
31367 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
31368 for TARGET_AVX512VL.
31369 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
31370
31371 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
31372
31373 * config/s390/s390-builtin-types.def: Add new types.
31374 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
31375 (s390_vec_xlw4): Make the memory operand into a const pointer.
31376 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
31377 float.
31378 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
31379 a new vector type with the alignment of the scalar memory operand.
31380
31381 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
31382 Jakub Jelinek <jakub@redhat.com>
31383
31384 PR bootstrap/88714
31385 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
31386 arm_count_ldrdstrd_insns): New declarations.
31387 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
31388 MINUS.
31389 (valid_operands_ldrd_strd): New function.
31390 (arm_count_ldrdstrd_insns): New function.
31391 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
31392 sets instead of single DImode set and define new insns to match this.
31393
31394 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31395
31396 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
31397 Make it a C initializer.
31398
31399 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31400
31401 PR/target 88850
31402 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
31403
31404 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31405
31406 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
31407 Use neon_dot<q> for type.
31408 (neon_<sup>dot_lane<vsi2qi>): Likewise.
31409
31410 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31411
31412 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
31413 Use neon_dot<q> for type.
31414 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
31415 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
31416
31417 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
31418
31419 PR rtl-optimization/89225
31420 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
31421 sizes check.
31422
31423 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
31424
31425 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
31426 after restoring registers saved to allocate the frame on Windows.
31427
31428 2019-02-06 Richard Biener <rguenther@suse.de>
31429
31430 PR tree-optimization/89182
31431 * graphite.h (cached_scalar_evolution_in_region): Declare.
31432 * graphite.c (struct seir_cache_key): New.
31433 (struct sese_scev_hash): Likewise.
31434 (seir_cache): New global.
31435 (cached_scalar_evolution_in_region): New function.
31436 (graphite_transform_loops): Allocate and release seir_cache.
31437 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
31438 cached_scalar_evolution_in_region.
31439 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31440 Simplify.
31441 (scop_detection::graphite_can_represent_expr: Use
31442 cached_scalar_evolution_in_region.
31443 (scop_detection::stmt_simple_for_scop_p): Likewise.
31444 (find_params_in_bb): Likewise.
31445 (gather_bbs::before_dom_children): Likewise.
31446 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
31447 (add_loop_constraints): Likewise.
31448
31449 2019-02-06 Jakub Jelinek <jakub@redhat.com>
31450
31451 PR middle-end/89210
31452 * fold-const-call.c (fold_const_vec_convert): Pass true as last
31453 operand to new_unary_operation only if both element types are integral
31454 and it isn't a widening conversion. Return NULL_TREE if
31455 new_unary_operation failed.
31456
31457 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
31458
31459 PR target/88856
31460 * config/s390/s390.md: Remove load and test FP splitter.
31461
31462 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31463
31464 PR target/89112
31465 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
31466 expand_compare_loop, expand_block_compare_gpr,
31467 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
31468 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
31469 #include "profile-count.h" and "predict.h" for types and functions
31470 needed to work with REG_BR_PROB notes.
31471
31472 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31473
31474 PR target/89112
31475 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
31476 for the long branch case.
31477
31478 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31479
31480 PR target/89188
31481 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
31482 can throw, non-call exceptions are enabled and we can't delete
31483 dead exceptions or alter cfg. Set must_clean if
31484 delete_insn_and_edges returns true, don't set it blindly for calls.
31485 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
31486
31487 PR rtl-optimization/89195
31488 * combine.c (make_extraction): For MEMs, don't extract bytes outside
31489 of the original MEM.
31490
31491 2019-02-05 Martin Liska <mliska@suse.cz>
31492
31493 PR gcov-profile/89000
31494 * gcov.c (function_summary): Remove argument.
31495 (file_summary): New function.
31496 (print_usage): Replace tabs with spaces.
31497 (generate_results): Use new function file_summary.
31498
31499 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31500
31501 PR target/89186
31502 * optabs.c (prepare_cmp_insn): Pass x and y to
31503 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
31504
31505 2019-02-05 Richard Biener <rguenther@suse.de>
31506
31507 PR middle-end/89150
31508 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
31509 (struct bitmap_element): Drop chain_prev so we properly recurse on
31510 the prev member, supporting tree views.
31511 (struct bitmap_head): GTY skip the obstack member.
31512
31513 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
31514
31515 PR c/88698
31516 * doc/extend.texi (Vector Extensions): Add an example of using vector
31517 types together with x86 intrinsics.
31518
31519 2019-02-04 Alan Modra <amodra@gmail.com>
31520
31521 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
31522 str[] size to 160, and comment.
31523
31524 2019-02-04 Alan Modra <amodra@gmail.com>
31525
31526 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
31527 (rs6000_pltseq_template): Guard output of TLS markers with
31528 TARGET_TLS_MARKERS.
31529 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
31530 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
31531 to use inline PLT sequences.
31532 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31533 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31534 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
31535
31536 2019-02-04 Martin Liska <mliska@suse.cz>
31537
31538 PR ipa/88985
31539 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
31540 out when ipa_fn_summaries does not contain entry for callee.
31541
31542 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
31543
31544 * config/sparc/sparc.h: Remove superfluous blank lines.
31545 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
31546 (got_register_rtx): ...this.
31547 (sparc_got): Adjust to above renaming.
31548 (sparc_tls_got): Likewise.
31549 (sparc_delegitimize_address): Likewise.
31550 (sparc_output_mi_thunk): Likewise.
31551 (sparc_init_pic_reg): Likewise.
31552 (save_local_or_in_reg_p): Fix test on the GOT register.
31553 (USE_HIDDEN_LINKONCE): Move around.
31554 (get_pc_thunk_name): Likewise.
31555 (gen_load_pcrel_sym): Likewise.
31556 (load_got_register): Likewise.
31557
31558 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
31559
31560 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
31561 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
31562
31563 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31564
31565 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
31566 into consideration.
31567
31568 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31569
31570 * config.gcc (with_nds32_lib, glibc):
31571 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
31572 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
31573 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
31574
31575 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
31576
31577 PR target/89071
31578 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
31579 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
31580 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
31581 (*rcpsf2_sse): Ditto.
31582 (*rsqrtsf2_sse): Ditto.
31583 (sse4_1_round<mode<2): Ditto.
31584
31585 2019-02-03 Richard Biener <rguenther@suse.de>
31586
31587 PR debug/87295
31588 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
31589 orig.
31590
31591 2019-02-02 Jakub Jelinek <jakub@redhat.com>
31592
31593 PR middle-end/87887
31594 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31595 Punt with warning on aggregate return or argument types. Ignore
31596 type/mode checking for uniform arguments.
31597
31598 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
31599
31600 * combine.c (try_combine): Do not print "Can't combine" messages unless
31601 printing failed combination attempts.
31602
31603 2019-02-01 Martin Jambor <mjambor@suse.cz>
31604
31605 PR hsa/87863
31606 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
31607 segment and global segment variables before making them static.
31608
31609 2019-02-01 Martin Jambor <mjambor@suse.cz>
31610
31611 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
31612 missed optimization dump with dump_enabled_p.
31613
31614 2019-02-01 Richard Biener <rguenther@suse.de>
31615
31616 PR middle-end/88597
31617 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
31618 the instantiate cache.
31619 (instantiate_scev_binary): Elide second operand procesing
31620 if equal to the first.
31621 * tree-chrec.c (chrec_contains_symbols): Add visited set.
31622 (chrec_contains_undetermined): Likewise.
31623 (tree_contains_chrecs): Likewise.
31624
31625 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
31626
31627 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
31628
31629 2019-02-01 Jakub Jelinek <jakub@redhat.com>
31630
31631 PR tree-optimization/89143
31632 * wide-int-range.h (wide_int_range_absu): Declare.
31633 * wide-int-range.cc (wide_int_range_absu): New function.
31634 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
31635
31636 PR tree-optimization/88107
31637 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
31638 instead of assertion that eh_region_outermost is non-NULL, if it
31639 is NULL, set *ALL to true and return NULL.
31640 (move_sese_region_to_fn): Adjust caller, if all is set, call
31641 duplicate_eh_regions with NULL region.
31642
31643 2019-02-01 Richard Biener <rguenth@suse.de>
31644
31645 PR rtl-optimization/88593
31646 * mode-switching.c (optimize_mode_switching): Free dominators before
31647 calling cleanup_cfg.
31648
31649 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
31650
31651 PR tree-optimization/88932
31652 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
31653
31654 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31655
31656 PR middle-end/89137
31657 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
31658 bogus clang warning.
31659
31660 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
31661
31662 PR target/89071
31663 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
31664 alternative to avoid partial SSE register stall for TARGET_AVX.
31665 (truncdfsf2): Ditto.
31666 (sse4_1_round<mode>2): Ditto.
31667
31668 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
31669
31670 PR tree-optimization/89008
31671 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
31672 process anything of the form X * 0.
31673
31674 2019-01-31 Richard Biener <rguenther@suse.de>
31675
31676 PR tree-optimization/89135
31677 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
31678 with abnormal preds.
31679
31680 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31681
31682 PR sanitizer/89124
31683 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
31684 always_inline callees into no_sanitize_address callers.
31685
31686 2019-01-31 Richard Biener <rguenther@suse.de>
31687
31688 PR rtl-optimization/89115
31689 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
31690
31691 2019-01-30 Martin Sebor <msebor@redhat.com>
31692
31693 PR other/89106
31694 * doc/extend.texi (cast to a union): Correct and expand.
31695
31696 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
31697
31698 PR rtl-optimization/87246
31699 * lra-constraints.c (simplify_operand_subreg): Reload memory
31700 in subreg if the address became invalid.
31701
31702 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
31703
31704 PR target/87064
31705 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
31706 Disable for little-endian.
31707
31708 2019-01-30 Richard Biener <rguenther@suse.de>
31709
31710 PR rtl-optimization/89115
31711 * opts.c (default_options_optimization): Reduce
31712 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
31713 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
31714 to the default.
31715
31716 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
31717
31718 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
31719 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
31720 type of vector element when vec_extract is implemented by direct
31721 move.
31722
31723 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
31724
31725 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
31726
31727 2019-01-30 Richard Biener <rguenther@suse.de>
31728
31729 PR tree-optimization/89111
31730 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
31731 canonicalization to appropriately sized access types.
31732
31733 2019-01-30 Jakub Jelinek <jakub@redhat.com>
31734
31735 PR c++/89105
31736 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
31737 for arguments to functions that are TU-local and shouldn't be
31738 referenced by assembly.
31739
31740 2019-01-30 Ulrich Drepper <drepper@redhat.com>
31741
31742 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
31743 after '='.
31744
31745 2019-01-29 Martin Sebor <msebor@redhat.com>
31746
31747 PR c/88956
31748 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
31749
31750 2019-01-29 Jakub Jelinek <jakub@redhat.com>
31751
31752 PR c++/66676
31753 PR ipa/89104
31754 * omp-simd-clone.c (simd_clone_clauses_extract)
31755 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
31756 OMP_CLAUSE_ALIGNED_ALIGNMENT.
31757
31758 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
31759
31760 * config.gcc: Force .init_array for ARC.
31761
31762 2019-01-29 Richard Biener <rguenther@suse.de>
31763
31764 PR debug/87295
31765 * dwarf2out.c (collect_skeleton_dies): New helper.
31766 (copy_decls_for_unworthy_types): Call it.
31767 (build_abbrev_table): Assert we do not try to replace
31768 DW_AT_signature refs with local refs.
31769
31770 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31771
31772 PR middle-end/89002
31773 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
31774 for lastprivate/linear IV, push gimplify context around gimplify_assign
31775 and, if it needed any temporaries, pop it into a gimple bind around the
31776 sequence.
31777
31778 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
31779
31780 * common.opt (-Wattribute-alias): Remove "no-" from name.
31781 Make -Wattribute-alias command line option and
31782 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
31783
31784 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31785
31786 PR target/89073
31787 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
31788 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
31789 x86 ISA options.
31790 (bmi2): Add missing @opindex.
31791 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
31792 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
31793 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
31794 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
31795 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
31796 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
31797 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
31798 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
31799 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
31800 xsavec, xsaveopt and xsaves options.
31801
31802 2019-01-28 Richard Biener <rguenther@suse.de>
31803
31804 PR debug/89076
31805 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
31806 support removal.
31807
31808 2019-01-28 Richard Biener <rguenther@suse.de>
31809
31810 PR tree-optimization/88739
31811 * tree-cfg.c (verify_types_in_gimple_reference): Verify
31812 BIT_FIELD_REFs only are applied to mode-precision operands
31813 when they are integral.
31814 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
31815 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
31816 BIT_FIELD_REFs of non-mode-precision integral operands.
31817
31818 2019-01-27 Jakub Jelinek <jakub@redhat.com>
31819
31820 PR target/87214
31821 * config/i386/sse.md
31822 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
31823 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
31824 first constants in pairs are multiples of 2. Formatting fixes.
31825 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
31826 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
31827 first constants in each quadruple are multiples of 4. Formatting fixes.
31828
31829 2019-01-26 Martin Jambor <mjambor@suse.cz>
31830
31831 PR ipa/88933
31832 * tree-inline.c: Include tree-cfgcleanup.h.
31833 (delete_unreachable_blocks_update_callgraph): Move...
31834 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
31835 ...here, make externally visible, make second argument bool, adjust
31836 all callers.
31837 * tree-cfgcleanup.c: Include cgraph.h.
31838 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
31839 Declare.
31840 * ipa-prop.c: Include tree-cfgcleanup.h.
31841 (ipcp_transform_function): Call
31842 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
31843
31844 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
31845
31846 PR rtl-optimization/88846
31847 * ira.c (process_set_for_memref_referenced_p): New.
31848 (memref_referenced_p): Add new param. Use
31849 process_set_for_memref_referenced_p. Add new switch cases.
31850 (memref_used_between_p): Pass new arg to memref_referenced_p.
31851
31852 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
31853
31854 PR target/88469
31855 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
31856 argument ABI_BREAK. Set to true if the calculated alignment has
31857 changed in gcc-9. Check bit-fields for their base type alignment.
31858 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
31859 (aarch64_function_arg_boundary): Likewise.
31860 (aarch64_gimplify_va_arg_expr): Likewise.
31861
31862 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31863
31864 PR middle-end/89037
31865 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
31866 instead of accessing TREE_INT_CST_ELT directly.
31867
31868 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
31869
31870 * doc/sourcebuild.texi (Environment attributes): Add fenv and
31871 fenv_exceptions description.
31872
31873 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
31874
31875 PR rtl-optimization/87763
31876 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
31877 Allow SUBREG when matching CC_NZmode compare.
31878
31879 2019-01-25 Richard Biener <rguenther@suse.de>
31880
31881 PR tree-optimization/89049
31882 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
31883 Look at the pattern stmt to determine if the stmt is vectorized.
31884
31885 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31886
31887 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
31888 (pred_mov<mode>): Handle all-register forms using both a new
31889 alternative and a split.
31890
31891 2019-01-25 Richard Biener <rguenther@suse.de>
31892
31893 PR tree-optimization/86865
31894 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31895 Reject non-do-while loops.
31896
31897 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
31898
31899 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
31900 * config/rs6000/constraints.md (Q constraint): Use REG_P.
31901 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
31902 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31903 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
31904 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31905 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
31906 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
31907 vlogical_operand, gpc_reg_operand, int_reg_operand,
31908 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
31909 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
31910 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
31911 (save_world_operation, restore_world_operation, lmw_operation,
31912 stmw_operation): Use MEM_P and REG_P.
31913 (tie_operand): Use MEM_P.
31914 (vrsave_operation, crsave_operation): Use REG_P.
31915 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
31916 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
31917 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
31918 (call_operand): Use HARD_REGISTER_P.
31919 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
31920 Use CONST_INT_P.
31921 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
31922 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
31923 quad_aligned_load_p, replace_swapped_aligned_store,
31924 recombine_lvx_pattern, replace_swapped_aligned_load,
31925 recombine_stvx_pattern): Use MEM_P.
31926 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
31927 Use MEM_P and SYMBOL_REF_P.
31928 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
31929 (insn_is_swappable_p): Use REG_P and MEM_P.
31930 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
31931 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
31932 Use CONST_INT_P.
31933 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
31934 Use CONST_DOUBLE_P.
31935 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
31936 CONST_WIDE_INT_P.
31937 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
31938 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
31939 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
31940 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
31941 reg_or_subregno:
31942 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31943 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
31944 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
31945 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
31946 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
31947 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
31948 rs6000_split_logical_di): Use CONST_INT_P.
31949 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
31950 REG_P and SYMBOL_REF_P.
31951 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
31952 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
31953 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
31954 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
31955 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
31956 (small_data_operand, print_operand_address): Use CONST_INT_P and
31957 SYMBOL_REF_P.
31958 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
31959 (rs6000_init_hard_regno_mode_ok, direct_move_p):
31960 Use HARD_REGISTER_NUM_P.
31961 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
31962 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
31963 SUBREG_P and SYMBOL_REF_P.
31964 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
31965 and HARD_REGISTER_NUM_P.
31966 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
31967 reg_or_subregno.
31968 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
31969 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
31970 MEM_P and REG_P.
31971 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
31972 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
31973 find_addr_reg): Use REG_P.
31974 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
31975 (rs6000_emit_le_vsx_move): Use SUBREG_P.
31976 (offsettable_ok_by_alignment, constant_pool_expr_p,
31977 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
31978 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
31979 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
31980 rs6000_assemble_integer, create_TOC_reference,
31981 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
31982 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
31983 (rs6000_split_vec_extract_var): Use reg_or_subregno.
31984 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31985 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31986 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31987 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31988 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
31989 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
31990 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
31991 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
31992 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
31993 and cbranch<mode>4): Use CONST_INT_P.
31994 (multiple define_splits): Use REG_P and SUBREG_P.
31995 (define_expands call, call_value): Use MEM_P.
31996 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
31997 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
31998 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
31999 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32000 and HARD_REGISTER_NUM_P.
32001 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32002
32003 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32004
32005 PR rtl-optimization/88948
32006 * rtl.h (prepare_copy_insn): New prototype.
32007 * gcse.c (prepare_copy_insn): New function, split out from
32008 process_insert_insn.
32009 (process_insert_insn): Use prepare_copy_insn.
32010 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32011 instead of gen_move_insn.
32012
32013 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32014
32015 PR debug/89006
32016 * config/i386/i386.c (ix86_pic_register_p): Return true for
32017 UNSPEC_SET_GOT too.
32018
32019 PR tree-optimization/88964
32020 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32021 punt if HONOR_SNANS (chrec).
32022
32023 PR middle-end/89015
32024 * tree-nested.c (convert_nonlocal_reference_stmt,
32025 convert_local_reference_stmt, convert_tramp_reference_stmt,
32026 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32027 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32028 or GIMPLE_OMP_TASK.
32029
32030 PR tree-optimization/89027
32031 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32032 for "omp simd array" variables.
32033
32034 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32035
32036 PR target/88469
32037 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32038 force the alignment of m_val.
32039
32040 2019-01-24 Richard Biener <rguenther@suse.de>
32041
32042 PR lto/87187
32043 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32044 When in "legacy" debug mode make sure to reset self-origins.
32045
32046 2019-01-24 Martin Liska <mliska@suse.cz>
32047
32048 PR gcov-profile/88994
32049 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32050 result will be always smaller or equal to the original.
32051 * gcov.c (mangle_name): Fix else branch where we should
32052 also copy to PTR and shift the pointer.
32053
32054 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32055
32056 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32057 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32058
32059 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32060
32061 * common/config/i386/i386-common.c
32062 (OPTION_MASK_ISA_ENQCMD_SET,
32063 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32064 (ix86_handle_option): Handle -menqcmd.
32065 * config.gcc (enqcmdintrin.h): New header file.
32066 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32067 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32068 -menqcmd.
32069 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32070 function type.
32071 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32072 __builtin_ia32_enqcmds): New builtins.
32073 * config/i386/i386-c.c (__ENQCMD__): New macro.
32074 * config/i386/i386-option.c (ix86_target_string): Add
32075 -menqcmd.
32076 (ix86_valid_target_attribute_inner_p): Likewise.
32077 * config/i386/i386-expand.c
32078 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32079 IX86_BUILTIN_ENQCMDS.
32080 * config/i386/i386.h (TARGET_ENQCMD): New.
32081 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32082 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32083 (movdir64b_<mode>): Parameterize to enable share expansion code
32084 with ENQCMD in function ix86_expand_builtin.
32085 * config/i386/i386.opt: Add -menqcmd.
32086 * config/i386/immintrin.h: Include enqcmdintrin.h.
32087 * config/i386/enqcmdintrin.h: New intrinsic file.
32088 * doc/invoke.texi: Add -menqcmd.
32089
32090 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32091 Steve Ellcey <sellcey@marvell.com>
32092
32093 PR target/85711
32094 * recog.c (address_operand): Return false on wrong mode for address.
32095 (constrain_operands): Check for mode with 'p' constraint.
32096
32097 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32098
32099 PR target/88998
32100 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32101 Disparage MMX alternative.
32102 (sse2_cvtpd2pi): Ditto.
32103 (sse2_cvttpd2pi): Ditto.
32104
32105 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32106
32107 PR driver/89014
32108 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32109 use-after-free of the result of
32110 aarch64_get_extension_string_for_isa_flags.
32111
32112 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32113
32114 PR c/44715
32115 * doc/extend.texi: Document break and continue behavior in
32116 statement expressions.
32117
32118 2019-01-23 Richard Biener <rguenther@suse.de>
32119
32120 PR tree-optimization/89008
32121 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32122 not leave another stray operand.
32123
32124 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32125
32126 * BASE-VER: Bump to 9.0.1.
32127
32128 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
32129
32130 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32131 thunk that returns by reference, use the type of the return object
32132 of the thunk instead of that of the alias to build the dereference.
32133
32134 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
32135
32136 * config/arc/atomic.md: Add operand to DMB instruction.
32137
32138 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32139
32140 PR tree-optimization/88964
32141 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
32142 build_zero_cst instead of build_int_cst. Return false for loop
32143 invariants which honor signed zeros.
32144
32145 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
32146
32147 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
32148
32149 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32150
32151 PR target/88965
32152 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
32153 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
32154 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
32155
32156 PR middle-end/88968
32157 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
32158 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
32159
32160 PR target/87064
32161 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
32162 Disable for little endian.
32163
32164 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32165
32166 PR target/88469
32167 * config/arm/arm.c (arm_needs_double_word_align): Check
32168 DECL_BIT_FIELD_TYPE.
32169
32170 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
32171 H.J. Lu <hongjiu.lu@intel.com>
32172
32173 PR target/88909
32174 * config/i386/i386-builtin.def: Add mask2 to all builtin
32175 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
32176 SPECIAL_ARGS.
32177 * config/i386/i386.c (BDESC): Add mask2 to the definition.
32178 (BDESC_FIRST): Likewise.
32179 (define_builtin): Add an argument for mask2. Updated to handle
32180 both ix86_isa_flags and ix86_isa_flags2.
32181 (define_builtin_const): Likewise.
32182 (define_builtin_pure): Likewise.
32183 (define_builtin2): Deleted.
32184 (define_builtin_const2): Likewise.
32185 (builtin_description): Add a member, mask2.
32186 (bdesc_*): Add mask2 to builtin initializations.
32187 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
32188 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
32189 support.
32190 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
32191
32192 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
32193
32194 PR target/88954
32195 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
32196 noplt attribute.
32197
32198 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32199
32200 PR target/88469
32201 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
32202 alignment is dominated by a bitfield with 64-bit aligned base type.
32203 (arm_function_arg): Emit a warning if the alignment has changed since
32204 earlier GCC releases.
32205 (arm_function_arg_boundary): Likewise.
32206 (arm_setup_incoming_varargs): Likewise.
32207
32208 2019-01-22 Richard Biener <rguenther@suse.de>
32209
32210 PR tree-optimization/88862
32211 * graphite-scop-detection.c
32212 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
32213
32214 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
32215
32216 * doc/extend.tex (AMD GCN Function Attributes): New section.
32217 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
32218 * doc/invoke.texi (AMD GCN Options): New section.
32219 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
32220
32221 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
32222
32223 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
32224 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
32225
32226 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32227
32228 PR tree-optimization/88044
32229 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
32230 is false in the first iteration, but !every_iteration, return false
32231 instead of true with niter->niter zero.
32232
32233 PR rtl-optimization/88904
32234 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
32235 any nonequal registers before processing BB_END (b).
32236
32237 PR target/88905
32238 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
32239 GET_MODE (op0).
32240 (expand_binop_directly, expand_doubleword_clz,
32241 expand_doubleword_popcount, expand_ctz, expand_ffs,
32242 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
32243
32244 PR rtl-optimization/49429
32245 PR target/49454
32246 PR rtl-optimization/86334
32247 PR target/88906
32248 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
32249 addressable from here...
32250 (emit_block_op_via_libcall): ... to here.
32251
32252 2019-01-22 Richard Biener <rguenther@suse.de>
32253
32254 * tree-vect-loop.c (vect_analyze_loop_operations): Use
32255 auto_vec for cost vector to fix memleak.
32256 (vectorize_fold_left_reduction): Properly gather SLP defs.
32257 (vectorizable_comparison): Do not swap operands to properly
32258 gather SLP defs.
32259
32260 2019-01-22 Alan Modra <amodra@gmail.com>
32261
32262 PR target/88614
32263 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
32264 stays a reg. Allow a const_int.
32265 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
32266 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
32267 (IS_NOMARK_TLSGETADDR): Define.
32268 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
32269 (rs6000_output_tlsargs): New function.
32270 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
32271 __tls_get_addr call takes an arg.
32272 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
32273 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
32274 delete split..
32275 (call_value_nonlocal_sysv): ..or here, delete split.
32276 (tls_gdld_nomark): Delete.
32277 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
32278 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
32279 (call_value_nonlocal_sysv): Likewise.
32280 (call_value_nonlocal_sysv_secure): Likewise.
32281 (call_value_nonlocal_aix): Likewise.
32282 (call_value_indirect_aix): Likewise.
32283 (call_value_indirect_elfv2): Likewise.
32284 (call_value_local32, call_value_local64): Disable for no-mark tls.
32285 (call_value_local_aix): Likewise.
32286
32287 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
32288
32289 PR target/88938
32290 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
32291 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
32292
32293 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
32294
32295 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
32296 string contents as hash_map keys.
32297
32298 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32299
32300 PR c/88928
32301 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
32302 for rvalue context. Handle rvalues correctly. Use min_align_of_type
32303 instead of TYPE_ALIGN.
32304 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
32305 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
32306 pointer from TYPE_STUB_DECL.
32307
32308 2019-01-21 Richard Biener <rguenther@suse.de>
32309
32310 PR tree-optimization/88934
32311 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
32312 at the possibly non-constant operand.
32313 (vect_get_constant_vectors): Adjust.
32314
32315 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
32316
32317 PR target/71659
32318 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
32319 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
32320 instead of _X86INTRIN_H_INCLUDED.
32321 * onfig/i386/clwbintrin.h: Likewise.
32322 * config/i386/pkuintrin.h: Likewise.
32323 * config/i386/prfchwintrin.h: Likewise.
32324 * config/i386/rdseedintrin.h: Likewise.
32325 * config/i386/wbnoinvdintrin.h: Likewise.
32326 * config/i386/xsavecintrin.h: Likewise.
32327 * config/i386/xsavesintrin.h: Likewise.
32328 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
32329 * config/i386/xsaveintrin.h: Likewise.
32330 * config/i386/xsaveoptintrin.h: Likewise.
32331 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
32332 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
32333 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
32334 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
32335 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
32336 * config/i386/immintrin.h: Here.
32337
32338 2019-01-20 Martin Jambor <mjambor@suse.cz>
32339
32340 PR ipa/87615
32341 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
32342 with aa_walk_budget.
32343 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
32344 aa_walk_budget_p parameter.
32345 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
32346 walk. Updated all callers.
32347 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
32348 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
32349 unmodified_parm.
32350 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
32351 parameter info. Extract info from fbi. Pass fbi to recursive calls
32352 and to unmodified_parm.
32353 (phi_result_unknown_predicate): New parameter fbi, removed parameter
32354 info, updated call to will_be_nonconstant_expr_predicate.
32355 (param_change_prob): New parameter fbi, limit AA walking.
32356 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
32357 calls to various above functions.
32358 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
32359 parameter. Use it to limit AA walking.
32360 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
32361 fbi, limit AA walk.
32362 (detect_type_change): New parameter fbi, pass it on to
32363 detect_type_change_from_memory_writes.
32364 (detect_type_change_ssa): Likewise.
32365 (aa_overwalked): Removed.
32366 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
32367 accordingly, adjust to the neew AA limiting scheme.
32368 (parm_ref_data_preserved_p): Likewise.
32369 (ipa_compute_jump_functions_for_edge): Adjust call to
32370 get_dynamic_type.
32371 (ipa_analyze_call_uses): Likewise.
32372 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
32373 (ipa_analyze_node): Initialize aa_walk_budget.
32374 (ipcp_transform_function): Likewise.
32375 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
32376 to get_dynamic_type.
32377
32378 2019-01-19 Jakub Jelinek <jakub@redhat.com>
32379
32380 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
32381 outside of #if CHECKING_P code.
32382
32383 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
32384
32385 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
32386 New function, split out from...
32387 (loop_versioning::analyze_stride): ...here.
32388 (loop_versioning::find_per_loop_multiplication): Use gassign.
32389 (loop_versioning::analyze_term_using_scevs): Return a success code.
32390 (loop_versioning::analyze_arbitrary_term): New function.
32391 (loop_versioning::analyze_address_fragment): Use
32392 analyze_arbitrary_term if all else fails.
32393
32394 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
32395
32396 PR target/88892
32397 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
32398 operands.
32399
32400 2019-01-18 Richard Biener <rguenther@suse.de>
32401
32402 PR tree-optimization/88903
32403 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
32404 scalar stmts a SLP shift amount is composed of when detecting
32405 shifts by scalars.
32406
32407 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
32408
32409 PR target/88799
32410 * config/arm/arm-cpus.in (mp): New feature.
32411 (sec): New feature.
32412 (fgroup ARMv7ve): Add mp and sec features.
32413 (arch armv7-a): Add options to allow mp and sec extensions.
32414 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
32415 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
32416 extenstions to the base architecture.
32417 (cpu cortex-a8): Add sec extension to the base architecture.
32418 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
32419 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
32420 variants down to the base v7-a varaint.
32421 * config/arm/t-multilib (v7_a_arch_variants): New variable.
32422 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
32423 of permitted extensions for -march=armv7-a and for
32424 -mcpu=generic-armv7-a.
32425
32426 2019-01-18 Martin Liska <mliska@suse.cz>
32427
32428 * params.def: Fix comment.
32429 * tree-profile.c (gimple_init_gcov_profiler): Bump function
32430 name.
32431 (gimple_gen_ic_func_profiler): Likewise.
32432
32433 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32434
32435 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
32436 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
32437 and put in error checks for stack protector guard options.
32438 (aarch64_stack_protect_guard): New.
32439 (TARGET_STACK_PROTECT_GUARD): Define.
32440 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
32441 (reg_stack_protect_address<mode>): New.
32442 (stack_protect_set): Adjust for SSP_GLOBAL.
32443 (stack_protect_test): Likewise.
32444 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
32445 (-mstack-protector-guard): Likewise.
32446 (-mstack-protector-guard-offset): Likewise.
32447
32448 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32449
32450 PR tree-optimization/86214
32451 * tree-inline.h (struct copy_body_data): Add
32452 add_clobbers_to_eh_landing_pads member.
32453 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
32454 (copy_edges_for_bb): Call it if EH edge destination is <
32455 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
32456 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
32457 if flag_stack_reuse != SR_NONE and clear it afterwards.
32458
32459 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
32460
32461 PR target/85596
32462 * doc/install.texi (with-multilib-list): Document for aarch64.
32463
32464 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32465
32466 PR target/88734
32467 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
32468 (("..."))) with ("...").
32469
32470 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
32471
32472 * doc/extend.texi (Built-in Functions for Memory Model Aware
32473 Atomic Operations): Document atomic fetch and nand.
32474
32475 2019-01-18 Martin Liska <mliska@suse.cz>
32476 Richard Biener <rguenther@suse.de>
32477
32478 PR middle-end/88587
32479 * cgraph.h (create_version_clone_with_body): Add new argument
32480 with attributes.
32481 * cgraphclones.c (cgraph_node::create_version_clone): Add
32482 DECL_ATTRIBUTES to a newly created decl. And call
32483 valid_attribute_p so that proper cl_target_optimization_node
32484 is set for the newly created declaration.
32485 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
32486 for declaration.
32487 (expand_target_clones): Do not call valid_attribute_p, it must
32488 be already done.
32489 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
32490 vector types.
32491
32492 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32493
32494 PR target/88734
32495 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
32496 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
32497 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
32498
32499 2019-01-17 Martin Sebor <msebor@redhat.com>
32500
32501 PR middle-end/88273
32502 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
32503 Handle anti-ranges the same as no range at all.
32504
32505 2018-01-17 Steve Ellcey <sellcey@cavium.com>
32506
32507 * config/aarch64/aarch64.c (cgraph.h): New include.
32508 (intl.h): New include.
32509 (supported_simd_type): New function.
32510 (currently_supported_simd_type): Ditto.
32511 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
32512 (aarch64_simd_clone_adjust): Ditto.
32513 (aarch64_simd_clone_usable): Ditto.
32514 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
32515 (TARGET_SIMD_CLONE_ADJUST): Ditto.
32516 (TARGET_SIMD_CLONE_USABLE): Ditto.
32517 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
32518 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
32519 call.
32520
32521 2019-01-17 Martin Sebor <msebor@redhat.com>
32522
32523 PR tree-optimization/88800
32524 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
32525 NO_WARNING bit here. Avoid folding out-of-bounds calls.
32526 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
32527 redundant argument. Add new argument and issue diagnostics under
32528 its control. Detect out-of-bounds access even with warnings
32529 disabled.
32530 (check_bounds_or_overlap): Change return type. Add argument.
32531 (wrestrict_dom_walker::check_call): Adjust.
32532 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
32533 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
32534 check_bounds_or_overlap's return value.
32535 (handle_builtin_stxncpy): Same.
32536 (handle_builtin_strcat): Same.
32537
32538 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32539 Kwok Cheung Yeung <kcy@codesourcery.com>
32540 Julian Brown <julian@codesourcery.com>
32541 Tom de Vries <tom@codesourcery.com>
32542
32543 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
32544
32545 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32546
32547 * doc/sourcebuild.texi: Document dg-require-effective-target
32548 llvm_binutils and offload_gcn.
32549
32550 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32551 Kwok Cheung Yeung <kcy@codesourcery.com>
32552 Julian Brown <julian@codesourcery.com>
32553 Tom de Vries <tom@codesourcery.com>
32554
32555 * doc/sourcebuild.texi: Document dg-required-effective-target
32556 exceptions.
32557
32558 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32559 Kwok Cheung Yeung <kcy@codesourcery.com>
32560 Julian Brown <julian@codesourcery.com>
32561 Tom de Vries <tom@codesourcery.com>
32562 Jan Hubicka <hubicka@ucw.cz>
32563 Martin Jambor <mjambor@suse.cz>
32564
32565 * config.gcc: Add amdgcn*-*-amdhsa configuration.
32566 * configure.ac: Check for dlopen.
32567 * configure: Regenerate.
32568
32569 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32570 Kwok Cheung Yeung <kcy@codesourcery.com>
32571 Julian Brown <julian@codesourcery.com>
32572 Tom de Vries <tom@codesourcery.com>
32573 Jan Hubicka <hubicka@ucw.cz>
32574 Martin Jambor <mjambor@suse.cz>
32575
32576 * common/config/gcn/gcn-common.c: New file.
32577 * config/gcn/driver-gcn.c: New file.
32578 * config/gcn/gcn-builtins.def: New file.
32579 * config/gcn/gcn-hsa.h: New file.
32580 * config/gcn/gcn-modes.def: New file.
32581 * config/gcn/gcn-opts.h: New file.
32582 * config/gcn/gcn-passes.def: New file.
32583 * config/gcn/gcn-protos.h: New file.
32584 * config/gcn/gcn-run.c: New file.
32585 * config/gcn/gcn-tree.c: New file.
32586 * config/gcn/gcn.c: New file.
32587 * config/gcn/gcn.h: New file.
32588 * config/gcn/gcn.opt: New file.
32589 * config/gcn/t-gcn-hsa: New file.
32590
32591 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32592 Kwok Cheung Yeung <kcy@codesourcery.com>
32593 Julian Brown <julian@codesourcery.com>
32594 Tom de Vries <tom@codesourcery.com>
32595 Jan Hubicka <hubicka@ucw.cz>
32596 Martin Jambor <mjambor@suse.cz>
32597
32598 * config/gcn/constraints.md: New file.
32599 * config/gcn/gcn-valu.md: New file.
32600 * config/gcn/gcn.md: New file.
32601 * config/gcn/predicates.md: New file.
32602
32603 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
32604
32605 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
32606 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
32607 (stmt_uses_0_or_null_in_undefined_way): Likewise.
32608 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
32609
32610 2019-01-17 Tamar Christina <tamar.christina@arm.com>
32611
32612 PR target/88851
32613 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
32614 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
32615 it and document registers.
32616
32617 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32618
32619 * config/aarch64/aarch64.c (ares_tunings): Define.
32620 * config/aarch64/aarch64-cores.def (ares): Use the above.
32621
32622 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32623
32624 PR target/88794
32625 Revert:
32626 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
32627
32628 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
32629 (_mm512_fixupimm_round_pd): Update parameters and builtin.
32630 (_mm512_maskz_fixupimm_round_pd): Ditto.
32631 (_mm512_fixupimm_round_ps): Ditto.
32632 (_mm512_maskz_fixupimm_round_ps): Ditto.
32633 (_mm_fixupimm_round_sd): Ditto.
32634 (_mm_maskz_fixupimm_round_sd): Ditto.
32635 (_mm_fixupimm_round_ss): Ditto.
32636 (_mm_maskz_fixupimm_round_ss): Ditto.
32637 (_mm512_fixupimm_pd): Ditto.
32638 (_mm512_maskz_fixupimm_pd): Ditto.
32639 (_mm512_fixupimm_ps): Ditto.
32640 (_mm512_maskz_fixupimm_ps): Ditto.
32641 (_mm_fixupimm_sd): Ditto.
32642 (_mm_maskz_fixupimm_sd): Ditto.
32643 (_mm_fixupimm_ss): Ditto.
32644 (_mm_maskz_fixupimm_ss): Ditto.
32645 (_mm512_mask_fixupimm_round_pd): Update builtin.
32646 (_mm512_mask_fixupimm_round_ps): Ditto.
32647 (_mm_mask_fixupimm_round_sd): Ditto.
32648 (_mm_mask_fixupimm_round_ss): Ditto.
32649 (_mm512_mask_fixupimm_pd): Ditto.
32650 (_mm512_mask_fixupimm_ps): Ditto.
32651 (_mm_mask_fixupimm_sd): Ditto.
32652 (_mm_mask_fixupimm_ss): Ditto.
32653 * config/i386/avx512vlintrin.h:
32654 (_mm256_fixupimm_pd): Update parameters and builtin.
32655 (_mm256_maskz_fixupimm_pd): Ditto.
32656 (_mm256_fixupimm_ps): Ditto.
32657 (_mm256_maskz_fixupimm_ps): Ditto.
32658 (_mm_fixupimm_pd): Ditto.
32659 (_mm_maskz_fixupimm_pd): Ditto.
32660 (_mm_fixupimm_ps): Ditto.
32661 (_mm_maskz_fixupimm_ps): Ditto.
32662 (_mm256_mask_fixupimm_pd): Update builtin.
32663 (_mm256_mask_fixupimm_ps): Ditto.
32664 (_mm_mask_fixupimm_pd): Ditto.
32665 (_mm_mask_fixupimm_ps): Ditto.
32666 * config/i386/i386-builtin-types.def: Add new types and remove
32667 useless ones.
32668 * config/i386/i386-builtin.def: Update builtin definitions.
32669 * config/i386/i386.c: Handle new builtin types and remove useless ones.
32670 * config/i386/sse.md: Update VFIXUPIMM* patterns.
32671 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32672 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32673 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
32674 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32675 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32676 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
32677 * config/i386/subst.md:
32678 (round_saeonly_sd_mask_operand4): Add new subst_attr.
32679 (round_saeonly_sd_mask_op4): Ditto.
32680 (round_saeonly_expand_operand5): Ditto.
32681 (round_saeonly_expand): Update.
32682
32683 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32684
32685 PR target/88794
32686 Revert:
32687 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
32688
32689 * config/i386/sse.md: Combine VFIXUPIMM* patterns
32690 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32691 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32692 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
32693 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32694 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32695 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
32696
32697 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32698
32699 PR target/88794
32700 Revert:
32701 2018-12-15 Jakub Jelinek <jakub@redhat.com>
32702
32703 PR target/88489
32704 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
32705 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
32706 instead of UNSPEC_FIXUPIMM.
32707
32708 2019-01-17 Richard Biener <rguenther@suse.de>
32709
32710 PR lto/86736
32711 * dwarf2out.c (want_pubnames): Never generate pubnames sections
32712 and friends for the LTO part of debug info.
32713
32714 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32715
32716 PR tree-optimization/86214
32717 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
32718 if x == y.
32719
32720 PR rtl-optimization/88870
32721 * dce.c (deletable_insn_p): Never delete const/pure calls that can
32722 throw if we can't alter the cfg or delete dead exceptions.
32723 (mark_insn): Don't call find_call_stack_args for such calls.
32724
32725 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
32726
32727 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
32728 prototypes for vec_st.
32729 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
32730 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
32731 mainly on signed/unsigned long long and double.
32732
32733 2019-01-16 David Malcolm <dmalcolm@redhat.com>
32734
32735 PR target/88861
32736 * combine.c (delete_noop_moves): Convert to "bool" return,
32737 returning true if any edges are eliminated.
32738 (combine_instructions): Also return true if delete_noop_moves
32739 returns true.
32740
32741 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32742
32743 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
32744 correct max nunits for endian swap.
32745 (aarch64_expand_fcmla_builtin): Correct subreg code.
32746 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32747 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
32748 lane endianness.
32749
32750 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
32751
32752 * config/alpha/alpha.c (alpha_gimplify_va_arg):
32753 Handle split indirect COMPLEX_TYPE arguments.
32754
32755 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
32756
32757 PR target/86891
32758 * config/aarch64/aarch64-modes.def: Add comment about how the carry
32759 bit is set by add and compare.
32760 (CC_ADC): New CC_MODE.
32761 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
32762 to cache the code and mode of X. Adjust the shape of a CC_Cmode
32763 comparison. Add detection for CC_ADCmode.
32764 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
32765 CC_ADCmode.
32766 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
32767 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
32768 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
32769 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
32770 to eliminate the need for zero-extending the operands.
32771 (add<mode>3_compareC_imm): Delete. Merge into ...
32772 (add<mode>3_compareC): ... this. Restructure the comparison to
32773 eliminate the need for zero-extending the operands.
32774 (add<mode>3_carryin): Use LTU for the overflow detection.
32775 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
32776 Reexpress comparison for overflow.
32777 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
32778 (add<mode>3_carryinC): Likewise.
32779 (add<mode>3_carryinV): Use LTU for carry between partials.
32780 * config/aarch64/predicates.md (aarch64_carry_operation): Update
32781 handling of CC_Cmode and add CC_ADCmode.
32782 (aarch64_borrow_operation): Likewise.
32783
32784 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32785
32786 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
32787 Remove patternmode.
32788 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
32789 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32790 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
32791 Remove endianness conversion.
32792
32793 2019-01-16 Martin Liska <mliska@suse.cz>
32794
32795 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
32796 for GCC driver.
32797 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
32798 a new argument.
32799 * gcc.c (add_sysrooted_hdrs_prefix): New function.
32800 (path_prefix_reset): Move up in the source file.
32801 (find_fortran_preinclude_file): Make complex search for the
32802 fortran header files.
32803
32804 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
32805
32806 * godump.c (go_output_typedef): When outputting a typedef, refer
32807 to the underlying type by its name and not its structure.
32808
32809 2019-01-15 David Malcolm <dmalcolm@redhat.com>
32810
32811 PR c++/88795
32812 * tree.c (build_function_type): Assert that arg_types is not
32813 error_mark_node.
32814
32815 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
32816
32817 PR inline-asm/52813
32818 * doc/extend.texi: Document that listing the stack pointer in the
32819 clobber list of an asm is a deprecated feature.
32820 * common.opt (Wdeprecated): Moved from c-family/c.opt.
32821 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
32822 warning instead of an error for clobbers of the stack pointer.
32823 Add a note explaining why.
32824
32825 2019-01-15 Richard Biener <rguenther@suse.de>
32826
32827 PR debug/88046
32828 * dwarf2out.c (gen_member_die): Do not generate inheritance
32829 DIEs late.
32830
32831 2019-01-15 Richard Biener <rguenther@suse.de>
32832
32833 PR tree-optimization/88855
32834 * tree-if-conv.c (combine_blocks): Collect
32835 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
32836
32837 2019-01-15 Tom de Vries <tdevries@suse.de>
32838
32839 PR target/80547
32840 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
32841 lhs == NULL_TREE for gang-level reduction.
32842
32843 2019-01-15 Richard Biener <rguenther@suse.de>
32844 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32845
32846 PR ipa/88788
32847 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
32848 return true if SSA_NAME is already marked in visited bitmap.
32849 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
32850
32851 2019-01-15 Jakub Jelinek <jakub@redhat.com>
32852
32853 PR tree-optimization/88775
32854 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
32855 equal == 0 equality pointer comparisons some more if compared in
32856 integral types and either one points to an automatic var and the
32857 other to a global, or we can prove at least one points to the middle
32858 or both point to start or both point to end.
32859
32860 2019-01-14 Andi Kleen <ak@linux.intel.com>
32861
32862 * Makefile.in: Lower autofdo sampling rate by 10x.
32863 * Makefile.tpl: Dito.
32864
32865 2019-01-14 Tom Honermann <tom@honermann.net>
32866
32867 * defaults.h: Define CHAR8_TYPE.
32868
32869 2019-01-14 Martin Sebor <msebor@redhat.com>
32870
32871 PR target/88638
32872 * doc/extend.texi (Darwin Format Checks): Clarify.
32873
32874 2019-01-14 Richard Biener <rguenther@suse.de>
32875
32876 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
32877 whether we are in (simplify ...) or (match ...) context.
32878
32879 2019-01-14 Jakub Jelinek <jakub@redhat.com>
32880
32881 PR rtl-optimization/88796
32882 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
32883 * cfgexpand.c (stack_protect_prologue): Initialize
32884 crtl->stack_protect_guard_decl.
32885 * function.c (stack_protect_epilogue): Use it instead of calling
32886 targetm.stack_protect_guard again.
32887 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
32888 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
32889 crtl->stack_protect_guard_decl.
32890 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
32891 on the returned MEM_EXPR.
32892
32893 2019-01-12 Tom de Vries <tdevries@suse.de>
32894
32895 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
32896 vector length using -fopenacc-dim.
32897
32898 2019-01-12 Tom de Vries <tdevries@suse.de>
32899
32900 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
32901 lengths into account.
32902
32903 2019-01-12 Svante Signell <svante.signell@gmail.com>
32904
32905 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
32906 (TARGET_CAN_SPLIT_STACK): Define.
32907 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
32908
32909 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32910
32911 * params.def (inline-unit-growth): Set to 40.
32912
32913 2019-01-12 Jakub Jelinek <jakub@redhat.com>
32914
32915 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
32916
32917 2019-01-12 Tom de Vries <tdevries@suse.de>
32918
32919 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
32920 region calling vector-partitionable routine, set default_vector_length
32921 to WARP_SIZE.
32922
32923 2019-01-12 Tom de Vries <tdevries@suse.de>
32924
32925 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
32926 variable default_vector_length.
32927
32928 2019-01-12 Tom de Vries <tdevries@suse.de>
32929
32930 PR middle-end/88703
32931 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
32932 from oacc_default_dims, as oacc_validate_dims would do it, and apply
32933 dimensions limits.
32934
32935 2019-01-12 Tom de Vries <tdevries@suse.de>
32936
32937 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
32938 (nvptx_goacc_validate_dims): Add used parameter.
32939 * doc/tm.texi: Regenerate.
32940 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
32941 argument to call to targetm.goacc.validate_dims.
32942 (default_goacc_validate_dims): Add used
32943 parameter.
32944 * target.def (validate_dims): Add used parameter in DEFHOOK.
32945 * targhooks.h (default_goacc_validate_dims): Add used parameter.
32946
32947 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32948
32949 PR middle-end/85956
32950 PR lto/88733
32951 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
32952 field.
32953 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
32954 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
32955 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
32956 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
32957
32958 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
32959
32960 PR rtl-optimization/87305
32961 * lra-assigns.c
32962 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
32963 for little endian pseudos used as paradoxical subreg.
32964
32965 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32966
32967 PR tree-optimization/88693
32968 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
32969 for STRING_CSTs that don't contain any NUL characters in the first
32970 TREE_STRING_LENGTH bytes.
32971
32972 2019-01-11 Alan Modra <amodra@gmail.com>
32973
32974 PR 88777
32975 PR 88614
32976 * genattrtab.c (min_fn): Don't translate values.
32977 (min_attr_value): Return INT_MAX when the value can't be calculated.
32978 Return minimum among any values that can be calculated.
32979 (max_attr_value): Adjust.
32980
32981 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32982
32983 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
32984
32985 2019-01-11 Steve Ellcey <sellcey@marvell.com>
32986
32987 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
32988 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
32989 (aarch64_return_call_with_max_clobbers): New function.
32990 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
32991 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
32992 argument.
32993 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
32994 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
32995 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
32996 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
32997 * cselib.c (cselib_process_insn): Add argument to
32998 targetm.hard_regno_call_part_clobbered call.
32999 * ira-conflicts.c (ira_build_conflicts): Ditto.
33000 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33001 * lra-constraints.c (inherit_reload_reg): Ditto.
33002 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33003 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33004 argument. Call targetm.return_call_with_max_clobbers.
33005 Add argument to targetm.hard_regno_call_part_clobbered call.
33006 (calls_have_same_clobbers_p): New function.
33007 (process_bb_lives): Add call_insn and last_call_insn variables.
33008 Pass call_insn to check_pseudos_live_through_calls.
33009 Modify if stmt to check targetm.return_call_with_max_clobbers.
33010 Update setting of flush variable.
33011 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33012 to false.
33013 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33014 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33015 targetm.hard_regno_call_part_clobbered call.
33016 * reginfo.c (choose_hard_reg_mode): Ditto.
33017 * regrename.c (check_new_reg_p): Ditto.
33018 * reload.c (find_equiv_reg): Ditto.
33019 * reload1.c (emit_reload_insns): Ditto.
33020 * sched-deps.c (deps_analyze_insn): Ditto.
33021 * sel-sched.c (init_regs_for_mode): Ditto.
33022 (mark_unavailable_hard_regs): Ditto.
33023 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33024 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33025 (return_call_with_max_clobbers): New target function.
33026 * doc/tm.texi: Regenerate.
33027 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33028 * hooks.c (hook_bool_uint_mode_false): Change to
33029 hook_bool_insn_uint_mode_false.
33030 * hooks.h (hook_bool_uint_mode_false): Ditto.
33031
33032 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33033
33034 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33035 (aarch64_remove_extra_call_preserved_regs): New function.
33036 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33037 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33038 * doc/tm.texi: Regenerate.
33039 * final.c (get_call_reg_set_usage): Call new hook.
33040 * target.def (remove_extra_call_preserved_regs): New hook.
33041 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33042 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33043
33044 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33045
33046 PR bootstrap/88714
33047 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33048 inside of pass_combine_1 dump rather than pass_profile_1.
33049
33050 2019-01-11 Tom de Vries <tdevries@suse.de>
33051
33052 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33053 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33054 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33055 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33056 num_workers 16.
33057
33058 2019-01-11 Tom de Vries <tdevries@suse.de>
33059
33060 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33061
33062 2019-01-11 Jan Beulich <jbeulich@suse.com>
33063
33064 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33065 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33066 sse2_cvtsi2sd): Add {l}.
33067 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33068 syntax.
33069
33070 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33071
33072 PR target/88785
33073 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33074 define_expand.
33075 (*float<floatunssuffix>v2div2sf2): New define_insn.
33076 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33077 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33078 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33079 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33080 match_operands with "const0_operand" "C".
33081
33082 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33083
33084 * config/aarch64/aarch64-builtins.c
33085 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33086 (aarch64_init_simd_builtins): ...Here
33087
33088 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33089
33090 PR rtl-optimization/87305
33091 * lra-assigns.c
33092 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33093 allocation for big endian pseudos used as paradoxical subregs and
33094 spill them if it is wrong.
33095 * lra-constraints.c (lra_constraints): Add a comment.
33096
33097 2019-01-10 Richard Biener <rguenther@suse.de>
33098
33099 PR tree-optimization/88792
33100 * tree-ssa-pre.c (get_representative_for): Do not return a
33101 value-number here.
33102
33103 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33104
33105 PR middle-end/84877
33106 PR bootstrap/88450
33107 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33108 (assign_parm_setup_block): Do the argument slot realignment here
33109 instead.
33110
33111 2019-01-10 Stefan Agner <stefan@agner.ch>
33112
33113 PR target/88648
33114 * config/arm/arm.c (arm_option_override_internal): Force
33115 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33116
33117 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33118
33119 PR c/88568
33120 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33121 DECL_EXTERNAL.
33122
33123 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33124
33125 * config/arm/arm-builtins.c
33126 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33127 (MAC_LANE_PAIR_QUALIFIERS): New.
33128 (arm_expand_builtin_args): Use it.
33129 (arm_expand_builtin_1): Likewise.
33130 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33131 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33132 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33133 * config/arm/arm_neon.h:
33134 (vcadd_rot90_f16): New.
33135 (vcaddq_rot90_f16): New.
33136 (vcadd_rot270_f16): New.
33137 (vcaddq_rot270_f16): New.
33138 (vcmla_f16): New.
33139 (vcmlaq_f16): New.
33140 (vcmla_lane_f16): New.
33141 (vcmla_laneq_f16): New.
33142 (vcmlaq_lane_f16): New.
33143 (vcmlaq_laneq_f16): New.
33144 (vcmla_rot90_f16): New.
33145 (vcmlaq_rot90_f16): New.
33146 (vcmla_rot90_lane_f16): New.
33147 (vcmla_rot90_laneq_f16): New.
33148 (vcmlaq_rot90_lane_f16): New.
33149 (vcmlaq_rot90_laneq_f16): New.
33150 (vcmla_rot180_f16): New.
33151 (vcmlaq_rot180_f16): New.
33152 (vcmla_rot180_lane_f16): New.
33153 (vcmla_rot180_laneq_f16): New.
33154 (vcmlaq_rot180_lane_f16): New.
33155 (vcmlaq_rot180_laneq_f16): New.
33156 (vcmla_rot270_f16): New.
33157 (vcmlaq_rot270_f16): New.
33158 (vcmla_rot270_lane_f16): New.
33159 (vcmla_rot270_laneq_f16): New.
33160 (vcmlaq_rot270_lane_f16): New.
33161 (vcmlaq_rot270_laneq_f16): New.
33162 (vcadd_rot90_f32): New.
33163 (vcaddq_rot90_f32): New.
33164 (vcadd_rot270_f32): New.
33165 (vcaddq_rot270_f32): New.
33166 (vcmla_f32): New.
33167 (vcmlaq_f32): New.
33168 (vcmla_lane_f32): New.
33169 (vcmla_laneq_f32): New.
33170 (vcmlaq_lane_f32): New.
33171 (vcmlaq_laneq_f32): New.
33172 (vcmla_rot90_f32): New.
33173 (vcmlaq_rot90_f32): New.
33174 (vcmla_rot90_lane_f32): New.
33175 (vcmla_rot90_laneq_f32): New.
33176 (vcmlaq_rot90_lane_f32): New.
33177 (vcmlaq_rot90_laneq_f32): New.
33178 (vcmla_rot180_f32): New.
33179 (vcmlaq_rot180_f32): New.
33180 (vcmla_rot180_lane_f32): New.
33181 (vcmla_rot180_laneq_f32): New.
33182 (vcmlaq_rot180_lane_f32): New.
33183 (vcmlaq_rot180_laneq_f32): New.
33184 (vcmla_rot270_f32): New.
33185 (vcmlaq_rot270_f32): New.
33186 (vcmla_rot270_lane_f32): New.
33187 (vcmla_rot270_laneq_f32): New.
33188 (vcmlaq_rot270_lane_f32): New.
33189 (vcmlaq_rot270_laneq_f32): New.
33190 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
33191 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
33192 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
33193 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
33194 vcmlaq_lane270): New.
33195 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33196 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
33197 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
33198 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
33199 (arm_option_reconfigure_globals): Use them.
33200 * config/arm/iterators.md (VDF, VQ_HSF): New.
33201 (VCADD, VCMLA): New.
33202 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
33203 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
33204 New.
33205 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
33206 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
33207
33208 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33209
33210 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
33211 Add qualifier_lane_pair_index.
33212 (emit-rtl.h): Include.
33213 (TYPES_QUADOP_LANE_PAIR): New.
33214 (aarch64_simd_expand_args): Use it.
33215 (aarch64_simd_expand_builtin): Likewise.
33216 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
33217 New.
33218 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
33219 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
33220 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
33221 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
33222 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
33223 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
33224 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
33225 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
33226 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
33227 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
33228 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
33229 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
33230 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
33231 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
33232 Add __ARM_FEATURE_COMPLEX.
33233 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
33234 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
33235 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
33236 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
33237 fcmlaq_lane270): New.
33238 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33239 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
33240 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
33241 * config/aarch64/arm_neon.h:
33242 (vcadd_rot90_f16): New.
33243 (vcaddq_rot90_f16): New.
33244 (vcadd_rot270_f16): New.
33245 (vcaddq_rot270_f16): New.
33246 (vcmla_f16): New.
33247 (vcmlaq_f16): New.
33248 (vcmla_lane_f16): New.
33249 (vcmla_laneq_f16): New.
33250 (vcmlaq_lane_f16): New.
33251 (vcmlaq_rot90_lane_f16): New.
33252 (vcmla_rot90_laneq_f16): New.
33253 (vcmla_rot90_lane_f16): New.
33254 (vcmlaq_rot90_f16): New.
33255 (vcmla_rot90_f16): New.
33256 (vcmlaq_laneq_f16): New.
33257 (vcmla_rot180_laneq_f16): New.
33258 (vcmla_rot180_lane_f16): New.
33259 (vcmlaq_rot180_f16): New.
33260 (vcmla_rot180_f16): New.
33261 (vcmlaq_rot90_laneq_f16): New.
33262 (vcmlaq_rot270_laneq_f16): New.
33263 (vcmlaq_rot270_lane_f16): New.
33264 (vcmla_rot270_laneq_f16): New.
33265 (vcmlaq_rot270_f16): New.
33266 (vcmla_rot270_f16): New.
33267 (vcmlaq_rot180_laneq_f16): New.
33268 (vcmlaq_rot180_lane_f16): New.
33269 (vcmla_rot270_lane_f16): New.
33270 (vcadd_rot90_f32): New.
33271 (vcaddq_rot90_f32): New.
33272 (vcaddq_rot90_f64): New.
33273 (vcadd_rot270_f32): New.
33274 (vcaddq_rot270_f32): New.
33275 (vcaddq_rot270_f64): New.
33276 (vcmla_f32): New.
33277 (vcmlaq_f32): New.
33278 (vcmlaq_f64): New.
33279 (vcmla_lane_f32): New.
33280 (vcmla_laneq_f32): New.
33281 (vcmlaq_lane_f32): New.
33282 (vcmlaq_laneq_f32): New.
33283 (vcmla_rot90_f32): New.
33284 (vcmlaq_rot90_f32): New.
33285 (vcmlaq_rot90_f64): New.
33286 (vcmla_rot90_lane_f32): New.
33287 (vcmla_rot90_laneq_f32): New.
33288 (vcmlaq_rot90_lane_f32): New.
33289 (vcmlaq_rot90_laneq_f32): New.
33290 (vcmla_rot180_f32): New.
33291 (vcmlaq_rot180_f32): New.
33292 (vcmlaq_rot180_f64): New.
33293 (vcmla_rot180_lane_f32): New.
33294 (vcmla_rot180_laneq_f32): New.
33295 (vcmlaq_rot180_lane_f32): New.
33296 (vcmlaq_rot180_laneq_f32): New.
33297 (vcmla_rot270_f32): New.
33298 (vcmlaq_rot270_f32): New.
33299 (vcmlaq_rot270_f64): New.
33300 (vcmla_rot270_lane_f32): New.
33301 (vcmla_rot270_laneq_f32): New.
33302 (vcmlaq_rot270_lane_f32): New.
33303 (vcmlaq_rot270_laneq_f32): New.
33304 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
33305 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
33306 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
33307 (FCADD, FCMLA): New.
33308 (rot): New.
33309 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
33310
33311 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33312
33313 PR other/16615
33314
33315 * config/pa/pa.c: Change "can not" to "cannot".
33316 * gimple-ssa-evrp-analyze.c: Likewise.
33317 * ipa-icf.c: Likewise.
33318 * ipa-polymorphic-call.c: Likewise.
33319 * ipa-pure-const.c: Likewise.
33320 * lra-constraints.c: Likewise.
33321 * lra-remat.c: Likewise.
33322 * reload1.c: Likewise.
33323 * reorg.c: Likewise.
33324 * tree-ssa-uninit.c: Likewise.
33325
33326 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33327
33328 PR other/16615
33329
33330 * Makefile.in: Mechanically replace "can not" with "cannot".
33331 * alias.c: Likewise.
33332 * builtins.c: Likewise.
33333 * calls.c: Likewise.
33334 * cgraph.c: Likewise.
33335 * cgraph.h: Likewise.
33336 * cgraphclones.c: Likewise.
33337 * cgraphunit.c: Likewise.
33338 * combine-stack-adj.c: Likewise.
33339 * combine.c: Likewise.
33340 * common/config/i386/i386-common.c: Likewise.
33341 * config/aarch64/aarch64.c: Likewise.
33342 * config/alpha/sync.md: Likewise.
33343 * config/arc/arc.c: Likewise.
33344 * config/arc/predicates.md: Likewise.
33345 * config/arm/arm-c.c: Likewise.
33346 * config/arm/arm.c: Likewise.
33347 * config/arm/arm.h: Likewise.
33348 * config/arm/arm.md: Likewise.
33349 * config/arm/cortex-r4f.md: Likewise.
33350 * config/csky/csky.c: Likewise.
33351 * config/csky/csky.h: Likewise.
33352 * config/darwin-f.c: Likewise.
33353 * config/epiphany/epiphany.md: Likewise.
33354 * config/i386/i386.c: Likewise.
33355 * config/i386/sol2.h: Likewise.
33356 * config/m68k/m68k.c: Likewise.
33357 * config/mcore/mcore.h: Likewise.
33358 * config/microblaze/microblaze.md: Likewise.
33359 * config/mips/20kc.md: Likewise.
33360 * config/mips/sb1.md: Likewise.
33361 * config/nds32/nds32.c: Likewise.
33362 * config/nds32/predicates.md: Likewise.
33363 * config/pa/pa.c: Likewise.
33364 * config/rs6000/e300c2c3.md: Likewise.
33365 * config/rs6000/rs6000.c: Likewise.
33366 * config/s390/s390.h: Likewise.
33367 * config/sh/sh.c: Likewise.
33368 * config/sh/sh.md: Likewise.
33369 * config/spu/vmx2spu.h: Likewise.
33370 * cprop.c: Likewise.
33371 * dbxout.c: Likewise.
33372 * df-scan.c: Likewise.
33373 * doc/cfg.texi: Likewise.
33374 * doc/extend.texi: Likewise.
33375 * doc/fragments.texi: Likewise.
33376 * doc/gty.texi: Likewise.
33377 * doc/invoke.texi: Likewise.
33378 * doc/lto.texi: Likewise.
33379 * doc/md.texi: Likewise.
33380 * doc/objc.texi: Likewise.
33381 * doc/rtl.texi: Likewise.
33382 * doc/tm.texi: Likewise.
33383 * dse.c: Likewise.
33384 * emit-rtl.c: Likewise.
33385 * emit-rtl.h: Likewise.
33386 * except.c: Likewise.
33387 * expmed.c: Likewise.
33388 * expr.c: Likewise.
33389 * fold-const.c: Likewise.
33390 * genautomata.c: Likewise.
33391 * gimple-fold.c: Likewise.
33392 * hard-reg-set.h: Likewise.
33393 * ifcvt.c: Likewise.
33394 * ipa-comdats.c: Likewise.
33395 * ipa-cp.c: Likewise.
33396 * ipa-devirt.c: Likewise.
33397 * ipa-fnsummary.c: Likewise.
33398 * ipa-icf.c: Likewise.
33399 * ipa-inline-transform.c: Likewise.
33400 * ipa-inline.c: Likewise.
33401 * ipa-polymorphic-call.c: Likewise.
33402 * ipa-profile.c: Likewise.
33403 * ipa-prop.c: Likewise.
33404 * ipa-pure-const.c: Likewise.
33405 * ipa-reference.c: Likewise.
33406 * ipa-split.c: Likewise.
33407 * ipa-visibility.c: Likewise.
33408 * ipa.c: Likewise.
33409 * ira-build.c: Likewise.
33410 * ira-color.c: Likewise.
33411 * ira-conflicts.c: Likewise.
33412 * ira-costs.c: Likewise.
33413 * ira-int.h: Likewise.
33414 * ira-lives.c: Likewise.
33415 * ira.c: Likewise.
33416 * ira.h: Likewise.
33417 * loop-invariant.c: Likewise.
33418 * loop-unroll.c: Likewise.
33419 * lower-subreg.c: Likewise.
33420 * lra-assigns.c: Likewise.
33421 * lra-constraints.c: Likewise.
33422 * lra-eliminations.c: Likewise.
33423 * lra-lives.c: Likewise.
33424 * lra-remat.c: Likewise.
33425 * lra-spills.c: Likewise.
33426 * lra.c: Likewise.
33427 * lto-cgraph.c: Likewise.
33428 * lto-streamer-out.c: Likewise.
33429 * postreload-gcse.c: Likewise.
33430 * predict.c: Likewise.
33431 * profile-count.h: Likewise.
33432 * profile.c: Likewise.
33433 * recog.c: Likewise.
33434 * ree.c: Likewise.
33435 * reload.c: Likewise.
33436 * reload1.c: Likewise.
33437 * reorg.c: Likewise.
33438 * resource.c: Likewise.
33439 * rtl.def: Likewise.
33440 * rtl.h: Likewise.
33441 * rtlanal.c: Likewise.
33442 * sched-deps.c: Likewise.
33443 * sched-ebb.c: Likewise.
33444 * sched-rgn.c: Likewise.
33445 * sel-sched-ir.c: Likewise.
33446 * sel-sched.c: Likewise.
33447 * shrink-wrap.c: Likewise.
33448 * simplify-rtx.c: Likewise.
33449 * symtab.c: Likewise.
33450 * target.def: Likewise.
33451 * toplev.c: Likewise.
33452 * tree-call-cdce.c: Likewise.
33453 * tree-cfg.c: Likewise.
33454 * tree-complex.c: Likewise.
33455 * tree-core.h: Likewise.
33456 * tree-eh.c: Likewise.
33457 * tree-inline.c: Likewise.
33458 * tree-loop-distribution.c: Likewise.
33459 * tree-nrv.c: Likewise.
33460 * tree-profile.c: Likewise.
33461 * tree-sra.c: Likewise.
33462 * tree-ssa-alias.c: Likewise.
33463 * tree-ssa-dce.c: Likewise.
33464 * tree-ssa-dom.c: Likewise.
33465 * tree-ssa-forwprop.c: Likewise.
33466 * tree-ssa-loop-im.c: Likewise.
33467 * tree-ssa-loop-ivcanon.c: Likewise.
33468 * tree-ssa-loop-ivopts.c: Likewise.
33469 * tree-ssa-loop-niter.c: Likewise.
33470 * tree-ssa-phionlycprop.c: Likewise.
33471 * tree-ssa-phiopt.c: Likewise.
33472 * tree-ssa-propagate.c: Likewise.
33473 * tree-ssa-threadedge.c: Likewise.
33474 * tree-ssa-threadupdate.c: Likewise.
33475 * tree-ssa-uninit.c: Likewise.
33476 * tree-ssanames.c: Likewise.
33477 * tree-streamer-out.c: Likewise.
33478 * tree.c: Likewise.
33479 * tree.h: Likewise.
33480 * vr-values.c: Likewise.
33481
33482 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
33483
33484 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
33485 (ix86_split_xorsign): Ditto.
33486 * config/i386/i386.c (ix86_expand_xorsign): New function.
33487 (ix86_split_xorsign): Ditto.
33488 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
33489 (xorsign<mode>3): New expander.
33490 (xorsign<mode>3_1): New insn_and_split pattern.
33491 * config/i386/sse.md (xorsign<mode>3): New expander.
33492
33493 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33494
33495 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
33496 (*tablejump_sp64): Likewise.
33497 (*tablejump<P:mode>): ...this.
33498 (*call_address_sp32): Merge into...
33499 (*call_address_sp64): Likewise.
33500 (*call_address<P:mode>): ...this.
33501 (*call_symbolic_sp32): Merge into...
33502 (*call_symbolic_sp64): Likewise.
33503 (*call_symbolic<P:mode>): ...this.
33504 (call_value): Remove constraint and add predicate.
33505 (*call_value_address_sp32): Merge into...
33506 (*call_value_address_sp64): Likewise.
33507 (*call_value_address<P:mode>): ...this.
33508 (*call_value_symbolic_sp32): Merge into...
33509 (*call_value_symbolic_sp64): Likewise.
33510 (*call_value_symbolic<P:mode>): ...this.
33511 (*sibcall_symbolic_sp32): Merge into...
33512 (*sibcall_symbolic_sp64): Likewise.
33513 (*sibcall_symbolic<P:mode>): ...this.
33514 (sibcall_value): Remove constraint and add predicate.
33515 (*sibcall_value_symbolic_sp32): Merge into...
33516 (*sibcall_value_symbolic_sp64): Likewise.
33517 (*sibcall_value_symbolic<P:mode>): ...this.
33518 (window_save): Minor tweak.
33519 (*branch_sp32): Merge into...
33520 (*branch_sp64): Likewise.
33521 (*branch<P:mode>): ...this.
33522
33523 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33524 James Clarke <jrtc27@jrtc27.com>
33525
33526 PR target/84010
33527 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
33528 consistently in TLS address generation and adjust code to the renaming
33529 of patterns. Mark calls to __tls_get_addr as const.
33530 * config/sparc/sparc.md (tgd_hi22): Turn into...
33531 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
33532 (tgd_lo10): Turn into...
33533 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
33534 (tgd_add32): Merge into...
33535 (tgd_add64): Likewise.
33536 (tgd_add<P:mode>): ...this and use Pmode throughout.
33537 (tldm_hi22): Turn into...
33538 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
33539 (tldm_lo10): Turn into...
33540 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
33541 (tldm_add32): Merge into...
33542 (tldm_add64): Likewise.
33543 (tldm_add<P:mode>): ...this and use Pmode throughout.
33544 (tldm_call32): Merge into...
33545 (tldm_call64): Likewise.
33546 (tldm_call<P:mode>): ...this and use Pmode throughout.
33547 (tldo_hix22): Turn into...
33548 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
33549 (tldo_lox10): Turn into...
33550 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
33551 (tldo_add32): Merge into...
33552 (tldo_add64): Likewise.
33553 (tldo_add<P:mode>): ...this and use Pmode throughout.
33554 (tie_hi22): Turn into...
33555 (tie_hi22<P:mode>): ...this and use Pmode throughout.
33556 (tie_lo10): Turn into...
33557 (tie_lo10<P:mode>): ...this and use Pmode throughout.
33558 (tie_ld64): Use DImode throughout.
33559 (tie_add32): Merge into...
33560 (tie_add64): Likewise.
33561 (tie_add<P:mode>): ...this and use Pmode throughout.
33562 (tle_hix22_sp32): Merge into...
33563 (tle_hix22_sp64): Likewise.
33564 (tle_hix22<P:mode>): ...this and use Pmode throughout.
33565 (tle_lox22_sp32): Merge into...
33566 (tle_lox22_sp64): Likewise.
33567 (tle_lox22<P:mode>): ...this and use Pmode throughout.
33568 (*tldo_ldub_sp32): Merge into...
33569 (*tldo_ldub_sp64): Likewise.
33570 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
33571 (*tldo_ldub1_sp32): Merge into...
33572 (*tldo_ldub1_sp64): Likewise.
33573 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
33574 (*tldo_ldub2_sp32): Merge into...
33575 (*tldo_ldub2_sp64): Likewise.
33576 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
33577 (*tldo_ldsb1_sp32): Merge into...
33578 (*tldo_ldsb1_sp64): Likewise.
33579 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
33580 (*tldo_ldsb2_sp32): Merge into...
33581 (*tldo_ldsb2_sp64): Likewise.
33582 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
33583 (*tldo_ldub3_sp64): Use DImode throughout.
33584 (*tldo_ldsb3_sp64): Likewise.
33585 (*tldo_lduh_sp32): Merge into...
33586 (*tldo_lduh_sp64): Likewise.
33587 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
33588 (*tldo_lduh1_sp32): Merge into...
33589 (*tldo_lduh1_sp64): Likewise.
33590 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
33591 (*tldo_ldsh1_sp32): Merge into...
33592 (*tldo_ldsh1_sp64): Likewise.
33593 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
33594 (*tldo_lduh2_sp64): Use DImode throughout.
33595 (*tldo_ldsh2_sp64): Likewise.
33596 (*tldo_lduw_sp32): Merge into...
33597 (*tldo_lduw_sp64): Likewise.
33598 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
33599 (*tldo_lduw1_sp64): Use DImode throughout.
33600 (*tldo_ldsw1_sp64): Likewise.
33601 (*tldo_ldx_sp64): Likewise.
33602 (*tldo_stb_sp32): Merge into...
33603 (*tldo_stb_sp64): Likewise.
33604 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
33605 (*tldo_sth_sp32): Merge into...
33606 (*tldo_sth_sp64): Likewise.
33607 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
33608 (*tldo_stw_sp32): Merge into...
33609 (*tldo_stw_sp64): Likewise.
33610 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
33611 (*tldo_stx_sp64): Use DImode throughout.
33612
33613 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33614
33615 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
33616 check configure option to set BTI and Return Address Signing.
33617 * configure.ac: Add --enable-standard-branch-protection and
33618 --disable-standard-branch-protection.
33619 * configure: Regenerated.
33620 * doc/install.texi: Document the same.
33621
33622 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33623 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33624
33625 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
33626 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
33627 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
33628 if bti is enabled.
33629 * config/aarch64/aarch64-bti-insert.c: New file.
33630 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
33631 pass.
33632 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
33633 new bti pass.
33634 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
33635 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
33636 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
33637 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
33638
33639 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33640
33641 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
33642 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
33643 Disable bti for -mbranch-protection=none.
33644 (aarch64_handle_standard_branch_protection): Enable bti for
33645 -mbranch-protection=standard.
33646 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
33647 -mbranch-protection.
33648 (aarch64_bti_enabled): Check if bti is enabled.
33649 * config/aarch64/aarch64.opt: Declare target variable.
33650 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
33651
33652 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33653
33654 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
33655 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
33656 (aarch64_expand_epilogue): Likewise.
33657 (aarch64_output_mi_thunk): Likewise.
33658 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
33659 TAILCALL_ADDR_REGS to x16 and x17.
33660 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
33661
33662 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33663
33664 * config/aarch64/aarch64-option-extensions.def: Define
33665 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
33666 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
33667 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
33668 (AARCH64_FL_PREDRES): New.
33669 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
33670 AARCH64_FL_PREDRES by default.
33671 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
33672
33673 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33674
33675 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
33676 ARMv8.5-A.
33677 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
33678 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
33679 * doc/invoke.texi: Document ARMv8.5-A.
33680
33681 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
33682
33683 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
33684 (xorsign<mode>3): Likewise.
33685
33686 2019-01-09 Jelinek <jakub@redhat.com>
33687
33688 PR middle-end/88758
33689 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
33690 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
33691
33692 PR rtl-optimization/88331
33693 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
33694 not currently_expanding_to_rtl.
33695
33696 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33697
33698 * doc/invoke.texi (-Os): Remove trailing spaces.
33699 (-finline-functions): Remove reference to -O2.
33700
33701 2019-01-08 Jakub Jelinek <jakub@redhat.com>
33702
33703 PR rtl-optimization/79593
33704 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
33705
33706 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
33707 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
33708
33709 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
33710
33711 PR bootstrap/88721
33712 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
33713 to -1 on entry.
33714
33715 PR debug/88723
33716 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
33717 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
33718
33719 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
33720
33721 PR target/88717
33722 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
33723 ix86_avx_u128_mode_entry.
33724
33725 2019-01-08 Martin Liska <mliska@suse.cz>
33726
33727 PR tree-optimization/88753
33728 * tree-switch-conversion.c (switch_conversion::build_one_array):
33729 Come up with local variable constructor. Convert first to
33730 type of constructor values.
33731
33732 2019-01-08 Richard Biener <rguenther@suse.de>
33733
33734 PR tree-optimization/86554
33735 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
33736 rpo_avail): Move earlier.
33737 (visit_nary_op): When value-numbering to expressions
33738 with different overflow behavior make sure there's an
33739 available expression on the path.
33740
33741 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
33742
33743 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
33744 aarch64_parse_branch_protection,
33745 struct aarch64_branch_protect_type,
33746 aarch64_handle_no_branch_protection,
33747 aarch64_handle_standard_branch_protection,
33748 aarch64_validate_mbranch_protection,
33749 aarch64_handle_pac_ret_protection,
33750 aarch64_handle_attr_branch_protection,
33751 accepted_branch_protection_string,
33752 aarch64_pac_ret_subtypes,
33753 aarch64_branch_protect_types,
33754 aarch64_handle_pac_ret_leaf): Define.
33755 (aarch64_override_options_after_change_1, aarch64_override_options):
33756 Add check for accepted_branch_protection_string.
33757 (aarch64_option_save): Save accepted_branch_protection_string.
33758 (aarch64_option_restore): Save accepted_branch_protection_string.
33759 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
33760 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
33761 msign-return-address.
33762 * doc/invoke.texi: Add mbranch-protection.
33763
33764 2019-01-08 Alan Modra <amodra@gmail.com>
33765
33766 PR target/88614
33767 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
33768 Delete "unknownp" parameter. Adjust callers. Handle
33769 CONST_INT, PLUS, MINUS, and MULT.
33770 (attr_value_aligned): Renamed from or_attr_value.
33771 (min_attr_value): Return INT_MIN for unhandled rtl case..
33772 (min_fn): ..and translate to INT_MAX here.
33773 (write_length_unit_log): Modify to cope without "unknown".
33774 (write_attr_value): Handle IF_THEN_ELSE.
33775
33776 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33777
33778 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
33779 optimization for masked stores.
33780
33781 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33782
33783 PR middle-end/88567
33784 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
33785 output vector directly to duplicate_and_interleave instead of
33786 going through a temporary. Postpone insertion of ctor_seq to
33787 the end of the loop.
33788
33789 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
33790
33791 PR target/86891
33792 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
33793 unsigned_p. Handle signed and unsigned overflow correction as
33794 required.
33795 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
33796 prototype.
33797 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
33798 for operand 2.
33799 (add<mode>3_compareV_imm): Make this callable for expanding.
33800 (subv<GPI:mode>4): Use register_operand for operand 1. Use
33801 aarch64_plus_operand for operand 2.
33802 (subv<GPI:mode>_insn): New insn pattern.
33803 (subv<GPI:mode>_imm): Likewise.
33804 (negv<GPI:mode>3): New expand pattern.
33805 (negv<GPI:mode>_insn): New insn pattern.
33806 (negv<GPI:mode>_cmp_only): Likewise.
33807 (cmpv<GPI:mode>_insn): Likewise.
33808 (subvti4): Use register_operand for operand 1. Update call to
33809 aarch64_expand_subvti.
33810 (usubvti4): Likewise.
33811 (negvti3): New expand pattern.
33812 (negdi_carryout): New insn pattern.
33813 (negvdi_carryinV): New insn pattern.
33814 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
33815 version the named version.
33816 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
33817 operands.
33818 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
33819 patterns.
33820 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
33821 patterns.
33822 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
33823 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
33824 (sub<mode>3_carryinCV): Delete.
33825 (sub<GPI:mode>3_carryinV): New expand pattern.
33826 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
33827
33828 2019-01-07 Richard Biener <rguenther@suse.de>
33829
33830 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
33831 of tree_operand_hash.
33832
33833 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33834
33835 PR tree-optimization/88598
33836 * tree.h (single_nonzero_element): Declare.
33837 * tree.c (single_nonzero_element): New function.
33838 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
33839 if I is the only nonzero element of CST.
33840
33841 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33842
33843 PR tree-optimization/88598
33844 * tree.h (initializer_each_zero_or_onep): Declare.
33845 * tree.c (initializer_each_zero_or_onep): New function.
33846 (signed_or_unsigned_type_for): Handle float types too.
33847 (unsigned_type_for, signed_type_for): Update comments accordingly.
33848 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
33849 x & { 0 or -1, 0 or -1, ... }.
33850
33851 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
33852
33853 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
33854 with x86_64-pc-linux-gnu.
33855
33856 2019-01-07 Tom de Vries <tdevries@suse.de>
33857
33858 PR target/85486
33859 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
33860 function.
33861 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
33862 routines.
33863
33864 2019-01-07 Jakub Jelinek <jakub@redhat.com>
33865
33866 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
33867 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
33868 TARGET_AVX512F as condition.
33869
33870 PR debug/88723
33871 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
33872 const_not_ok_for_debug_p target hook.
33873 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
33874 on UNSPEC and subexpressions thereof if all subexpressions of the
33875 UNSPEC are CONSTANT_P.
33876
33877 PR tree-optimization/88676
33878 * tree-ssa-phiopt.c (two_value_replacement): New function.
33879 (tree_ssa_phiopt_worker): Call it.
33880
33881 PR sanitizer/88619
33882 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
33883 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
33884
33885 PR c++/85052
33886 * tree-vect-generic.c: Include insn-config.h and recog.h.
33887 (expand_vector_piecewise): Add defaulted ret_type argument,
33888 if non-NULL, use that in preference to type for the result type.
33889 (expand_vector_parallel): Formatting fix.
33890 (do_vec_conversion, do_vec_narrowing_conversion,
33891 expand_vector_conversion): New functions.
33892 (expand_vector_operations_1): Call expand_vector_conversion
33893 for VEC_CONVERT ifn calls.
33894 * internal-fn.def (VEC_CONVERT): New internal function.
33895 * internal-fn.c (expand_VEC_CONVERT): New function.
33896 * fold-const-call.c (fold_const_vec_convert): New function.
33897 (fold_const_call): Use it for CFN_VEC_CONVERT.
33898 * doc/extend.texi (__builtin_convertvector): Document.
33899
33900 2019-01-07 Tom de Vries <tdevries@suse.de>
33901
33902 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
33903 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
33904 vector_red_partition, vector_red_sym): New global variables.
33905 (nvptx_option_override): Initialize vector_red_sym.
33906 (nvptx_declare_function_name): Restore red_partition register.
33907 (nvptx_file_end): Emit code to declare the vector reduction variables.
33908 (nvptx_output_red_partition): New function.
33909 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
33910 large vector reductions.
33911 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
33912 (nvptx_init_builtins): Add VECTOR_ADDR.
33913 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
33914 Handle nvptx_expand_shared_addr.
33915 (nvptx_get_shared_red_addr): Add vector argument and handle large
33916 vectors.
33917 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
33918 large vectors.
33919 (nvptx_goacc_reduction_init): Likewise.
33920 (nvptx_goacc_reduction_fini): Likewise.
33921 (nvptx_goacc_reduction_teardown): Likewise.
33922 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
33923 init,fini,teardown}.
33924 (nvptx_init_axis_predicate): Initialize vector_red_partition.
33925 (nvptx_set_current_function): Init vector_red_partition.
33926 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
33927 (nvptx_red_partition): New insn.
33928 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
33929
33930 2019-01-07 Tom de Vries <tdevries@suse.de>
33931
33932 PR target/85381
33933 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
33934 empty loops.
33935
33936 2019-01-07 Tom de Vries <tdevries@suse.de>
33937
33938 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
33939 (nvptx_option_override): Init oacc_bcast_partition.
33940 (nvptx_init_oacc_workers): New function.
33941 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
33942 (nvptx_needs_shared_bcast): New function.
33943 (nvptx_find_par): Generalize to enable vectors to use shared-memory
33944 to propagate state.
33945 (nvptx_shared_propagate): Initialize vector bcast partition and
33946 synchronization state.
33947 (nvptx_single): Generalize to enable vectors to use shared-memory
33948 to propagate state.
33949 (nvptx_process_pars): Likewise.
33950 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
33951 * config/nvptx/nvptx.h (struct machine_function): Add
33952 bcast_partition and sync_bar members.
33953
33954 2019-01-07 Tom de Vries <tdevries@suse.de>
33955
33956 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
33957 (nvptx_apply_dim_limits): New function.
33958 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
33959 PTX_WARP_SIZE.
33960
33961 2019-01-07 Tom de Vries <tdevries@suse.de>
33962
33963 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
33964 as late as possible.
33965
33966 2019-01-07 Tom de Vries <tdevries@suse.de>
33967
33968 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
33969 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
33970 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
33971 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
33972 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
33973
33974 2019-01-07 Tom de Vries <tdevries@suse.de>
33975
33976 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
33977
33978 2019-01-07 Tom de Vries <tdevries@suse.de>
33979
33980 * omp-offload.c (oacc_get_min_dim): New function.
33981 * omp-offload.h (oacc_get_min_dim): Declare.
33982
33983 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
33984
33985 PR target/88521
33986 * config/i386/i386.c (function_value_ms_64): Return small sturct in
33987 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
33988
33989 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33990
33991 PR tree-opt/86020
33992 Revert:
33993 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
33994
33995 * ipa-inline.c (edge_badness): Use inlined_time instead of
33996 inline_summaries->get.
33997
33998 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33999
34000 * opts.c (enable_fdo_optimizations): Enable
34001 version-loops-for-strides, loop-interchange, unrol-and-jam
34002 and tree-loop-distribution.
34003 * invoke.texi: Document newly enabled options.
34004
34005 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34006
34007 * doc/invoke.texi (max-inline-insns-small): New parameters.
34008 * ipa-inline.c (want_early_inline_function_p): simplify.
34009 (want_inline_small_function_p): Fix pasto from previous patch;
34010 use max-inline-insns-small bound.
34011 * params.def (max-inline-insns-small): New param.
34012 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34013 variables correctly.
34014
34015 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34016
34017 * doc/invoke.texi: Document max-inline-insns-size,
34018 uninlined-function-insns, uninlined-function-time,
34019 uninlined-thunk-insns and uninlined-thunk-time.
34020 * params.def: Add max-inline-insns-size,
34021 uninlined-function-insns, uninlined-function-time,
34022 uninlined-thunk-insns and uninlined-thunk-time.
34023 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34024 new parameters.
34025 * ipa-inline.c (can_inline_edge_by_limits_p,
34026 want_inline_small_function_p): Use new parameters.
34027
34028 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34029
34030 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34031
34032 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34033
34034 PR middle-end/82564
34035 PR target/88620
34036 * expr.c (expand_assignment): For calls returning VLA structures
34037 if to_rtx is not a MEM, force it into a stack temporary.
34038
34039 PR debug/88635
34040 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34041 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34042 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34043 subexpressions of both operands.
34044 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34045 subrtxes are CONSTANT_P.
34046 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34047 2018-11-09 changes.
34048
34049 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34050
34051 * params.def (hot-bb-count-ws-permille): Set to 990.
34052
34053 2019-01-04 Martin Sebor <msebor@redhat.com>
34054
34055 PR c/88546
34056 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34057 leaf.
34058
34059 2019-01-04 Martin Sebor <msebor@redhat.com>
34060
34061 PR c/88363
34062 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34063
34064 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34065
34066 * gdbinit.in: Turn off pagination for the skip commands, restore
34067 it to previous state afterwards.
34068
34069 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34070
34071 PR target/88594
34072 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34073 of GET_MODE (opN) as modes of the libcall arguments.
34074
34075 2019-01-04 Jan Beulich <jbeulich@suse.com>
34076
34077 * config/i386/sse.md
34078 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34079 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34080 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34081 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34082 avx512f_vmcmp<mode>3<round_saeonly_name>,
34083 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34084 avx512f_maskcmp<mode>3,
34085 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34086 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34087 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34088 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34089 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34090 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34091 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34092 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34093 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34094 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34095 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34096 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34097 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34098 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34099 avx512cd_maskb_vec_dup<mode>,
34100 avx512cd_maskw_vec_dup<mode>,
34101 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34102 avx512dq_vmfpclass<mode>,
34103 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34104 instead of =Yk.
34105
34106 2019-01-03 Martin Sebor <msebor@redhat.com>
34107
34108 PR tree-optimization/88659
34109 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34110
34111 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34112
34113 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34114 unaligned vsx and avoid lxvd2x/stxvd2x.
34115 (gen_lvx_v4si_move): New function.
34116
34117 2019-01-03 Tom de Vries <tdevries@suse.de>
34118
34119 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34120 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34121 function.
34122 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34123
34124 2019-01-03 Tom de Vries <tdevries@suse.de>
34125
34126 * config/nvptx/nvptx.c (struct offload_attrs): New.
34127 (populate_offload_attrs): New function. Factor mask extraction out of
34128 nvptx_reorg. Add extraction of dimensions.
34129 (nvptx_reorg): Use populate_offload_attrs.
34130
34131 2019-01-03 Tom de Vries <tdevries@suse.de>
34132
34133 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
34134 cases for oacc_min_dims_p and routine_p. Add asserts for
34135 oacc_default_dims_p and offload_region_p.
34136
34137 2019-01-03 Tom de Vries <tdevries@suse.de>
34138
34139 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
34140 factored out of ...
34141 (nvptx_goacc_validate_dims): ... here.
34142
34143 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34144
34145 PR tree-optimization/85574
34146 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
34147 structure.
34148 (struct ssa_equip_hash_traits): Declare.
34149 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
34150
34151 2019-01-03 Jakub Jelinek <jakub@redhat.com>
34152
34153 PR debug/88644
34154 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
34155 change it to qualified_type.
34156
34157 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34158
34159 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
34160 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
34161
34162 2019-01-02 Martin Sebor <msebor@redhat.com>
34163 Jeff Law <law@redhat.com>
34164
34165 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
34166 (get_range_strlen_tree): Update appropriately.
34167 (get_range_strlen)
34168 * gimple-fold.h (get_range_strlen): Drop unused last argument.
34169
34170 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
34171 rather than set_range_info.
34172 * tree-ssa-strlen.c (set_strlen_range): Extracted from
34173 maybe_set_strlen_range. Handle potentially boundary crossing
34174 cases more conservatively.
34175 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
34176 Call set_strlen_range.
34177 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
34178
34179 PR middle-end/88663
34180 * gimple-fold.c (get_range_strlen): Update prototype to no longer
34181 need the flexp argument.
34182 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
34183 from calls to get_range_strlen. Update comments. Just update
34184 VAL for an unterminated const char array and let the reset of the
34185 code handle it normally. No longer try to set *flexp. Adjust
34186 return value.
34187 (get_range_strlen): Update for the new get_range_strlen API.
34188 (get_maxval_strlen): Similarly.
34189 (gimple_fold_builtin_strlen): Handle update meaning of return value
34190 from get_range_strlen.
34191 * gimple-ssa-sprintf.c (get_string_length): Update for the new
34192 get_range_strlen API.
34193
34194 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
34195
34196 PR lto/88130
34197 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
34198 false at WPA time when body was removed.
34199
34200 2019-01-02 Martin Liska <mliska@suse.cz>
34201
34202 PR tree-optimization/88650
34203 * predict.c (set_even_probabilities): Calculate probability
34204 remainer only when really used.
34205
34206 2019-01-02 Richard Biener <rguenther@suse.de>
34207
34208 PR middle-end/88651
34209 * tree-data-ref.c (analyze_subscript_affine_affine): Use
34210 widest_ints when mangling max_stmt_execution results.
34211
34212 2019-01-02 Richard Biener <rguenther@suse.de>
34213
34214 PR tree-optimization/88621
34215 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
34216 bitfields when canoncalizing.
34217
34218 2019-01-02 Richard Biener <rguenther@suse.de>
34219
34220 PR target/87545
34221 * config/i386/x86-tune-costs.h (intel_cost): Adjust
34222 cost of cheap SSE instruction.
34223
34224 2019-01-02 Richard Biener <rguenther@suse.de>
34225
34226 PR ipa/85574
34227 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
34228 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
34229 function.
34230 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
34231 set after UIDs before splitting them.
34232
34233 2019-01-01 Martin Sebor <msebor@redhat.com>
34234 Jeff Law <law@redhat.com>
34235
34236 * gimple-fold.c (get_range_strlen_tree): Record if the computed
34237 length is optimistic. If it is, then arrange to compute the
34238 conservative length as well.
34239
34240 * gimple-fold.h (get_range_strlen): Update prototype.
34241 * builtins.c (check_access): Update call to get_range_strlen to use
34242 c_strlen_data pointer. Change various variable accesses to instead
34243 pull data from the c_strlen_data structure.
34244 (check_strncat_sizes, expand_builtin_strncat): Likewise.
34245 * calls.c (maybe_warn_nonstring_arg): Likewise.
34246 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
34247 minimum length if maximum lengh is unknown.
34248 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
34249 that used c_strlen, it's no longer needed. Restructure slightly.
34250 (format_string): Set unlikely range appropriately.
34251 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
34252 formatting issues.
34253 (get_range_strlen): Accept c_strlen_data pointer for external
34254 call sites as well. Pass through to call to internal get_range_strlen.
34255 Adjust minlen, maxlen and maxbound as needed.
34256 (get_maxval_strlen): Update comments.
34257 (gimple_fold_builtin_strlen): Update call to get_range_strlen
34258 to use c_strlen_data pointer. Change variable accesses to instead
34259 use c_strlen_data data members.
34260
34261 * gimple-fold.c (get_range_strlen): Update prototype.
34262 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
34263 local variables. Use pdata to return information to caller.
34264 Update calls to get_range_strlen. Update pdata->maxbound.
34265 (get_range_strlen -- static version): Similarly.
34266 (get_range_strlen -- extern version): Update for internal
34267 get_range_strlen API change. Convert to external data format.
34268 (get_maxval_strlen): Similarly.
34269
34270 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
34271
34272 * coverage.c (get_coverage_counts): Use current_function_decl.
34273 * profile.c (read_thunk_profile): New function.
34274 (branch_prob): Add THUNK parameter.
34275 * tree-profile.c (tree_profiling): Handle thunks.
34276 * value-prof.c (init_node_map): Handle thunks.
34277 * value-prof.h (branch_prob): Upate prototype.
34278 (read_thunk_profile): Declare.
34279
34280 2019-01-01 Jakub Jelinek <jakub@redhat.com>
34281
34282 Update copyright years.
34283
34284 * gcc.c (process_command): Update copyright notice dates.
34285 * gcov-dump.c (print_version): Ditto.
34286 * gcov.c (print_version): Ditto.
34287 * gcov-tool.c (print_version): Ditto.
34288 * gengtype.c (create_file): Ditto.
34289 * doc/cpp.texi: Bump @copying's copyright year.
34290 * doc/cppinternals.texi: Ditto.
34291 * doc/gcc.texi: Ditto.
34292 * doc/gccint.texi: Ditto.
34293 * doc/gcov.texi: Ditto.
34294 * doc/install.texi: Ditto.
34295 * doc/invoke.texi: Ditto.
34296 \f
34297 Copyright (C) 2019 Free Software Foundation, Inc.
34298
34299 Copying and distribution of this file, with or without modification,
34300 are permitted in any medium without royalty provided the copyright
34301 notice and this notice are preserved.